

def update(self, file_path, namespace=None):
    '\n        Updates the script index with the Groovy methods in the script file.\n\n        :rtype: None\n\n        '
    file_path = os.path.abspath(file_path)
    methods = self._get_methods(file_path)
    if (namespace is None):
        namespace = self._get_filename(file_path)
    self._maybe_create_namespace(namespace)
    self.source_file_map[file_path] = file_path
    self.namespace_map[namespace].update(methods)

dataset/ETHPy150Open espeed/bulbs/bulbs/groovy.py GroovyScripts.update/VarMisuse@71/137 `namespace`->`file_path`