nyuuzyou commited on
Commit
3907889
·
verified ·
1 Parent(s): 40d334e

Add files using upload-large-folder tool

Browse files
README.md CHANGED
@@ -2,10 +2,11 @@
2
  annotations_creators:
3
  - machine-generated
4
  language_creators:
5
- - crowdsourced
6
- - expert-generated
7
  language:
8
  - code
 
 
9
  license: other
10
  multilinguality:
11
  - multilingual
@@ -16,42 +17,135 @@ source_datasets:
16
  - original
17
  task_categories:
18
  - text-generation
19
- task_ids:
20
- - language-modeling
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  ---
22
 
23
- # Dataset Card for GitFlic Code Dataset
 
 
 
 
24
 
25
  ### Dataset Summary
26
 
27
- This dataset was compiled from code repositories hosted on the [GitFlic](https://gitflic.ru) platform. GitFlic is the first Russian service for storing and working with source code, based on the Git version control system.
 
 
 
 
 
 
 
 
28
 
29
- The dataset includes code from **12,527** repositories, spanning **692** different file types as identified by [github-linguist](https://github.com/github-linguist/linguist). It has been deduplicated and filtered to remove binary files, resulting in **60 GB** of unique code extracted from over **967 GB** of analyzed data. The dataset contains **5,983,358** unique code files processed. Each entry in the dataset represents a single file, including its content, identified language, and a unique filename.
 
 
 
30
 
31
  ### Languages
32
 
33
- The dataset includes multiple programming languages, with the specific language of each file identified using [github-linguist](https://github.com/github-linguist/linguist).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  ## Dataset Structure
36
 
37
  ### Data Fields
38
 
39
- This dataset includes the following fields:
 
 
 
 
40
 
41
- - `file_text`: The full text content of the file (string)
42
- - `language`: The programming language of the file, as identified by [github-linguist](https://github.com/github-linguist/linguist) (string)
43
- - `file_name`: A unique identifier for the file within the dataset (string)
 
44
 
45
  ### Data Splits
46
 
47
- All examples are in the train split. There is no validation split.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
- ## Additional Information
50
 
51
- ### Dataset Curators
 
 
 
52
 
53
- - [nyuuzyou](https://ducks.party)
54
 
55
- ### Ethical Considerations
56
 
57
- This dataset has been compiled with an analysis of the licenses used in the repositories to ensure ethical collection and use of the data. Users of this dataset should respect the rights of the authors and use the data responsibly.
 
2
  annotations_creators:
3
  - machine-generated
4
  language_creators:
5
+ - found
 
6
  language:
7
  - code
8
+ - ru
9
+ - en
10
  license: other
11
  multilinguality:
12
  - multilingual
 
17
  - original
18
  task_categories:
19
  - text-generation
20
+ tags:
21
+ - code
22
+ - russian
23
+ configs:
24
+ - config_name: default
25
+ data_files:
26
+ - split: train
27
+ path: "data/*.parquet"
28
+ default: true
29
+ dataset_info:
30
+ features:
31
+ - name: file_text
32
+ dtype: string
33
+ - name: language
34
+ dtype: string
35
+ - name: file_name
36
+ dtype: string
37
  ---
38
 
39
+ # GitFlic Code Dataset
40
+
41
+ ## Dataset Description
42
+
43
+ This dataset was compiled from code repositories hosted on [GitFlic](https://gitflic.ru), the first Russian service for storing and working with source code, based on the Git version control system. GitFlic is widely used by Russian developers, enterprises, and open-source projects, making this dataset particularly valuable for training code models with strong Russian language understanding and Russian coding conventions.
44
 
45
  ### Dataset Summary
46
 
47
+ | Statistic | Value |
48
+ |-----------|-------|
49
+ | **Total Files** | 5,975,978 |
50
+ | **Total Repositories** | 12,527 |
51
+ | **Total Size** | 6.44 GB (compressed Parquet) |
52
+ | **Programming Languages** | 690 |
53
+ | **File Format** | Parquet with Zstd compression (6 files) |
54
+
55
+ ### Key Features
56
 
57
+ - **Russian code corpus**: Contains code from over 12,000 repositories, many featuring Russian comments, documentation, and variable names
58
+ - **Diverse language coverage**: Spans 690 programming languages identified by [github-linguist](https://github.com/github-linguist/linguist)
59
+ - **Deduplicated**: The dataset has been deduplicated and filtered to remove binary files
60
+ - **Quality filtered**: Filtered to ensure data quality and remove non-code content
61
 
62
  ### Languages
63
 
64
+ The dataset includes 690 programming languages. The top 30 languages by file count:
65
+
66
+ | Rank | Language | File Count |
67
+ |------|----------|------------|
68
+ | 1 | C | 739,012 |
69
+ | 2 | Java | 634,899 |
70
+ | 3 | C++ | 587,528 |
71
+ | 4 | JavaScript | 422,832 |
72
+ | 5 | PHP | 365,105 |
73
+ | 6 | XML | 291,920 |
74
+ | 7 | Markdown | 211,574 |
75
+ | 8 | Shell | 207,178 |
76
+ | 9 | Python | 206,443 |
77
+ | 10 | Unity3D Asset | 150,654 |
78
+ | 11 | SVG | 150,136 |
79
+ | 12 | TypeScript | 141,886 |
80
+ | 13 | Text | 139,406 |
81
+ | 14 | JSON | 126,214 |
82
+ | 15 | HTML | 122,341 |
83
+ | 16 | Go | 109,740 |
84
+ | 17 | YAML | 89,416 |
85
+ | 18 | Roff | 82,609 |
86
+ | 19 | C# | 77,520 |
87
+ | 20 | Makefile | 63,594 |
88
+ | 21 | LLVM | 55,680 |
89
+ | 22 | Scala | 53,395 |
90
+ | 23 | Unix Assembly | 49,909 |
91
+ | 24 | Rust | 35,553 |
92
+ | 25 | reStructuredText | 35,023 |
93
+ | 26 | Objective-C | 34,151 |
94
+ | 27 | Ruby | 33,366 |
95
+ | 28 | CMake | 33,030 |
96
+ | 29 | CSS | 31,664 |
97
+ | 30 | TSX | 31,397 |
98
 
99
  ## Dataset Structure
100
 
101
  ### Data Fields
102
 
103
+ | Field | Type | Description |
104
+ |-------|------|-------------|
105
+ | `file_text` | string | Content of the source file (UTF-8 encoded) |
106
+ | `language` | string | Programming language as identified by [github-linguist](https://github.com/github-linguist/linguist) |
107
+ | `file_name` | string | A unique identifier for the file within the dataset |
108
 
109
+ ### Data Format
110
+
111
+ - **Format**: Apache Parquet with Zstd compression
112
+ - **File Structure**: 6 files (`gitflic-00000.parquet` to `gitflic-00005.parquet`)
113
 
114
  ### Data Splits
115
 
116
+ All examples are in the train split. There is no validation or test split.
117
+
118
+ ### Example Data Point
119
+
120
+ ```
121
+ {
122
+ 'file_text': 'package com.example.demo;\n\nimport org.springframework.boot.SpringApplication;\n...',
123
+ 'language': 'Java',
124
+ 'file_name': 'Application.java'
125
+ }
126
+ ```
127
+
128
+ ## Dataset Creation
129
+
130
+ ### Language Detection
131
+
132
+ Programming languages are detected using [github-linguist](https://github.com/github-linguist/linguist), GitHub's library for language detection.
133
+
134
+ ### Source Data
135
+
136
+ All data originates from public repositories hosted on [GitFlic](https://gitflic.ru).
137
+
138
+ ## Considerations for Using the Data
139
 
140
+ ### Personal and Sensitive Information
141
 
142
+ The dataset may contain:
143
+ - Email addresses in code comments or configuration files
144
+ - API keys or credentials that were accidentally committed
145
+ - Personal information in comments or documentation
146
 
147
+ Users should exercise caution and implement appropriate filtering when using this data.
148
 
149
+ ### Licensing Information
150
 
151
+ This dataset is a collection of source code from repositories with various licenses. Any use of all or part of the code gathered in this dataset must abide by the terms of the original licenses, including attribution clauses when relevant. Users of this dataset should respect the rights of the authors and use the data responsibly.
data/gitflic-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:820caa652fd837348057d2bd9ae75e1b7d135b989842dba7045a66c61925f203
3
+ size 1157414178
data/gitflic-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ac2b708df53888fc49449b3e596732dad69e12f4b48e8b63371a7f543d1d8bf
3
+ size 1842884003
data/gitflic-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e3a47e1d5a10f1eb4342f5406600f8cdd2fb889b71df97248ccaab77c02df7f
3
+ size 744561785
data/gitflic-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:501b66047c775d2f2d809a210bf885c9fcdb10aac0e7a83d7f3fdfea105a3106
3
+ size 1480531310
data/gitflic-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e3bcf5b79ff63fc1c167ab99034fa9313aca3a3b6e66a6eea24ce8728159059
3
+ size 807773308
data/gitflic-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:596c3d174fae1a7190c982940a3d4df925e812f93ec44f733348ea047fa90d6a
3
+ size 878213672