old_contents: from tornado import web
  
  
  class NodesHandler(web.RequestHandler):
  
      def get(self):
          pattern = self.get_argument('pattern', None)
          if not pattern:
              self.set_status(400)
              return
  
          controller = self.settings['controller']
          nodes = controller.search(pattern)
          self.write(nodes)
  
      def post(self):
          acd_paths = self.get_arguments('acd_paths[]')
  
          controller = self.settings['controller']
          controller.update_cache_from(acd_paths)
  
      def put(self, id_):
          if id_ is None:
              self.set_status(400)
              return
  
          controller = self.settings['controller']
          controller.download(id_)
  
  
  class EqualityHandler(web.RequestHandler):
  
      def get(self):
          nodes = self.get_arguments('nodes')
  
          controller = self.settings['controller']
          result = controller.compare(nodes)
          self.write(result)
  
new_contents: from tornado import web
  
  
  class NodesHandler(web.RequestHandler):
  
      def get(self):
          pattern = self.get_argument('pattern', None)
          if not pattern:
              self.set_status(400)
              return
  
          controller = self.settings['controller']
          nodes = controller.search(pattern)
          self.write(nodes)
  
      def post(self):
          acd_paths = self.get_arguments('acd_paths[]')
  
          controller = self.settings['controller']
          controller.update_cache_from(acd_paths)
  
      def put(self, id_):
          if id_ is None:
              self.set_status(400)
              return
  
          controller = self.settings['controller']
          controller.download(id_)
  
  
  class EqualityHandler(web.RequestHandler):
  
      def get(self):
          nodes = self.get_arguments('nodes[]')
  
          controller = self.settings['controller']
          result = controller.compare(nodes)
          self.write(result)
  
subject: fix parameter