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
|
---|---|---|---|---|---|---|---|---|
12,900 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 7a72123c-6850-4e9f-b407-211283f04a4c | 2,016 |
36,863 | def overlap(x1=0, y1=0, r1=0, x2=0, y2=0, r2=0):
dist_p = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** (1 / 2)
dist_r = r1 + r2
if dist_p <= dist_r:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 2eb2f93d-3491-4b0b-bad9-894c90595058 | 2,016 |
40,928 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | f463a026-5eb4-4a39-a858-3a798215a4ee | 2,016 |
29,591 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 7a72123c-6850-4e9f-b407-211283f04a4c | 2,016 |
5,644 | def overlap(x1, y1, r1, x2, y2, r2):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
return r == d | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 8d8fa15f-3f0d-4a69-849b-9b7da96123cd | 2,016 |
142 | def append2list(l1, l2=None):
if l2 is None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | f463a026-5eb4-4a39-a858-3a798215a4ee | 2,016 |
24,486 | def append2list(l1, l2=None):
if l2 is None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | f463a026-5eb4-4a39-a858-3a798215a4ee | 2,016 |
33,068 | def overlap(x1, y1, r1, x2, y2, r2):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
return d >= r or d < r | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5 | 2,016 |
1,469 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = (x + y) // 2
print(distance)
print(r1)
print(r2)
if r1 + r2 == distance:
return True
elif r1 - r2 == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
26,049 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 7a72123c-6850-4e9f-b407-211283f04a4c | 2,016 |
4,587 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 7a72123c-6850-4e9f-b407-211283f04a4c | 2,016 |
10,097 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 7a72123c-6850-4e9f-b407-211283f04a4c | 2,016 |
32,425 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = (x + y) // 2
print(distance)
print(r1 + r2)
print(r1 - r2)
if r1 + r2 == distance:
return True
elif r1 - r2 == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
33,449 | def overlap(x1, y1, r1, x2, y2, r2):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
return r != d | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 8d8fa15f-3f0d-4a69-849b-9b7da96123cd | 2,016 |
28,584 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
for item in l1:
l2.append(item)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | a2b86688-0a82-4779-8335-a584906257b0 | 2,016 |
39,794 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
for item in l1:
l2.append(item)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | a2b86688-0a82-4779-8335-a584906257b0 | 2,016 |
37,428 | def overlap(x1, y1, r1, x2, y2, r2):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
if d >= r:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5 | 2,016 |
41,427 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = (x + y) // 2
if r1 + r2 == distance:
return True
elif r1 - r2 == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
36,908 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
if d >= r:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5 | 2,016 |
7,087 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = (x + y) // 2
if r1 + r2 == distance:
return True
elif r1 - r2 == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
665 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
return d >= r or d < r | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5 | 2,016 |
24,137 | def append2list(l1, l2=''):
if l2 == '':
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 5a6b9af4-c978-4326-ba5b-405c4a284f15 | 2,016 |
29,957 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
return d >= r or d < r | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5 | 2,016 |
40,836 | def overlap(x1=0, y1=0, r1=0, x2=0, y2=0, r2=0):
dist_p = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** (1 / 2)
dist_r = r1 + r2
if dist_p <= dist_r:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 2eb2f93d-3491-4b0b-bad9-894c90595058 | 2,016 |
9,866 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
if d >= r:
return False
else:
return True | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5 | 2,016 |
37,890 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
r = r1 + r2
if d >= r:
return False
else:
return True | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5 | 2,016 |
21,830 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
print('{} {} {} {} {} {}'.format(x1, y1, r1, x2, y2, r2))
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = (x + y) // 2
if r1 + r2 == distance:
return True
elif r1 - r2 == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
1,487 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
circles = (x2 - x1) ** 2 + (y2 - y1) ** 2
distance = math.sqrt(circles)
length = r1 + r2
if distance < length:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 422fe752-ca84-4537-b250-7de556e6ee94 | 2,016 |
14,173 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
circles = (x2 - x1) ** 2 + (y2 - y1) ** 2
distance = math.sqrt(circles)
length = r1 + r2
if distance < length:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 422fe752-ca84-4537-b250-7de556e6ee94 | 2,016 |
36,167 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
circles = (x2 - x1) ** 2 + (y2 - y1) ** 2
distance = math.sqrt(circles)
length = r1 + r2
if distance < length:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 422fe752-ca84-4537-b250-7de556e6ee94 | 2,016 |
32,716 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = (x + y) // 2
if r1 + r2 == distance or r1 - r2 == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
20,946 | def overlap(x1=0, y1=0, r1=0, x2=0, y2=0, r2=0):
dist_p = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
dist_r = r1 + r2
if dist_p < dist_r:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 2eb2f93d-3491-4b0b-bad9-894c90595058 | 2,016 |
39,627 | def overlap(x1=0, y1=0, r1=0, x2=0, y2=0, r2=0):
dist_p = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
dist_r = r1 + r2
if dist_p < dist_r:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 2eb2f93d-3491-4b0b-bad9-894c90595058 | 2,016 |
26,670 | def overlap(x1=0, y1=0, r1=0, x2=0, y2=0, r2=0):
dist_p = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
dist_r = r1 + r2
if dist_p < dist_r:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 2eb2f93d-3491-4b0b-bad9-894c90595058 | 2,016 |
22,724 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = (x + y) // 2
if r1 + r2 == distance or r2 - r1 == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
21,695 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
dis = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return dis | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | f1c26f39-fb4c-4010-aaa3-142fb52f57b9 | 2,016 |
13,320 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
dis = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return dis | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | f1c26f39-fb4c-4010-aaa3-142fb52f57b9 | 2,016 |
11,915 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = (x + y) // 2
if r1 + r2 == distance or abs(r1 - r2) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
1,527 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782 | 2,016 |
29,838 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
l2.append(l1)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | false | 5a6b9af4-c978-4326-ba5b-405c4a284f15 | 2,016 |
21,534 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
rpos = r1 + r2
rneg = r1 - r2
if d == rpos:
return True
elif d != rneg:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 8d8fa15f-3f0d-4a69-849b-9b7da96123cd | 2,016 |
10,542 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = x2 - x1
y = y2 - y1
r = r1 + r2
distance = (x ** 2 + y ** 2) ** 0.5
return r > distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 75a32f49-710d-463f-8fee-0ae9b91a3034 | 2,016 |
10,699 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = x2 - x1
y = y2 - y1
r = r1 + r2
distance = (x ** 2 + y ** 2) ** 0.5
return r > distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 75a32f49-710d-463f-8fee-0ae9b91a3034 | 2,016 |
1,309 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = x2 - x1
y = y2 - y1
r = r1 + r2
distance = (x ** 2 + y ** 2) ** 0.5
return r > distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 75a32f49-710d-463f-8fee-0ae9b91a3034 | 2,016 |
3,962 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = abs((x2 - x1) ** 2)
y = abs((y2 - y1) ** 2)
distance = (x + y) // 2
if r1 + r2 == distance or abs(r1 - r2) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
38,114 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
rpos = r1 + r2
rneg = r1 - r2
if d == rpos:
return True
elif d == rneg:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 8d8fa15f-3f0d-4a69-849b-9b7da96123cd | 2,016 |
39,436 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782 | 2,016 |
33,409 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
for i in l1:
l2.append(l1)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | false | 5a6b9af4-c978-4326-ba5b-405c4a284f15 | 2,016 |
26,083 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 == distance or abs(r1 - r2) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
36,055 | def overlap(x1=0, x2=0, r1=1, y1=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
return distance < r1 + r2 | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 99a8a900-efcf-4a9e-86ba-fdd0df4312d3 | 2,016 |
23,633 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 5a6b9af4-c978-4326-ba5b-405c4a284f15 | 2,016 |
40,046 | def append2list(l1, l2=None):
if l2 == None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 5a6b9af4-c978-4326-ba5b-405c4a284f15 | 2,016 |
22,545 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782 | 2,016 |
26,445 | def overlap(x1=0, x2=0, r1=1, y1=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 99a8a900-efcf-4a9e-86ba-fdd0df4312d3 | 2,016 |
37,897 | def overlap(x1=0, y1=0, r1=0, x2=0, y2=0, r2=0):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | fa2c47e6-9c25-4040-9985-e5ab62711be6 | 2,016 |
28,652 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 == distance or abs(r1 - r2) == distance and distance < r1 + r2:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
13,914 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 == distance or abs(r1 - r2) == distance and distance <= r1 + r2:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
17,068 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
dis = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return dis | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 6cbd9686-8a3c-4d12-8a1a-70c661732027 | 2,016 |
9,681 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
dis = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return dis | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 6cbd9686-8a3c-4d12-8a1a-70c661732027 | 2,016 |
4,261 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
dis = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return dis | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 6cbd9686-8a3c-4d12-8a1a-70c661732027 | 2,016 |
11,008 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
rpos = r1 + r2 - 1
rneg = r1 - r2 + 1
if d == rpos:
return True
elif d == rneg:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 8d8fa15f-3f0d-4a69-849b-9b7da96123cd | 2,016 |
19,917 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
rpos = r1 + r2 - 1
rneg = r1 - r2
if d == rpos:
return True
elif d == rneg:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 8d8fa15f-3f0d-4a69-849b-9b7da96123cd | 2,016 |
35,862 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if (r1 + r2 == distance or abs(r1 - r2) == distance
) and distance <= r1 + r2 - 1:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
23,015 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if (r1 + r2 == distance or abs(r1 - r2) == distance
) and distance == r1 + r2 - 1:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
20,823 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if (r1 + r2 == distance or abs(r1 - r2) == distance
) and distance == r1 + r2:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
34,084 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
dis = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return dis | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22 | 2,016 |
14,492 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
dis = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return dis | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22 | 2,016 |
4,075 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if (r1 + r2 == distance or abs(r1 - r2) == distance
) and distance <= r1 + r2:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
34,687 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 - 1 == distance or abs(r1 - r2) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
18,091 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | fa2c47e6-9c25-4040-9985-e5ab62711be6 | 2,016 |
3,047 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | fa2c47e6-9c25-4040-9985-e5ab62711be6 | 2,016 |
27,519 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | fa2c47e6-9c25-4040-9985-e5ab62711be6 | 2,016 |
22,285 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 - 1 == distance or abs(r1 - r2 + 1) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
11,331 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 99a8a900-efcf-4a9e-86ba-fdd0df4312d3 | 2,016 |
13,107 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2
return distance | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 99a8a900-efcf-4a9e-86ba-fdd0df4312d3 | 2,016 |
35,470 | def append2list(l1, l2=None):
if l2 is None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 2f34a0ed-0d6a-447e-8e47-6a90f11d53a7 | 2,016 |
36,458 | def append2list(l1, l2=None):
if l2 is None:
l2 = []
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 2f34a0ed-0d6a-447e-8e47-6a90f11d53a7 | 2,016 |
12,436 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 - 1 == distance or abs(r1 - r2) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
5,669 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
rpos = r1 + r2 - 1
rneg = r1 - r2
if d == rpos:
return True
elif d == rneg:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 8d8fa15f-3f0d-4a69-849b-9b7da96123cd | 2,016 |
28,477 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
d = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
rpos = r1 + r2 - 1
rneg = r1 - r2
if d == rpos:
return True
elif d == rneg:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 8d8fa15f-3f0d-4a69-849b-9b7da96123cd | 2,016 |
30,584 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 - 1 == distance or abs(r1 - r2 - 1) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
28,806 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 - 1 == distance or abs(r1 - r2) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
5,765 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 - 1 == distance or abs(r1 - r2) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
19,976 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
distance = sqrt(x + y)
if r1 + r2 - 1 == distance or abs(r1 - r2) == distance:
return True
else:
return False | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 0473ca8a-3862-4046-a34c-16eb754fdfff | 2,016 |
2,291 | def overlap(x1, y1, r1, x2, y2, r2):
return (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) < (r1 + r2) * (r1 + r2
) | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782 | 2,016 |
2,287 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** (1 / 2)
return distance < r1 + r2 | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 17658437-97b1-4a8a-ac6f-a63a54536e33 | 2,016 |
23,937 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** (1 / 2)
return distance < r1 + r2 | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 17658437-97b1-4a8a-ac6f-a63a54536e33 | 2,016 |
42,204 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 07676427-a705-4cb7-a5ef-6a1c3c67c950 | 2,016 |
7,191 | def append2list(l1, l2=[]):
return l2 + l1 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 3bcffc16-908f-42c5-9ac3-f685ae6eca33 | 2,016 |
1,677 | def append2list(l1, l2=[]):
return l2 + l1 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 3bcffc16-908f-42c5-9ac3-f685ae6eca33 | 2,016 |
31,937 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 07676427-a705-4cb7-a5ef-6a1c3c67c950 | 2,016 |
20,307 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | 07676427-a705-4cb7-a5ef-6a1c3c67c950 | 2,016 |
1,015 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
r = r1 + r2
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
l = (x + y) ** 1 / 2
return l < r | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 3bcffc16-908f-42c5-9ac3-f685ae6eca33 | 2,016 |
3,303 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
r = r1 + r2
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
l = (x + y) ** 1 / 2
return l <= r | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 3bcffc16-908f-42c5-9ac3-f685ae6eca33 | 2,016 |
19,346 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
r = r1 + r2
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
l = (x + y) ** 0.5
return l <= r | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | false | 3bcffc16-908f-42c5-9ac3-f685ae6eca33 | 2,016 |
12,387 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
r = r1 + r2
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
l = (x + y) ** 0.5
return l < r | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 3bcffc16-908f-42c5-9ac3-f685ae6eca33 | 2,016 |
20,884 | def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):
r = r1 + r2
x = (x2 - x1) ** 2
y = (y2 - y1) ** 2
l = (x + y) ** 0.5
return l < r | overlap | overlap | Test if two circles overlap. | assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True | true | 3bcffc16-908f-42c5-9ac3-f685ae6eca33 | 2,016 |
707 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782 | 2,016 |
32,498 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
print(l2)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782 | 2,016 |
14,114 | def append2list(l1, l2=[]):
for i in l1:
l2.append(i)
print(l2)
return l2 | append2list | append2list | Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list. | assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267] | true | b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782 | 2,016 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.