Jcrandall541 commited on
Commit
5eedc17
·
verified ·
1 Parent(s): cb1907e

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -57,3 +57,11 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ train_0000.jsonl filter=lfs diff=lfs merge=lfs -text
61
+ train_0001.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ train_0002.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ train_0003.jsonl filter=lfs diff=lfs merge=lfs -text
64
+ train_0004.jsonl filter=lfs diff=lfs merge=lfs -text
65
+ train_0005.jsonl filter=lfs diff=lfs merge=lfs -text
66
+ train_0006.jsonl filter=lfs diff=lfs merge=lfs -text
67
+ train_0007.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ - question-answering
6
+ language:
7
+ - en
8
+ tags:
9
+ - crypto
10
+ - defi
11
+ - ethereum
12
+ - solidity
13
+ - trading
14
+ - documentation
15
+ - code
16
+ size_categories:
17
+ - 100K<n<1M
18
+ ---
19
+
20
+ # Crypto & DeFi Documentation Dataset
21
+
22
+ A comprehensive dataset of cryptocurrency, DeFi, and blockchain documentation and code suitable for LLM training.
23
+
24
+ ## Dataset Description
25
+
26
+ This dataset contains scraped and processed documentation from various crypto/DeFi sources including:
27
+
28
+ - **Rust Ethereum libraries** (ethers-rs, etc.)
29
+ - **Solidity documentation** (official Solidity language docs)
30
+ - **Smart contracts** (Uniswap, Aave, Balancer, SushiSwap, etc.)
31
+ - **Trading bots** (MEV, flashloans, arbitrage)
32
+ - **Protocol documentation** (Tenderly, Alchemy, etc.)
33
+
34
+ ## Dataset Statistics
35
+
36
+ - **Total Records**: 794,655
37
+ - **Estimated Tokens**: 75,890,740
38
+ - **Created**: 2025-11-23T02:36:21.391841
39
+
40
+ ### By Category
41
+
42
+ | Category | Count |
43
+ |----------|-------|
44
+ | code | 9,153 |
45
+ | data | 885 |
46
+ | documentation | 698,443 |
47
+ | infrastructure | 5,954 |
48
+ | smart_contract | 76,307 |
49
+ | trading_bot | 3,913 |
50
+
51
+ ### By Language
52
+
53
+ | Language | Count |
54
+ |----------|-------|
55
+ | rust | 483,803 |
56
+ | unknown | 177,872 |
57
+ | javascript | 71,476 |
58
+ | solidity | 47,370 |
59
+ | typescript | 9,912 |
60
+ | python | 2,871 |
61
+ | markdown | 1,235 |
62
+ | toml | 76 |
63
+ | console | 22 |
64
+ | ts14 | 5 |
65
+ | json | 3 |
66
+ | b | 3 |
67
+ | md | 1 |
68
+ | ts90 | 1 |
69
+ | ts304 | 1 |
70
+
71
+ ## Data Format
72
+
73
+ Each record is a JSON object with the following fields:
74
+
75
+ ```json
76
+ {
77
+ "id": "unique_hash_id",
78
+ "source": "https://github.com/...",
79
+ "file": "original_filename.sol",
80
+ "chunk_id": 0,
81
+ "category": "smart_contract",
82
+ "language": "solidity",
83
+ "content": "// SPDX-License-Identifier...",
84
+ "token_estimate": 150
85
+ }
86
+ ```
87
+
88
+ ## Usage
89
+
90
+ ```python
91
+ from datasets import load_dataset
92
+
93
+ # Load the dataset
94
+ dataset = load_dataset("your-username/crypto-defi-docs", split="train")
95
+
96
+ # Filter by category
97
+ contracts = dataset.filter(lambda x: x['category'] == 'smart_contract')
98
+
99
+ # Filter by language
100
+ solidity = dataset.filter(lambda x: x['language'] == 'solidity')
101
+ ```
102
+
103
+ ## Sources
104
+
105
+ - docs.rs (Rust crate documentation)
106
+ - docs.soliditylang.org (Solidity official docs)
107
+ - GitHub repositories (Uniswap, Flashbots, etc.)
108
+ - Protocol documentation (Tenderly, Alchemy, Balancer, etc.)
109
+
110
+ ## License
111
+
112
+ This dataset is provided for educational and research purposes. Individual components may have their own licenses. Please check the original sources for licensing information.
stats.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_records": 794655,
3
+ "total_tokens": 75890740,
4
+ "by_category": {
5
+ "code": 9153,
6
+ "data": 885,
7
+ "documentation": 698443,
8
+ "infrastructure": 5954,
9
+ "smart_contract": 76307,
10
+ "trading_bot": 3913
11
+ },
12
+ "by_language": {
13
+ "rust": 483803,
14
+ "javascript": 71476,
15
+ "markdown": 1235,
16
+ "solidity": 47370,
17
+ "toml": 76,
18
+ "typescript": 9912,
19
+ "python": 2871,
20
+ "md": 1,
21
+ "unknown": 177872,
22
+ "console": 22,
23
+ "ts90": 1,
24
+ "json": 3,
25
+ "ts304": 1,
26
+ "334": 1,
27
+ "ts185": 1,
28
+ "ts103": 1,
29
+ "ts213": 1,
30
+ "ts14": 5,
31
+ "b": 3
32
+ },
33
+ "created": "2025-11-23T02:36:21.391841"
34
+ }
train_0000.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85d085e6fa7da9746a4a8bf49986220fb7775f2736ef5cd0a233d6179ab0d0b3
3
+ size 186436051
train_0001.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcf6033c7b7c8311f681c862d07850a46441630714f1d817c62779e5c581722a
3
+ size 199146101
train_0002.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0aad83ab581cc33cf9dc949a71523cb1c75d971c59713704dbdde802202aaf2f
3
+ size 245854151
train_0003.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4038ebf23b4abaff620dc3558c976eea3f8bf6dd964619ede2c3f25580f0111c
3
+ size 238040181
train_0004.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b01cf4da486a6247efab70b0aebfc84a7573e097ea115d0336be9577ffbf26f
3
+ size 235249978
train_0005.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fed23eee28080b6168b19108f86be8c2f07e7b3ff9b433684691df3945a2c8cc
3
+ size 238247685
train_0006.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af2646676d4fb736c1e01b68aca7744cc4487c2e5fe69d9d897a16b76ea984fb
3
+ size 226626931
train_0007.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84032cf1e2ccd01bc94c568fc7e467bf2bfe93a3fb5df28591602883b17c58dc
3
+ size 185701604