{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/measuring-the-impact-of-programming-language","title":"Measuring The Impact Of Programming Language Distribution","arxiv_id":"2302.01973","date":"2023-02-03","proceeding":null,"authors":["Gabriel Orlanski","Kefan Xiao","Xavier Garcia","Jeffrey Hui","Joshua Howland","Jonathan Malmaud","Jacob Austin","Rishabh Singh","Michele Catasta"],"abstract":"Current benchmarks for evaluating neural code models focus on only a small subset of programming languages, excluding many popular languages such as Go or Rust. To ameliorate this issue, we present the BabelCode framework for execution-based evaluation of any benchmark in any language. BabelCode enables new investigations into the qualitative performance of models' memory, runtime, and individual test case results. Additionally, we present a new code translation dataset called Translating Python Programming Puzzles (TP3) from the Python Programming Puzzles (Schuster et al. 2021) benchmark that involves translating expert-level python functions to any language. With both BabelCode and the TP3 benchmark, we investigate if balancing the distributions of 14 languages in a training dataset improves a large language model's performance on low-resource languages. Training a model on a balanced corpus results in, on average, 12.34% higher $pass@k$ across all tasks and languages compared to the baseline. We find that this strategy achieves 66.48% better $pass@k$ on low-resource languages at the cost of only a 12.94% decrease to high-resource languages. In our three translation tasks, this strategy yields, on average, 30.77% better low-resource $pass@k$ while having 19.58% worse high-resource $pass@k$.","url_abs":"https://arxiv.org/abs/2302.01973v3","url_pdf":"https://arxiv.org/pdf/2302.01973v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"measuring-the-impact-of-programming-language","repo_url":"https://github.com/google-research/babelcode","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"code-translation","task_name":"Code Translation"},{"task_slug":"translation","task_name":"Translation"}],"methods":[{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2302.01973","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2302.01973"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/google-research/babelcode","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/github/linguist","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":6},"by_repo_kind":{"official":{"samples":4,"ran":0,"repositories":1},"found_in_text":{"samples":2,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"2af3f1997ace146d","entry":"convert_to_source","repo":"google-research/babelcode","repo_kind":"official","path":"babelcode/dataset_conversion/utils.py","file_url":"https://github.com/google-research/babelcode/blob/HEAD/babelcode/dataset_conversion/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2af3f1997ace146d"}},{"code_sha256_prefix":"31b84e3ac70f8819","entry":"load_template_map","repo":"google-research/babelcode","repo_kind":"official","path":"babelcode/code_generator.py","file_url":"https://github.com/google-research/babelcode/blob/HEAD/babelcode/code_generator.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"31b84e3ac70f8819"}},{"code_sha256_prefix":"bccd2b239ad46dfa","entry":"method_get_order","repo":"github/linguist","repo_kind":"found_in_text","path":"samples/Python/django-models-base.py","file_url":"https://github.com/github/linguist/blob/HEAD/samples/Python/django-models-base.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bccd2b239ad46dfa"}},{"code_sha256_prefix":"4b43445033bc8890","entry":"pass_at_k_estimator","repo":"google-research/babelcode","repo_kind":"official","path":"babelcode/metrics.py","file_url":"https://github.com/google-research/babelcode/blob/HEAD/babelcode/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4b43445033bc8890"}},{"code_sha256_prefix":"736ef187d2695ac3","entry":"pass_at_k_subsampling","repo":"google-research/babelcode","repo_kind":"official","path":"babelcode/metrics.py","file_url":"https://github.com/google-research/babelcode/blob/HEAD/babelcode/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"736ef187d2695ac3"}},{"code_sha256_prefix":"565baa1a43eb8483","entry":"simple_class_factory","repo":"github/linguist","repo_kind":"found_in_text","path":"samples/Python/django-models-base.py","file_url":"https://github.com/github/linguist/blob/HEAD/samples/Python/django-models-base.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"565baa1a43eb8483"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}