JulianAT commited on
Commit
1b18b3e
·
verified ·
1 Parent(s): 4e7da46

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +120 -151
README.md CHANGED
@@ -1,151 +1,120 @@
1
- ---
2
- annotations_creators:
3
- - JulianAT
4
- language: en
5
- license: mit
6
- multilinguality: monolingual
7
- size_categories: 2k
8
- task_categories:
9
- - Code Generation
10
- task_ids:
11
- - Code Generation
12
- pretty_name: JulianAT/SynthUI-Code-2k-v1
13
- ---
14
-
15
- # Dataset Card for JulianAT/SynthUI-Code-2k-v1
16
-
17
- <!-- Provide a quick summary of the dataset. -->
18
-
19
-
20
-
21
- ## Dataset Details
22
-
23
- ### Dataset Description
24
-
25
- <!-- Provide a longer summary of what this dataset is. -->
26
-
27
-
28
-
29
- - **Curated by:** [More Information Needed]
30
- - **Funded by [optional]:** [More Information Needed]
31
- - **Shared by [optional]:** [More Information Needed]
32
- - **Language(s) (NLP):** en
33
- - **License:** mit
34
-
35
- ### Dataset Sources [optional]
36
-
37
- <!-- Provide the basic links for the dataset. -->
38
-
39
- - **Repository:** [More Information Needed]
40
- - **Paper [optional]:** [More Information Needed]
41
- - **Demo [optional]:** [More Information Needed]
42
-
43
- ## Uses
44
-
45
- <!-- Address questions around how the dataset is intended to be used. -->
46
-
47
- ### Direct Use
48
-
49
- <!-- This section describes suitable use cases for the dataset. -->
50
-
51
- [More Information Needed]
52
-
53
- ### Out-of-Scope Use
54
-
55
- <!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
56
-
57
- [More Information Needed]
58
-
59
- ## Dataset Structure
60
-
61
- <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
62
-
63
- [More Information Needed]
64
-
65
- ## Dataset Creation
66
-
67
- ### Curation Rationale
68
-
69
- <!-- Motivation for the creation of this dataset. -->
70
-
71
- [More Information Needed]
72
-
73
- ### Source Data
74
-
75
- <!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
76
-
77
- #### Data Collection and Processing
78
-
79
- <!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->
80
-
81
- [More Information Needed]
82
-
83
- #### Who are the source data producers?
84
-
85
- <!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
86
-
87
- [More Information Needed]
88
-
89
- ### Annotations [optional]
90
-
91
- <!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->
92
-
93
- #### Annotation process
94
-
95
- <!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
96
-
97
- [More Information Needed]
98
-
99
- #### Who are the annotators?
100
-
101
- <!-- This section describes the people or systems who created the annotations. -->
102
-
103
- [More Information Needed]
104
-
105
- #### Personal and Sensitive Information
106
-
107
- <!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
108
-
109
- [More Information Needed]
110
-
111
- ## Bias, Risks, and Limitations
112
-
113
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
114
-
115
- [More Information Needed]
116
-
117
- ### Recommendations
118
-
119
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
120
-
121
- Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.
122
-
123
- ## Citation [optional]
124
-
125
- <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
126
-
127
- **BibTeX:**
128
-
129
- [More Information Needed]
130
-
131
- **APA:**
132
-
133
- [More Information Needed]
134
-
135
- ## Glossary [optional]
136
-
137
- <!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->
138
-
139
- [More Information Needed]
140
-
141
- ## More Information [optional]
142
-
143
- [More Information Needed]
144
-
145
- ## Dataset Card Authors [optional]
146
-
147
- [More Information Needed]
148
-
149
- ## Dataset Card Contact
150
-
151
- [More Information Needed]
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: text
5
+ dtype: string
6
+ - name: id
7
+ dtype: string
8
+ - name: metadata
9
+ struct:
10
+ - name: file_path
11
+ dtype: string
12
+ - name: repo_id
13
+ dtype: string
14
+ - name: token_count
15
+ dtype: int64
16
+ - name: __index_level_0__
17
+ dtype: int64
18
+ splits:
19
+ - name: train
20
+ num_bytes: 4387049
21
+ num_examples: 2043
22
+ download_size: 1468825
23
+ dataset_size: 4387049
24
+ configs:
25
+ - config_name: default
26
+ data_files:
27
+ - split: train
28
+ path: data/train-*
29
+ license: mit
30
+ task_categories:
31
+ - text-generation
32
+ language:
33
+ - en
34
+ tags:
35
+ - code
36
+ - ui
37
+ - user-interface
38
+ - react
39
+ - nextjs
40
+ pretty_name: Synth-UI-Code-2k-v1
41
+ size_categories:
42
+ - 1K<n<10K
43
+ ---
44
+
45
+ Synth UI 🎹
46
+
47
+ https://www.synthui.design
48
+
49
+ ### Dataset details
50
+
51
+ This dataset aims to provide a diverse collection of NextJS code snippets, along with their corresponding instructions, to facilitate the training of language models for NextJS-related tasks. It is designed to cover a wide range of NextJS functionalities, including UI components, routing, state management, and more.
52
+
53
+ ### This dataset consists of:
54
+
55
+ > **Note:** The dataset is seperated into two main parts:
56
+ >
57
+ > - `raw` Contains only the raw code snippets
58
+ > - `instruct` Contains the code snippets along with ~2000 QA pairs
59
+
60
+ #### Raw Code Snippets
61
+
62
+ - ~2000 Code Snippets (scraped from GitHub)
63
+ - keys: `text`, `id`, `metadata`, `__index_level_0__`
64
+
65
+ #### QA pairs
66
+
67
+ - ~2000 QA pairs (augmented with GPT-4o completions)
68
+ - keys: `instruction`, `output`, `metadata`
69
+
70
+ #### Each row also stores the following metadata:
71
+
72
+ - `file_path`: The relative path to the file where the code snippet is located in the parent repository
73
+ - `repo_id`: The unique identifier of the GitHub repository
74
+ - `token_count`: The number of tokens in the code snippet (using gpt2 tokenizer)
75
+
76
+ ### This dataset contains data scraped from following github repos
77
+
78
+ > **Note:** The data was scraped on 2024-10-04
79
+
80
+ ```python
81
+ ICON_REPOS = [
82
+ "lucide-icons/lucide" # ISC
83
+ ]
84
+ UI_REPOS = [
85
+ "shadcn-ui/ui", # MIT
86
+ "DarkInventor/easy-ui" # MIT
87
+ ]
88
+ CODE_REPOS = [
89
+ "moinulmoin/chadnext", # MIT
90
+ "shadcn-ui/taxonomy", # MIT
91
+ "horizon-ui/shadcn-nextjs-boilerplate", # MIT
92
+ "alifarooq9/rapidlaunch", # MIT
93
+ "ixartz/SaaS-Boilerplate", # MIT
94
+ "nobruf/shadcn-landing-page" # None
95
+ ]
96
+ ```
97
+
98
+ ### Loading
99
+
100
+ ```py
101
+ # Raw Code Snippets
102
+ dataset = load_dataset("JulianAT/SynthUI-Code-2k-v1")
103
+
104
+ # QA pairs
105
+ dataset = load_dataset("JulianAT/SynthUI-Code-Instruct-2k-v1")
106
+ ```
107
+
108
+ ### Token Distribution (QA)
109
+
110
+ ### Code (`output` column)
111
+
112
+ ![Instruction Token Distribution](./assets/images/token_distribution_output.png)
113
+
114
+ ### Instruction (`instruction` column)
115
+
116
+ ![Instruction Token Distribution](./assets/images/token_distribution_instruction.png)
117
+
118
+ ### License
119
+
120
+ This dataset is licensed under the MIT License.