Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringclasses
4 values
The code data is from public Github repositories (MIT or Apache-2.0).
Each row has source URL.
The dataset is extracted from MIT or Apache-2.0 licensed repositories.
Redistribution is allowed under the same MIT/Apache-2.0 terms.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

5000 Python functions plus other metadata.

Example

{"repo_owner": "open-mmlab", "file_path": "tests/test_structures/test_pose_data_sample.py", "function_name": "test_deleter", "code": "def test_deleter(self):\n\n    data_sample = self.get_pose_data_sample()\n\n    for key in [\n            'gt_instances',\n            'pred_instances',\n            'gt_fields',\n            'pred_fields',\n    ]:\n        self.assertIn(key, data_sample)\n        exec(f'del data_sample.{key}')\n        self.assertNotIn(key, data_sample)", "language": "python", "source_url": "https://raw.githubusercontent.com/open-mmlab/mmpose/HEAD/tests/test_structures/test_pose_data_sample.py"}

license: mit

Downloads last month
4