prefix
stringlengths
65
1.8k
suffix
stringclasses
839 values
solution
stringlengths
6
859
test_cases
listlengths
0
100
import_str
listlengths
0
1
demos
listlengths
0
8
entry_func
stringclasses
158 values
data_id
stringlengths
36
40
doc_string
stringclasses
164 values
dataset_name
stringclasses
1 value
task_name
stringclasses
1 value
compare_func
listlengths
0
0
src_lang
stringclasses
1 value
tgt_lang
stringclasses
1 value
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades:
elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L4_L23
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades:
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L4_L24
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades:
elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L4_L25
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades:
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L4_L26
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades:
else: letter_grade.append("E") return letter_grade
if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L4_L27
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades:
letter_grade.append("E") return letter_grade
if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L4_L28
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades:
return letter_grade
if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L4_L29
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades:
if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L4_L30
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L5
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L6
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L7
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L8
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L9
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L10
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L11
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L12
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L13
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L14
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L15
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L16
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L17
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L18
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L19
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L20
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L21
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L22
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L23
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L24
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L25
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L26
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
else: letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L27
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("E") return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L28
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
return letter_grade
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L29
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0:
letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L5_L30
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L6
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L7
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L8
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L9
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L10
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L11
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L12
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L13
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L14
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L15
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L16
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L17
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L18
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L19
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L20
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L21
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L22
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L23
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L24
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L25
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L26
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
else: letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L27
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
letter_grade.append("E") return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L28
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
return letter_grade
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L29
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+")
elif gpa > 3.7: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L6_L30
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L7
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L8
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L9
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L10
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L11
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L12
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L13
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L14
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L15
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L16
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L17
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L18
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L19
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L20
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L21
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L22
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L23
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L24
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L25
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L26
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
else: letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L27
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("E") return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L28
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
return letter_grade
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L29
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7:
letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L7_L30
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L8
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L9
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L10
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L11
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L12
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L13
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L14
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L15
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L16
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L17
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L18
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L19
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L20
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L21
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("D+") elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L22
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
elif gpa > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+")
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L23
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def numerical_letter_grade(grades): """It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E """ letter_grade = [] for gpa in grades: if gpa == 4.0: letter_grade.append("A+") elif gpa > 3.7: letter_grade.append("A")
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B") elif gpa > 2.3: letter_grade.append("B-") elif gpa > 2.0: letter_grade.append("C+") elif gpa > 1.7: letter_grade.append("C") elif gpa > 1.3: letter_grade.append("C-") elif gpa > 1.0: letter_grade.append("D+") elif gpa > 0.7:
[ [ "[4.0, 3, 1.7, 2, 3.5]", "['A+', 'B', 'C-', 'C', 'A-']" ], [ "[1.2]", "['D+']" ], [ "[0.5]", "['D-']" ], [ "[0.0]", "['E']" ], [ "[1, 0.3, 1.5, 2.8, 3.3]", "['D', 'D-', 'C-', 'B', 'B+']" ], [ "[0, 0.7]", "['E', 'D-']" ] ]
[]
[ [ "[4.0, 3, 1.7, 2, 3.5]", "> ['A+', 'B', 'C-', 'C', 'A-']" ] ]
numerical_letter_grade
MultiLineInfilling/HumanEval/81/L8_L24
It is the last week of the semester and the teacher has to give the grades to students. The teacher has been making her own algorithm for grading. The only problem is, she has lost the code she used for grading. She has given you a list of GPAs for some students and you have to write a function that can output a list of letter grades using the following table: GPA | Letter grade 4.0 A+ > 3.7 A > 3.3 A- > 3.0 B+ > 2.7 B > 2.3 B- > 2.0 C+ > 1.7 C > 1.3 C- > 1.0 D+ > 0.7 D > 0.0 D- 0.0 E
HumanEval_MultiLineInfilling
code_infilling
[]
python
python