NickIBrody commited on
Commit
ca7bebd
·
verified ·
1 Parent(s): 1890637

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +57 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ tags:
6
+ - code
7
+ - ruby
8
+ - github
9
+ pretty_name: Ruby Code Corpus
10
+ size_categories:
11
+ - 100K<n<1M
12
+ ---
13
+
14
+ # Ruby Code Corpus
15
+
16
+ A large corpus of Ruby source code collected from public GitHub repositories.
17
+
18
+ ## Content
19
+
20
+ - **294,074 files** from 3,920+ Ruby repositories on GitHub
21
+ - Sourced from repos ranked by star count (quality signal)
22
+ - Filtered: removed files under 200 bytes (trivial/empty files)
23
+ - Only permissive licenses: MIT, Apache-2.0, BSD, ISC, Ruby
24
+
25
+ ## Fields
26
+
27
+ | Field | Description |
28
+ |---|---|
29
+ | `source` | Always `github` |
30
+ | `repo` | `owner/repo` slug |
31
+ | `repo_url` | Full GitHub URL |
32
+ | `path` | File path within the repo |
33
+ | `language` | Always `Ruby` |
34
+ | `license` | SPDX license identifier |
35
+ | `stars` | GitHub star count at collection time |
36
+ | `ref` | Branch name |
37
+ | `size_bytes` | File size in bytes |
38
+ | `text` | Raw source content |
39
+
40
+ ## Composition
41
+
42
+ - ~95% `.rb` files
43
+ - ~37% test files (spec/test — kept intentionally, useful for training)
44
+ - ~58% production code
45
+
46
+ ## Usage
47
+
48
+ ```python
49
+ from datasets import load_dataset
50
+
51
+ ds = load_dataset("NickIBrody/ruby-code-corpus", split="train")
52
+ print(ds[0]["text"])
53
+ ```
54
+
55
+ ## License
56
+
57
+ Individual files retain their original open-source licenses as specified in the `license` field.