Datasets:
addde README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- code
|
| 6 |
+
- rust
|
| 7 |
+
- payment-processing
|
| 8 |
+
- hyperswitch
|
| 9 |
+
- fintech
|
| 10 |
+
- dataset
|
| 11 |
+
- programming
|
| 12 |
+
size_categories:
|
| 13 |
+
- 10K<n<100K
|
| 14 |
+
source_datasets:
|
| 15 |
+
- hyperswitch
|
| 16 |
+
task_categories:
|
| 17 |
+
- text-generation
|
| 18 |
+
---
|
| 19 |
+
# Hyperswitch Rust Codebase Dataset
|
| 20 |
+
|
| 21 |
+
A comprehensive dataset extracted from the [Hyperswitch](https://github.com/juspay/hyperswitch) open-source payment processing platform, containing **16,731 code samples** across **37 modules** with **6.99M tokens** for training Rust code understanding and generation models.
|
| 22 |
+
|
| 23 |
+
## 📊 Dataset Overview
|
| 24 |
+
|
| 25 |
+
This dataset provides both **file-level** and **granular** code samples from Hyperswitch, a modern payment switch written in Rust. It's designed for training code models to understand payment processing patterns, Rust idioms, and large-scale system architecture.
|
| 26 |
+
|
| 27 |
+
### Key Statistics
|
| 28 |
+
- **Total Samples**: 16,990
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
## 🏗️ Dataset Structure
|
| 32 |
+
|
| 33 |
+
### Sample Distribution by Type
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
"total_samples": 16990,
|
| 37 |
+
"file_level_samples": 3143,
|
| 38 |
+
"granular_samples": 13847,
|
| 39 |
+
"commit_samples": 0,
|
| 40 |
+
"total_tokens": 8899898,
|
| 41 |
+
"sample_types": {
|
| 42 |
+
"impl_block": 4103,
|
| 43 |
+
"function_signature": 3993,
|
| 44 |
+
"struct_definition": 5484,
|
| 45 |
+
"full_file": 1623,
|
| 46 |
+
"doc_chunk": 69,
|
| 47 |
+
"openapi_block": 709,
|
| 48 |
+
"trait_definition": 221,
|
| 49 |
+
"web_doc_file": 72,
|
| 50 |
+
"doc_file": 238,
|
| 51 |
+
"chunk": 432,
|
| 52 |
+
"macro": 44,
|
| 53 |
+
"impl_block_chunk": 2
|
| 54 |
+
}
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## 🙏 Acknowledgments
|
| 58 |
+
|
| 59 |
+
- **Hyperswitch Team** for building an excellent open-source payment platform
|
| 60 |
+
- **Rust Community** for creating robust tooling and documentation standards
|
| 61 |
+
- **Juspay Technologies** for open-sourcing this valuable codebase
|
| 62 |
+
|
| 63 |
+
## 📞 Citation
|
| 64 |
+
|
| 65 |
+
```bibtex
|
| 66 |
+
@dataset{HyperSwitch-Repo-CPT-Dataset-v2,
|
| 67 |
+
title={HyperSwitch-Repo-CPT-Dataset-v2},
|
| 68 |
+
author={Aditya Narayan},
|
| 69 |
+
year={2024},
|
| 70 |
+
publisher={Hugging Face},
|
| 71 |
+
url={https://huggingface.co/datasets/AdityaNarayan/HyperSwitch-Repo-CPT-Dataset-v2},
|
| 72 |
+
note={Extracted from https://github.com/juspay/hyperswitch}
|
| 73 |
+
}
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
*This dataset is part of ongoing research into domain-specific code model training for financial technology applications.*
|