| Modifier and Type | Field and Description |
|---|---|
| private int | bigFileThreshold
File size threshold (in bytes) for detecting renames. |
| private static final int | BITS_PER_INDEX
Number of bits we need to express an index into src or dst list. |
| private List | dsts
All destinations to consider looking for a rename. |
| private static final int | |
| private long[] | matrix
Matrix of all examined file pairs, and their scores. |
| private List | |
| private ContentSource. | |
| private int | renameScore
Score a pair must exceed to be considered a rename. |
| private static final int | |
| private boolean | skipBinaryFiles
Skip content renames for binary files. |
| private List | srcs
All sources to consider for copies or renames. |
| private boolean | tableOverflow
Set if any |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private static List | |
| private static List | |
| pack-priv void | |
| private static int | |
| pack-priv static int | |
| pack-priv static long | |
| private static long | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| private SimilarityIndex | |
| private static boolean | |
| pack-priv boolean | |
| pack-priv static int | |
| private static int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private long | |
| pack-priv static int |
| bigFileThreshold | back to summary |
|---|---|
| private int bigFileThreshold File size threshold (in bytes) for detecting renames. Files larger than this size will not be processed for renames. | |
| BITS_PER_INDEX | back to summary |
|---|---|
| private static final int BITS_PER_INDEX Number of bits we need to express an index into src or dst list. This must be 28, giving us a limit of 2^28 entries in either list, which is an insane limit of 536,870,912 file names being considered in a single rename pass. The other 8 bits are used to store the score, while staying under 127 so the long doesn't go negative. | |
| dsts | back to summary |
|---|---|
| private List<DiffEntry> dsts All destinations to consider looking for a rename.
A destination is typically an | |
| INDEX_MASK | back to summary |
|---|---|
| private static final int INDEX_MASK | |
| matrix | back to summary |
|---|---|
| private long[] matrix Matrix of all examined file pairs, and their scores. The upper 8 bits of each long stores the score, but the score is bounded to be in the range (0, 128] so that the highest bit is never set, and all entries are therefore positive.
List indexes to an element of | |
| out | back to summary |
|---|---|
| private List<DiffEntry> out | |
| reader | back to summary |
|---|---|
| private ContentSource. | |
| renameScore | back to summary |
|---|---|
| private int renameScore Score a pair must exceed to be considered a rename. | |
| SCORE_SHIFT | back to summary |
|---|---|
| private static final int SCORE_SHIFT | |
| skipBinaryFiles | back to summary |
|---|---|
| private boolean skipBinaryFiles Skip content renames for binary files. | |
| srcs | back to summary |
|---|---|
| private List<DiffEntry> srcs All sources to consider for copies or renames.
A source is typically a | |
| tableOverflow | back to summary |
|---|---|
| private boolean tableOverflow Set if any | |
| SimilarityRenameDetector | back to summary |
|---|---|
| pack-priv SimilarityRenameDetector(ContentSource. | |
| buildMatrix | back to summary |
|---|---|
| private int buildMatrix(ProgressMonitor pm) throws IOException, CanceledException | |
| compactDstList | back to summary |
|---|---|
| private static List | |
| compactSrcList | back to summary |
|---|---|
| private static List | |
| compute | back to summary |
|---|---|
| pack-priv void compute(ProgressMonitor pm) throws IOException, CanceledException | |
| decodeFile | back to summary |
|---|---|
private static int decodeFile(int v)
| |
| dstFile | back to summary |
|---|---|
| pack-priv static int dstFile(long value) | |
| encode | back to summary |
|---|---|
| pack-priv static long encode(int score, int srcIdx, int dstIdx) | |
| encodeFile | back to summary |
|---|---|
private static long encodeFile(int idx)
| |
| getLeftOverDestinations | back to summary |
|---|---|
| pack-priv List | |
| getLeftOverSources | back to summary |
|---|---|
| pack-priv List | |
| getMatches | back to summary |
|---|---|
| pack-priv List | |
| hash | back to summary |
|---|---|
| private SimilarityIndex hash(ObjectLoader objectLoader) throws IOException, TableFullException | |
| isFile | back to summary |
|---|---|
| private static boolean isFile(FileMode mode) | |
| isTableOverflow | back to summary |
|---|---|
| pack-priv boolean isTableOverflow() | |
| nameScore | back to summary |
|---|---|
| pack-priv static int nameScore(String a, String b) | |
| score | back to summary |
|---|---|
| private static int score(long value) | |
| setBigFileThreshold | back to summary |
|---|---|
| pack-priv void setBigFileThreshold(int threshold) | |
| setRenameScore | back to summary |
|---|---|
| pack-priv void setRenameScore(int score) | |
| setSkipBinaryFiles | back to summary |
|---|---|
| pack-priv void setSkipBinaryFiles(boolean value) | |
| size | back to summary |
|---|---|
| private long size(DiffEntry. | |
| srcFile | back to summary |
|---|---|
| pack-priv static int srcFile(long value) | |