

def ask_for_package(self, class_name, package=None, default_value=''):
    StatusManager().hide_status('ask_package_description')
    class_path = '.'.join([str(x) for x in [class_name, class_name] if x])
    if (not package):
        self.organize_step_four()
    elif isinstance(package, int):
        sublime.set_timeout((lambda : self.view.window().show_input_panel(('Package for class "%s":' % class_name), default_value, (lambda pkg: self.ask_for_package(class_name, pkg)), (lambda pkg: self.ask_description(pkg, class_name)), (lambda : self.ask_for_package(class_name, None)))), 10)
    elif JavaUtils().is_class_path(class_path):
        if (class_path and (class_path not in self.importedTypes)):
            self.importedTypes.append(class_path)
        self.organize_step_four()
    else:
        sublime.error_message('Invalid package naming')
        self.ask_for_package(class_name, (- 1), package)

dataset/ETHPy150Open spywhere/Javatar/commands/operations/organize_imports.py JavatarOrganizeImports.ask_for_package/VarMisuse@44/61 `package`->`class_name`