Update README.md
Browse files
README.md
CHANGED
|
@@ -1,151 +1,120 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
-
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
-
|
| 40 |
-
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
###
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 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 |
+

|
| 113 |
+
|
| 114 |
+
### Instruction (`instruction` column)
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
|
| 118 |
+
### License
|
| 119 |
+
|
| 120 |
+
This dataset is licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|