The dataset viewer is not available for this split.
Error code: FeaturesError
Exception: ArrowInvalid
Message: JSON parse error: Column() changed from object to string in row 0
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 174, in _generate_tables
df = pandas_read_json(f)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
return pd.read_json(path_or_buf, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 815, in read_json
return json_reader.read()
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 1014, in read
obj = self._get_object_parser(self.data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
obj = FrameParser(json, **kwargs).parse()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 1176, in parse
self._parse()
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 1391, in _parse
self.obj = DataFrame(
^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/core/frame.py", line 778, in __init__
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/core/internals/construction.py", line 503, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/core/internals/construction.py", line 114, in arrays_to_mgr
index = _extract_index(arrays)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/core/internals/construction.py", line 677, in _extract_index
raise ValueError("All arrays must be of the same length")
ValueError: All arrays must be of the same length
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 243, in compute_first_rows_from_streaming_response
iterable_dataset = iterable_dataset._resolve_features()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 3496, in _resolve_features
features = _infer_features_from_batch(self.with_format(None)._head())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2257, in _head
return next(iter(self.iter(batch_size=n)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2461, in iter
for key, example in iterator:
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 1952, in __iter__
for key, pa_table in self._iter_arrow():
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 1974, in _iter_arrow
yield from self.ex_iterable._iter_arrow()
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 503, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 350, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 177, in _generate_tables
raise e
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 151, in _generate_tables
pa_table = paj.read_json(
^^^^^^^^^^^^^^
File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Hyperswitch-FuncDiff: Function-Level PR-to-Commit Evolution Dataset
Overview
A comprehensive dataset of function-level code evolution from the Hyperswitch payment platform, tracking how individual functions, structs, and implementations evolve across PR commits. Includes both code diffs and PR metadata with commit timelines.
What's Inside
- Function-level granularity: Complete function definitions (before/after), not just line diffs
- Import tracking: Dependency changes captured separately
- PR-to-commit mapping: Track code evolution from PR through individual commits
- PR metadata: Full PR descriptions, labels, authors, and commit messages
- Merged PRs only: Only includes PRs that were successfully merged to the main branch
- Rust codebase: Real-world financial technology code
Data Structure
Folders
dataset/
├── diffs/ # Function-level code changes
│ └── pr_{number}/
│ └── {commit_sha}/
│ └── diff.json
└── prs/ # PR metadata and descriptions
└── pr_{number}.json
1. Diffs Folder (diffs/)
Function-level code changes organized by PR and commit.
Example: diffs/pr_10115/1a5b4dd/diff.json
Schema:
{
"commit_sha": "string",
"pr_number": number,
"rust_files": ["string"],
"diffs": [{
"id": "file::kind::name",
"kind": "function_item|struct_item|impl_item",
"status": "modified|added|deleted",
"before_code": "string",
"after_code": "string",
"before_imports": ["string"],
"after_imports": ["string"]
}]
}
2. PRs Folder (prs/)
Pull request metadata including descriptions, labels, commits, and timelines.
Example: prs/pr_10115.json
Schema:
{
"number": number,
"title": "string",
"description": "string",
"author": "string",
"created_at": "ISO8601",
"merged_at": "ISO8601",
"base_branch": "string",
"labels": ["string"],
"url": "string",
"commits": [{
"sha": "string",
"message": "string",
"author": "string",
"date": "ISO8601",
"url": "string"
}]
}
Use Cases
- Synthetic Data Generation: Generate realistic code modifications for training and testing
- Time Series Analysis: Study code evolution patterns over time and across commits
- Code Understanding Models: Train models to understand function-level changes and their context
- Refactoring Detection: Identify and learn common refactoring patterns
- Code Review Automation: Build systems that understand code change patterns
- Dependency Analysis: Learn how code changes affect imports and dependencies
- Software Evolution Research: Analyze how production codebases evolve
Statistics
- 1,000+ Pull Requests (merged to main branch only)
- Commit-level granularity tracking evolution within each PR
- Rust codebase from production payment platform
- Function/struct/impl level changes with full context
- Import tracking for dependency evolution
- Rich PR metadata including descriptions, labels, and commit messages
Example
Diff Example (diffs/pr_10115/1a5b4dd/diff.json):
{
"id": "crates/router/src/core/webhooks/incoming.rs::function::payouts_incoming_webhook_flow",
"kind": "function_item",
"status": "modified",
"before_code": "async fn payouts_incoming_webhook_flow(...) { ... }",
"after_code": "async fn payouts_incoming_webhook_flow(...) { ... }",
"before_imports": ["use api_models::{...};"],
"after_imports": ["use api_models::{...};", "use hyperswitch_interfaces::webhooks::{...};"]
}
PR Metadata Example (prs/pr_10115.json):
{
"number": 10115,
"title": "fix(payouts): webhook error consumption",
"description": "## Type of Change\n- [x] Bugfix\n...",
"author": "Sakilmostak",
"created_at": "2025-11-04T08:01:05+00:00",
"merged_at": "2025-11-04T08:24:11+00:00",
"labels": ["A-core", "C-bug", "Payouts"],
"commits": [{
"sha": "1a5b4dddf555c9ace61b528641cf118b4a67d988",
"message": "fix(payouts): webhook error consumption",
"author": "Sakil Mostak"
}]
}
License
Apache 2.0 (same as Hyperswitch)
Author & Contact
Author: Sirajuddin Shaik
Organization: Juspay
Repository: https://huggingface.co/datasets/SirajRLX/hyperswitch-funcdiff
Citation
@dataset{hyperswitch_funcdiff_2025,
title={Hyperswitch-FuncDiff: Function-Level PR-to-Commit Evolution Dataset},
author={Shaik, Siraj},
organization={Juspay},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/datasets/SirajRLX/hyperswitch-funcdiff}
}
- Downloads last month
- 725