original_docstring: 
          Start listening on the port specified
          
docstring: Start listening on the port specified
docstring_tokens: Start listening on the port specified
code: def bind(self):
          """
          Start listening on the port specified
          """
          factory = WebSocketServerFactory(debug=False)
          factory.noisy = False
          factory.server = self
          factory.protocol = MdcloudWebsocketServerProtocol
  
          web_resource = File(resource_filename(__name__, 'static/build/client'))
  
          rootResource = WSGIRootResource(web_resource, {'ws': WebSocketResource(factory)})
  
          if not self.no_ssl and self.settings and self.settings.ssl.enabled:
              print '*' * 60
              print 'Running in secure mode'
              print 'Ssl key:         %s' % self.settings.ssl.key
              print 'Ssl certificate: %s' % self.settings.ssl.cert
              print '*' * 60
  
              listen_ssl(self.port, Site(rootResource), interface=self.settings.websocket_ip)
  
          else:
  
              print '*' * 60
              print 'Running on 0.0.0.0 without SSL'
              print '*' * 60
              reactor.listenTCP(self.port, Site(rootResource), interface='0.0.0.0')
  
  
              # if getattr(self.settings, 'demo_mode', False):
              #
              # else:
              #     print '*' * 60
              #     print 'INSECURE MODE'
              #     print 'Running on 127.0.0.1 only'
              #     print '*' * 60
              #     reactor.listenTCP(self.port, Site(rootResource), interface='127.0.0.1')
code_tokens: def bind ( self ) : factory = WebSocketServerFactory ( debug = False ) factory . noisy = False factory . server = self factory . protocol = MdcloudWebsocketServerProtocol web_resource = File ( resource_filename ( __name__ , 'static/build/client' ) ) rootResource = WSGIRootResource ( web_resource , { 'ws' : WebSocketResource ( factory ) } ) if not self . no_ssl and self . settings and self . settings . ssl . enabled : print '*' * 60 print 'Running in secure mode' print 'Ssl key:         %s' % self . settings . ssl . key print 'Ssl certificate: %s' % self . settings . ssl . cert print '*' * 60 listen_ssl ( self . port , Site ( rootResource ) , interface = self . settings . websocket_ip ) else : print '*' * 60 print 'Running on 0.0.0.0 without SSL' print '*' * 60 reactor . listenTCP ( self . port , Site ( rootResource ) , interface = '0.0.0.0' )
short_docstring: Start listening on the port specified
short_docstring_tokens: Start listening on the port specified
comment: """
          Start listening on the port specified
          """$SEP$# if getattr(self.settings, 'demo_mode', False):$SEP$#$SEP$# else:$SEP$#     print '*' * 60$SEP$#     print 'INSECURE MODE'$SEP$#     print 'Running on 127.0.0.1 only'$SEP$#     print '*' * 60$SEP$#     reactor.listenTCP(self.port, Site(rootResource), interface='127.0.0.1')