id stringlengths 35 39 | content stringlengths 44 3.85k | max_stars_repo_path stringlengths 52 57 |
|---|---|---|
refactory_data_question_3_correct_3_061 | def remove_extras(lst):
new_lst = []
for element in lst:
if element not in new_lst:
new_lst.append(element)
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_061.py |
refactory_data_question_3_correct_3_377 | def remove_extras(lst):
if lst == []:
return []
else:
lst1 = []
for i in range(0,len(lst)):
if lst[i] not in lst1:
lst1 = lst1 + [lst[i]]
return lst1
| ./refactory/data/question_3/code/correct/correct_3_377.py |
refactory_data_question_3_correct_3_346 | def remove_extras(lst):
current = []
for i in lst:
if i in current:
continue
else:
current.append(i)
return current
| ./refactory/data/question_3/code/correct/correct_3_346.py |
refactory_data_question_3_correct_3_543 | 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_543.py |
refactory_data_question_3_correct_3_016 | def remove_extras(lst):
new = []
for x in lst:
if x not in new:
new += [x,]
else:
new += []
return new
pass
| ./refactory/data/question_3/code/correct/correct_3_016.py |
refactory_data_question_3_correct_3_438 | def remove_extras(lst):
new_list = []
for element in lst:
if element in new_list:
continue
else:
new_list.append(element)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_438.py |
refactory_data_question_3_correct_3_085 | def remove_extras(lst):
new = []
if lst == []:
return lst
else:
for i in lst:
if i in new:
continue
else:
new.append(i)
return new
| ./refactory/data/question_3/code/correct/correct_3_085.py |
refactory_data_question_3_correct_3_132 | def remove_extras(lst):
lst.reverse()
for i in lst:
if lst.count(i) > 1:
lst.remove(i)
lst.reverse()
return lst
| ./refactory/data/question_3/code/correct/correct_3_132.py |
refactory_data_question_3_correct_3_200 | 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_200.py |
refactory_data_question_3_correct_3_494 | def remove_extras(lst):
a = []
for i in lst:
if i not in a:
a.append(i)
return a
pass
| ./refactory/data/question_3/code/correct/correct_3_494.py |
refactory_data_question_3_correct_3_131 | 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_131.py |
refactory_data_question_3_correct_3_519 | def remove_extras(lst):
new_lst=[]
for x in lst:
if x in new_lst:
new_lst=new_lst
else:
new_lst+=[x,]
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_519.py |
refactory_data_question_3_correct_3_277 | def remove_extras(lst):
l = []
for i in lst:
if i not in l:
l += [i]
return l
| ./refactory/data/question_3/code/correct/correct_3_277.py |
refactory_data_question_3_correct_3_350 | def remove_extras(lst):
newlst = []
for i in lst:
if i not in newlst:
newlst.append(i)
return newlst
| ./refactory/data/question_3/code/correct/correct_3_350.py |
refactory_data_question_3_correct_3_198 | def remove_extras(lst):
result=[]
for i in lst:
if i in result:
continue
result+= [i]
return result
| ./refactory/data/question_3/code/correct/correct_3_198.py |
refactory_data_question_3_correct_3_261 | def remove_extras(lst):
new_list = []
for k in range(len(lst)):
if lst[k] in lst[:k]:
new_list = new_list
else:
new_list = new_list + [lst[k]]
return new_list
| ./refactory/data/question_3/code/correct/correct_3_261.py |
refactory_data_question_3_correct_3_426 | def remove_extras(lst):
lst.reverse()
for elem in lst:
while elem in lst[lst.index(elem)+1:]:
lst.remove(elem)
#print(lst)
lst.reverse()
return lst
| ./refactory/data/question_3/code/correct/correct_3_426.py |
refactory_data_question_3_correct_3_364 | def remove_extras(lst):
lst1=[]
for i in range (len(lst)):
if lst[i] not in lst1:
lst1 += [lst[i]]
return lst1
| ./refactory/data/question_3/code/correct/correct_3_364.py |
refactory_data_question_3_correct_3_421 | def remove_extras(lst):
new = []
for x in lst:
if x not in new:
new += [x]
return new
| ./refactory/data/question_3/code/correct/correct_3_421.py |
refactory_data_question_3_correct_3_305 | 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_305.py |
refactory_data_question_3_correct_3_060 | def remove_extras(lst):
#your code here
result = []
for entry in lst:
if entry not in result:
result = result + [entry]
return result
| ./refactory/data/question_3/code/correct/correct_3_060.py |
refactory_data_question_3_correct_3_465 | def remove_extras(lst):
a =[]
for i in lst:
if i not in a:
a = a + [i,]
else:
continue
return a
pass
| ./refactory/data/question_3/code/correct/correct_3_465.py |
refactory_data_question_3_correct_3_467 | def remove_extras(lst):
new_lst = []
added = set()
for val in lst:
if not val in added:
new_lst.append(val)
added.add(val)
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_467.py |
refactory_data_question_3_correct_3_325 | def remove_extras(lst):
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_325.py |
refactory_data_question_3_correct_3_345 | def remove_extras(lst):
rem_lst=[]
for i in lst:
if rem_lst.count(i)==0:
rem_lst+=[i]
return rem_lst
| ./refactory/data/question_3/code/correct/correct_3_345.py |
refactory_data_question_3_correct_3_348 | def remove_extras(lst):
pst=[]
for i in lst:
if i not in pst:
pst.extend([i])
return pst
| ./refactory/data/question_3/code/correct/correct_3_348.py |
refactory_data_question_3_correct_3_458 | 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_458.py |
refactory_data_question_3_correct_3_249 | 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_249.py |
refactory_data_question_3_correct_3_294 | def remove_extras(lst):
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_294.py |
refactory_data_question_3_correct_3_463 | def remove_extras(lst):
new = []
for ele in lst:
if ele not in new:
new = new + [ele,]
return new# your code here
| ./refactory/data/question_3/code/correct/correct_3_463.py |
refactory_data_question_3_correct_3_381 | def remove_extras(lst):
newlst = []
for i in lst:
if i in newlst:
continue
newlst.append(i)
return newlst
| ./refactory/data/question_3/code/correct/correct_3_381.py |
refactory_data_question_3_correct_3_064 | def remove_extras(lst):
for i in lst:
remove_multiple(i, lst)
return lst
def remove_multiple(n, lst):
if lst.count(n) == 1:
return lst
else:
lst.reverse()
lst.remove(n)
lst.reverse()
return remove_multiple(n, lst)
| ./refactory/data/question_3/code/correct/correct_3_064.py |
refactory_data_question_3_correct_3_190 | def remove_extras(lst):
newlst=[]
for i in lst:
if i not in newlst:
newlst.append(i)
return newlst
# your code here
pass
| ./refactory/data/question_3/code/correct/correct_3_190.py |
refactory_data_question_3_correct_3_150 | def remove_extras(lst):
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_150.py |
refactory_data_question_3_correct_3_370 | 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_370.py |
refactory_data_question_3_correct_3_473 | def remove_extras(lst):
new_list = []
for i in lst:
if i not in new_list:
new_list.append(i)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_473.py |
refactory_data_question_3_correct_3_213 | def remove_extras(lst):
result = []
for item in lst:
if item not in result:
result += [item,]
return result
| ./refactory/data/question_3/code/correct/correct_3_213.py |
refactory_data_question_3_correct_3_276 | def remove_extras(lst):
new_list=[]
for i in lst:
if i not in new_list:
new_list.append(i)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_276.py |
refactory_data_question_3_correct_3_285 | def remove_extras(lst):
# your code here
out = []
for ele in lst:
if not ele in out:
out.append(ele)
return out
| ./refactory/data/question_3/code/correct/correct_3_285.py |
refactory_data_question_3_correct_3_058 | def remove_extras(lst):
lsts = []
for i in lst:
if i not in lsts:
lsts.append(i)
lst = lsts
return lst
| ./refactory/data/question_3/code/correct/correct_3_058.py |
refactory_data_question_3_correct_3_067 | def remove_extras(lst):
new_lst = []
for i in lst:
if i in new_lst:
continue
else:
new_lst += [i,]
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_067.py |
refactory_data_question_3_correct_3_078 | def remove_extras(lst):
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_078.py |
refactory_data_question_3_correct_3_100 | def remove_extras(lst):
newlst=[]
for i in lst:
while i not in newlst:
newlst.append(i)
return newlst
| ./refactory/data/question_3/code/correct/correct_3_100.py |
refactory_data_question_3_correct_3_537 | def remove_extras(lst):
lst.reverse()
for i in lst:
n=len(lst)
counter = 1
number_of_appearance = 0
while counter <= n:
if i == lst[counter-1]:
counter += 1
number_of_appearance += 1
else:
counter += 1
... | ./refactory/data/question_3/code/correct/correct_3_537.py |
refactory_data_question_3_correct_3_181 | def remove_extras(lst):
result = []
for i in lst:
if i not in result:
result += [i]
return result
| ./refactory/data/question_3/code/correct/correct_3_181.py |
refactory_data_question_3_correct_3_302 | def remove_extras(lst):
result = []
for ele in lst:
if ele not in result:
result.append(ele)
return result
| ./refactory/data/question_3/code/correct/correct_3_302.py |
refactory_data_question_3_correct_3_433 | def remove_extras(lst):
new_list = []
for element in lst:
if element in new_list:
continue
else:
new_list.append(element)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_433.py |
refactory_data_question_3_correct_3_517 | def remove_extras(lst):
new_list=[]
for i in range(len(lst)):
judge=0
for j in range(i):
if lst[i]==lst[j]:
judge=1
if judge==0:
new_list+=[lst[i],]
return new_list
# your code here
pass
| ./refactory/data/question_3/code/correct/correct_3_517.py |
refactory_data_question_3_correct_3_226 | def remove_extras(lst):
result = []
for i in lst:
if i not in result:
result = result + [i]
return result
# your code here
pass
| ./refactory/data/question_3/code/correct/correct_3_226.py |
refactory_data_question_3_correct_3_134 | def remove_extras(lst):
new = []
for x in lst:
if x not in new:
new += [x,]
else:
new += []
return new
pass
| ./refactory/data/question_3/code/correct/correct_3_134.py |
refactory_data_question_3_correct_3_079 | def remove_extras(lst):
new_list=[]
for ele in lst:
if ele not in new_list:
new_list.append(ele)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_079.py |
refactory_data_question_3_correct_3_503 | def remove_extras(lst):
new_list = []
for x in lst:
if x not in new_list:
new_list += [x]
return new_list
| ./refactory/data/question_3/code/correct/correct_3_503.py |
refactory_data_question_3_correct_3_161 | 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_161.py |
refactory_data_question_3_correct_3_351 | def remove_extras(lst):
pst=[]
for i in lst:
if i not in pst:
pst.extend([i])
return pst
| ./refactory/data/question_3/code/correct/correct_3_351.py |
refactory_data_question_3_correct_3_072 | def remove_extras(lst):
x = tuple(lst)
store = ()
for ele in lst:
if ele not in store:
store += (ele,)
return list(store)
| ./refactory/data/question_3/code/correct/correct_3_072.py |
refactory_data_question_3_correct_3_266 | 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_266.py |
refactory_data_question_3_correct_3_077 | def remove_extras(lst):
sumx=[]
for i in lst:
if i not in sumx:
sumx.append(i)
return sumx
| ./refactory/data/question_3/code/correct/correct_3_077.py |
refactory_data_question_3_correct_3_404 | def remove_extras(lst):
product = []
for i in lst:
if i not in product:
product.append(i)
else:
continue
return product
| ./refactory/data/question_3/code/correct/correct_3_404.py |
refactory_data_question_3_correct_3_515 | def remove_extras(lst):
newlist = []
for number in lst:
if number not in newlist:
newlist.append(number)
return newlist
| ./refactory/data/question_3/code/correct/correct_3_515.py |
refactory_data_question_3_correct_3_506 | def remove_extras(lst):
lst2 = []
for x in lst:
if x not in lst2:
lst2.append(x)
return lst2
| ./refactory/data/question_3/code/correct/correct_3_506.py |
refactory_data_question_3_correct_3_367 | 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_367.py |
refactory_data_question_3_correct_3_315 | 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_315.py |
refactory_data_question_3_correct_3_081 | def remove_extras(lst):
result=[]
for i in lst:
if i not in result:
result+=[i]
return result
| ./refactory/data/question_3/code/correct/correct_3_081.py |
refactory_data_question_3_correct_3_082 | def remove_extras(lst):
answer = []
for i in lst:
unique = True
for a in answer:
if i == a:
unique = False
break
if unique:
answer += [i]
return answer
| ./refactory/data/question_3/code/correct/correct_3_082.py |
refactory_data_question_3_correct_3_424 | def remove_extras(lst):
if lst==[]:
return []
new_lst=[lst[0]]
for i in range(len(lst)):
a=lst[i]
for h in range(i,len(lst)):
if a!=lst[h]:
ele=lst[h]
if ele in new_lst:
continue
new_lst.append(ele)
r... | ./refactory/data/question_3/code/correct/correct_3_424.py |
refactory_data_question_3_correct_3_360 | 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_360.py |
refactory_data_question_3_correct_3_339 | 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_339.py |
refactory_data_question_3_correct_3_227 | 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_227.py |
refactory_data_question_3_correct_3_104 | def remove_extras(lst):
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_104.py |
refactory_data_question_3_correct_3_259 | def remove_extras(lst):
# your code here
if lst == []:
return []
else:
result = (lst[0],)
for item in lst[1:]:
if item in result:
continue
else:
result +=(item,)
return list(result)
| ./refactory/data/question_3/code/correct/correct_3_259.py |
refactory_data_question_3_correct_3_169 | def remove_extras(lst):
store = []
for ele in lst:
if ele not in store:
store += [ele]
return store
| ./refactory/data/question_3/code/correct/correct_3_169.py |
refactory_data_question_3_correct_3_175 | def remove_extras(lst):
remove_lst = []
for i in lst:
if i not in remove_lst:
remove_lst.append(i)
return remove_lst
| ./refactory/data/question_3/code/correct/correct_3_175.py |
refactory_data_question_3_correct_3_347 | def remove_extras(lst):
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_347.py |
refactory_data_question_3_correct_3_520 | def remove_extras(lst):
new_lst=[]
for x in lst:
if x in new_lst:
new_lst=new_lst
else:
new_lst+=[x,]
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_520.py |
refactory_data_question_3_correct_3_409 | def remove_extras(lst):
product = []
for i in lst:
if i not in product:
product.append(i)
else:
continue
return product
| ./refactory/data/question_3/code/correct/correct_3_409.py |
refactory_data_question_3_correct_3_009 | def remove_extras(lst):
new=[]
for i in lst:
if i not in new:
new.append(i)
return new
| ./refactory/data/question_3/code/correct/correct_3_009.py |
refactory_data_question_3_correct_3_158 | def remove_extras(lst):
o = []
for i in lst:
if i not in o:
o.append(i)
return o
| ./refactory/data/question_3/code/correct/correct_3_158.py |
refactory_data_question_3_correct_3_321 | def remove_extras(seq):
new_lst = []
for i in seq:
if i not in new_lst:
new_lst.append(i)
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_321.py |
refactory_data_question_3_correct_3_374 | def remove_extras(lst):
new_list =[]
for i in lst:
if i not in new_list:
new_list.append(i)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_374.py |
refactory_data_question_3_correct_3_197 | def remove_extras(lst):
i=1
if lst==[]: return lst
while i!=len(lst):
if lst[i] in lst[:i]:
del lst[i]
continue
i+=1
return lst
| ./refactory/data/question_3/code/correct/correct_3_197.py |
refactory_data_question_3_correct_3_160 | 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_160.py |
refactory_data_question_3_correct_3_252 | def remove_extras(lst):
result = []
for i in lst:
if i not in result:
result.append(i)
return result
| ./refactory/data/question_3/code/correct/correct_3_252.py |
refactory_data_question_3_correct_3_307 | def remove_extras(lst):
my_lst = []
for i in lst:
if i not in my_lst:
my_lst.append(i)
return my_lst
| ./refactory/data/question_3/code/correct/correct_3_307.py |
refactory_data_question_3_correct_3_299 | def remove_extras(lst):
listt = []
for i in lst:
if i in listt:
continue
else:
listt += [i]
return listt
| ./refactory/data/question_3/code/correct/correct_3_299.py |
refactory_data_question_3_correct_3_282 | def remove_extras(lst):
if lst == []:
return []
else:
lst1 = []
for i in range(0,len(lst)):
if lst[i] not in lst1:
lst1 = lst1 + [lst[i]]
return lst1
| ./refactory/data/question_3/code/correct/correct_3_282.py |
refactory_data_question_3_correct_3_234 | def remove_extras(lst):
result = []
check = set()
for element in lst:
if element not in check:
result.append(element)
check.add(element)
return result
| ./refactory/data/question_3/code/correct/correct_3_234.py |
refactory_data_question_3_correct_3_407 | 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_407.py |
refactory_data_question_3_correct_3_014 | def remove_extras(lst):
# your code here
occurrences = ()
new_lst = []
for item in lst:
if item not in occurrences:
occurrences += (item,)
new_lst.append(item)
return new_lst
| ./refactory/data/question_3/code/correct/correct_3_014.py |
refactory_data_question_3_correct_3_481 | def remove_extras(lst):
s = []
for n in lst:
if n not in s:
s.append(n)
return s
| ./refactory/data/question_3/code/correct/correct_3_481.py |
refactory_data_question_3_correct_3_304 |
def remove_extras(lst):
new = []
for i in lst:
if i not in new:
new.append(i)
return new
| ./refactory/data/question_3/code/correct/correct_3_304.py |
refactory_data_question_3_correct_3_032 | 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_032.py |
refactory_data_question_3_correct_3_460 | def remove_extras(lst):
new_list = []
for number in lst:
if number not in new_list:
new_list.append(number)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_460.py |
refactory_data_question_3_correct_3_447 | def remove_extras(lst):
new = []
for i in lst:
if i not in new:
new.append(i)
return new
| ./refactory/data/question_3/code/correct/correct_3_447.py |
refactory_data_question_3_correct_3_229 | 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_229.py |
refactory_data_question_3_correct_3_027 | def remove_extras(lst):
new_list=[]
for value in lst:
if value not in new_list:
new_list.append(value)
return new_list
| ./refactory/data/question_3/code/correct/correct_3_027.py |
refactory_data_question_3_correct_3_313 | def remove_extras(lst):
result = []
for i in range(len(lst)):
if lst[i] not in result:
result += [lst[i],]
continue
return result
| ./refactory/data/question_3/code/correct/correct_3_313.py |
refactory_data_question_3_correct_3_171 | def remove_extras(lst):
result = []
for i in lst:
if i not in result:
result.append(i)
return result
| ./refactory/data/question_3/code/correct/correct_3_171.py |
refactory_data_question_3_correct_3_529 | 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_529.py |
refactory_data_question_3_correct_3_379 | def remove_extras(lst):
new = []
for i in lst:
if i not in new: #if its already in new, it would skip the element and wont add into the new listt.
new += [i, ]
else:
continue
return new
| ./refactory/data/question_3/code/correct/correct_3_379.py |
refactory_data_question_3_correct_3_218 | 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_218.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.