Gets the string value from qualitativeUnitMap with fallback based on style.
354690
private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) {
        EnumMap<AbsoluteUnit, EnumMap<Direction, String>> unitMap;
        EnumMap<Direction, String> dirMap;

        do {
            unitMap = qualitativeUnitMap.get(style);
            if (unitMap != null) {
                dirMap = unitMap.get(unit);
                if (dirMap != null) {
                    String result = dirMap.get(direction);
                    if (result != null) {
                        return result;
                    }
                }

            }

            // Consider other styles from alias fallback.
            // Data loading guaranteed no endless loops.
        } while ((style = fallbackCache[style.ordinal()]) != null);
        return null;
    }
637568
private String getWthInsiCodeOr(Map wthData) {
        String insiName = getWthInsiCode(wthData);
        if (insiName.equals("")) {
            return getNextDefName();
        } else {
            return insiName;
        }
    }
798780
def valueFromString(self, value, extra=None, db=None):
        
        return projex.text.nativestring(value).lower() == 'true'
915703
function(string) {
		var hit = null,
			looks = false;
		if (gui.Type.isString(string)) {
			hit = this.extractKey(string);
			looks = hit && hit[0] === string;
		}
		return looks;
	}
736296
public String getStringValue(String elemName)
    {
        if (_valueMap.containsKey(elemName))
            return _valueMap.get(elemName).toString();
        return null;
    }
566598
function toBoolean(str, fallback) {
    if (typeof str === 'boolean') {
        return str;
    }
    if (REGEXP_TRUE.test(str)) {
        return true;
    }
    if (REGEXP_FALSE.test(str)) {
        return false;
    }
    return fallback;
}
238047
private String convertDefaultValueToString() {
        final Object initialValue = getArgumentValue();
        if (initialValue != null) {
            if (isCollection() && ((Collection<?>) initialValue).isEmpty()) {
                // treat empty collections the same as uninitialized non-collection types
                return NULL_ARGUMENT_STRING;
            } else {
                // this is an initialized primitive type or a non-empty collection
                return initialValue.toString();
            }
        } else {
            return NULL_ARGUMENT_STRING;
        }
    }
1077074
private String getString(I_CmsXmlContentLocation val, String path, String defaultValue) {

        if ((val != null)) {
            I_CmsXmlContentValueLocation subVal = val.getSubValue(path);
            if ((subVal != null) && (subVal.getValue() != null)) {
                return subVal.getValue().getStringValue(m_cms);
            }
        }
        return defaultValue;
    }
142492
def visit(self, node):
        """"""
        method = 'visit_' + type(node).__name__
        return getattr(self, method, self.fallback)(node)
1244003
def get_localized_property(context, field=None, language=None):
    '''
    
    '''
    if language:
        return getattr(context, get_real_fieldname(field, language))
    
    if hasattr(settings, 'FALLBACK_LANGUAGES'):
        attrs = [translation.get_language()]
        attrs += get_fallback_languages()
    else:
        attrs = [
            translation.get_language(),
            translation.get_language()[:2],
            settings.LANGUAGE_CODE, 
        ]
    
    def predicate(x):
        value = getattr(context, get_real_fieldname(field, x), None)
        return value if valid_for_gettext(value) else None

    return first_match(predicate, attrs)
136621
public static String getCharset(@NotNull String mime, String fallback) {
        // TODO: exceptions json and which other should also be marked as text
        if (mime.startsWith("text")) {
            return defaultContentEncoding;
        }

        return fallback;
    }
258659
private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet) {
        TypedArray typedArray = getContext()
                .obtainStyledAttributes(attributeSet, R.styleable.AbstractValidateableView);
        try {
            obtainHelperText(typedArray);
            obtainHelperTextColor(typedArray);
            obtainErrorColor(typedArray);
            obtainValidateOnValueChange(typedArray);
            obtainValidateOnFocusLost(typedArray);
        } finally {
            typedArray.recycle();
        }
    }
1057798
def _read_style(style):
    ''' '''

    if isinstance(style, string_types):
        style = [style]
    else:
        style = list(style)

    return style
613450
public static String dotGetNullableString(final Map map, final String pathString) {
        return dotGetNullable(map, String.class, pathString);
    }
725155
function getLocaleDayPeriods(locale, formStyle, width) {
    var /** @type {?} */ data = findLocaleData(locale);
    var /** @type {?} */ amPmData = /** @type {?} */ ([data[1 /* DayPeriodsFormat */], data[2 /* DayPeriodsStandalone */]]);
    var /** @type {?} */ amPm = getLastDefinedValue(amPmData, formStyle);
    return getLastDefinedValue(amPm, width);
}
105963
function getStyle(el,styleProp) {
  if (el.currentStyle)
    var y = el.currentStyle[styleProp];
  else if (window.getComputedStyle)
    var y = (window.getComputedStyle||document.defaultView.getComputedStyle)(el,null).getPropertyValue(styleProp);
  return y;
}
195441
private String getValueTypeDotString() {
        PlanNodeType pnt = getPlanNodeType();
        if (isInline()) {
            return "fontcolor=\"white\" style=\"filled\" fillcolor=\"red\"";
        }
        if (pnt == PlanNodeType.SEND || pnt == PlanNodeType.RECEIVE || pnt == PlanNodeType.MERGERECEIVE) {
            return "fontcolor=\"white\" style=\"filled\" fillcolor=\"black\"";
        }
        return "";
    }