Get an identicon configuration parameter.

    Precedance order is:
        - application config (`udata.cfg`)
        - theme config
        - default
960243
def get_config(key):
    '''
    
    '''
    key = 'AVATAR_{0}'.format(key.upper())
    local_config = current_app.config.get(key)
    return local_config or getattr(theme.current, key, DEFAULTS[key])
262882
def get_default_config(self):
        
        config = super(NumaCollector, self).get_default_config()
        config.update({
            'path':     'numa',
            'bin':      self.find_binary('numactl'),
        })
        return config
1191487
def get_default_config(self):
        
        config = super(JCollectdCollector, self).get_default_config()
        config.update({
            'path':     'jvm',
            'listener_host': '127.0.0.1',
            'listener_port': 25826,
        })
        return config
590462
def get_default_config(self):
        
        config = super(KSMCollector, self).get_default_config()
        config.update({
            'path': 'ksm',
            'ksm_path': '/sys/kernel/mm/ksm'})
        return config
876700
private void obtainOverrideNavigationIcon() {
        boolean overrideNavigationIcon =
                ThemeUtil.getBoolean(this, R.attr.overrideNavigationIcon, true);
        overrideNavigationIcon(overrideNavigationIcon);
    }
352144
private String getConsoleIconPath(DesiredCapabilities cap) {
    String name = consoleIconName(cap);
    String path = "org/openqa/grid/images/";
    InputStream in =
        Thread.currentThread().getContextClassLoader()
            .getResourceAsStream(path + name + ".png");
    if (in == null) {
      return null;
    }
    return "/grid/resources/" + path + name + ".png";
  }
760911
def get_default_config(self):
        
        config = super(SignalfxHandler, self).get_default_config()

        config.update({
            'url': 'https://ingest.signalfx.com/v2/datapoint',
            'batch': 300,
            'filter_metrics_regex': '',
            # Don't wait more than 30 sec between pushes
            'batch_max_interval': 30,
            'auth_token': '',
        })

        return config
738306
def _getConfiguration(self):
        
        configDirectoryPath = os.path.join("application", "config")
        config = Config(configDirectoryPath)
        configData = config.getData()

        # setting application parameters
        reactor.suggestThreadPoolSize(
            int(configData["performance"]["threadPoolSize"])
        )

        return configData
241644
def get_default_config(self):
        
        config = super(StatsiteHandler, self).get_default_config()

        config.update({
            'host': '',
            'tcpport': 1234,
            'udpport': 1234,
            'timeout': 5,
        })

        return config
157609
def get_default_config_help(self):
        
        config = super(SignalfxHandler, self).get_default_config_help()

        config.update({
            'url': 'Where to send metrics',
            'batch': 'How many to store before sending',
            'filter_metrics_regex': 'Comma separated collector:regex filters',
            'auth_token': 'Org API token to use when sending metrics',
        })

        return config
547362
def get_default_config(self):
        
        config = super(LogentriesDiamondHandler, self).get_default_config()

        config.update({
            'log_token': '',
            'queue_size': 100
        })

        return config
1207976
@Override
	public String getConfigPath() {
		return JKThreadLocal.getValue(JKContextConstants.JK_CONFIG_PATH, JKContextConstants.JK_CONFIG_PATH_DEFAULT).toString();
	}
182102
def get_config(self, retrieve="all"):
        """"""
        get_startup = retrieve == "all" or retrieve == "startup"
        get_running = retrieve == "all" or retrieve == "running"
        get_candidate = retrieve == "all" or retrieve == "candidate"

        if retrieve == "all" or get_running:
            result = self._execute_command_with_vdom('show')
            text_result = '\n'.join(result)

            return {
                'startup': u"",
                'running': py23_compat.text_type(text_result),
                'candidate': u"",
            }

        elif get_startup or get_candidate:
            return {
                'startup': u"",
                'running': u"",
                'candidate': u"",
            }
727156
private static String getDeepestNestedElementName(String configDisplayId) {
        int start = configDisplayId.lastIndexOf("]/");
        if (start > 1) {
            int end = configDisplayId.indexOf('[', start += 2);
            if (end > start)
                return configDisplayId.substring(start, end);
        }
        return null;
    }
347888
def get_default_config(self):
        
        config = super(VarnishCollector, self).get_default_config()
        config.update({
            'path':             'varnish',
            'bin':             '/usr/bin/varnishstat',
            'use_sudo':         False,
            'sudo_cmd':         '/usr/bin/sudo',
        })
        return config
205606
def internal(identifier, size):
    '''
    
    '''
    identicon = generate_pydenticon(identifier, size)
    response = send_file(io.BytesIO(identicon), mimetype='image/png')
    etag = hashlib.sha1(identicon).hexdigest()
    response.set_etag(etag)
    return response
1363039
def identifier(self):
        

        if not self.section.name:
            return self.name
        return preferences_settings.SECTION_KEY_SEPARATOR.join([self.section.name, self.name])