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: 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:
elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L13_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("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7:
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L13_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: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7:
else: letter_grade.append("E") return letter_grade
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/L13_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("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7:
letter_grade.append("E") return letter_grade
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/L13_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: letter_grade.append("A") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7:
return letter_grade
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/L13_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/L13_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") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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 > 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.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 > 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/L14_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") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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 > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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 > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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 > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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 > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
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 > 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/L14_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") elif gpa > 3.3: letter_grade.append("A-") elif gpa > 3.0: letter_grade.append("B+") elif gpa > 2.7: letter_grade.append("B")
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L14_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: 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 > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L14_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("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")
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L14_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: 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")
else: letter_grade.append("E") return letter_grade
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/L14_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("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")
letter_grade.append("E") return letter_grade
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/L14_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: 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")
return letter_grade
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/L14_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/L14_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") 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:
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("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/L15_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") 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("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("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/L15_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 > 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:
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("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/L15_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") 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("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("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/L15_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 > 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:
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("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/L15_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") 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("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("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/L15_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 > 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:
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("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/L15_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") 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("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("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/L15_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 > 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:
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("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/L15_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") 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("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L15_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: 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:
elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L15_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("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("D-") else: letter_grade.append("E") return letter_grade
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/L15_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: 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:
else: letter_grade.append("E") return letter_grade
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/L15_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("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("E") return letter_grade
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/L15_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: 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:
return letter_grade
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/L15_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/L15_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") 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-")
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 > 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/L16_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 > 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 > 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 > 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/L16_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") 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-")
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 > 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/L16_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 > 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 > 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 > 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/L16_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") 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-")
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 > 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/L16_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 > 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 > 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 > 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/L16_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") 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-")
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 > 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/L16_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 > 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 > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L16_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") 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-")
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L16_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: 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 > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L16_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("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-")
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L16_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: 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-")
else: letter_grade.append("E") return letter_grade
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/L16_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("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-")
letter_grade.append("E") return letter_grade
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/L16_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: 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-")
return letter_grade
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/L16_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/L16_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") 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:
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("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/L17_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") 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.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("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/L17_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 > 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:
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("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/L17_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") 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.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("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/L17_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 > 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:
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("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/L17_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") 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("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("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/L17_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 > 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:
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("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/L17_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") 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("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L17_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: 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:
elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L17_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("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("D-") else: letter_grade.append("E") return letter_grade
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/L17_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: 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:
else: letter_grade.append("E") return letter_grade
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/L17_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("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("E") return letter_grade
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/L17_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: 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:
return letter_grade
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/L17_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/L17_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") 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+")
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 > 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/L18_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 > 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.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 > 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/L18_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") 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+")
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 > 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/L18_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 > 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.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 > 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/L18_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") 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+")
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 > 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/L18_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 > 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 > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L18_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") 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+")
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L18_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: 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 > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L18_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("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+")
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L18_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: 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+")
else: letter_grade.append("E") return letter_grade
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/L18_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("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+")
letter_grade.append("E") return letter_grade
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/L18_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: 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+")
return letter_grade
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/L18_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/L18_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") 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:
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("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/L19_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") 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.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("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/L19_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 > 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:
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("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/L19_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") 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("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("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/L19_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 > 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:
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("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/L19_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") 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("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L19_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: 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:
elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L19_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("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("D-") else: letter_grade.append("E") return letter_grade
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/L19_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: 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:
else: letter_grade.append("E") return letter_grade
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/L19_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("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("E") return letter_grade
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/L19_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: 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:
return letter_grade
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/L19_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/L19_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") 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")
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 > 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/L20_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 > 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.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 > 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/L20_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") 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")
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 > 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/L20_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 > 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 > 0.7: letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L20_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") 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")
letter_grade.append("D") elif gpa > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L20_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: 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 > 0.0: letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L20_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("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")
letter_grade.append("D-") else: letter_grade.append("E") return letter_grade
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/L20_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