Returns the shortYearCutoff option value.
183032
public DatePickerShortYearCutOff getShortYearCutoff()
	{
		IComplexOption shortYearCutoff = getComplexOption("shortYearCutoff");

		if (shortYearCutoff != null && shortYearCutoff instanceof DatePickerShortYearCutOff)
		{
			return (DatePickerShortYearCutOff) shortYearCutoff;
		}

		return new DatePickerShortYearCutOff("+10");
	}
1126048
def get_date_range_this_year(now=None):
    """"""
    if now is None:
        now = datetime.datetime.now().date()
    if now.month <= settings.YEAR_TURNOVER_MONTH:
        date_start = datetime.datetime(now.year - 1, 8, 1)  # TODO; don't hardcode these values
        date_end = datetime.datetime(now.year, 7, 1)
    else:
        date_start = datetime.datetime(now.year, 8, 1)
        date_end = datetime.datetime(now.year + 1, 7, 1)
    return timezone.make_aware(date_start), timezone.make_aware(date_end)
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
1267153
private int readOptionalInt(JSONValue val) {

        JSONString str = null == val ? null : val.isString();
        if (str != null) {
            try {
                return Integer.valueOf(str.stringValue()).intValue();
            } catch (@SuppressWarnings("unused") NumberFormatException e) {
                // Do nothing, return default value
            }
        }
        return 0;
    }
965400
public short getShort(String columnName, short defaultValue) {
        int index = getColumnIndex(columnName);
        if (isValidIndex(index)) {
            return getShort(index);
        } else {
            return defaultValue;
        }
    }
276754
public <T> T get(@NonNull String optionName) {
      optionName = optionName.replaceAll("^-+", "");
      NamedOption option = options.get(optionName);

      if (option == null) {
         return Cast.as(unamedOptions.get(optionName));
      }

      if (option.isBoolean()) {
         return option.getValue() == null ? Cast.as(Boolean.FALSE) : option.getValue();
      }

      return option.getValue();
   }
216212
def GetValue(self):
    '''
    
    '''
    self.AssertInitialization('Choice')
    if self._widget.GetValue() == self._DEFAULT_VALUE:
      return None
    return ' '.join(
      [self._action.option_strings[0] if self._action.option_strings else '',  # get the verbose copy if available
       self._widget.GetValue()])
708544
def _get_secedit_value(option):
    '''
    
    '''
    secedit_data = _get_secedit_data()
    for _line in secedit_data:
        if _line.startswith(option):
            return _line.split('=')[1].strip()
    return 'Not Defined'
471248
@Override
	public double getValue(double evaluationTime, AnalyticModelInterface model) {
		ForwardCurveInterface	forwardCurve	= model.getForwardCurve(forwardCurveName);
		DiscountCurveInterface	discountCurve	= model.getDiscountCurve(discountCurveName);

		DiscountCurveInterface	discountCurveForForward = null;
		if(forwardCurve == null && forwardCurveName != null && forwardCurveName.length() > 0) {
			// User might like to get forward from discount curve.
			discountCurveForForward	= model.getDiscountCurve(forwardCurveName);

			if(discountCurveForForward == null) {
				// User specified a name for the forward curve, but no curve was found.
				throw new IllegalArgumentException("No curve of the name " + forwardCurveName + " was found in the model.");
			}
		}

		double forward		= spread;
		if(forwardCurve != null) {
			forward			+= forwardCurve.getForward(model, maturity);
		}
		else if(discountCurveForForward != null) {
			forward			+= (discountCurveForForward.getDiscountFactor(maturity) / discountCurveForForward.getDiscountFactor(maturity+paymentOffset) - 1.0) / paymentOffset;
		}

		double discountFactor	= maturity+paymentOffset > evaluationTime ? discountCurve.getDiscountFactor(model, maturity+paymentOffset) : 0.0;

		return forward * discountFactor / discountCurve.getDiscountFactor(model, evaluationTime);
	}
316464
public Object getOptionValue( String name )
    {
        if (!hasOptionValue( name )) throw new IllegalArgumentException( "Don't know option: " + name );
        return getOptionValues().get( name );
    }
1117983
def GetValue(self):
    '''
    
    '''
    if not self._widget.GetValue() or len(self._widget.GetValue()) <= 0:
        return None
    else:
        return self._action.option_strings[0]
248174
protected short getShort()
  {
    if (tc.isEntryEnabled()) Tr.entry(tc, "getShort",this);

    short data = _buffer.getShort();

    if (tc.isEntryEnabled()) Tr.exit(tc, "getShort", new Short(data));
    return data;
  }
212716
public short shortValue() throws OtpErlangRangeException {
        final long l = longValue();
        final short i = (short) l;

        if (i != l) {
            throw new OtpErlangRangeException("Value too large for short: "
                    + val);
        }

        return i;
    }
561302
public String getOptionValue(final String optionName) {
        if (optionName.length() == 1) {
            return getOptionValue(optionName.charAt(0));
        }
        return (String) commandLine.getValue("--" + optionName);
    }
964839
Long getPrecisionAct() {

        Integer temp = getPrecision();

        if (temp == null) {
            return ValuePool.getLong(Long.MAX_VALUE);
        } else {
            return ValuePool.getLong(temp.longValue());
        }
    }
319411
public byte getNearestOccidentalValue() {
		if (m_value == _NONE || m_value == _NATURAL)
			return 0;
		if ((m_value == _DOUBLE_FLAT) || (m_value == _DOUBLE_SHARP))
			return (byte)m_value;
		if (m_value < 0)
			return -1;//flat
		if (m_value > 0)
			return 1;//sharp
		return 0;
	}
77677
public short getShort(String key, short defaultValue) {
		addToDefaults(key, Short.toString(defaultValue));
		String value = get(key);
		if (value == null) {
			return defaultValue;
		} else {
			return Short.valueOf(value);
		}
	}