id
stringlengths
35
39
content
stringlengths
44
3.85k
max_stars_repo_path
stringlengths
52
57
refactory_data_question_3_correct_3_074
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_074.py
refactory_data_question_3_correct_3_499
def remove_extras(lst): new = [] for x in lst: if x not in new: new.append(x) return new
./refactory/data/question_3/code/correct/correct_3_499.py
refactory_data_question_3_correct_3_437
def remove_extras(lst): list = [] for element in lst: if element not in list: list.append(element) else: continue return list
./refactory/data/question_3/code/correct/correct_3_437.py
refactory_data_question_3_correct_3_062
def remove_extras(lst): list1 = [] for i in lst: if i not in list1: list1 += [i,] return list1
./refactory/data/question_3/code/correct/correct_3_062.py
refactory_data_question_3_correct_3_511
def remove_extras(lst): new = [] for i in lst: if i not in new: new.append(i) else: new = new return new
./refactory/data/question_3/code/correct/correct_3_511.py
refactory_data_question_3_correct_3_053
def remove_extras(lst): new = [] for el in lst: if el not in new: new += [el,] return new
./refactory/data/question_3/code/correct/correct_3_053.py
refactory_data_question_3_correct_3_269
def remove_extras(n): result = [] counter = 0 while counter < len(n): temp = n[counter] if temp not in result: result.append(temp) counter = counter + 1 return result
./refactory/data/question_3/code/correct/correct_3_269.py
refactory_data_question_3_correct_3_416
def remove_extras(lst): new_list = [] for item in lst: if item not in new_list: new_list.append(item) return new_list
./refactory/data/question_3/code/correct/correct_3_416.py
refactory_data_question_3_correct_3_312
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_312.py
refactory_data_question_3_correct_3_361
def remove_extras(lst): t = [] for n in lst: if t.count(n) == 0: t = t + [n,] return t
./refactory/data/question_3/code/correct/correct_3_361.py
refactory_data_question_3_correct_3_044
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_044.py
refactory_data_question_3_correct_3_098
def remove_extras(lst): l=[] for x in lst: if x not in l: l.append(x) return l
./refactory/data/question_3/code/correct/correct_3_098.py
refactory_data_question_3_correct_3_103
def remove_extras(lst): new_lst = [] for i in range(len(lst)): if lst[0] in new_lst: new_lst = new_lst lst = lst[1:] else: new_lst.append(lst[0]) lst = lst[1:] return new_lst
./refactory/data/question_3/code/correct/correct_3_103.py
refactory_data_question_3_correct_3_170
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_170.py
refactory_data_question_3_correct_3_417
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_417.py
refactory_data_question_3_correct_3_316
def remove_extras(lst): product = [] for element in lst: if element in product: continue else: product = product + [element] return product
./refactory/data/question_3/code/correct/correct_3_316.py
refactory_data_question_3_correct_3_069
def remove_extras(lst): list1 = [] for i in lst: if i not in list1: list1 += [i,] return list1
./refactory/data/question_3/code/correct/correct_3_069.py
refactory_data_question_3_correct_3_002
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_002.py
refactory_data_question_3_correct_3_471
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_471.py
refactory_data_question_3_correct_3_281
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_281.py
refactory_data_question_3_correct_3_505
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_505.py
refactory_data_question_3_correct_3_528
def remove_extras(lst): counter = 0 while counter < len(lst): for i in lst[counter + 1:]: if lst[counter] == i: lst.reverse() lst.remove(i) lst.reverse() counter = counter + 1 return lst
./refactory/data/question_3/code/correct/correct_3_528.py
refactory_data_question_3_correct_3_395
def remove_extras(lst): list = [] for element in lst: if element not in list: list.append(element) else: continue return list
./refactory/data/question_3/code/correct/correct_3_395.py
refactory_data_question_3_correct_3_380
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_380.py
refactory_data_question_3_correct_3_207
def remove_extras(lst): new = [] for term in lst: if term not in new: new += [term,] return new
./refactory/data/question_3/code/correct/correct_3_207.py
refactory_data_question_3_correct_3_118
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_118.py
refactory_data_question_3_correct_3_419
def remove_extras(lst): new_list = [] n = len(lst) for counter1 in range(n): if lst[counter1] not in new_list: new_list.append(lst[counter1]) return new_list
./refactory/data/question_3/code/correct/correct_3_419.py
refactory_data_question_3_correct_3_474
def remove_extras(lst): empty_list = [] for i in lst: if i not in empty_list: empty_list += [i] return empty_list pass
./refactory/data/question_3/code/correct/correct_3_474.py
refactory_data_question_3_correct_3_191
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_191.py
refactory_data_question_3_correct_3_083
def remove_extras(lst): lst_final = [] for i in lst: if i not in lst_final: lst_final.append(i) return lst_final
./refactory/data/question_3/code/correct/correct_3_083.py
refactory_data_question_3_correct_3_004
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_004.py
refactory_data_question_3_correct_3_018
def remove_extras(lst): lst.reverse() for i in lst: if lst.count(i) >1: j = 0 while j < lst.count(i): lst.remove(i) j += 1 lst.reverse() return lst
./refactory/data/question_3/code/correct/correct_3_018.py
refactory_data_question_3_correct_3_164
def remove_extras(lst): newlst = [] for element in lst: if element not in newlst: newlst = newlst + [element] return newlst
./refactory/data/question_3/code/correct/correct_3_164.py
refactory_data_question_3_correct_3_486
from collections import OrderedDict def remove_extras(lst): return list(OrderedDict.fromkeys(lst))
./refactory/data/question_3/code/correct/correct_3_486.py
refactory_data_question_3_correct_3_224
def remove_extras(values): output = [] for value in values: if value not in output: output.append(value) return output
./refactory/data/question_3/code/correct/correct_3_224.py
refactory_data_question_3_correct_3_115
def remove_extras(lst): new_lst = [] for item in lst: if item not in new_lst: new_lst.append(item) return new_lst
./refactory/data/question_3/code/correct/correct_3_115.py
refactory_data_question_3_correct_3_139
def remove_extras(lst): new = [] for term in lst: if term not in new: new += [term,] return new
./refactory/data/question_3/code/correct/correct_3_139.py
refactory_data_question_3_correct_3_334
def remove_extras(lst): new = [] for el in lst: if el not in new: new += [el,] return new
./refactory/data/question_3/code/correct/correct_3_334.py
refactory_data_question_3_correct_3_290
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_290.py
refactory_data_question_3_correct_3_063
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_063.py
refactory_data_question_3_correct_3_483
def remove_extras(lst): lst.reverse() for element in lst: if lst.count(element) > 1: lst.remove(element) lst.reverse() return lst
./refactory/data/question_3/code/correct/correct_3_483.py
refactory_data_question_3_correct_3_545
def remove_extras(lst): t=[] for i in lst: if i not in t: t.append(i) else: pass return t
./refactory/data/question_3/code/correct/correct_3_545.py
refactory_data_question_3_correct_3_397
def remove_extras(lst): removed = [] for e in lst: if (e in lst) and (e not in removed): removed.append(e) return removed
./refactory/data/question_3/code/correct/correct_3_397.py
refactory_data_question_3_correct_3_211
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_211.py
refactory_data_question_3_correct_3_166
def remove_extras(lst): if lst == []: return lst new_lst = [lst[0],] for e in lst: if e in new_lst: continue else: new_lst.append(e) return new_lst
./refactory/data/question_3/code/correct/correct_3_166.py
refactory_data_question_3_correct_3_442
def remove_extras(lst): new_lst = [] for num in lst: if num not in new_lst: new_lst += [num] return new_lst
./refactory/data/question_3/code/correct/correct_3_442.py
refactory_data_question_3_correct_3_382
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_382.py
refactory_data_question_3_correct_3_248
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_248.py
refactory_data_question_3_correct_3_403
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_403.py
refactory_data_question_3_correct_3_308
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_308.py
refactory_data_question_3_correct_3_352
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_352.py
refactory_data_question_3_correct_3_112
def remove_extras(lst): new_lst = [] for ele in lst: if ele not in new_lst: new_lst.append(ele) return new_lst
./refactory/data/question_3/code/correct/correct_3_112.py
refactory_data_question_3_correct_3_204
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_204.py
refactory_data_question_3_correct_3_336
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_336.py
refactory_data_question_3_correct_3_359
def remove_extras(lst): res= [] for i in lst: if res.count(i) == 0: res = res + [i] else: res = res return res
./refactory/data/question_3/code/correct/correct_3_359.py
refactory_data_question_3_correct_3_527
def remove_extras(lst): new = [] x = 0 for x in range(len(lst)): if lst[x] not in new: new += [lst[x]] return new
./refactory/data/question_3/code/correct/correct_3_527.py
refactory_data_question_3_correct_3_300
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_300.py
refactory_data_question_3_correct_3_383
def remove_extras(lst): newlst = [] [newlst.append(i) for i in lst if i not in newlst] return newlst
./refactory/data/question_3/code/correct/correct_3_383.py
refactory_data_question_3_correct_3_341
def remove_extras(lst): newlist = [] for i in lst: if i not in newlist: newlist.append(i) return newlist
./refactory/data/question_3/code/correct/correct_3_341.py
refactory_data_question_3_correct_3_113
def remove_extras(lst): non_extra = () count = 0 for el in lst: if el not in non_extra: non_extra += (el,) else: continue lst = list(non_extra) return lst
./refactory/data/question_3/code/correct/correct_3_113.py
refactory_data_question_3_correct_3_530
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_530.py
refactory_data_question_3_correct_3_498
def remove_extras(lst): output = [] for item in lst: if item not in output: output.append(item) return output
./refactory/data/question_3/code/correct/correct_3_498.py
refactory_data_question_3_correct_3_028
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_028.py
refactory_data_question_3_correct_3_298
def remove_extras(lst): new_lst = [] for i in lst: if i in new_lst: new_lst else: new_lst.append(i) return new_lst
./refactory/data/question_3/code/correct/correct_3_298.py
refactory_data_question_3_correct_3_217
def remove_extras(lst): if lst == []: return [] sub_list = [] for elem in lst: if elem not in lst[lst.index(elem)+1:]: return lst elif elem in lst[lst.index(elem)+1:]: sub_list += lst[lst.index(elem)+1:] while elem in sub_list: sub_list.remove(elem) return lst[:lst.index(elem)+1] + sub_list
./refactory/data/question_3/code/correct/correct_3_217.py
refactory_data_question_3_correct_3_237
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_237.py
refactory_data_question_3_correct_3_182
def remove_extras(list): list.reverse() for element in list: if list.count(element)>1: list.remove(element) list.reverse() return list
./refactory/data/question_3/code/correct/correct_3_182.py
refactory_data_question_3_correct_3_235
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_235.py
refactory_data_question_3_correct_3_019
def remove_extras(lst): a=[] for i in lst: if i not in a: a+=[i] return a
./refactory/data/question_3/code/correct/correct_3_019.py
refactory_data_question_3_correct_3_452
def remove_extras(lst): if lst==[]: return [] new_list=[lst[0]] 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_452.py
refactory_data_question_3_correct_3_193
def remove_extras(lst): new_lst=[] for i in lst: if i in new_lst: continue else: new_lst.append(i) return new_lst
./refactory/data/question_3/code/correct/correct_3_193.py
refactory_data_question_3_correct_3_368
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_368.py
refactory_data_question_3_correct_3_402
def remove_extras(lst): new_list = [] for x in lst: if (x in new_list) == False: new_list.append(x) return new_list
./refactory/data/question_3/code/correct/correct_3_402.py
refactory_data_question_3_correct_3_340
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_340.py
refactory_data_question_3_correct_3_324
def remove_extras(lst): new_lst = [] for element in lst: if element in new_lst: continue else: new_lst += [element] return new_lst
./refactory/data/question_3/code/correct/correct_3_324.py
refactory_data_question_3_correct_3_490
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_490.py
refactory_data_question_3_correct_3_086
def remove_extras(lst): # your code here new_lst = [] for i in lst: if not i in new_lst: new_lst.append(i) return new_lst
./refactory/data/question_3/code/correct/correct_3_086.py
refactory_data_question_3_correct_3_469
def remove_extras(lst): # your code here new_list = [] for i in lst: if i not in new_list: new_list = new_list + [i] return new_list
./refactory/data/question_3/code/correct/correct_3_469.py
refactory_data_question_3_correct_3_263
def remove_extras(lst): newlist = [] for i in lst: if i not in newlist: newlist.append(i) return newlist
./refactory/data/question_3/code/correct/correct_3_263.py
refactory_data_question_3_correct_3_120
def remove_extras(lst): a = [] for i in lst: if i not in a: a += [i] return a
./refactory/data/question_3/code/correct/correct_3_120.py
refactory_data_question_3_correct_3_092
def remove_extras(lst): newlist = [] for i in lst: if i not in newlist: newlist.append(i) return newlist
./refactory/data/question_3/code/correct/correct_3_092.py
refactory_data_question_3_correct_3_273
def remove_extras(lst): t = [] for n in lst: if t.count(n) == 0: t = t + [n,] return t
./refactory/data/question_3/code/correct/correct_3_273.py
refactory_data_question_3_correct_3_478
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_478.py
refactory_data_question_3_correct_3_095
def remove_extras(lst): new_lst=[] for element in lst: if element not in new_lst: new_lst += [element] return new_lst
./refactory/data/question_3/code/correct/correct_3_095.py
refactory_data_question_3_correct_3_493
def remove_extras(lst): result = [] for i in lst: if i in result: continue else: result.append(i) return result
./refactory/data/question_3/code/correct/correct_3_493.py
refactory_data_question_3_correct_3_401
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_401.py
refactory_data_question_3_correct_3_141
def remove_extras(lst): new = [] for num in lst: if num in new: continue new.append(num) return new
./refactory/data/question_3/code/correct/correct_3_141.py
refactory_data_question_3_correct_3_099
def remove_extras(lst): l=[] for x in lst: if x not in l: l.append(x) return l
./refactory/data/question_3/code/correct/correct_3_099.py
refactory_data_question_3_correct_3_522
def remove_extras(lst): counter = 0 while counter < len(lst): for i in lst[counter + 1:]: if lst[counter] == i: lst.reverse() lst.remove(i) lst.reverse() counter = counter + 1 return lst
./refactory/data/question_3/code/correct/correct_3_522.py
refactory_data_question_3_correct_3_093
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_093.py
refactory_data_question_3_correct_3_330
def remove_extras(lst): newlst = [] for item in lst: if item not in newlst: newlst.append(item) return newlst
./refactory/data/question_3/code/correct/correct_3_330.py
refactory_data_question_3_correct_3_448
def remove_extras(lst): newseq = [] for element in lst: if element not in newseq: newseq += [element] return newseq
./refactory/data/question_3/code/correct/correct_3_448.py
refactory_data_question_3_correct_3_521
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_521.py
refactory_data_question_3_correct_3_279
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_279.py
refactory_data_question_3_correct_3_174
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_174.py
refactory_data_question_3_correct_3_006
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_006.py
refactory_data_question_3_correct_3_389
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_389.py
refactory_data_question_3_correct_3_178
def remove_extras(lst): new_lst = [] for i in lst: if i not in new_lst: new_lst += [i] return new_lst pass
./refactory/data/question_3/code/correct/correct_3_178.py
refactory_data_question_3_correct_3_423
def remove_extras(lst): lst1 = [] for item in lst: if (item in lst1): continue else: lst1 += [item,] return lst1
./refactory/data/question_3/code/correct/correct_3_423.py
refactory_data_question_3_correct_3_047
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_047.py