The name of this application.

        This is taken from the :attr:`import_name` and is used for
        debugging purposes.
429276
def name(self) -> str:
        
        if self.import_name == '__main__':
            path = Path(getattr(sys.modules['__main__'], '__file__', '__main__.py'))
            return path.stem
        return self.import_name
1206159
def imported(self):
        

        if not hasattr(self, "_imported"):
            self._imported = self._discover_import()
        return self._imported
932035
def name(self):
        
        # Name, explicitely set for the window.
        if self.chosen_name:
            return self.chosen_name
        else:
            pane = self.active_pane
            if pane:
                return pane.name

        return ''
933515
def name(self):
        

        if self.moc is None:
            self.moc = MOC()

        self.moc.name = self.params.pop()
1072445
def name(self):
        
        ret = ctypes.c_char_p()
        success = ctypes.c_int()
        check_call(_LIB.MXSymbolGetName(
            self.handle, ctypes.byref(ret), ctypes.byref(success)))
        if success.value != 0:
            return py_str(ret.value)
        else:
            return None
1296361
def import_class(self, import_name):
        
        module_name, class_name = import_name.rsplit(".", 1)
        mod = import_module(module_name)
        check_class = getattr(mod, class_name)
        self.mapping[check_class.name] = check_class
        logger.info("successfully loaded class %s", check_class)
        return check_class
417069
public static String getAppName() {
		String appName=System.getProperty(JKContextConstants.JK_APP_NAME);
		if (appName == null) {
			String mainClassName = JKDebugUtil.getMainClassName();
			return mainClassName.substring(0, mainClassName.lastIndexOf("."));
		}
		return appName;
	}
109850
def name(self):
        
        python = self._python
        if self._python.startswith('pypy'):
            # get_env_name adds py-prefix
            python = python[2:]
        return environment.get_env_name(self.tool_name, python, self._requirements)
670172
def _get_name(self):
        
        if self._name is None:
            self._name = self._generate_name()
        return self._name
137160
def python_module_name(self) -> str:
        
        if not self.is_python:
            return ""
        filepath = self.source_filename_rel_python_root
        dirs_and_base = splitext(filepath)[0]
        dir_and_file_parts = dirs_and_base.split(sep)
        return ".".join(dir_and_file_parts)
712483
def _get_package_name(module):
    
    try:
        # if __package__ is defined, use it
        package_name = module.__package__
    except AttributeError:
        package_name = None  
        
    if package_name is None:
        # if __path__ is defined, the package name is the module name
        package_name = module.__name__
        if not hasattr(module, '__path__'):
            # if __path__ is not defined, the package name is the
            # string before the last "." of the fully-qualified module name
            package_name = package_name.rpartition('.')[0]
           
    return package_name
844513
def name(self):
        
        if hasattr(self._element, "name"):
            return self._element.name
        else:
            return str(self._element)
1272818
def name(self, name=None):
        ''''''
        if name:
            self._name = name
            return self
        return self._name
933217
def name(self):
        
        if 'name' not in self.metainfo['info'] and self.path is not None:
            self.metainfo['info']['name'] = os.path.basename(self.path)
        return self.metainfo['info'].get('name', None)
624179
def _parse_application_section(cfg, parser, section):
    '''
    
    '''
    try:
        sys.path.append(cfg.get(section, 'pythonpath'))
    except ConfigParser.NoOptionError:
        pass

    module = cfg.get(section, 'import')
    name = cfg.get(section, 'name')
    try:
        applications.load(module, name)
    except ImportError as e:
        raise error.FeatError(
            "Loading application %s.%s failed, requested from section %s" %
            (module, name, section, ), cause=e)
1073534
def name(self):
        

        from rows.plugins.utils import slug

        name = self.meta.get("name", None)
        if name is not None:
            return slug(name)

        source = self.meta.get("source", None)
        if source and source.uri:
            return slug(os.path.splitext(Path(source.uri).name)[0])

        return "table1"
380471
def get_app_names(self):
        
        app_names = set()
        for name in self.apps:
            app_names.add(name)

        return app_names