beyond369 commited on
Commit
b96dd74
·
verified ·
1 Parent(s): c3c8394

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +68 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - text-generation
4
+ tags:
5
+ - code
6
+ - elixir
7
+ - the-stack
8
+ - pretraining
9
+ size_categories:
10
+ - 100K<n<1M
11
+
12
+ configs:
13
+ - config_name: default
14
+ data_files:
15
+ - split: train
16
+ path: data/*.parquet
17
+ ---
18
+
19
+ # Curated Elixir Stack v3
20
+
21
+ A curated, syntax-verified Elixir source code dataset derived from `HuggingFaceCode/stack-v3-full`. This was also an exploration for me to learn how datasets are curated.
22
+
23
+ ## Dataset Summary
24
+ * **Source:** Derived directly from the public Elixir partition of [The Stack v3](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-full) by BigCode.
25
+ * **File Count:** ~564,000 files.
26
+ * **Target Size Bounds:** Filtered to files between 1.5 KB and 25 KB post-cleaning.
27
+ * **Syntax Parsing:** Validated using `tree-sitter-elixir` (AST parse validation to drop truncated code and merge conflicts).
28
+ * **Architectural Tags:** Tagged via pattern matching across common Elixir domains (`test`, `phoenix`, `liveview`, `genserver`, `supervisor`, `ecto`, `documented`, `typespec`, `macro`).
29
+ * **Metadata Preserved:** Original `content_id` and originating `repo_ids` are preserved in the Parquet schema to maintain source attribution and traceability back to original repositories.
30
+
31
+ ---
32
+
33
+ ## Important Notice: Automated Filtering & Sanitization Limitations
34
+
35
+ **Please read before using this dataset:**
36
+
37
+ 1. **No Guarantee of PII Removal:** Personal Identifiable Information (such as email addresses, IP addresses, or potential secret keys) was processed strictly via automated regular expressions and replaced with sentinel tokens (`<EMAIL>`, `<IP_ADDRESS>`, `<SECRET_TOKEN>`, `<PRIVATE_KEY>`). **These heuristics are non-exhaustive and are not guaranteed to catch all sensitive or personal information.**
38
+ 2. **No Guarantee of Complete License/Header Stripping:** Automated comment parsing was applied to remove common top-of-file copyright preambles to reduce repetitive legal boilerplate. Some non-standard, malformed, or mid-file license blocks may remain.
39
+ 3. **No Code Endorsement or Security Auditing:** Files in this dataset originate from public third-party repositories. The maintainers of this curated derivative have not audited the code for security vulnerabilities, malware, or runtime fitness.
40
+
41
+ ---
42
+
43
+ ## Disclaimer of Warranties & Limitation of Liability
44
+
45
+ THIS DATASET IS PROVIDED "AS IS" AND "AS AVAILABLE," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT.
46
+
47
+ IN NO EVENT SHALL THE CURATORS OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE DATASET, THE USE OR REDISTRIBUTION OF THE DATASET, OR ANY UPSTREAM DATA DERIVED FROM THE STACK V3.
48
+
49
+ Downstream users, developers, and model trainers are solely responsible for ensuring that their use of this data complies with applicable data privacy laws, intellectual property rights, and third-party repository licenses.
50
+
51
+ ---
52
+
53
+ ## Provenance, Attribution & Upstream Licensing
54
+
55
+ * This dataset is an independent derivative of [The Stack v3](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-full) created by BigCode.
56
+ * Individual code records retain the respective open-source licenses of their source repositories as indexed by BigCode. Refer to the `repo_ids` column for source repository links.
57
+ * Use of this dataset must adhere to ethical AI norms and acceptable use guidelines as defined by BigCode.
58
+
59
+ ---
60
+
61
+ ## Opt-Out and Takedown Requests
62
+
63
+ This dataset fully respects the developer opt-out framework established by BigCode.
64
+
65
+ If you are a copyright holder or developer and wish to have your code or repository removed from this curated derivative:
66
+ 1. Open an issue in the **Community** tab of this repository with our repository URL and/or the relevant `content_id`.
67
+
68
+ Upon notification, the requested records will be purged from the source files in the subsequent release.