Returns the reference numbers of tunes contained in this tunebook.

@return An array containing the reference numbers of tunes contained in
this tunebook, ordered in the way they were added in this
tunebook.
326279
public int[] getReferenceNumbers() {
		Iterator it = m_tunes.keySet().iterator();
		int[] refNb = new int[m_tunes.size()];
		int index = 0;
		while (it.hasNext()) {
			refNb[index] = (Integer) it.next();
			index++;
		}
		return refNb;
	}
979206
public static function getList()
    {
        $calledClass = get_called_class();
        if (!isset(static::$list[$calledClass])) {
            $refClass = new \ReflectionClass($calledClass);
            $labels   = static::getLabels();
            foreach ($refClass->getConstants() as $constName => $constValue) {
                if (isset($labels[$constValue])) {
                    $label = $labels[$constValue];
                } else {
                    $label = lcfirst(strtolower($constName));
                }
                static::$list[$calledClass][$constValue] = $label;
            }
        }
        return static::$list[$calledClass];
    }
1321890
private String[] createDisplayedValues() {
        int steps = 1 + (int) Math.ceil((double) getRange() / (double) getStepSize());
        String[] values = new String[steps];
        int current = getMinNumber();

        for (int i = 0; i < steps; i++) {
            values[i] = String.valueOf(current);
            current = Math.min(current + getStepSize(), getMaxNumber());
        }

        return values;
    }
947897
public List<String> getTracksString(Map<String, GenomeBrowserTrack> entityTracks) {
    List<String> results = new ArrayList<>();
    if (hasPermission()) {
      Map<String, GenomeBrowserTrack> allTracks = new HashMap<>(entityTracks);
      for (GenomeBrowserTrack track : entityTracks.values()) {
        allTracks.putAll(getReferenceTracks(track));
      }
      results =
          allTracks
              .values()
              .stream()
              .map(GenomeBrowserTrack::toTrackString)
              .collect(Collectors.toList());
    }
    return results;
  }
1246513
public function numPages()
    {
        if ($this->numPage) {
            $this->numPage;
        };

        $entries = $this->entries();
        $count = count($entries);

        if ($this->numPerPage()) {
            $this->numPage = ceil($count / $this->numPerPage());
        } else {
            $this->numPage = 1;
        }

        return $this->numPage;
    }
1051213
public Note[] getNotesBeginningTie() {
	  Vector notesBT = new Vector(m_notes.size());
	  for (int i=0; i<m_notes.size(); i++)
		  if (((Note)m_notes.elementAt(i)).isBeginningTie())
			  notesBT.addElement(m_notes.elementAt(i));
	  if (notesBT.size()>0) {
		  Note[] notesBTasArray = new Note[notesBT.size()];
		  notesBT.toArray(notesBTasArray);
		  return notesBTasArray;
	  }
	  else
		  return null;
  }
1119642
protected AbcTuneBook newAbcTuneBook() {
		AbcTuneBook ret = new AbcTuneBook();
		for (int i = 0; i < m_listeners.size(); i++) {
			Object o = m_listeners.get(i);
			if (o instanceof TuneBookListenerInterface)
				ret.addListener((TuneBookListenerInterface) o);
		}
		return ret;
	}
1088038
public VariableRef[] getLocalVariableRefs() {
        VariableRef[] refs = new VariableRef[mVariableRefs.size()];
        return mVariableRefs.toArray(refs);
    }
