blankenshipdanielj commited on
Commit
34331e8
·
verified ·
1 Parent(s): 4453d57

Add dataset README

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ - text-classification
6
+ language:
7
+ - en
8
+ tags:
9
+ - git
10
+ - commits
11
+ - code
12
+ - software-engineering
13
+ size_categories:
14
+ - 10K<n<100K
15
+ ---
16
+
17
+ # GitGraph Training Data
18
+
19
+ This dataset contains commit data extracted from various Git repositories for training the GitGraph model.
20
+
21
+ ## Contents
22
+
23
+ - `gitgraph.duckdb` - DuckDB database containing:
24
+ - Commit metadata (hash, message, author, timestamp)
25
+ - File changes with diffs
26
+ - Repository information
27
+
28
+ ## Usage
29
+
30
+ ```python
31
+ from huggingface_hub import hf_hub_download
32
+ import duckdb
33
+
34
+ # Download the database
35
+ db_path = hf_hub_download(
36
+ repo_id="blankenshipdanielj/gitgraph-data",
37
+ repo_type="dataset",
38
+ filename="gitgraph.duckdb"
39
+ )
40
+
41
+ # Query the data
42
+ conn = duckdb.connect(db_path, read_only=True)
43
+ commits = conn.execute("SELECT * FROM commits LIMIT 10").fetchdf()
44
+ print(commits)
45
+ ```
46
+
47
+ ## Schema
48
+
49
+ ### commits table
50
+ - `commit_hash` (VARCHAR): Unique commit identifier
51
+ - `repository_id` (VARCHAR): Repository identifier
52
+ - `message` (VARCHAR): Full commit message
53
+ - `message_subject` (VARCHAR): First line of commit message
54
+ - `author_name` (VARCHAR): Author name
55
+ - `author_email` (VARCHAR): Author email
56
+ - `authored_at` (TIMESTAMP): Authoring timestamp
57
+
58
+ ### file_changes table
59
+ - `id` (VARCHAR): Unique file change ID
60
+ - `commit_hash` (VARCHAR): Associated commit hash
61
+ - `file_path` (VARCHAR): Path to changed file
62
+ - `change_type` (VARCHAR): Type of change (added, modified, deleted)
63
+ - `diff_content` (VARCHAR): Unified diff content
64
+
65
+ ## License
66
+
67
+ MIT License