submission_id
int32 10
42.5k
| func_code
stringlengths 22
782
| assignment_id
stringlengths 4
23
| func_name
stringlengths 4
23
| description
stringlengths 26
128
| test
stringlengths 45
1.22k
| correct
bool 2
classes | user
stringlengths 36
36
| academic_year
int32 2.02k
2.02k
|
---|---|---|---|---|---|---|---|---|
1,467 | def circle_area(n):
result2 = 3.14 * (n * n)
return result2 | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
32,490 | def circle_circumference(n):
result3 = 2 * 3.14 * n
return result3 | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
31,504 | def rectangle_perimeter(n, m):
result4 = n + m + n + m
return result4 | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
7,617 | def rectangle_perimeter(n, m):
result4 = n + m + n + m
return result4 | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
28,474 | def square_perimeter(n):
result1 = n + n + n + n
return result1 | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
9,053 | def circle_area(n):
result2 = 3.14 * (n * n)
return result2 | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
4,407 | def rectangle_perimeter(n, m):
result4 = n + m + n + m
return result4 | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
17,102 | def circle_circumference(n):
result3 = 2 * 3.14 * n
return result3 | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
6,111 | def circle_circumference(n):
result3 = 2 * 3.14 * n
return result3 | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
9,633 | def square_perimeter(n):
result1 = n + n + n + n
return result1 | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
27,502 | def circle_circumference(n):
result3 = 2 * 3.14 * n
return result3 | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
8,710 | def rectangle_perimeter(n, m):
result4 = n + m + n + m
return result4 | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
4,238 | def square_perimeter(n):
result1 = n + n + n + n
return result1 | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
18,271 | def square_area(n):
result = n * n
return result | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
32,439 | def circle_area(n):
result2 = 3.14 * (n * n)
return result2 | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
9,336 | def circle_area(n):
result2 = 3.14 * (n * n)
return result2 | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
27,286 | def square_area(n):
result = n * n
return result | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
42,057 | def square_area(n):
result = n * n
return result | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | ce889881-69dd-4396-aceb-e6f7dddc2c14 | 2,016 |
5,534 | def sort(a):
a.sort(a) | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
32,567 | def sort(a):
i = 0
while i < len(a):
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | true | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
907 | def sort(a):
i = 0
while i < len(a):
if a[i] < a[n]:
n = i
i = i + 1
tmp = a[i]
a[i] = a[n]
a[n] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
32,863 | def sort(a):
i = 0
n = 0
while i < len(a):
if a[i] < a[n]:
n = i
i = i + 1
tmp = a[i]
a[i] = a[n]
a[n] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
11,076 | def sort(a):
i = 0
n = 0
while i < len(a):
if a[i] < a[n]:
n = i
i = i + 1
tmp = a[i]
a[i] = a[n]
a[n] = tmp | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
31,360 | def sort(a):
i = 0
n = 0
while i < len(a):
if a[i] < a[n]:
n = i
i = i + 1
tmp = a[i]
a[i] = a[n]
a[n] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
13,183 | def sort(a):
i = 0
p = 0
while i < len(a):
if a[i] < a[p]:
p = i
i = i + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
19,469 | def sort(a):
i = 0
p = 0
while i < len(a):
if a[i] > a[p]:
p = i
i = i + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
15,762 | def sort(a):
i = 0
p = 0
while i > len(a):
if a[i] > a[p]:
p = i
i = i + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | true | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
32,223 | def sort(a):
i = 0
p = 0
while i > len(a):
if a[i] < a[p]:
p = i
i = i + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | true | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
13,622 | def sort(a):
i = 1
p = 0
while i < len(a):
if a[i] < a[p]:
p = i
i = i + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
39,581 | def sort(a):
i = 0
p = 1
while i < len(a):
if a[i] < a[p]:
p = i
i = i + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
17,265 | def sort(a):
n = i
i = i + 1
while i < len(a):
if a[i] < a[p]:
p = i
i = i + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
10,346 | def sort(a):
n = i
i = i + 1
while i < len(a):
if a[i] < a[n]:
n = i
i = i + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
4,581 | def sort(a):
n = i
i = i + 1
while i < len(a):
if a[i] < a[n]:
n = i
i = i + 1
tmp = a[n]
a[n] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
22,445 | def sort(a):
i = i + 1
n = i
while i < len(a):
if a[i] < a[n]:
n = i
i = i + 1
tmp = a[n]
a[n] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
25,051 | def sort(a):
i = 0
while i < len(a):
if a[i] < a[n]:
n = i
i = i + 1
tmp = a[n]
a[n] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
21,379 | def sort(a):
i = 0
while i < len(a):
p = i
j = i + 1
while j < len(a):
if a[j] < a[p]:
p = j
j = j + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | true | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
25,442 | def sort(a):
i = 0
while i < len(a):
p = i
j = i + 1
while j < len(a):
if a[j] < a[p]:
p = j
j = j + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | true | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
21,284 | def sort(a):
i = 0
while i < len(a):
p = i
j = i + 1
while j < len(a):
if a[j] < a[p]:
p = j
j = j + 1
tmp = a[p]
a[p] = a[i]
a[i] = tmp
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | true | 7c4a70b0-f238-44c3-98e9-fba759a5438b | 2,016 |
26,426 | def square_area(n):
sq = n * n
return sq | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
38,831 | def square_area(n):
sq = n * n
return sq | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
29,647 | def square_perimeter(n):
sp = n + n + n + n | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
30,885 | def square_area(n):
sq = n * n
return sq | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
6,264 | def rectangle_perimeter(n):
rp = n + n + m + m | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
13,951 | def circle_area(n):
ca = 3.14 * n | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
7,189 | def circle_circumference(n):
cc = 2 * 3.14 * n | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
36,807 | def square_perimeter(n):
sp = n + n + n + n
return sp | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
36,063 | def circle_area(n):
ca = 3.14 * n
return ca | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
32,843 | def square_area(n):
sq = n * n
return sq | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
23,049 | def circle_circumference(n):
cc = 2 * 3.14 * n
return cc | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
18,871 | def rectangle_perimeter(n):
rp = n + n + m + m
return rp | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
13,024 | def square_perimeter(n):
sp = n + n + n + n
return sp | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
2,189 | def rectangle_perimeter(n):
rp = n + n + m + m
return rp | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
38,631 | def circle_circumference(n):
cc = 2 * 3.14 * n
return cc | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
30,708 | def circle_area(n):
ca = 3.14 * n * n
return ca | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
22,383 | def square_area(n):
sq = n * n
return sq | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
40,385 | def square_perimeter(n):
sp = n + n + n + n
return sp | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
42,034 | def circle_area(n):
ca = 3.14 * n * n
return ca | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
5,922 | def circle_area(n):
ca = 3.14 * n * n
return ca | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | false | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
37,056 | def square_perimeter(n):
sp = n + n + n + n
return sp | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
42,251 | def rectangle_perimeter(n, m):
rp = n + n + m + m
return rp | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
42,162 | def circle_circumference(n):
cc = 2 * 3.14 * n
return cc | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
110 | def rectangle_perimeter(n, m):
rp = n + n + m + m
return rp | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
22,023 | def square_area(n):
sq = n * n
return sq | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
6,507 | def square_area(n):
sq = n * n
return sq | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
12,042 | def circle_circumference(n):
cc = 2 * 3.14 * n
return cc | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | 61140bd5-cdb2-4a78-b4a3-ad76b0ca223a | 2,016 |
31,209 | def swap(a, i, j):
tmp = a[j]
a[j] = a[i]
a[i] = tmp
def sort(a):
i = 0
while i < len(a):
swap(a, i, find_position_of_smallest + i)
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | false | 557b99ed-3c48-4070-b887-de4b2d06ac8d | 2,016 |
8,946 | def swap(a, i, j):
tmp = a[j]
a[j] = a[i]
a[i] = tmp
def find_position_of_smallest(a, i):
p = i
while i < len(a):
if a[i] < a[p]:
p = i
i = i + 1
return p
def sort(a):
i = 0
while i < len(a):
p = find_position_of_smallest(a, i)
swap(a, i, p)
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | true | 557b99ed-3c48-4070-b887-de4b2d06ac8d | 2,016 |
15,847 | def swap(a, i, j):
tmp = a[j]
a[j] = a[i]
a[i] = tmp
def find_position_of_smallest(a, i):
p = i
while i < len(a):
if a[i] < a[p]:
p = i
i = i + 1
return p
def sort(a):
i = 0
while i < len(a):
p = find_position_of_smallest(a, i)
swap(a, i, p)
i = i + 1 | sort | sort | Sort a list by repeatedly moving the minimimum of the remaining sublist to the front. | assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None | true | 557b99ed-3c48-4070-b887-de4b2d06ac8d | 2,016 |
33,513 | def rectangle_perimeter(e, f):
rp = 2 * (e + f)
return rp | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
21,343 | def rectangle_perimeter(e, f):
rp = 2 * (e + f)
return rp | rectangle_perimeter | rectangle_perimeter | Return the perimeter of a rectangle with the given coordinates. | assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
16,429 | def circle_circumference(d):
cc = 2 * 3.14 * d
return cc | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
40,953 | def square_area(a):
sa = a * a
return sa | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
31,822 | def square_area(a):
sa = a * a
return sa | square_area | square_area | Return the area of a square. | assert square_area(0)==0 and square_area(21138)==446815044 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
10,974 | def square_perimeter(b):
sp = b + b + b + b
return sp | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
21,263 | def circle_area(c):
ca = 3.14 * c ** 2
return ca | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
5,465 | def circle_area(c):
ca = 3.14 * c ** 2
return ca | circle_area | circle_area | Return the area of a circle. | assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
17,854 | def square_perimeter(b):
sp = b + b + b + b
return sp | square_perimeter | square_perimeter | Returns the perimeter of a square. | assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
35,411 | def circle_circumference(d):
cc = 2 * 3.14 * d
return cc | circle_circumference | circle_circumference | Return the circumference of a circle. | assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32 | true | 6618fe7e-6fd3-499b-a742-8d68ec712ad3 | 2,016 |
36,040 | def reverse(a):
b = []
i = 0
while i < len(a):
b.append(a[len(a) - i - 1])
i = i + 1
return b | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | df8dd1dd-a7c8-46c0-b89f-ec170a81f08a | 2,016 |
27,850 | def reverse(a):
b = []
i = 0
while i < len(a):
b.append(a[len(a) - i - 1])
i = i + 1
return b | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | df8dd1dd-a7c8-46c0-b89f-ec170a81f08a | 2,016 |
14,905 | def reverse(a, i):
i = 0
lines = sys.stdin.readlines()
while i < len(a):
print(lines[i] - 1 - i)
i = i + 1
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 2a5e3eed-41c7-46e6-9bee-3acc21c1f81b | 2,016 |
15,224 | def reverse(a, i):
i = 0
lines = sys.stdin.readlines()
while i < len(a):
print(lines[i] - 1 - i)
i = i + 1
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 2a5e3eed-41c7-46e6-9bee-3acc21c1f81b | 2,016 |
22,801 | def reverse(a, i):
i = 0
lines = sys.stdin.readlines()
while i < len(a):
print(lines[i] - 1 - i)
i = i + 1
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 2a5e3eed-41c7-46e6-9bee-3acc21c1f81b | 2,016 |
5,638 | def reverse(n):
reverse = a[len(a) - i - 1]
return reverse | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb | 2,016 |
40,328 | def reverse(n):
reverse = a[len(a) - i - 1]
return reverse | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb | 2,016 |
17,712 | def reverse(n):
reverse = a[len(a) - i - 1]
return reverse | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb | 2,016 |
1,406 | def reverse(l):
return l[::-1] | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | 03141ef3-f364-4b7c-9f52-990a173ac162 | 2,016 |
37,176 | def reverse(l):
return l[::-1] | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | 03141ef3-f364-4b7c-9f52-990a173ac162 | 2,016 |
31,148 | def reverse(a, i, j):
tmp = a[i]
a[i] = a[j]
a[i] = tmp | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | f1f904a5-bcf8-461e-8792-f0a8d0db3f47 | 2,016 |
41,018 | def reverse(a):
a = a[::-1]
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | f1f904a5-bcf8-461e-8792-f0a8d0db3f47 | 2,016 |
308 | def reverse(a):
a = a[::-1]
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | f1f904a5-bcf8-461e-8792-f0a8d0db3f47 | 2,016 |
8,026 | def reverse(a):
a = a[::-1]
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | 2d5a247c-29b2-4cc2-a956-669a2206edc8 | 2,016 |
37,066 | def reverse(a):
a = a[::a - 1]
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb | 2,016 |
18,221 | def reverse(a):
a[::a - 1]
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb | 2,016 |
13,955 | def reverse(a):
a = a[::a - 1]
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb | 2,016 |
27,993 | def reverse(i, j, k):
a = a[::-1]
print(a) | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 639d0a36-d89c-469e-a1ae-4cadc99d8827 | 2,016 |
2,731 | def reverse(a):
a = a[::-1]
print(a) | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | false | 639d0a36-d89c-469e-a1ae-4cadc99d8827 | 2,016 |
28,616 | def reverse(a):
a = a[::-1]
return a | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | 639d0a36-d89c-469e-a1ae-4cadc99d8827 | 2,016 |
26,924 | def reverse(string):
results = string[::-1]
return string[::-1] | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | 4205f21d-1c6e-499a-a25c-83a2d9d5ad93 | 2,016 |
15,708 | def reverse(string):
results = string[::-1]
return string[::-1] | reverse_iter | reverse | Iteratively reverse a list of elements. | assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto'] | true | 4205f21d-1c6e-499a-a25c-83a2d9d5ad93 | 2,016 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.