Get country_short
321850
def get_country_short(self, ip):
        '''  '''
        rec = self.get_all(ip)
        return rec and rec.country_short
536557
public Short getAsShort(String key) {
        Object value = mValues.get(key);
        try {
            return value != null ? ((Number) value).shortValue() : null;
        } catch (ClassCastException e) {
            if (value instanceof CharSequence) {
                try {
                    return Short.valueOf(value.toString());
                } catch (NumberFormatException e2) {
                    DLog.e(TAG, "Cannot parse Short value for " + value + " at key " + key);
                    return null;
                }
            } else {
                DLog.e(TAG, "Cannot cast value for " + key + " to a Short: " + value, e);
                return null;
            }
        }
    }
679193
public short getShort(String key) {
		addToDefaults(key, null);
		String value = getRequired(key);
		return Short.valueOf(value);
	}
1110388
public short getShort(int index)
    {
        checkIndexLength(index, SizeOf.SIZE_OF_SHORT);
        return unsafe.getShort(base, address + index);
    }
620916
def get_shorty_idx_value(self):
        
        if self.shorty_idx_value == None:
            self.shorty_idx_value = self.CM.get_string(self.shorty_idx)
        return self.shorty_idx_value
422921
def bank_short_name(self):
        """"""
        entry = registry.get('bic').get(self.compact)
        if entry:
            return entry.get('short_name')
758519
private void skipCountry() {
        if (!atTerminator()) {
            if (id[index] == UNDERSCORE || id[index] == HYPHEN) {
                ++index;
            }
            /*
             * Save the index point after the separator, since the format
             * requires two separators if the country is not present.
             */
            int oldIndex = index;

            skipUntilTerminatorOrIDSeparator();
            int charsSkipped = index - oldIndex;
            if (charsSkipped < 2 || charsSkipped > 3) {
                index = oldIndex;
            }
        }
    }
456480
def country_bank_code(self):
        """"""
        entry = registry.get('bic').get(self.compact)
        if entry:
            return entry.get('bank_code')
185120
def countries_for_select
      ::I18nData.countries.map{|pair| pair.reverse}.sort{|x,y| x.first <=> y.first}
    end
1050356
def to_string_short(self):
        
        if hasattr(self, 'constrained_by') and len(self.constrained_by) > 0:
            return "* {:>30}: {}".format(self.uniquetwig_trunc, self.get_quantity() if hasattr(self, 'quantity') else self.get_value())
        else:
            return "{:>32}: {}".format(self.uniquetwig_trunc, self.get_quantity() if hasattr(self, 'quantity') else self.get_value())
540962
public static function __($short, $chunks){
		$translated = self::_($short);
		foreach($chunks as $k=>$v){
			$translated = str_replace('%'.$k.'%', $v, $translated);
			}
		return $translated;
		}
851560
def read_short(self):
        """"""
        self.bitcount = self.bits = 0
        return unpack('>H', self.input.read(2))[0]
238693
public String printShortLocaleDate()
  {
    _date.setTime(_localTimeOfEpoch);

    if (_shortDateFormat == null)
      _shortDateFormat = DateFormat.getDateInstance(DateFormat.SHORT);

    return _shortDateFormat.format(_date);
  }
870829
def get_country(self):
        """"""

        doc = self._request(self.ws_prefix + ".getInfo", True)

        country = _extract(doc, "country")

        if country is None or country == "None":
            return None
        else:
            return Country(country, self.network)
534630
public String printShortLocaleTime()
  {
    _date.setTime(_localTimeOfEpoch);

    if (_shortTimeFormat == null)
      _shortTimeFormat = DateFormat.getTimeInstance(DateFormat.SHORT);

    return _shortTimeFormat.format(_date);
  }
1102093
public short getShort(String key, short defaultValue) {
    if (containsKey(key)) {
      return Short.parseShort(get(key));
    } else {
      return defaultValue;
    }
  }
922796
def _short_repr(obj):
  """"""
  stringified = pprint.saferepr(obj)
  if len(stringified) > 200:
    return '%s... (%d bytes)' % (stringified[:200], len(stringified))
  return stringified