archit11 commited on
Commit
835b99f
·
verified ·
1 Parent(s): 7dc42ab

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +97 -33
README.md CHANGED
@@ -1,35 +1,99 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: repo
5
- dtype: string
6
- - name: instance_id
7
- dtype: string
8
- - name: problem_statement
9
- dtype: string
10
- - name: patch
11
- dtype: string
12
- - name: test_patch
13
- dtype: string
14
- - name: created_at
15
- dtype: string
16
- - name: hints_text
17
- dtype: string
18
- - name: base_commit
19
- dtype: string
20
- - name: test_instructions
21
- dtype: string
22
- - name: filenames
23
- list: string
24
- splits:
25
- - name: train
26
- num_bytes: 74757773
27
- num_examples: 1892
28
- download_size: 18616627
29
- dataset_size: 74757773
30
- configs:
31
- - config_name: default
32
- data_files:
33
- - split: train
34
- path: data/train-*
35
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ task_categories:
6
+ - text-generation
7
+ tags:
8
+ - rust
9
+ - code
10
+ - git-patches
11
+ - hyperswitch
12
+ - payment-processing
13
+ size_categories:
14
+ - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
+
17
+ # Hyperswitch Dataset with Extracted Filenames
18
+
19
+ ## Dataset Description
20
+
21
+ This dataset contains git patches from the [Hyperswitch](https://github.com/juspay/hyperswitch) repository with extracted filenames for each patch.
22
+
23
+ ### Dataset Summary
24
+
25
+ - **Total Examples**: 1892
26
+ - **Language**: Rust (primary)
27
+ - **Source**: Hyperswitch GitHub repository
28
+ - **Enhanced with**: Extracted filenames from git patches
29
+
30
+ ### Data Fields
31
+
32
+ The dataset includes all original fields from `juspay/hyperswitch` plus:
33
+ - `filenames`: List of file paths extracted from the git patch (e.g., `['crates/router/src/payment.rs', 'crates/api_models/src/payments.rs']`)
34
+
35
+ ### Example
36
+
37
+ ```python
38
+ from datasets import load_dataset
39
+
40
+ dataset = load_dataset("archit11/hyperswitch-filenames")
41
+ example = dataset['train'][0]
42
+
43
+ print("Filenames:", example['filenames'])
44
+ print("Patch preview:", example['patch'][:200])
45
+ ```
46
+
47
+ ### Statistics
48
+
49
+ - Total examples: 1892
50
+ - Examples with extracted filenames: ~95.9%
51
+ - Average files per patch: ~13 files
52
+
53
+ ### File Types
54
+
55
+ The patches primarily modify:
56
+ - Rust source files (`.rs`)
57
+ - Database schema files
58
+ - SQL migration files (`.sql`)
59
+ - Configuration files
60
+
61
+ ### Usage
62
+
63
+ Load the dataset:
64
+ ```python
65
+ from datasets import load_dataset
66
+
67
+ dataset = load_dataset("archit11/hyperswitch-filenames")
68
+ ```
69
+
70
+ Filter by specific file patterns:
71
+ ```python
72
+ # Find all patches that modify payment-related files
73
+ payment_patches = dataset['train'].filter(
74
+ lambda x: any('payment' in f for f in x['filenames'])
75
+ )
76
+ ```
77
+
78
+ ### Data Collection
79
+
80
+ Filenames were extracted from git patches using regex patterns to match:
81
+ - `diff --git a/filename b/filename` lines
82
+ - `+++ b/filename` lines
83
+ - `--- a/filename` lines
84
+
85
+ ### Citation
86
+
87
+ If you use this dataset, please cite the Hyperswitch repository:
88
+ ```
89
+ @misc{hyperswitch2024,
90
+ title={Hyperswitch},
91
+ author={Juspay},
92
+ year={2024},
93
+ url={https://github.com/juspay/hyperswitch}
94
+ }
95
+ ```
96
+
97
+ ### License
98
+
99
+ This dataset follows the Apache 2.0 license from the Hyperswitch project.