├── AI_ETHICS.md ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.txt ├── README.md ├── SECURITY.md ├── data ├── mini_val │ ├── competition │ │ ├── cache-6022f0f10d984b45_00000_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00001_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00002_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00003_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00004_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00005_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00006_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00007_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00008_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00009_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00010_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00011_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00012_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00013_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00014_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00015_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00016_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00017_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00018_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00019_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00020_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00021_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00022_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00023_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00024_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00025_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00026_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00027_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00028_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00029_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00030_of_00032.arrow │ │ ├── cache-6022f0f10d984b45_00031_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00000_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00001_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00002_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00003_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00004_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00005_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00006_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00007_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00008_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00009_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00010_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00011_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00012_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00013_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00014_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00015_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00016_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00017_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00018_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00019_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00020_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00021_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00022_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00023_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00024_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00025_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00026_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00027_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00028_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00029_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00030_of_00032.arrow │ │ ├── cache-ced9542cf73d68e1_00031_of_00032.arrow │ │ ├── data-00000-of-00001.arrow │ │ ├── dataset_info.json │ │ └── state.json │ ├── dataset_dict.json │ ├── interview │ │ ├── cache-6097a52e1350d851_00000_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00001_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00002_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00003_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00004_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00005_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00006_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00007_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00008_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00009_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00010_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00011_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00012_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00013_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00014_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00015_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00016_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00017_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00018_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00019_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00020_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00021_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00022_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00023_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00024_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00025_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00026_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00027_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00028_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00029_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00030_of_00032.arrow │ │ ├── cache-6097a52e1350d851_00031_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00000_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00001_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00002_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00003_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00004_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00005_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00006_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00007_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00008_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00009_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00010_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00011_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00012_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00013_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00014_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00015_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00016_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00017_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00018_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00019_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00020_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00021_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00022_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00023_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00024_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00025_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00026_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00027_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00028_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00029_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00030_of_00032.arrow │ │ ├── cache-6a9138e60b7da468_00031_of_00032.arrow │ │ ├── data-00000-of-00001.arrow │ │ ├── dataset_info.json │ │ └── state.json │ └── introductory │ │ ├── cache-08efd176dfa05db8_00000_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00001_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00002_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00003_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00004_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00005_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00006_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00007_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00008_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00009_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00010_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00011_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00012_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00013_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00014_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00015_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00016_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00017_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00018_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00019_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00020_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00021_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00022_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00023_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00024_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00025_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00026_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00027_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00028_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00029_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00030_of_00032.arrow │ │ ├── cache-08efd176dfa05db8_00031_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00000_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00001_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00002_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00003_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00004_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00005_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00006_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00007_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00008_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00009_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00010_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00011_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00012_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00013_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00014_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00015_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00016_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00017_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00018_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00019_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00020_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00021_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00022_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00023_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00024_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00025_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00026_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00027_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00028_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00029_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00030_of_00032.arrow │ │ ├── cache-4bcfb8043179f39d_00031_of_00032.arrow │ │ ├── data-00000-of-00001.arrow │ │ ├── dataset_info.json │ │ └── state.json ├── mini_val_example_tests.pkl └── test_example_tests.pkl ├── images └── code llm agent - clustering_v2.svg ├── install.sh ├── prompts ├── codechain_gen.txt ├── codechain_revise.txt └── direct_gen.txt ├── scripts ├── evaluate_codechain.sh ├── evaluate_direct_gen.sh ├── run_codechain.sh └── run_direct_gen.sh └── src ├── .DS_Store ├── clustering.py ├── configs ├── .DS_Store ├── config_clustering.py ├── config_evaluate.py ├── config_generate.py └── config_processing.py ├── embedding ├── constants.py ├── datasets_loader.py ├── distributed_utils.py ├── encoder.py ├── preprocessing_utils.py └── utils.py ├── evaluate.py ├── generate.py ├── processing.py └── utils ├── .DS_Store ├── utils.py ├── utils_evaluate.py └── utils_execute.py /AI_ETHICS.md: -------------------------------------------------------------------------------- 1 | ## Ethics disclaimer for Salesforce AI models, data, code 2 | 3 | This release is for research purposes only in support of an academic 4 | paper. Our models, datasets, and code are not specifically designed or 5 | evaluated for all downstream purposes. We strongly recommend users 6 | evaluate and address potential concerns related to accuracy, safety, and 7 | fairness before deploying this model. We encourage users to consider the 8 | common limitations of AI, comply with applicable laws, and leverage best 9 | practices when selecting use cases, particularly for high-risk scenarios 10 | where errors or misuse could significantly impact people’s lives, rights, 11 | or safety. For further guidance on use cases, refer to our standard 12 | [AUP](https://www.salesforce.com/content/dam/web/en_us/www/documents/legal/Agreements/policies/ExternalFacing_Services_Policy.pdf) 13 | and [AI AUP](https://www.salesforce.com/content/dam/web/en_us/www/documents/legal/Agreements/policies/ai-acceptable-use-policy.pdf). 14 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Comment line immediately above ownership line is reserved for related other information. Please be careful while editing. 2 | #ECCN:Open Source 5D002 3 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Salesforce Open Source Community Code of Conduct 2 | 3 | ## About the Code of Conduct 4 | 5 | Equality is a core value at Salesforce. We believe a diverse and inclusive 6 | community fosters innovation and creativity, and are committed to building a 7 | culture where everyone feels included. 8 | 9 | Salesforce open-source projects are committed to providing a friendly, safe, and 10 | welcoming environment for all, regardless of gender identity and expression, 11 | sexual orientation, disability, physical appearance, body size, ethnicity, nationality, 12 | race, age, religion, level of experience, education, socioeconomic status, or 13 | other similar personal characteristics. 14 | 15 | The goal of this code of conduct is to specify a baseline standard of behavior so 16 | that people with different social values and communication styles can work 17 | together effectively, productively, and respectfully in our open source community. 18 | It also establishes a mechanism for reporting issues and resolving conflicts. 19 | 20 | All questions and reports of abusive, harassing, or otherwise unacceptable behavior 21 | in a Salesforce open-source project may be reported by contacting the Salesforce 22 | Open Source Conduct Committee at ossconduct@salesforce.com. 23 | 24 | ## Our Pledge 25 | 26 | In the interest of fostering an open and welcoming environment, we as 27 | contributors and maintainers pledge to making participation in our project and 28 | our community a harassment-free experience for everyone, regardless of gender 29 | identity and expression, sexual orientation, disability, physical appearance, 30 | body size, ethnicity, nationality, race, age, religion, level of experience, education, 31 | socioeconomic status, or other similar personal characteristics. 32 | 33 | ## Our Standards 34 | 35 | Examples of behavior that contributes to creating a positive environment 36 | include: 37 | 38 | * Using welcoming and inclusive language 39 | * Being respectful of differing viewpoints and experiences 40 | * Gracefully accepting constructive criticism 41 | * Focusing on what is best for the community 42 | * Showing empathy toward other community members 43 | 44 | Examples of unacceptable behavior by participants include: 45 | 46 | * The use of sexualized language or imagery and unwelcome sexual attention or 47 | advances 48 | * Personal attacks, insulting/derogatory comments, or trolling 49 | * Public or private harassment 50 | * Publishing, or threatening to publish, others' private information—such as 51 | a physical or electronic address—without explicit permission 52 | * Other conduct which could reasonably be considered inappropriate in a 53 | professional setting 54 | * Advocating for or encouraging any of the above behaviors 55 | 56 | ## Our Responsibilities 57 | 58 | Project maintainers are responsible for clarifying the standards of acceptable 59 | behavior and are expected to take appropriate and fair corrective action in 60 | response to any instances of unacceptable behavior. 61 | 62 | Project maintainers have the right and responsibility to remove, edit, or 63 | reject comments, commits, code, wiki edits, issues, and other contributions 64 | that are not aligned with this Code of Conduct, or to ban temporarily or 65 | permanently any contributor for other behaviors that they deem inappropriate, 66 | threatening, offensive, or harmful. 67 | 68 | ## Scope 69 | 70 | This Code of Conduct applies both within project spaces and in public spaces 71 | when an individual is representing the project or its community. Examples of 72 | representing a project or community include using an official project email 73 | address, posting via an official social media account, or acting as an appointed 74 | representative at an online or offline event. Representation of a project may be 75 | further defined and clarified by project maintainers. 76 | 77 | ## Enforcement 78 | 79 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 80 | reported by contacting the Salesforce Open Source Conduct Committee 81 | at ossconduct@salesforce.com. All complaints will be reviewed and investigated 82 | and will result in a response that is deemed necessary and appropriate to the 83 | circumstances. The committee is obligated to maintain confidentiality with 84 | regard to the reporter of an incident. Further details of specific enforcement 85 | policies may be posted separately. 86 | 87 | Project maintainers who do not follow or enforce the Code of Conduct in good 88 | faith may face temporary or permanent repercussions as determined by other 89 | members of the project's leadership and the Salesforce Open Source Conduct 90 | Committee. 91 | 92 | ## Attribution 93 | 94 | This Code of Conduct is adapted from the [Contributor Covenant][contributor-covenant-home], 95 | version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html. 96 | It includes adaptions and additions from [Go Community Code of Conduct][golang-coc], 97 | [CNCF Code of Conduct][cncf-coc], and [Microsoft Open Source Code of Conduct][microsoft-coc]. 98 | 99 | This Code of Conduct is licensed under the [Creative Commons Attribution 3.0 License][cc-by-3-us]. 100 | 101 | [contributor-covenant-home]: https://www.contributor-covenant.org (https://www.contributor-covenant.org/) 102 | [golang-coc]: https://golang.org/conduct 103 | [cncf-coc]: https://github.com/cncf/foundation/blob/master/code-of-conduct.md 104 | [microsoft-coc]: https://opensource.microsoft.com/codeofconduct/ 105 | [cc-by-3-us]: https://creativecommons.org/licenses/by/3.0/us/ -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | # Contributing Guide For CodeChain 3 | 4 | This page lists the operational governance model of this project, as well as the recommendations and requirements for how to best contribute to CodeChain. We strive to obey these as best as possible. As always, thanks for contributing – we hope these guidelines make it easier and shed some light on our approach and processes. 5 | 6 | # Governance Model 7 | 8 | For this project, please follow the community-based governance model below. 9 | 10 | ## Community Based 11 | 12 | The intent and goal of open sourcing this project is to increase the contributor and user base. The governance model is one where new project leads (`admins`) will be added to the project based on their contributions and efforts, a so-called "do-acracy" or "meritocracy" similar to that used by all Apache Software Foundation projects. 13 | 14 | 15 | # Issues, requests & ideas 16 | 17 | Use GitHub Issues page to submit issues, enhancement requests and discuss ideas. 18 | 19 | ### Bug Reports and Fixes 20 | - If you find a bug, please search for it in the [Issues](https://github.com/SalesforceAIResearch/CodeChain/issues), and if it isn't already tracked, 21 | [create a new issue](https://github.com/SalesforceAIResearch/CodeChain/issues/new). Fill out the "Bug Report" section of the issue template. Even if an Issue is closed, feel free to comment and add details, it will still 22 | be reviewed. 23 | - Issues that have already been identified as a bug (note: able to reproduce) will be labelled `bug`. 24 | - If you'd like to submit a fix for a bug, [send a Pull Request](#creating_a_pull_request) and mention the Issue number. 25 | - Include tests that isolate the bug and verifies that it was fixed. 26 | 27 | ### New Features 28 | - If you'd like to add new functionality to this project, describe the problem you want to solve in a [new Issue](https://github.com/SalesforceAIResearch/CodeChain/issues/new). 29 | - Issues that have been identified as a feature request will be labelled `enhancement`. 30 | - If you'd like to implement the new feature, please wait for feedback from the project 31 | maintainers before spending too much time writing the code. In some cases, `enhancement`s may 32 | not align well with the project objectives at the time. 33 | 34 | ### Tests, Documentation, Miscellaneous 35 | - If you'd like to improve the tests, you want to make the documentation clearer, you have an 36 | alternative implementation of something that may have advantages over the way its currently 37 | done, or you have any other change, we would be happy to hear about it! 38 | - If its a trivial change, go ahead and [send a Pull Request](#creating_a_pull_request) with the changes you have in mind. 39 | - If not, [open an Issue](https://github.com/SalesforceAIResearch/CodeChain/issues/new) to discuss the idea first. 40 | 41 | If you're new to our project and looking for some way to make your first contribution, look for 42 | Issues labelled `good first contribution`. 43 | 44 | # Contribution Checklist 45 | 46 | - [x] Clean, simple, well styled code 47 | - [x] Commits should be atomic and messages must be descriptive. Related issues should be mentioned by Issue number. 48 | - [x] Comments 49 | - Module-level & function-level comments. 50 | - Comments on complex blocks of code or algorithms (include references to sources). 51 | - [x] Tests 52 | - The test suite, if provided, must be complete and pass 53 | - Increase code coverage, not versa. 54 | - Use any of our testkits that contains a bunch of testing facilities you would need. For example: `import com.salesforce.op.test._` and borrow inspiration from existing tests. 55 | - [x] Dependencies 56 | - Minimize number of dependencies. 57 | - Prefer Apache 2.0, BSD3, MIT, ISC and MPL licenses. 58 | - [x] Reviews 59 | - Changes must be approved via peer code review 60 | 61 | # Creating a Pull Request 62 | 63 | 1. **Ensure the bug/feature was not already reported** by searching on GitHub under Issues. If none exists, create a new issue so that other contributors can keep track of what you are trying to add/fix and offer suggestions (or let you know if there is already an effort in progress). 64 | 3. **Clone** the forked repo to your machine. 65 | 4. **Create** a new branch to contain your work (e.g. `git br fix-issue-11`) 66 | 4. **Commit** changes to your own branch. 67 | 5. **Push** your work back up to your fork. (e.g. `git push fix-issue-11`) 68 | 6. **Submit** a Pull Request against the `main` branch and refer to the issue(s) you are fixing. Try not to pollute your pull request with unintended changes. Keep it simple and small. 69 | 7. **Sign** the Salesforce CLA (you will be prompted to do so when submitting the Pull Request) 70 | 71 | > **NOTE**: Be sure to [sync your fork](https://help.github.com/articles/syncing-a-fork/) before making a pull request. 72 | 73 | 74 | # Code of Conduct 75 | Please follow our [Code of Conduct](CODE_OF_CONDUCT.md). 76 | 77 | # License 78 | By contributing your code, you agree to license your contribution under the terms of our project [LICENSE](LICENSE.txt) and to sign the [Salesforce CLA](https://cla.salesforce.com/sign-cla) 79 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Apache License Version 2.0 2 | 3 | Copyright (c) 2023 Salesforce, Inc. 4 | All rights reserved. 5 | 6 | Apache License 7 | Version 2.0, January 2004 8 | http://www.apache.org/licenses/ 9 | 10 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 11 | 12 | 1. Definitions. 13 | 14 | "License" shall mean the terms and conditions for use, reproduction, 15 | and distribution as defined by Sections 1 through 9 of this document. 16 | 17 | "Licensor" shall mean the copyright owner or entity authorized by 18 | the copyright owner that is granting the License. 19 | 20 | "Legal Entity" shall mean the union of the acting entity and all 21 | other entities that control, are controlled by, or are under common 22 | control with that entity. For the purposes of this definition, 23 | "control" means (i) the power, direct or indirect, to cause the 24 | direction or management of such entity, whether by contract or 25 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 26 | outstanding shares, or (iii) beneficial ownership of such entity. 27 | 28 | "You" (or "Your") shall mean an individual or Legal Entity 29 | exercising permissions granted by this License. 30 | 31 | "Source" form shall mean the preferred form for making modifications, 32 | including but not limited to software source code, documentation 33 | source, and configuration files. 34 | 35 | "Object" form shall mean any form resulting from mechanical 36 | transformation or translation of a Source form, including but 37 | not limited to compiled object code, generated documentation, 38 | and conversions to other media types. 39 | 40 | "Work" shall mean the work of authorship, whether in Source or 41 | Object form, made available under the License, as indicated by a 42 | copyright notice that is included in or attached to the work 43 | (an example is provided in the Appendix below). 44 | 45 | "Derivative Works" shall mean any work, whether in Source or Object 46 | form, that is based on (or derived from) the Work and for which the 47 | editorial revisions, annotations, elaborations, or other modifications 48 | represent, as a whole, an original work of authorship. For the purposes 49 | of this License, Derivative Works shall not include works that remain 50 | separable from, or merely link (or bind by name) to the interfaces of, 51 | the Work and Derivative Works thereof. 52 | 53 | "Contribution" shall mean any work of authorship, including 54 | the original version of the Work and any modifications or additions 55 | to that Work or Derivative Works thereof, that is intentionally 56 | submitted to Licensor for inclusion in the Work by the copyright owner 57 | or by an individual or Legal Entity authorized to submit on behalf of 58 | the copyright owner. For the purposes of this definition, "submitted" 59 | means any form of electronic, verbal, or written communication sent 60 | to the Licensor or its representatives, including but not limited to 61 | communication on electronic mailing lists, source code control systems, 62 | and issue tracking systems that are managed by, or on behalf of, the 63 | Licensor for the purpose of discussing and improving the Work, but 64 | excluding communication that is conspicuously marked or otherwise 65 | designated in writing by the copyright owner as "Not a Contribution." 66 | 67 | "Contributor" shall mean Licensor and any individual or Legal Entity 68 | on behalf of whom a Contribution has been received by Licensor and 69 | subsequently incorporated within the Work. 70 | 71 | 2. Grant of Copyright License. Subject to the terms and conditions of 72 | this License, each Contributor hereby grants to You a perpetual, 73 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 74 | copyright license to reproduce, prepare Derivative Works of, 75 | publicly display, publicly perform, sublicense, and distribute the 76 | Work and such Derivative Works in Source or Object form. 77 | 78 | 3. Grant of Patent License. Subject to the terms and conditions of 79 | this License, each Contributor hereby grants to You a perpetual, 80 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 81 | (except as stated in this section) patent license to make, have made, 82 | use, offer to sell, sell, import, and otherwise transfer the Work, 83 | where such license applies only to those patent claims licensable 84 | by such Contributor that are necessarily infringed by their 85 | Contribution(s) alone or by combination of their Contribution(s) 86 | with the Work to which such Contribution(s) was submitted. If You 87 | institute patent litigation against any entity (including a 88 | cross-claim or counterclaim in a lawsuit) alleging that the Work 89 | or a Contribution incorporated within the Work constitutes direct 90 | or contributory patent infringement, then any patent licenses 91 | granted to You under this License for that Work shall terminate 92 | as of the date such litigation is filed. 93 | 94 | 4. Redistribution. You may reproduce and distribute copies of the 95 | Work or Derivative Works thereof in any medium, with or without 96 | modifications, and in Source or Object form, provided that You 97 | meet the following conditions: 98 | 99 | (a) You must give any other recipients of the Work or 100 | Derivative Works a copy of this License; and 101 | 102 | (b) You must cause any modified files to carry prominent notices 103 | stating that You changed the files; and 104 | 105 | (c) You must retain, in the Source form of any Derivative Works 106 | that You distribute, all copyright, patent, trademark, and 107 | attribution notices from the Source form of the Work, 108 | excluding those notices that do not pertain to any part of 109 | the Derivative Works; and 110 | 111 | (d) If the Work includes a "NOTICE" text file as part of its 112 | distribution, then any Derivative Works that You distribute must 113 | include a readable copy of the attribution notices contained 114 | within such NOTICE file, excluding those notices that do not 115 | pertain to any part of the Derivative Works, in at least one 116 | of the following places: within a NOTICE text file distributed 117 | as part of the Derivative Works; within the Source form or 118 | documentation, if provided along with the Derivative Works; or, 119 | within a display generated by the Derivative Works, if and 120 | wherever such third-party notices normally appear. The contents 121 | of the NOTICE file are for informational purposes only and 122 | do not modify the License. You may add Your own attribution 123 | notices within Derivative Works that You distribute, alongside 124 | or as an addendum to the NOTICE text from the Work, provided 125 | that such additional attribution notices cannot be construed 126 | as modifying the License. 127 | 128 | You may add Your own copyright statement to Your modifications and 129 | may provide additional or different license terms and conditions 130 | for use, reproduction, or distribution of Your modifications, or 131 | for any such Derivative Works as a whole, provided Your use, 132 | reproduction, and distribution of the Work otherwise complies with 133 | the conditions stated in this License. 134 | 135 | 5. Submission of Contributions. Unless You explicitly state otherwise, 136 | any Contribution intentionally submitted for inclusion in the Work 137 | by You to the Licensor shall be under the terms and conditions of 138 | this License, without any additional terms or conditions. 139 | Notwithstanding the above, nothing herein shall supersede or modify 140 | the terms of any separate license agreement you may have executed 141 | with Licensor regarding such Contributions. 142 | 143 | 6. Trademarks. This License does not grant permission to use the trade 144 | names, trademarks, service marks, or product names of the Licensor, 145 | except as required for reasonable and customary use in describing the 146 | origin of the Work and reproducing the content of the NOTICE file. 147 | 148 | 7. Disclaimer of Warranty. Unless required by applicable law or 149 | agreed to in writing, Licensor provides the Work (and each 150 | Contributor provides its Contributions) on an "AS IS" BASIS, 151 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 152 | implied, including, without limitation, any warranties or conditions 153 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 154 | PARTICULAR PURPOSE. You are solely responsible for determining the 155 | appropriateness of using or redistributing the Work and assume any 156 | risks associated with Your exercise of permissions under this License. 157 | 158 | 8. Limitation of Liability. In no event and under no legal theory, 159 | whether in tort (including negligence), contract, or otherwise, 160 | unless required by applicable law (such as deliberate and grossly 161 | negligent acts) or agreed to in writing, shall any Contributor be 162 | liable to You for damages, including any direct, indirect, special, 163 | incidental, or consequential damages of any character arising as a 164 | result of this License or out of the use or inability to use the 165 | Work (including but not limited to damages for loss of goodwill, 166 | work stoppage, computer failure or malfunction, or any and all 167 | other commercial damages or losses), even if such Contributor 168 | has been advised of the possibility of such damages. 169 | 170 | 9. Accepting Warranty or Additional Liability. While redistributing 171 | the Work or Derivative Works thereof, You may choose to offer, 172 | and charge a fee for, acceptance of support, warranty, indemnity, 173 | or other liability obligations and/or rights consistent with this 174 | License. However, in accepting such obligations, You may act only 175 | on Your own behalf and on Your sole responsibility, not on behalf 176 | of any other Contributor, and only if You agree to indemnify, 177 | defend, and hold each Contributor harmless for any liability 178 | incurred by, or claims asserted against, such Contributor by reason 179 | of your accepting any such warranty or additional liability. 180 | 181 | END OF TERMS AND CONDITIONS 182 | 183 | APPENDIX: How to apply the Apache License to your work. 184 | 185 | To apply the Apache License to your work, attach the following 186 | boilerplate notice, with the fields enclosed by brackets "{}" 187 | replaced with your own identifying information. (Don't include 188 | the brackets!) The text should be enclosed in the appropriate 189 | comment syntax for the file format. We also recommend that a 190 | file or class name and description of purpose be included on the 191 | same "printed page" as the copyright notice for easier 192 | identification within third-party archives. 193 | 194 | Copyright {yyyy} {name of copyright owner} 195 | 196 | Licensed under the Apache License, Version 2.0 (the "License"); 197 | you may not use this file except in compliance with the License. 198 | You may obtain a copy of the License at 199 | 200 | http://www.apache.org/licenses/LICENSE-2.0 201 | 202 | Unless required by applicable law or agreed to in writing, software 203 | distributed under the License is distributed on an "AS IS" BASIS, 204 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 205 | See the License for the specific language governing permissions and 206 | limitations under the License. 207 | 208 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules 2 | 3 | This is the official code for the paper "CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules". Check out our [blog](https://blog.salesforceairesearch.com/codechain/) and [paper](https://arxiv.org/abs/2310.08992) for more details. 4 | 5 | Authors: [Hung Le](https://scholar.google.com/citations?user=jnYI1UgAAAAJ&hl=en), [Hailin Chen](https://aclanthology.org/people/h/hailin-chen/), [Amrita Saha](https://scholar.google.co.uk/citations?user=3Zb5Y2YAAAAJ&hl=en), [Akash Gokul](https://scholar.google.com/citations?user=MYRUJkUAAAAJ&hl=en), [Doyen Sahoo](https://scholar.google.com.sg/citations?user=A61jJD4AAAAJ&hl=en), [Shafiq Joty](https://scholar.google.com/citations?user=hR249csAAAAJ&hl=en) 6 | 7 | ### Contents: 8 | * [x] [CodeChain Overview](#codechain-overview) 9 | * [x] [Setup Datasets and Models](#setup-datasets-and-models) 10 | * [x] [Generate and evaluate code](#generate-and-evaluate-code) 11 | * [x] [Citation](#citation) 12 | * [x] [License](#license) 13 | 14 | ## CodeChain Overview 15 |
16 |
17 |
78 | @misc{le2023codechain, 79 | title={CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules}, 80 | author={Hung Le and Hailin Chen and Amrita Saha and Akash Gokul and Doyen Sahoo and Shafiq Joty}, 81 | year={2023}, 82 | eprint={2310.08992}, 83 | archivePrefix={arXiv}, 84 | primaryClass={cs.AI} 85 | } 86 |87 | 88 | ## License 89 | 90 | The code is released under Apache License Version 2.0 - see `LICENSE.txt` for details. 91 | 92 | The code is developed from other open source projects: including [APPS](https://github.com/hendrycks/apps/), [BigCode Encoder](https://github.com/bigcode-project/bigcode-encoder), and [BigCode Evaluation Harness](https://github.com/bigcode-project/bigcode-evaluation-harness). We thank the original contributors of these works for open-sourcing their valuable source codes. 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | ## Security 2 | 3 | Please report any security issue to [security@salesforce.com](mailto:security@salesforce.com) 4 | as soon as it is discovered. This library limits its runtime dependencies in 5 | order to reduce the total cost of ownership as much as can be, but all consumers 6 | should remain vigilant and have their security stakeholders review all third-party 7 | products (3PP) like this one and their dependencies. -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00000_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00000_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00001_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00001_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00002_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00002_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00003_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00003_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00004_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00004_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00005_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00005_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00006_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00006_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00007_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00007_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00008_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00008_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00009_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00009_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00010_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00010_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00011_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00011_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00012_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00012_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00013_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00013_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00014_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00014_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00015_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00015_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00016_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00016_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00017_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00017_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00018_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00018_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00019_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00019_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00020_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00020_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00021_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00021_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00022_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00022_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00023_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00023_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00024_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00024_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00025_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00025_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00026_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00026_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00027_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00027_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00028_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00028_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00029_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00029_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00030_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00030_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-6022f0f10d984b45_00031_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-6022f0f10d984b45_00031_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00000_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00000_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00001_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00001_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00002_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00002_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00003_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00003_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00004_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00004_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00005_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00005_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00006_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00006_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00007_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00007_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00008_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00008_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00009_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00009_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00010_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00010_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00011_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00011_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00012_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00012_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00013_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00013_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00014_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00014_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00015_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00015_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00016_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00016_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00017_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00017_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00018_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00018_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00019_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00019_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00020_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00020_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00021_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00021_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00022_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00022_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00023_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00023_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00024_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00024_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00025_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00025_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00026_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00026_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00027_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00027_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00028_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00028_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00029_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00029_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00030_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00030_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/cache-ced9542cf73d68e1_00031_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/cache-ced9542cf73d68e1_00031_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/data-00000-of-00001.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/competition/data-00000-of-00001.arrow -------------------------------------------------------------------------------- /data/mini_val/competition/dataset_info.json: -------------------------------------------------------------------------------- 1 | { 2 | "citation": "", 3 | "description": "", 4 | "features": { 5 | "problem_id": { 6 | "dtype": "int64", 7 | "_type": "Value" 8 | }, 9 | "question": { 10 | "dtype": "string", 11 | "_type": "Value" 12 | }, 13 | "solutions": { 14 | "dtype": "string", 15 | "_type": "Value" 16 | }, 17 | "input_output": { 18 | "dtype": "string", 19 | "_type": "Value" 20 | }, 21 | "difficulty": { 22 | "dtype": "string", 23 | "_type": "Value" 24 | }, 25 | "url": { 26 | "dtype": "string", 27 | "_type": "Value" 28 | }, 29 | "starter_code": { 30 | "dtype": "string", 31 | "_type": "Value" 32 | }, 33 | "valid": { 34 | "dtype": "bool", 35 | "_type": "Value" 36 | } 37 | }, 38 | "homepage": "", 39 | "license": "" 40 | } -------------------------------------------------------------------------------- /data/mini_val/competition/state.json: -------------------------------------------------------------------------------- 1 | { 2 | "_data_files": [ 3 | { 4 | "filename": "data-00000-of-00001.arrow" 5 | } 6 | ], 7 | "_fingerprint": "e30b79776ce31019", 8 | "_format_columns": null, 9 | "_format_kwargs": {}, 10 | "_format_type": null, 11 | "_output_all_columns": false, 12 | "_split": null 13 | } -------------------------------------------------------------------------------- /data/mini_val/dataset_dict.json: -------------------------------------------------------------------------------- 1 | {"splits": ["introductory", "interview", "competition"]} -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00000_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00000_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00001_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00001_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00002_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00002_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00003_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00003_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00004_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00004_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00005_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00005_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00006_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00006_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00007_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00007_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00008_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00008_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00009_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00009_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00010_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00010_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00011_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00011_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00012_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00012_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00013_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00013_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00014_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00014_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00015_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00015_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00016_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00016_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00017_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00017_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00018_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00018_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00019_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00019_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00020_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00020_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00021_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00021_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00022_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00022_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00023_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00023_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00024_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00024_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00025_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00025_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00026_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00026_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00027_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00027_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00028_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00028_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00029_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00029_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00030_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00030_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6097a52e1350d851_00031_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6097a52e1350d851_00031_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00000_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00000_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00001_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00001_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00002_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00002_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00003_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00003_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00004_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00004_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00005_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00005_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00006_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00006_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00007_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00007_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00008_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00008_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00009_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00009_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00010_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00010_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00011_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00011_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00012_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00012_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00013_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00013_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00014_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00014_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00015_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00015_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00016_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00016_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00017_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00017_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00018_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00018_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00019_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00019_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00020_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00020_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00021_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00021_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00022_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00022_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00023_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00023_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00024_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00024_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00025_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00025_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00026_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00026_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00027_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00027_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00028_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00028_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00029_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00029_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00030_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00030_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/cache-6a9138e60b7da468_00031_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/cache-6a9138e60b7da468_00031_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/data-00000-of-00001.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/interview/data-00000-of-00001.arrow -------------------------------------------------------------------------------- /data/mini_val/interview/dataset_info.json: -------------------------------------------------------------------------------- 1 | { 2 | "citation": "", 3 | "description": "", 4 | "features": { 5 | "problem_id": { 6 | "dtype": "int64", 7 | "_type": "Value" 8 | }, 9 | "question": { 10 | "dtype": "string", 11 | "_type": "Value" 12 | }, 13 | "solutions": { 14 | "dtype": "string", 15 | "_type": "Value" 16 | }, 17 | "input_output": { 18 | "dtype": "string", 19 | "_type": "Value" 20 | }, 21 | "difficulty": { 22 | "dtype": "string", 23 | "_type": "Value" 24 | }, 25 | "url": { 26 | "dtype": "string", 27 | "_type": "Value" 28 | }, 29 | "starter_code": { 30 | "dtype": "string", 31 | "_type": "Value" 32 | }, 33 | "valid": { 34 | "dtype": "bool", 35 | "_type": "Value" 36 | } 37 | }, 38 | "homepage": "", 39 | "license": "" 40 | } -------------------------------------------------------------------------------- /data/mini_val/interview/state.json: -------------------------------------------------------------------------------- 1 | { 2 | "_data_files": [ 3 | { 4 | "filename": "data-00000-of-00001.arrow" 5 | } 6 | ], 7 | "_fingerprint": "b6e65dc124a91636", 8 | "_format_columns": null, 9 | "_format_kwargs": {}, 10 | "_format_type": null, 11 | "_output_all_columns": false, 12 | "_split": null 13 | } -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00000_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00000_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00001_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00001_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00002_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00002_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00003_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00003_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00004_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00004_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00005_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00005_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00006_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00006_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00007_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00007_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00008_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00008_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00009_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00009_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00010_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00010_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00011_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00011_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00012_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00012_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00013_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00013_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00014_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00014_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00015_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00015_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00016_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00016_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00017_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00017_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00018_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00018_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00019_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00019_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00020_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00020_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00021_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00021_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00022_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00022_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00023_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00023_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00024_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00024_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00025_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00025_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00026_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00026_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00027_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00027_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00028_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00028_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00029_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00029_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00030_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00030_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-08efd176dfa05db8_00031_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-08efd176dfa05db8_00031_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00000_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00000_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00001_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00001_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00002_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00002_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00003_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00003_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00004_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00004_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00005_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00005_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00006_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00006_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00007_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00007_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00008_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00008_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00009_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00009_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00010_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00010_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00011_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00011_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00012_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00012_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00013_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00013_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00014_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00014_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00015_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00015_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00016_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00016_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00017_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00017_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00018_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00018_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00019_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00019_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00020_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00020_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00021_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00021_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00022_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00022_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00023_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00023_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00024_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00024_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00025_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00025_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00026_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00026_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00027_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00027_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00028_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00028_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00029_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00029_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00030_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00030_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/cache-4bcfb8043179f39d_00031_of_00032.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/cache-4bcfb8043179f39d_00031_of_00032.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/data-00000-of-00001.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val/introductory/data-00000-of-00001.arrow -------------------------------------------------------------------------------- /data/mini_val/introductory/dataset_info.json: -------------------------------------------------------------------------------- 1 | { 2 | "citation": "", 3 | "description": "", 4 | "features": { 5 | "problem_id": { 6 | "dtype": "int64", 7 | "_type": "Value" 8 | }, 9 | "question": { 10 | "dtype": "string", 11 | "_type": "Value" 12 | }, 13 | "solutions": { 14 | "dtype": "string", 15 | "_type": "Value" 16 | }, 17 | "input_output": { 18 | "dtype": "string", 19 | "_type": "Value" 20 | }, 21 | "difficulty": { 22 | "dtype": "string", 23 | "_type": "Value" 24 | }, 25 | "url": { 26 | "dtype": "string", 27 | "_type": "Value" 28 | }, 29 | "starter_code": { 30 | "dtype": "string", 31 | "_type": "Value" 32 | }, 33 | "valid": { 34 | "dtype": "bool", 35 | "_type": "Value" 36 | } 37 | }, 38 | "homepage": "", 39 | "license": "" 40 | } -------------------------------------------------------------------------------- /data/mini_val/introductory/state.json: -------------------------------------------------------------------------------- 1 | { 2 | "_data_files": [ 3 | { 4 | "filename": "data-00000-of-00001.arrow" 5 | } 6 | ], 7 | "_fingerprint": "bee0ba3e5e514e82", 8 | "_format_columns": null, 9 | "_format_kwargs": {}, 10 | "_format_type": null, 11 | "_output_all_columns": false, 12 | "_split": null 13 | } -------------------------------------------------------------------------------- /data/mini_val_example_tests.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/mini_val_example_tests.pkl -------------------------------------------------------------------------------- /data/test_example_tests.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SalesforceAIResearch/CodeChain/a738bedd8d925cfc9abf2a794f6faf609f6f7612/data/test_example_tests.pkl -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | if conda info --envs | grep -q codechain; then echo "Skip! codechain already exists" 2 | else conda create -n codechain python=3.7 -y 3 | fi 4 | source activate codechain 5 | pip install --upgrade pip 6 | pip install datasets transformers timeout_decorator pyext openai flask scipy scikit-learn 7 | # install torch for 1.10 for cuda 11.1 8 | pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html -------------------------------------------------------------------------------- /prompts/codechain_gen.txt: -------------------------------------------------------------------------------- 1 | Below is a competitive programming question. Read the question carefully. 2 | 3 | *Instruction* 4 | Develop a well-structured Python solution for the provided problem that obeys the constraints and passes the example test cases. Ensure modularity and considering potential edge cases and failures. Start by outlining the required code modules, including function headers and signatures. Subsequently, proceed to implement each module to create the final code. 5 | 6 | In simpler terms, create a clean and organized Python solution for the given problem. Break it down into smaller parts (modules) with clear function names and input/output specifications. Once the structure is ready, write the actual code for each module to complete the solution. 7 | 8 | The output code needs to <