id stringlengths 35 39 | content stringlengths 44 3.85k | max_stars_repo_path stringlengths 52 57 |
|---|---|---|
refactory_data_question_2_wrong_2_035 | def unique_day(day, possible_birthdays):
a=''
for date in possible_birthdays:
if a== date[1]:
return False
elif day ==date[1]:
a=day
return True
def unique_month(month, possible_birthdays):
a=''
for date in possible_birthdays:
if a== date[0]... | ./refactory/data/question_2/code/wrong/wrong_2_035.py |
refactory_data_question_2_wrong_2_361 | def unique_day(day, possible_birthdays):
occur = 0
for i in possible_birthdays:
if day == i[1]:
occur += 1
if occur == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
occur = 0
for i in possible_birthdays:
if... | ./refactory/data/question_2/code/wrong/wrong_2_361.py |
refactory_data_question_2_wrong_2_379 | def statement1(birthday, possible_birthdays):
x = unique_month(birthday[0],possible_birthdays)
y = contains_unique_day(birthday[0], possible_birthdays)
if x == False and y == False:
return True
return False
def statement2(birthday, possible_birthdays):
z = unique_day(birthday[1],p... | ./refactory/data/question_2/code/wrong/wrong_2_379.py |
refactory_data_question_2_wrong_2_424 | def unique_day(date, possible_birthdays):
counter = 0
for birthdate in possible_birthdays:
if date == birthdate[1]:
counter += 1
if counter > 1 or counter == 0:
return False
else:
return True
def unique_month(month, possible_birthdays):
counter = 0
... | ./refactory/data/question_2/code/wrong/wrong_2_424.py |
refactory_data_question_2_wrong_2_247 | def unique_day(day, possible_birthdays):
x = 1
for i in possible_birthdays:
if day == i[1]:
x = x + 1
else:
x = x
if x > 2:
return False
else:
return True
def unique_month(month, possible_birthdays):
x = 1
for i in possible_birthda... | ./refactory/data/question_2/code/wrong/wrong_2_247.py |
refactory_data_question_2_wrong_2_248 | def unique_day(day, possible_birthdays):
unique = 0
for i in possible_birthdays:
if i[1] == day:
unique += 1
if unique > 1:
return False
return True
def unique_month(month, possible_birthdays):
unique = 0
for i in possible_birthdays:
if i[0] == month:
... | ./refactory/data/question_2/code/wrong/wrong_2_248.py |
refactory_data_question_2_wrong_2_151 | def unique_day(day, possible_birthdays):
count = 0
for birthday in possible_birthdays:
if day == birthday[1]:
count += 1
if count > 1:
return False
return True
def unique_month(month, possible_birthdays):
count = 0
for birthday in possible_birthdays:
... | ./refactory/data/question_2/code/wrong/wrong_2_151.py |
refactory_data_question_2_wrong_2_353 | def unique_day(date, possible_birthdays):
lenth=len(possible_birthdays)
count=0
for i in range(0,lenth):
if date==possible_birthdays[i][1]:
count=count+1
if count==1:
return True
else:
return False
def unique_month(month, possible_birthdays):
lenth=len(p... | ./refactory/data/question_2/code/wrong/wrong_2_353.py |
refactory_data_question_2_wrong_2_031 | def unique_day(date, possible_birthdays):
tpl = ()
for i in possible_birthdays:
tpl += (i[1],)
if tpl.count(date) > 1:
return False
return True
def unique_month(month, possible_birthdays):
tpl = ()
for j in possible_birthdays:
tpl += (i[0],)
if tpl.count(month) >... | ./refactory/data/question_2/code/wrong/wrong_2_031.py |
refactory_data_question_2_wrong_2_297 | def unique_day(date, possible_birthdays):
total= 0
for i in possible_birthdays:
if date == i[1]:
total= total + 1
return total == 1
def unique_month(month, possible_birthdays):
total= 0
for i in possible_birthdays:
if month == i[0]:
total= total + 1
retur... | ./refactory/data/question_2/code/wrong/wrong_2_297.py |
refactory_data_question_2_wrong_2_028 | def unique_day(date, possible_birthdays):
flag = 0
for i in possible_birthdays:
if i[1] == day:
flag += 1
return True if flag == 1 else False
def unique_month(month, possible_birthdays):
flag = 0
for i in possible_birthdays:
if i[0] == month:
flag += 1
... | ./refactory/data/question_2/code/wrong/wrong_2_028.py |
refactory_data_question_2_wrong_2_077 | def unique_day(day, possible_birthdays):
counter = 0
for i in possible_birthdays:
if str(day) == i[1]:
counter = counter + 1
if counter > 1:
return False
else:
return True
def unique_month(month, possible_birthdays):
counter = 0
for i in possible_birthdays:
... | ./refactory/data/question_2/code/wrong/wrong_2_077.py |
refactory_data_question_2_wrong_2_398 | def unique_day(date, possible_birthdays):
counter = 0
for birthdate in possible_birthdays:
if str(date) == birthdate[1]:
counter += 1
if counter > 1:
return False
else:
return True
def unique_month(month, possible_birthdays):
counter = 0
for birt... | ./refactory/data/question_2/code/wrong/wrong_2_398.py |
refactory_data_question_2_wrong_2_152 | def unique_day(day, possible_birthdays):
a = 0
for item in possible_birthdays:
for i in item:
if i == day:
a += 1
if a == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
a = 0
for item in possible_birthdays:
... | ./refactory/data/question_2/code/wrong/wrong_2_152.py |
refactory_data_question_2_wrong_2_320 | def unique_day(day, possible_birthdays):
counter = 0
for i in possible_birthdays:
if day == i[1]:
counter = counter + 1
if counter == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
counter = 0
for i in possible_birthdays:
... | ./refactory/data/question_2/code/wrong/wrong_2_320.py |
refactory_data_question_2_wrong_2_219 | def unique_day(date, possible_birthdays):
j = 0
for i in possible_birthdays:
if date == i[1]:
j = j+1
else:
j = j
if j == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
return
def contains_unique_day(month, pos... | ./refactory/data/question_2/code/wrong/wrong_2_219.py |
refactory_data_question_2_wrong_2_356 | def unique_day(date, possible_birthdays):
count=0
for i in possible_birthdays:
if i[1] == date:
count+=1
return count>=2
def unique_month(month, possible_birthdays):
for i in possible_birthdays:
if i[0] == month:
count+=1
return count>=2
def contains_unique_... | ./refactory/data/question_2/code/wrong/wrong_2_356.py |
refactory_data_question_2_wrong_2_132 | def unique_day(day, possible_birthdays):
unique_day_counter = 0
for i in possible_birthdays:
if day == i[1]:
unique_day_counter += 1
if unique_day_counter != 1:
return False
return True
def unique_month(month, possible_birthdays):
return
def contains_unique_day(month, p... | ./refactory/data/question_2/code/wrong/wrong_2_132.py |
refactory_data_question_2_wrong_2_102 | def unique_day(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if i[1] == date:
count += 1
return count
if count == 1:
return True
return False
def unique_month(month, possible_birthdays):
return
def contains_unique_day(month, possible_birthda... | ./refactory/data/question_2/code/wrong/wrong_2_102.py |
refactory_data_question_2_wrong_2_087 | def unique_day(day, possible_birthdays):
counted = ()
for birthdays in possible_birthdays:
if birthdays[1] == day:
if day not in counted:
counted += (day,)
else:
return False
return True
def unique_month(month, possible_birthdays):
... | ./refactory/data/question_2/code/wrong/wrong_2_087.py |
refactory_data_question_2_wrong_2_286 | def unique_day(date, possible_birthdays):
counter = 0
for i in possible_birthdays:
if i[1] == date:
counter += 1
else:
continue
if counter == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
counter = 0
for i ... | ./refactory/data/question_2/code/wrong/wrong_2_286.py |
refactory_data_question_2_wrong_2_003 | def unique_day(day, possible_birthdays):
num=0
for i in possible_birthdays:
if day==i[1]:
num+=1
return num==1
def unique_month(month, possible_birthdays):
num=0
for i in possible_birthdays:
if month==i[0]:
num+=1
return num==1
def contains_unique_day(mo... | ./refactory/data/question_2/code/wrong/wrong_2_003.py |
refactory_data_question_2_wrong_2_143 | def unique_day(date, possible_birthdays):
count = 0
for birthday in possible_birthdays:
if day == birthday[1]:
count += 1
return count == 1
def unique_month(month, possible_birthdays):
count = 0
for birthday in possible_birthdays:
if month == birthday[0]:
cou... | ./refactory/data/question_2/code/wrong/wrong_2_143.py |
refactory_data_question_2_wrong_2_097 | def unique_day(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if date == i[1]:
count += 1
return count
if count == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
return
def contains_... | ./refactory/data/question_2/code/wrong/wrong_2_097.py |
refactory_data_question_2_wrong_2_363 | def unique_day(day, possible_birthdays):
i = 0
for days in possible_birthdays:
if int(day) == int(days[1]):
i += 1
else:
i = i
if counter == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
return
def contains_un... | ./refactory/data/question_2/code/wrong/wrong_2_363.py |
refactory_data_question_2_wrong_2_106 | def unique_day(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if i[1] == date:
count += 1
return count
if count == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
return
def contains_unique_day(month... | ./refactory/data/question_2/code/wrong/wrong_2_106.py |
refactory_data_question_2_wrong_2_355 | def unique_day(date, possible_birthdays):
lenth=len(possible_birthdays)
count=0
for i in range(0,lenth):
if date==possible_birthdays[i][1]:
count=count+1
if count==1:
return True
else:
return False
def unique_month(month, possible_birthdays):
lenth=len(p... | ./refactory/data/question_2/code/wrong/wrong_2_355.py |
refactory_data_question_2_wrong_2_200 | def unique_day(day, possible_birthdays):
total = ()
for i in possible_birthdays:
total += (i[1],)
if total.count(day) > 1:
return False
else:
return True
def unique_month(month, possible_birthdays):
total = ()
for i in possible_birthdays:
total += (i[0],)
if... | ./refactory/data/question_2/code/wrong/wrong_2_200.py |
refactory_data_question_2_wrong_2_304 | def unique_day(date, possible_birthdays):
count=0
for i in possible_birthdays:
if i[1]==date:
count+=1
if count!=1:
return False
else:
return True
def unique_month(month, possible_birthdays):
if month in possible_birthdays[0]:
return False
else:
... | ./refactory/data/question_2/code/wrong/wrong_2_304.py |
refactory_data_question_2_wrong_2_024 | def unique_day(day, possible_birthdays):
count = 0
for birthdays in possible_birthdays:
if birthdays[1] == day:
count +=1
if count == 2:
return False
return True
def unique_month(month, possible_birthdays):
count = 0
for birthdays in possible_birthday... | ./refactory/data/question_2/code/wrong/wrong_2_024.py |
refactory_data_question_2_wrong_2_362 | def unique_day(day, possible_birthdays):
occur = 0
for i in possible_birthdays:
if day == i[1]:
occur += 1
if occur == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
occur = 0
for i in possible_birthdays:
if... | ./refactory/data/question_2/code/wrong/wrong_2_362.py |
refactory_data_question_2_wrong_2_418 | def unique_day(date, possible_birthdays):
for i in range(len(possible_birthdays)):
if date==possible_birthdays[i]:
return True
else:
return False
def unique_month(month, possible_birthdays):
return
def contains_unique_day(month, possible_birthdays):
return
| ./refactory/data/question_2/code/wrong/wrong_2_418.py |
refactory_data_question_2_wrong_2_300 | def unique_day(date, possible_birthdays):
result = 0
for i in possible_birthdays:
if i[1] == day:
result += 1
elif i[1] != day:
result += 0
if result == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
result = 0
... | ./refactory/data/question_2/code/wrong/wrong_2_300.py |
refactory_data_question_2_wrong_2_226 | def unique_day(date, possible_birthdays):
count = 0
for bday in possible_birthdays:
if day == bday[1]:
count += 1
return count == 1
def unique_month(month, possible_birthdays):
count = 0
for bday in possible_birthdays:
if month == bday[0]:
count += 1
retu... | ./refactory/data/question_2/code/wrong/wrong_2_226.py |
refactory_data_question_2_wrong_2_084 | def unique_day(day, possible_birthdays):
days = ()
for birthday in possible_birthdays:
if birthday[1] != day:
continue
elif birthday[1] not in days:
days += (birthday[1],)
else:
return False
return True
def unique_month(month, possible_birthdays):... | ./refactory/data/question_2/code/wrong/wrong_2_084.py |
refactory_data_question_2_wrong_2_179 | def count_dates(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if i[1] == date:
count += 1
return count
def unique_day(date, possible_birthdays):
if count_dates(date, possible_birthdays) == 1:
return True
else:
return False
def count_m... | ./refactory/data/question_2/code/wrong/wrong_2_179.py |
refactory_data_question_2_wrong_2_004 | def unique_day(date, possible_birthdays):
count = 0
for birthday in possible_birthdays:
if birthday[1] == day:
count += 1
return count == 1
def unique_month(month, possible_birthdays):
return
def contains_unique_day(month, possible_birthdays):
return
| ./refactory/data/question_2/code/wrong/wrong_2_004.py |
refactory_data_question_2_wrong_2_124 | def unique_day(date, possible_birthdays):
tester = 0
for i in possible_birthdays:
if date == i[1]:
if tester:
return False
else:
tester = 1
return tester
def unique_month(month, possible_birthdays):
tester = 0
for i in possible_birthda... | ./refactory/data/question_2/code/wrong/wrong_2_124.py |
refactory_data_question_2_wrong_2_025 | def unique_day(day, possible_birthdays):
checker = []
for bday in possible_birthdays:
if day == bday[1] and day not in checker:
checker.append(day)
elif day == bday[1] and day in checker:
return False
return True
def unique_month(month, possible_birthdays):
check... | ./refactory/data/question_2/code/wrong/wrong_2_025.py |
refactory_data_question_2_wrong_2_296 | def unique_day(date, possible_birthdays):
total= 0
for i in possible_birthdays:
if date == i[1]:
total= total + 1
return total == 1
def unique_month(month, possible_birthdays):
return
def contains_unique_day(month, possible_birthdays):
return
| ./refactory/data/question_2/code/wrong/wrong_2_296.py |
refactory_data_question_2_wrong_2_192 | def unique_day(day, possible_birthdays):
i=0
for birthday in possible_birthdays:
if day == birthday[1]:
i+=1
if i == 2:
return False
return True
def unique_month(month, possible_birthdays):
i=0
for birthday in possible_birthdays:
if month == b... | ./refactory/data/question_2/code/wrong/wrong_2_192.py |
refactory_data_question_2_wrong_2_104 | def unique_day(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if i[1] == date:
count += 1
return count
if count == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
return
def contains_unique_day(month... | ./refactory/data/question_2/code/wrong/wrong_2_104.py |
refactory_data_question_2_wrong_2_432 | def unique_day(date, possible_birthdays):
counter = 0
for i in possible_birthdays:
if i[1] == date:
counter += 1
if counter > 1:
return False
return True
def unique_month(month, possible_birthdays):
counter = 0
for i in possible_birthdays:
if i[0] == month:
... | ./refactory/data/question_2/code/wrong/wrong_2_432.py |
refactory_data_question_2_wrong_2_027 | def unique_day(day, possible_birthdays):
birthday_with_day = list(filter(lambda birthday: birthday[1] == day \
, possible_birthdays))
if len(birthday_with_day) >= 2:
return False
return True
def unique_month(month, possible_birthdays):
birthday_with_month = list... | ./refactory/data/question_2/code/wrong/wrong_2_027.py |
refactory_data_question_2_wrong_2_188 | def count_dates(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if i[1] == date:
count += 1
return count
def unique_day(date, possible_birthdays):
if count_dates(date, possible_birthdays) == 1:
return True
else:
return False
def count_m... | ./refactory/data/question_2/code/wrong/wrong_2_188.py |
refactory_data_question_2_wrong_2_310 | def unique_day(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if date == i[1]:
count += 1
return count == 1
def unique_month(month, possible_birthdays):
count = 0
for i in possible_birthdays:
if month == i[0]:
count += 1
return count ==... | ./refactory/data/question_2/code/wrong/wrong_2_310.py |
refactory_data_question_2_wrong_2_369 | def unique_day(day, possible_birthdays):
i = 0
for days in possible_birthdays:
if int(day) == int(days[1]):
i += 1
if i == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
i = 0
for months in possible_birthdays:
if month ... | ./refactory/data/question_2/code/wrong/wrong_2_369.py |
refactory_data_question_2_wrong_2_055 | def unique_day(date, possible_birthdays):
for i in range(0,len(possible_birthdays)):
list = [x for x in possible_birthdays[i][1]]
list = sorted(list)
if date == list[i] and date != list[i+1] and date != list[i-1]:
return True
else:
return False
... | ./refactory/data/question_2/code/wrong/wrong_2_055.py |
refactory_data_question_2_wrong_2_271 | def unique_day(day, possible_birthdays):
counter = 0
for birthday in possible_birthdays:
if birthday[1] == day:
counter = counter + 1
if counter <= 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
counter = 0
for birthday in poss... | ./refactory/data/question_2/code/wrong/wrong_2_271.py |
refactory_data_question_2_wrong_2_113 | def count_dates(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if i[1] == date:
count += 1
return count
def unique_day(date, possible_birthdays):
if count_dates(date, possible_birthdays) == 1:
return True
else:
return False
def count_m... | ./refactory/data/question_2/code/wrong/wrong_2_113.py |
refactory_data_question_2_wrong_2_427 | def unique_day(date, possible_birthdays):
only_date = ()
for i in possible_birthdays:
if date in i:
only_date = only_date + (i,)
if len(only_date) == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
only_month = ()
for i in possib... | ./refactory/data/question_2/code/wrong/wrong_2_427.py |
refactory_data_question_2_wrong_2_326 | def unique_day(date, possible_birthdays):
count = 0
for i in range (len(possible_birthdays)):
if date == possible_birthdays[i][1]:
count +=1
if count == 1:
return True
else:
return False
def unique_month(month, possible_birthdays):
count = 0
for i in range (... | ./refactory/data/question_2/code/wrong/wrong_2_326.py |
refactory_data_question_2_wrong_2_189 | def count_dates(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if i[1] == date:
count += 1
return count
def unique_day(date, possible_birthdays):
if count_dates(date, possible_birthdays) == 1:
return True
else:
return False
def count_m... | ./refactory/data/question_2/code/wrong/wrong_2_189.py |
refactory_data_question_2_wrong_2_088 | def unique_day(day, possible_birthdays):
counted = ()
for birthdays in possible_birthdays:
if birthdays[1] == day:
if day not in counted:
counted += (day,)
else:
return False
return True
def unique_month(month, possible_birthdays):
... | ./refactory/data/question_2/code/wrong/wrong_2_088.py |
refactory_data_question_2_wrong_2_264 | def unique_day(day, possible_birthdays):
counter=0
for i in possible_birthdays:
if day==i[1]:
counter=counter+1
else:
pass
return counter<=1
def unique_month(month, possible_birthdays):
counter=0
for i in possible_birthdays:
if month==i[0]:
... | ./refactory/data/question_2/code/wrong/wrong_2_264.py |
refactory_data_question_2_wrong_2_260 | def unique_day(date, possible_birthdays):
if int(date) in possible_birthdays[1]:
return False
else:
return True
def unique_month(month, possible_birthdays):
if month in possible_birthdays[0]:
return False
else:
return True
def contains_unique_day(month, possible_birthd... | ./refactory/data/question_2/code/wrong/wrong_2_260.py |
refactory_data_question_2_wrong_2_173 | def count_dates(date, possible_birthdays):
count = 0
for i in possible_birthdays:
if i[1] == date:
count += 1
return count
def unique_day(date, possible_birthdays):
if count_dates(date, possible_birthdays) == 1:
return True
else:
return False
def count_m... | ./refactory/data/question_2/code/wrong/wrong_2_173.py |
refactory_data_question_2_wrong_2_256 | def unique_day(day, possible_birthdays):
days = ()
unique = ()
for i in possible_birthdays:
days += (i[1],)
for i in days:
if i == day:
unique += (i,)
else:
continue
if len(unique) == 1:
return True
else:
return False
def unique_mo... | ./refactory/data/question_2/code/wrong/wrong_2_256.py |
refactory_data_question_2_wrong_2_386 | def unique_day(day, possible_birthdays):
count = ()
for i in range (len(possible_birthdays)):
if day == possible_birthdays[i][1]:
count = count + (possible_birthdays[i][1],)
if len(count) < 2:
return True
else:
return False
def unique_month(month, possible_birthdays)... | ./refactory/data/question_2/code/wrong/wrong_2_386.py |
refactory_data_question_2_wrong_2_197 | def unique_day(day, possible_birthdays):
x = 0
for birthday in possible_birthdays:
if day in birthday:
x += 1
if x > 1:
return False
else:
return True
def unique_month(month, possible_birthdays):
x = 0
for birthday in possible_birthdays:
if month in b... | ./refactory/data/question_2/code/wrong/wrong_2_197.py |
refactory_data_question_2_wrong_2_267 | def unique_day(day, possible_birthdays):
count = 0
for i in range(len(possible_birthdays)):
check = possible_birthdays[i][1]
if check == day:
count = count+1
if count >1:
return False
return True
def unique_month(month, possible_birthdays):
count = 0
for i in... | ./refactory/data/question_2/code/wrong/wrong_2_267.py |
refactory_data_question_2_wrong_2_372 | def unique_day(day, possible_birthdays):
result = 0
for i in possible_birthdays:
if day in i:
result = result + 1
if result > 1:
return False
elif result == 0:
return False
else:
return True
def unique_month(month, possible_birthdays):
result = 0
... | ./refactory/data/question_2/code/wrong/wrong_2_372.py |
refactory_data_question_3_correct_3_362 | def remove_extras(lst):
lst2 = []
for i in lst:
if i not in lst2:
lst2.append(i)
return lst2
| ./refactory/data/question_3/code/correct/correct_3_362.py |
refactory_data_question_3_correct_3_284 | def remove_extras(lst):
newlist = []
for i in lst:
if i not in newlist:
newlist.append(i)
lst[:]= newlist
return lst
| ./refactory/data/question_3/code/correct/correct_3_284.py |
refactory_data_question_3_correct_3_295 | def remove_extras(lst):
if lst == []:
return []
seq = [lst[0],]
for i in lst:
if i not in seq:
seq = seq + [i,]
return seq
| ./refactory/data/question_3/code/correct/correct_3_295.py |
refactory_data_question_3_correct_3_292 | def remove_extras(lst):
newlist = []
for i in lst:
if i in newlist:
continue
else:
newlist += [i]
return newlist
| ./refactory/data/question_3/code/correct/correct_3_292.py |
refactory_data_question_3_correct_3_358 | def remove_extras(lst):
newlst = []
for i in lst:
if i not in newlst:
newlst += [i]
return newlst
| ./refactory/data/question_3/code/correct/correct_3_358.py |
refactory_data_question_3_correct_3_033 | def remove_extras(lst):
a=[]
for i in lst:
if i not in a:
a.append(i)
return a
| ./refactory/data/question_3/code/correct/correct_3_033.py |
refactory_data_question_3_correct_3_491 | def remove_extras(lst):
newlist = []
for i in lst:
if i not in newlist:
newlist += i,
return newlist
| ./refactory/data/question_3/code/correct/correct_3_491.py |
refactory_data_question_3_correct_3_355 | def remove_extras(lst):
new = []
for i in lst:
if i not in new:
new += [i]
return new
| ./refactory/data/question_3/code/correct/correct_3_355.py |
refactory_data_question_3_correct_3_223 | def remove_extras(values):
output = []
seen = ()
for value in values:
if value not in seen:
output.append(value)
seen += (value,)
return output
| ./refactory/data/question_3/code/correct/correct_3_223.py |
refactory_data_question_3_correct_3_076 | def remove_extras(lst):
new = []
for i in lst:
if i not in new:
new = new + [i,]
return new
pass
| ./refactory/data/question_3/code/correct/correct_3_076.py |
refactory_data_question_3_correct_3_233 | def remove_extras(lst):
s = []
for element in lst:
if element not in s:
s.append(element)
return s
| ./refactory/data/question_3/code/correct/correct_3_233.py |
refactory_data_question_3_correct_3_037 | def remove_extras(lst):
new_lst = []
for ele in lst:
if not (ele in new_lst):
new_lst.insert(len(new_lst), ele)
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_037.py |
refactory_data_question_3_correct_3_225 | def remove_extras(lst):
new = []
for i in lst:
if i not in new:
new += [i, ]
else:
continue
return new
| ./refactory/data/question_3/code/correct/correct_3_225.py |
refactory_data_question_3_correct_3_264 | def remove_extras(lst):
new = []
for e in lst:
if e not in new:
new.append(e)
return new
| ./refactory/data/question_3/code/correct/correct_3_264.py |
refactory_data_question_3_correct_3_051 | def remove_extras(lst):
res = []
for i in lst:
if i not in res:
res.append(i)
return res
| ./refactory/data/question_3/code/correct/correct_3_051.py |
refactory_data_question_3_correct_3_429 | def remove_extras(lst):
result = []
for i in lst:
if i not in result:
result = result + [i]
return result
| ./refactory/data/question_3/code/correct/correct_3_429.py |
refactory_data_question_3_correct_3_376 | def remove_extras(lst):
new_list = []
if lst == []:
return lst
else:
for i in lst:
if i in new_list:
continue
else:
new_list.append(i)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_376.py |
refactory_data_question_3_correct_3_306 | def remove_extras(lst):
answer = []
for x in lst:
if x not in answer:
answer.append(x)
return answer
| ./refactory/data/question_3/code/correct/correct_3_306.py |
refactory_data_question_3_correct_3_326 | def remove_extras(lst):
answer = []
for x in lst:
if x not in answer:
answer.append(x)
return answer
| ./refactory/data/question_3/code/correct/correct_3_326.py |
refactory_data_question_3_correct_3_121 | def remove_extras(lst):
l=[]
for i in lst:
checker=True
for k in l:
if k==i:
checker=False
if checker:
l+=[i]
return l
| ./refactory/data/question_3/code/correct/correct_3_121.py |
refactory_data_question_3_correct_3_470 | def remove_extras(lst):
lst_new=[]
l=len(lst)
for i in range (l):
if lst[i] in lst_new:
continue
else:
lst_new.append(lst[i])
return lst_new
| ./refactory/data/question_3/code/correct/correct_3_470.py |
refactory_data_question_3_correct_3_311 | def remove_extras(lst):
if lst == []:
return []
seq = [lst[0],]
for i in lst:
if i not in seq:
seq = seq + [i,]
return seq
| ./refactory/data/question_3/code/correct/correct_3_311.py |
refactory_data_question_3_correct_3_148 | def remove_extras(lst):
wo_extras = []
for i in lst:
if i in wo_extras:
continue
wo_extras.append(i)
return wo_extras
pass
| ./refactory/data/question_3/code/correct/correct_3_148.py |
refactory_data_question_3_correct_3_531 | def remove_extras(lst):
output = []
for i in lst:
if i not in output:
output.append(i)
return output
| ./refactory/data/question_3/code/correct/correct_3_531.py |
refactory_data_question_3_correct_3_020 | def remove_extras(lst):
output = []
for i in lst:
if i not in output:
output += [i]
return output
| ./refactory/data/question_3/code/correct/correct_3_020.py |
refactory_data_question_3_correct_3_501 | def remove_extras(lst):
if lst == []:
return []
else:
result = [lst[0],]
for e in lst:
if e not in result:
result.append(e)
else:
continue
return result
| ./refactory/data/question_3/code/correct/correct_3_501.py |
refactory_data_question_3_correct_3_173 | def remove_extras(lst):
new_lst = []
for i in lst:
if i not in new_lst:
new_lst.append(i)
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_173.py |
refactory_data_question_3_correct_3_378 | def remove_extras(lst):
new_lst = []
for i in lst:
if i not in new_lst:
new_lst.append(i)
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_378.py |
refactory_data_question_3_correct_3_303 | def remove_extras(lst):
new_list = []
for item in lst:
if new_list.count(item) == 0:
new_list.append(item)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_303.py |
refactory_data_question_3_correct_3_184 | def remove_extras(lst):
newlst=[]
for i in lst:
if i not in newlst:
newlst+= [i,]
return newlst
| ./refactory/data/question_3/code/correct/correct_3_184.py |
refactory_data_question_3_correct_3_007 | def remove_extras(lst):
new = []
for i in lst:
if i not in new:
new += [i]
else:
continue
return new
| ./refactory/data/question_3/code/correct/correct_3_007.py |
refactory_data_question_3_correct_3_357 | def remove_extras(lst):
lsts = []
for i in lst:
if i not in lsts:
lsts.append(i)
return lsts
| ./refactory/data/question_3/code/correct/correct_3_357.py |
refactory_data_question_3_correct_3_411 | def remove_extras(lst):
lst1=[]
for i in lst:
check=True
for j in lst1:
if j==i:
check=False
if check:
lst1+=[i,]
return lst1
| ./refactory/data/question_3/code/correct/correct_3_411.py |
refactory_data_question_3_correct_3_201 | def remove_extras(lst):
result = []
for i in lst:
if i not in result:
result = result + [i,]
else:
continue
return result
| ./refactory/data/question_3/code/correct/correct_3_201.py |
refactory_data_question_3_correct_3_275 | def remove_extras(lst):
# your code here
new_lst = []
for i in lst:
if i not in new_lst:
new_lst += [i,]
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_275.py |
refactory_data_question_3_correct_3_512 | def remove_extras(lst):
new = []
for i in lst:
if i not in new:
new = new + [i,]
else:
new = new
return new
| ./refactory/data/question_3/code/correct/correct_3_512.py |
refactory_data_question_3_correct_3_534 | def remove_extras(lst):
# your code here
l=[]
for i in lst:
if i not in l:
l.append(i)
return l
| ./refactory/data/question_3/code/correct/correct_3_534.py |
refactory_data_question_3_correct_3_432 | def remove_extras(lst):
new_lst = []
for x in lst:
if x not in new_lst:
new_lst = new_lst + [x]
else:
continue
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_432.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.