Commit ·
18ffa24
1
Parent(s): 75bd244
Rename humaneval-x-bugs.py to humanevalpack.py
Browse files12345678910111213141516171192345678269101129121314157 unmodified lines23242543262728293 unmodified lines33343553363738563940584142434445636465464748495051697071725253545556575859777879606162636465838485866667686970717290917374759376777879# coding=utf-8# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License."""HumanEval-X-Bugs dataset."""
import jsonimport datasets
import datasets
_DESCRIPTION = """"""
_HOMEPAGE = "https://github.com/bigcode-project/commits"_HOMEPAGE = "https://github.com/bigcode-project/octopack"
def get_url(name): url = f"data/{name}/data/humanevalbugs.jsonl" url = f"data/{name}/data/humanevalpack.jsonl" return url
def split_generator(dl_manager, name):7 unmodified lines ) ]
class HumanEvalXBugsConfig(datasets.BuilderConfig):class HumanEvalPackConfig(datasets.BuilderConfig): """BuilderConfig """
def __init__(self, name, description, features, **kwargs):3 unmodified lines self.features = features
class HumanEvalXBugs(datasets.GeneratorBasedBuilder):class HumanEvalPack(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") BUILDER_CONFIGS = [ HumanEvalXBugsConfig( HumanEvalPackConfig( name="python", description="Python HumanEvalBugs", description="Python HumanEvalPack", features=[ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point", "signature", "docstring", "instruction" ] ), HumanEvalXBugsConfig( name="cpp", description="C++ HumanEvalBugs", HumanEvalPackConfig( name="js", description="JavaScript HumanEvalPack", features=[ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point", "signature", "docstring", "instruction" ] ), HumanEvalXBugsConfig( name="go", description="Go HumanEvalBugs", ), HumanEvalPackConfig( name="java", description="Java HumanEvalPack", features=[ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point", "signature", "docstring", "instruction" ] ), HumanEvalXBugsConfig( name="java", description="Java HumanEvalBugs", HumanEvalPackConfig( name="go", description="Go HumanEvalPack", features=[ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point", "signature", "docstring", "instruction" ] ), HumanEvalXBugsConfig( name="js", description="JavaScript HumanEvalBugs", ), HumanEvalPackConfig( name="cpp", description="C++ HumanEvalPack", features=[ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point", "signature", "docstring", "instruction" ] ), HumanEvalXBugsConfig( ), HumanEvalPackConfig( name="rust", description="JavaScript HumanEvalBugs", description="Rust HumanEvalPack", features=[ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point", "signature", "docstring", "instruction" ]humaneval-x-bugs.py → humanevalpack.pyRenamed+24-41