parameters: (self)
docstring: removes duplicates from list
docstring_summary: removes duplicates from list
docstring_tokens: removes duplicates from list
function: def remove_duplicates(self):
          """ removes duplicates from list """
          duplicates = set()
          current = self.head
  
          while current is not None:
              if current.data not in duplicates:
                  duplicates.add(current.data)
                  current = current.next
              else:
                  previous_node = current.previous
                  del_node = current
                  current = current.next
                  previous_node.next = current
                  if current is not None:
                      current.previous = previous_node
                  del_node.previous = None
                  del_node.next = None
                  del del_node
function_tokens: def remove_duplicates ( self ) : duplicates = set ( ) current = self . head while current is not None : if current . data not in duplicates : duplicates . add ( current . data ) current = current . next else : previous_node = current . previous del_node = current current = current . next previous_node . next = current if current is not None : current . previous = previous_node del_node . previous = None del_node . next = None del del_node