Datasets:

Languages:
code
ArXiv:
Tags:
code
License:
Muennighoff commited on
Commit
b09840f
1 Parent(s): de0358e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +95 -1
README.md CHANGED
@@ -1,3 +1,97 @@
 
 
 
 
 
 
 
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- WIP
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pretty_name: HumanEvalPack
4
+ language:
5
+ - code
6
+ ---
7
+ # Dataset Card for CommitPackFT
8
 
9
+ ## Table of Contents
10
+ - [Table of Contents](#table-of-contents)
11
+ - [Dataset Description](#dataset-description)
12
+ - [Dataset Summary](#dataset-summary)
13
+ - [Languages](#languages)
14
+ - [Dataset Structure](#dataset-structure)
15
+ - [Data Instances](#data-instances)
16
+ - [Data Fields](#data-fields)
17
+ - [Data Splits](#data-splits)
18
+ - [Dataset Creation](#dataset-creation)
19
+ - [Curation Rationale](#curation-rationale)
20
+ - [Source Data](#source-data)
21
+ - [Annotations](#annotations)
22
+ - [Additional Information](#additional-information)
23
+ - [Licensing Information](#licensing-information)
24
+ - [Citation Information](#citation-information)
25
+ - [Contributions](#contributions)
26
 
27
+ ## Dataset Description
28
+
29
+ - **Repository:** https://github.com/bigcode-project/octopack
30
+ - **Paper:** WIP
31
+ - **Point of Contact:** [Niklas Muennighoff](mailto:[email protected])
32
+
33
+ ### Dataset Summary
34
+
35
+ > HumanEvalPack is ...
36
+ >
37
+ - **Languages:** 6
38
+ - **OctoPack:**
39
+ -
40
+
41
+ ## Dataset Structure
42
+
43
+
44
+ ### Data Instances
45
+
46
+
47
+ An example looks as follows:
48
+
49
+ ```json
50
+ {
51
+ "task_id": "Python/0",
52
+ "prompt": "from typing import List\n\n\ndef has_close_elements(numbers: List[float], threshold: float) -> bool:\n \"\"\" Check if in given list of numbers, are any two numbers closer to each other than\n given threshold.\n >>> has_close_elements([1.0, 2.0, 3.0], 0.5)\n False\n >>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)\n True\n \"\"\"\n",
53
+ "canonical_solution": " for idx, elem in enumerate(numbers):\n for idx2, elem2 in enumerate(numbers):\n if idx != idx2:\n distance = abs(elem - elem2)\n if distance < threshold:\n return True\n\n return False\n",
54
+ "test": "\n\n\n\n\ndef check(has_close_elements):\n assert has_close_elements([1.0, 2.0, 3.9, 4.0, 5.0, 2.2], 0.3) == True\n assert has_close_elements([1.0, 2.0, 3.9, 4.0, 5.0, 2.2], 0.05) == False\n assert has_close_elements([1.0, 2.0, 5.9, 4.0, 5.0], 0.95) == True\n assert has_close_elements([1.0, 2.0, 5.9, 4.0, 5.0], 0.8) == False\n assert has_close_elements([1.0, 2.0, 3.0, 4.0, 5.0, 2.0], 0.1) == True\n assert has_close_elements([1.1, 2.2, 3.1, 4.1, 5.1], 1.0) == True\n assert has_close_elements([1.1, 2.2, 3.1, 4.1, 5.1], 0.5) == False\n\ncheck(has_close_elements)",
55
+ "text": " Check if in given list of numbers, are any two numbers closer to each other than\n given threshold.\n >>> has_close_elements([1.0, 2.0, 3.0], 0.5)\n False\n >>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)\n True",
56
+ "declaration": "from typing import List\n\n\ndef has_close_elements(numbers: List[float], threshold: float) -> bool:\n",
57
+ "example_test": "def check(has_close_elements):\n assert has_close_elements([1.0, 2.0, 3.0], 0.5) == False\n assert has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3) == True\ncheck(has_close_elements)\n",
58
+ "buggy_solution": " for idx, elem in enumerate(numbers):\n for idx2, elem2 in enumerate(numbers):\n if idx != idx2:\n distance = elem - elem2\n if distance < threshold:\n return True\n\n return False\n",
59
+ "bug_type": "missing logic",
60
+ "failure_symptoms": "incorrect output",
61
+ "entry_point": "has_close_elements",
62
+ "signature": "has_close_elements(numbers: List[float], threshold: float) -> bool",
63
+ "docstring": "Check if in given list of numbers, are any two numbers closer to each other than\ngiven threshold.\n>>> has_close_elements([1.0, 2.0, 3.0], 0.5)\nFalse\n>>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)\nTrue",
64
+ "instruction": "Write a Python function `has_close_elements(numbers: List[float], threshold: float) -> bool` to solve the following problem:\nCheck if in given list of numbers, are any two numbers closer to each other than\ngiven threshold.\n>>> has_close_elements([1.0, 2.0, 3.0], 0.5)\nFalse\n>>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)\nTrue"
65
+ }
66
+ ```
67
+
68
+ ### Data Fields
69
+
70
+ The data fields are the same among all splits:
71
+ - `task_id`: task id (from 0 to 163)
72
+ - `prompt`: the prompt for models relying on code continuation
73
+ - `canonical_solution`: the correct solution passing all unit tests for the problem
74
+ - `test`: the unit tests for the problem
75
+ - `text`: ???
76
+ - `declaration`: the declaration of the function (same as prompt but without the docstring)
77
+ - `example_test`: ??? Same as test but fewer tests
78
+ - `buggy_solution`: same as `canonical_solution` but with a subtle human-written bug causing the unit tests to fail
79
+ - `bug_type`: the type of the bug in `buggy_solution` (one of [`missing logic`, `excess logic`, `value misuse`, `operator misuse`, `variable misuse`, `function misuse`])
80
+ - `failure_symptoms`: the problem the bug causes (one of [`incorrect output`, `stackoverflow`, `infinite loop`])
81
+ - `entry_point`: the name of the function
82
+ - `signature`: the signature of the function
83
+ - `docstring`: the docstring describing the problem
84
+ - `instruction`: an instruction for HumanEvalSynthesize in the form `Write a {language_name} function {signature} to solve the following problem:\n{docstring}`
85
+
86
+ ### Data Splits
87
+
88
+ ## Additional Information
89
+
90
+ ### Licensing Information
91
+
92
+ Each sample has comes from a code repository with a permissive license. The license is provided by the `license` field for each sample.
93
+
94
+ ### Citation Information
95
+
96
+ ```bibtex
97
+ ```