original_docstring: Wait for and then return a connected socket..
  
      Opens a TCP connection on port 8080, and waits for a single client.
  
      
docstring: Wait for and then return a connected socket
  Opens a TCP connection on port 8080, and waits for a single client.
docstring_tokens: Wait for and then return a connected socket Opens a TCP connection on port 8080 and waits for a single client .
code: def receive_connection():
      """Wait for and then return a connected socket..
  
      Opens a TCP connection on port 8080, and waits for a single client.
  
      """
      server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
      server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
      server.bind(('localhost', 8080))
      server.listen(1)
      client = server.accept()[0]
      server.close()
      return client
code_tokens: def receive_connection ( ) : server = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) server . setsockopt ( socket . SOL_SOCKET , socket . SO_REUSEADDR , 1 ) server . bind ( ( 'localhost' , 8080 ) ) server . listen ( 1 ) client = server . accept ( ) [ 0 ] server . close ( ) return client
short_docstring: Wait for and then return a connected socket..
short_docstring_tokens: Wait for and then return a connected socket ..
comment: """Wait for and then return a connected socket..
  
      Opens a TCP connection on port 8080, and waits for a single client.
  
      """