Returns the tune requested by its reference number. <br>
Returns null if ref number is not found

@return a Tune or null
320828
public Tune getTune(int referenceNumber) {
		Object o = m_tunes.get(new Integer(referenceNumber));
		if (o != null)
			return (Tune) o;
		else
			return null;
	}
537521
function get(ref){
    if (ref && (isNode(ref) || ref.nodeType))
      return ref;
    else
      return typeof ref == 'string' ? document.getElementById(ref) : null;
  }
1334318
public Constituent getRef() {
    if (PTBConstituent_Type.featOkTst && ((PTBConstituent_Type)jcasType).casFeat_ref == null)
      jcasType.jcas.throwFeatMissing("ref", "de.julielab.jules.types.PTBConstituent");
    return (Constituent)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((PTBConstituent_Type)jcasType).casFeatCode_ref)));}
723298
@Deprecated
  protected final @Nullable String getMediaRef(@NotNull MediaRequest mediaRequest) {
    return getMediaRef(mediaRequest, null);
  }
1343681
@SuppressWarnings("static-method")
	public String findStringValue(JvmAnnotationReference reference) {
		assert reference != null;
		for (final JvmAnnotationValue value : reference.getValues()) {
			if (value instanceof JvmStringAnnotationValue) {
				for (final String strValue : ((JvmStringAnnotationValue) value).getValues()) {
					if (strValue != null) {
						return strValue;
					}
				}
			}
		}
		return null;
	}
1321629
@Override
	public String getText() {
		if (type < TEXT || (type == ENTITY_REF && unresolved)) {
			return null;
		} else if (text == null) {
			return "";
		} else {
			return text;
		}
	}
906201
public Record getReferenceRecord()
    {
        Record recordReference = this.getReferenceRecord(null);
        if (recordReference != null)
        	if (recordReference.getRecordOwner() == null)	// Only add it if it doesn't belong to any other screen.
        {
            RecordOwner recordOwner = null;
            if (this.getRecord() != null)
                recordOwner = Record.findRecordOwner(this.getRecord());
            if (recordOwner != null)
                recordOwner.addRecord(recordReference, false);
            if (this.getRecord() != null)
            {   // Make sure record is freed when this record is freed.
                FreeOnFreeHandler listener = (FreeOnFreeHandler)this.getRecord().getListener(FreeOnFreeHandler.class);
                while (listener != null)
                {
                    if (listener.getDependentObject() == recordReference)
                        break;  // listener is already there
                    listener = (FreeOnFreeHandler)listener.getListener(FreeOnFreeHandler.class);
                }
                if (listener == null)
                    this.getRecord().addListener(new FreeOnFreeHandler(recordReference));
            }
        }
        return recordReference;
    }
815353
private int getSkipCorrectedReference(List<Integer> tokenPositions, int refNumber) {
    int correctedRef = 0;
    int i = 0;
    for (int tokenPosition : tokenPositions) {
      if (i++ >= refNumber) {
        break;
      }
      correctedRef += tokenPosition;
    }
    return correctedRef - 1;
  }
299544
public static String getTerm(IndexInput inTerm, Long ref) throws IOException {
    try {
      inTerm.seek(ref);
      return inTerm.readString();
    } catch (Exception e) {
      throw new IOException(e);
    }
  }
789965
public SoundCloudTrack getCurrentTrack() {
        if (mCurrentTrackIndex > -1 && mCurrentTrackIndex < mSoundCloudPlaylist.getTracks().size()) {
            return mSoundCloudPlaylist.getTracks().get(mCurrentTrackIndex);
        }
        return null;
    }
816531
def get_tuning(self):
        
        if self.instrument and self.instrument.tuning:
            return self.instrument.tuning
        return self.tuning
63912
public String getReferenceRecordName()
    {
        if (m_recordReference != null)
            return this.getReferenceRecord().getTableNames(false);
        else
        {   // This code just takes a guess
            if (this.getClass().getName().indexOf("Field") != -1)
                return this.getClass().getName().substring(Math.max(0, this.getClass().getName().lastIndexOf('.') + 1), this.getClass().getName().indexOf("Field"));
            else if (this.getFieldName(false, false).indexOf("ID") != -1)
                return this.getFieldName(false, false).substring(0, this.getFieldName(false, false).indexOf("ID"));
            else
                this.getFieldName(false, false);
        }
        return Constants.BLANK;   // Never
    }
257575
public static String getOidFromRef(String ref) {
        Matcher matcher = match(ref);
        return matcher != null ? matcher.group(2) : null;
    }
193827
public static String getRelativeRef(String ref) {
        Matcher matcher = match(ref);
        return matcher != null ? String.format("/%s/%s", matcher.group(1), matcher.group(2)) : null;
    }
448165
def getreference(self, validate=True):
        """"""

        if self.offset is None: return None #nothing to test
        if self.ref:
            ref = self.doc[self.ref]
        else:
            ref = self.finddefaultreference()

        if not ref:
            raise UnresolvableTextContent("Default reference for phonetic content not found!")
        elif not ref.hasphon(self.cls):
            raise UnresolvableTextContent("Reference has no such phonetic content (class=" + self.cls+")")
        elif validate and self.phon() != ref.textcontent(self.cls).phon()[self.offset:self.offset+len(self.data[0])]:
            raise UnresolvableTextContent("Reference (class=" + self.cls+") found but no phonetic match at specified offset ("+str(self.offset)+")! Expected '" + self.text() + "', got '" + ref.textcontent(self.cls).text()[self.offset:self.offset+len(self.data[0])] +"'")
        else:
            #finally, we made it!
            return ref
180055
public Integer getStep() {
    if (StringUtils.isEmpty(getInputElement().getStep())) {
      return null;
    }
    try {
      return Integer.valueOf(getInputElement().getStep());
    } catch (final NumberFormatException e) {
      return null;
    }
  }
412801
public T getMin() {
    if (StringUtils.isEmpty(getInputElement().getMin())) {
      return null;
    }
    try {
      return this.numberParser.parse(getInputElement().getMin());
    } catch (final ParseException e) {
      return null;
    }
  }