diff options
author | Akshay <[email protected]> | 2022-08-02 15:20:46 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-08-02 15:27:12 +0100 |
commit | cfc70207996e202edbb577b2ad97a61ba9eb0eaa (patch) | |
tree | 97a3f25c3016766d6456efb748d48cbc6c525a47 /Cargo.lock | |
parent | efd96e8df6805a45aaf5822141dee11c642b51ae (diff) |
structural comparison helps detect a vast majority of duplicates, but it
has a few false positives when files contain only trivia. textual
similarity can help detect and eliminate those false positives.
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -23,6 +23,7 @@ version = "0.1.0" | |||
23 | dependencies = [ | 23 | dependencies = [ |
24 | "itertools", | 24 | "itertools", |
25 | "rayon", | 25 | "rayon", |
26 | "simhash", | ||
26 | "thiserror", | 27 | "thiserror", |
27 | "tree-sitter", | 28 | "tree-sitter", |
28 | "tree-sitter-javascript", | 29 | "tree-sitter-javascript", |
@@ -212,6 +213,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
212 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" | 213 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" |
213 | 214 | ||
214 | [[package]] | 215 | [[package]] |
216 | name = "simhash" | ||
217 | version = "0.2.0" | ||
218 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
219 | checksum = "cd8e19fb8912cfcdc26507d2e38f53c9f7462b58bf7356f6f91acfb632d3a224" | ||
220 | dependencies = [ | ||
221 | "siphasher", | ||
222 | ] | ||
223 | |||
224 | [[package]] | ||
225 | name = "siphasher" | ||
226 | version = "0.2.3" | ||
227 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
228 | checksum = "0b8de496cf83d4ed58b6be86c3a275b8602f6ffe98d3024a869e124147a9a3ac" | ||
229 | |||
230 | [[package]] | ||
215 | name = "syn" | 231 | name = "syn" |
216 | version = "1.0.98" | 232 | version = "1.0.98" |
217 | source = "registry+https://github.com/rust-lang/crates.io-index" | 233 | source = "registry+https://github.com/rust-lang/crates.io-index" |