487252
public long[] sampleNumbers(Track track) {

        if ("vide".equals(track.getHandler())) {
            if (track.getSyncSamples() != null && track.getSyncSamples().length > 0) {
                List<long[]> times = getSyncSamplesTimestamps(movie, track);
                return getCommonIndices(track.getSyncSamples(), getTimes(track, movie), track.getTrackMetaData().getTimescale(), times.toArray(new long[times.size()][]));
            } else {
                throw new RuntimeException("Video Tracks need sync samples. Only tracks other than video may have no sync samples.");
            }
        } else if ("soun".equals(track.getHandler())) {
            if (referenceTrack == null) {
                for (Track candidate : movie.getTracks()) {
                    if (candidate.getSyncSamples() != null && "vide".equals(candidate.getHandler()) && candidate.getSyncSamples().length > 0) {
                        referenceTrack = candidate;
                    }
                }
            }
            if (referenceTrack != null) {

                // Gets the reference track's fra
                long[] refSyncSamples = sampleNumbers(referenceTrack);

                int refSampleCount = referenceTrack.getSamples().size();

                long[] syncSamples = new long[refSyncSamples.length];
                long minSampleRate = 192000;
                for (Track testTrack : movie.getTracks()) {
                    if (getFormat(track).equals(getFormat(testTrack))) {
                        AudioSampleEntry ase = null;
                        for (SampleEntry sampleEntry : testTrack.getSampleEntries()) {
                            if (ase == null) {
                                ase = (AudioSampleEntry) sampleEntry;
                            } else if (ase.getSampleRate() != ((AudioSampleEntry) sampleEntry).getSampleRate()) {
                                throw new RuntimeException("Multiple SampleEntries and different sample rates is not supported");
                            }
                        }
                        assert ase != null;
                        if (ase.getSampleRate() < minSampleRate) {
                            minSampleRate = ase.getSampleRate();
                            long sc = testTrack.getSamples().size();
                            double stretch = (double) sc / refSampleCount;

                            long samplesPerFrame = testTrack.getSampleDurations()[0]; // Assuming all audio tracks have the same number of samples per frame, which they do for all known types

                            for (int i = 0; i < syncSamples.length; i++) {
                                long start = (long) Math.ceil(stretch * (refSyncSamples[i] - 1) * samplesPerFrame);
                                syncSamples[i] = start;
                                // The Stretch makes sure that there are as much audio and video chunks!
                            }
                            break;
                        }
                    }
                }
                AudioSampleEntry ase = null;
                for (SampleEntry sampleEntry : track.getSampleEntries()) {
                    if (ase == null) {
                        ase = (AudioSampleEntry) sampleEntry;
                    } else if (ase.getSampleRate() != ((AudioSampleEntry) sampleEntry).getSampleRate()) {
                        throw new RuntimeException("Multiple SampleEntries and different sample rates is not supported");
                    }
                }
                assert ase != null;

                long samplesPerFrame = track.getSampleDurations()[0]; // Assuming all audio tracks have the same number of samples per frame, which they do for all known types
                double factor = (double) ase.getSampleRate() / (double) minSampleRate;
                if (factor != Math.rint(factor)) { // Not an integer
                    throw new RuntimeException("Sample rates must be a multiple of the lowest sample rate to create a correct file!");
                }
                for (int i = 0; i < syncSamples.length; i++) {
                    syncSamples[i] = (long) (1 + syncSamples[i] * factor / (double) samplesPerFrame);
                }
                return syncSamples;
            }
            throw new RuntimeException("There was absolutely no Track with sync samples. I can't work with that!");
        } else {
            // Ok, my track has no sync samples - let's find one with sync samples.
            for (Track candidate : movie.getTracks()) {
                if (candidate.getSyncSamples() != null && candidate.getSyncSamples().length > 0) {
                    long[] refSyncSamples = sampleNumbers(candidate);
                    int refSampleCount = candidate.getSamples().size();

                    long[] syncSamples = new long[refSyncSamples.length];
                    long sc = track.getSamples().size();
                    double stretch = (double) sc / refSampleCount;

                    for (int i = 0; i < syncSamples.length; i++) {
                        long start = (long) Math.ceil(stretch * (refSyncSamples[i] - 1)) + 1;
                        syncSamples[i] = start;
                        // The Stretch makes sure that there are as much audio and video chunks!
                    }
                    return syncSamples;
                }
            }
            throw new RuntimeException("There was absolutely no Track with sync samples. I can't work with that!");
        }


    }
776791
public boolean putTune(Tune tune) {
		boolean ret = containsTune(tune);
		tune.getTuneInfos().setBookInfos(getBookInfos());
		tune.getInstructions().addAll(0, getInstructions());
		m_tunes.put(tune.getReferenceNumber(), tune);
		return ret;
	}
532406
public long numRecords() {
        if (numRecords == null) {
            try {
                numRecords = indexToKey.getNumRecords();
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return numRecords;
    }
507065
public int getTrackNumberNumeric() {
        String number = getTrackNumber();

        if(number == null) return -1;
        try {
            return Integer.parseInt(number);
        } catch(NumberFormatException e) {
            return -1;
        }
    }
533001
@Override
	public int[][][] getScoreMatrix() {
		boolean tempStoringScoreMatrix = storingScoreMatrix;
		if (scores == null) {
			storingScoreMatrix = true;
			align();
			if (scores == null) {
				return null;
			}
		}
		int[][][] copy = scores;
		if (tempStoringScoreMatrix) {
			copy = new int[scores.length][scores[0].length][];
			for (int i = 0; i < copy.length; i++) {
				for (int j = 0; j < copy[0].length; j++) {
					copy[i][j] = Arrays.copyOf(scores[i][j], scores[i][j].length);
				}
			}
		}
		setStoringScoreMatrix(tempStoringScoreMatrix);
		return copy;
	}
848653
public String getNotes()
   {
      String notes = (String) getCachedValue(AssignmentField.NOTES);
      return (notes == null ? "" : notes);
   }
977461
public int getNumberOfCodebooks() {
        byte[] data = getData();
        int number = -1;
        if(data != null && data.length >= 10) {
            number = IOUtils.toInt(data[8]);
        }
        return (number+1);
    }
534695
public int getNumFaultyTrackers() {
    int count = 0;
    synchronized (this) {
      for (String trackerName : usageReports.keySet()) {
        if (isFaulty(trackerName)) {
          count++;
        }
      }
    }
    return count;
  }
1079028
public function getNumbers()
    {
        return (string) \OxidEsales\Eshop\Core\Str::getStr()->substr($this->_cleanUp($this->_sCompanyVatNumber), 2);
    }