Datasets:

Modalities:
Text
Formats:
parquet
Languages:
code
ArXiv:
Libraries:
Datasets
pandas
License:
code_x_glue_cc_code_refinement / dataset_infos.json
system's picture
system HF staff
Update files from the datasets library (from 1.8.0)
b1190f3
raw
history blame
9.48 kB
{"medium": {"description": "CodeXGLUE code-refinement dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/code-refinement\n\nWe use the dataset released by this paper(https://arxiv.org/pdf/1812.08693.pdf). The source side is a Java function with bugs and the target side is the refined one. All the function and variable names are normalized. Their dataset contains two subsets ( i.e.small and medium) based on the function length.", "citation": "@article{10.1145/3340544,\nauthor = {Tufano, Michele and Watson, Cody and Bavota, Gabriele and Penta, Massimiliano Di and White, Martin and Poshyvanyk, Denys},\ntitle = {An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translation},\nyear = {2019},\nissue_date = {October 2019},\npublisher = {Association for Computing Machinery},\naddress = {New York, NY, USA},\nvolume = {28},\nnumber = {4},\nissn = {1049-331X},\nurl = {https://doi-org.proxy.wm.edu/10.1145/3340544},\ndoi = {10.1145/3340544},\nabstract = {Millions of open source projects with numerous bug fixes are available in code repositories. This proliferation of software development histories can be leveraged to learn how to fix common programming bugs. To explore such a potential, we perform an empirical study to assess the feasibility of using Neural Machine Translation techniques for learning bug-fixing patches for real defects. First, we mine millions of bug-fixes from the change histories of projects hosted on GitHub in order to extract meaningful examples of such bug-fixes. Next, we abstract the buggy and corresponding fixed code, and use them to train an Encoder-Decoder model able to translate buggy code into its fixed version. In our empirical investigation, we found that such a model is able to fix thousands of unique buggy methods in the wild. Overall, this model is capable of predicting fixed patches generated by developers in 9--50% of the cases, depending on the number of candidate patches we allow it to generate. Also, the model is able to emulate a variety of different Abstract Syntax Tree operations and generate candidate patches in a split second.},\njournal = {ACM Trans. Softw. Eng. Methodol.},\nmonth = sep,\narticleno = {19},\nnumpages = {29},\nkeywords = {bug-fixes, Neural machine translation}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/code-refinement", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "buggy": {"dtype": "string", "id": null, "_type": "Value"}, "fixed": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": {"input": "fixed", "output": ""}, "task_templates": null, "builder_name": "code_x_glue_cc_code_refinement", "config_name": "medium", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 32614834, "num_examples": 52364, "dataset_name": "code_x_glue_cc_code_refinement"}, "validation": {"name": "validation", "num_bytes": 4086741, "num_examples": 6546, "dataset_name": "code_x_glue_cc_code_refinement"}, "test": {"name": "test", "num_bytes": 4063673, "num_examples": 6545, "dataset_name": "code_x_glue_cc_code_refinement"}}, "download_checksums": {"https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/medium/train.buggy-fixed.buggy": {"num_bytes": 16188348, "checksum": "4570731680fa183650864e8729a7354d235c9a3ef42f0085ace3441418074085"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/medium/train.buggy-fixed.fixed": {"num_bytes": 15798070, "checksum": "009c121662602642bc55f6882f220aea6a738e6a11f2c4df86e7fe3cd30c175c"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/medium/valid.buggy-fixed.buggy": {"num_bytes": 2028309, "checksum": "8ad01f88be2009599007f40427458d6d2601fe93f2f1d65b0f46b7d414a3add2"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/medium/valid.buggy-fixed.fixed": {"num_bytes": 1979872, "checksum": "7ef5e4b2e95914e0eceb4f2cf6dfad0641625145319b9836db70d3f8745ad2d6"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/medium/test.buggy-fixed.buggy": {"num_bytes": 2014594, "checksum": "21107528c3b25bfdec24d0c4c18a953de31c26f3795a7d7c9e108a60396bcd38"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/medium/test.buggy-fixed.fixed": {"num_bytes": 1970531, "checksum": "4b13298647e9a782bf908d4a26710e97a1846f5513a9bf1aa46ac8223fb84b3d"}}, "download_size": 39979724, "post_processing_size": null, "dataset_size": 40765248, "size_in_bytes": 80744972}, "small": {"description": "CodeXGLUE code-refinement dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/code-refinement\n\nWe use the dataset released by this paper(https://arxiv.org/pdf/1812.08693.pdf). The source side is a Java function with bugs and the target side is the refined one. All the function and variable names are normalized. Their dataset contains two subsets ( i.e.small and medium) based on the function length.", "citation": "@article{10.1145/3340544,\nauthor = {Tufano, Michele and Watson, Cody and Bavota, Gabriele and Penta, Massimiliano Di and White, Martin and Poshyvanyk, Denys},\ntitle = {An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translation},\nyear = {2019},\nissue_date = {October 2019},\npublisher = {Association for Computing Machinery},\naddress = {New York, NY, USA},\nvolume = {28},\nnumber = {4},\nissn = {1049-331X},\nurl = {https://doi-org.proxy.wm.edu/10.1145/3340544},\ndoi = {10.1145/3340544},\nabstract = {Millions of open source projects with numerous bug fixes are available in code repositories. This proliferation of software development histories can be leveraged to learn how to fix common programming bugs. To explore such a potential, we perform an empirical study to assess the feasibility of using Neural Machine Translation techniques for learning bug-fixing patches for real defects. First, we mine millions of bug-fixes from the change histories of projects hosted on GitHub in order to extract meaningful examples of such bug-fixes. Next, we abstract the buggy and corresponding fixed code, and use them to train an Encoder-Decoder model able to translate buggy code into its fixed version. In our empirical investigation, we found that such a model is able to fix thousands of unique buggy methods in the wild. Overall, this model is capable of predicting fixed patches generated by developers in 9--50% of the cases, depending on the number of candidate patches we allow it to generate. Also, the model is able to emulate a variety of different Abstract Syntax Tree operations and generate candidate patches in a split second.},\njournal = {ACM Trans. Softw. Eng. Methodol.},\nmonth = sep,\narticleno = {19},\nnumpages = {29},\nkeywords = {bug-fixes, Neural machine translation}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/code-refinement", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "buggy": {"dtype": "string", "id": null, "_type": "Value"}, "fixed": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": {"input": "fixed", "output": ""}, "task_templates": null, "builder_name": "code_x_glue_cc_code_refinement", "config_name": "small", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 13006719, "num_examples": 46680, "dataset_name": "code_x_glue_cc_code_refinement"}, "validation": {"name": "validation", "num_bytes": 1629250, "num_examples": 5835, "dataset_name": "code_x_glue_cc_code_refinement"}, "test": {"name": "test", "num_bytes": 1619708, "num_examples": 5835, "dataset_name": "code_x_glue_cc_code_refinement"}}, "download_checksums": {"https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/small/train.buggy-fixed.buggy": {"num_bytes": 6509949, "checksum": "dfb4366dedb73dd40f78c3af870ccb0a1aeff2d9ceb45585df26c99897740748"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/small/train.buggy-fixed.fixed": {"num_bytes": 5936570, "checksum": "c98b1139265d33e787a9dd742a464e7eb5bd137ebb3fcb54f0416ee7672739f3"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/small/valid.buggy-fixed.buggy": {"num_bytes": 815315, "checksum": "e83a0c524cdce5a4492dfe0c9bc7d642aa5ed267ddbae5ffd1e563fe54cae6b8"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/small/valid.buggy-fixed.fixed": {"num_bytes": 743907, "checksum": "dc9c23594350988dcdaf456a1e8eea1dc86c81d1c0ff9985ff6d63d15196ffd2"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/small/test.buggy-fixed.buggy": {"num_bytes": 809941, "checksum": "d2e675094f471b3bfbb9419eb7cf14dca11f8d41185319d3310cbc3f517df323"}, "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/code-refinement/data/small/test.buggy-fixed.fixed": {"num_bytes": 739739, "checksum": "e7ec462d00d253ddec3d1cef7a06cfc99db1cfe94039a6607ed14afeef6be04a"}}, "download_size": 15555421, "post_processing_size": null, "dataset_size": 16255677, "size_in_bytes": 31811098}}