-
Notifications
You must be signed in to change notification settings - Fork 202
feat: handle multiple derivations for words in the metadata #1035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hippietrail
wants to merge
121
commits into
Automattic:master
Choose a base branch
from
hippietrail:multiple-derivations
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
60e0372
feat: handle multiple derivations for words in the metadata
hippietrail 4413bb4
Merge commit 'bcc3df7718e4d4e766228a9e9f074cc14fd366aa' into multiple…
hippietrail 2099ce9
Merge commit 'f4ce421bb496fd3b0b5c7bb7be3f363ab2a0d900' into multiple…
hippietrail 06916c6
Merge commit 'cc1f15bacac35bb86c5560c770235cb387aec9d2' into multiple…
hippietrail b98c589
Merge commit 'f7b6bc18cbb49e4ac3ca40075e4b64e676e68707' into multiple…
hippietrail 80f63fe
Merge commit '3144b95385aac58ba961c6c6c73d97628f919348' into multiple…
hippietrail da7b544
Merge commit '00ea7330d5b078d14ebf6e05d5fc2d0fbc372eab' into multiple…
hippietrail fb3ad6f
Merge commit 'e0c1acbbdbdc679214a6f02add24d7b9c3c069a6' into multiple…
hippietrail 535872d
Merge commit 'c0b4dbbabbe679e0e733e5f20912850b866528cd' into multiple…
hippietrail 02e9d0f
Merge commit '32385de6abe68d548bac66e4bdd563b1ab323ef2' into multiple…
hippietrail e538a37
Merge commit '84fc9d8746b8ddf2f9e2ad26acb8abf45f3b7e78' into multiple…
hippietrail 123fd7f
chore: merging old branch bit by bit
hippietrail abac832
Merge commit '8878c2c94a9edb307e33bba4d742b0b4d03b01c4' into multiple…
hippietrail b520d77
Merge commit '6f5da14ca5c3c80187d0a3e132455022511efbad' into multiple…
hippietrail 50afbe0
Merge commit '09c826fe2fa5ea051aa059124dad886c5f0df47e' into multiple…
hippietrail 5756660
Merge commit '5a70b9b69f9f5277a25eb03e679f0b1cd1e74ff8' into multiple…
hippietrail 3b26a8e
Merge commit '74608430b581cab91c8ef941301f5e2f8b7343ba' into multiple…
hippietrail 4782a86
Merge commit '47aa8495f0949661e1fd2c5cde2ff9c1e9c1f404' into multiple…
hippietrail ef1f9c6
Merge commit '1dc6a185a985fcb2ca462b1b7cdd08cf9a199b3e' into multiple…
hippietrail a08fafc
Merge commit 'a2e0da7a841fba9436c2fa1bbfbabf4bee4e314d' into multiple…
hippietrail 065d637
Merge commit '1c87e4f63c1f3debd3d42876eb90a55608cd5d9b' into multiple…
hippietrail cca8c0d
Merge commit 'cf5c58b8c3d41e2ad030b7401b38b4261a41e5a3' into multiple…
hippietrail bc50097
Merge commit '1ed112e24f10a45739fc3f71a47151450dc938ce' into multiple…
hippietrail d852ccf
chore: merge old pr branch bit by bit
hippietrail 927d03c
Merge commit '13155e20bf6a351902af83583f179cd17ae05f96' into multiple…
hippietrail ce90fd7
Merge commit '19ebb9915745a6c783c50e4e19a17dd379fc3150' into multiple…
hippietrail 061ac48
Merge commit '5ccbc9a93c47a0dd0ceab84d5af63e040fc945e6' into multiple…
hippietrail 88c4ee0
Merge commit 'fabe9452a7329c6d6a97a38c51c3ba0d84103a85' into multiple…
hippietrail a333a32
Merge commit '1e2c6c332a966bdbbe3d1398dc9d06db4906af31' into multiple…
hippietrail 23612a4
Merge commit '8edba54788fe0ad9a816d0e777f06eb1b6577822' into multiple…
hippietrail 04fdf1d
Merge commit '0b4bf707f2276f1c6710bbce6b3e847869e43610' into multiple…
hippietrail 1c5bade
Merge commit '8689146c558e4bc79ca3f3e3fc849273d7dc06f8' into multiple…
hippietrail 7ee6b63
Merge commit '601f16a2a73bff81016ed9d70b89db0a34ce38a7' into multiple…
hippietrail 84440fb
Merge commit '36e4c7d2e3c2f4cbbd19d5bb5174cb01d7c35f2d' into multiple…
hippietrail 1d604b2
Merge commit '71447728518d333d879169b1feb01e2a9c2fa090' into multiple…
hippietrail 46bb627
Merge commit '6b5d18adba946435f7e60204808f6116129bce14' into multiple…
hippietrail e72808b
Merge commit 'ec475af7ea1d540b5e0986994e6ce0b177e5051d' into multiple…
hippietrail a4efc14
Merge commit '9194abb45a2375e00d4b115609cef350586780a6' into multiple…
hippietrail 624705e
Merge commit '219abb7992b8f781992d9b3e494f05ec2eac2db1' into multiple…
hippietrail 365644e
Merge commit 'e9f5947349595359c943221d0dace174321ca760' into multiple…
hippietrail 58dabc3
Merge commit '770c9b30f24e1250268620aa16b076a708bd485b' into multiple…
hippietrail 8bbae83
Merge commit '2fcaa32c00c8da4c5296aaf78aff522bc291f0da' into multiple…
hippietrail 5b5cd8b
Merge commit '54db7f3ebfcc95c60a63b9b5ae0cab6fe32c48d2' into multiple…
hippietrail a97ec85
Merge commit '5c14363613013c3e2f6e6cc0717b38623ab699ae' into multiple…
hippietrail 7da4ade
Merge commit '0143398cdefb7423787b9c30aa7d2aaeb86208b3' into multiple…
hippietrail 5f9e263
Merge commit '6a8e1e9695892ecc7d5f8789ed4856f00e595c04' into multiple…
hippietrail 2debc6e
Merge commit '12e41304e047d64a23f9718424a6f81228368f61' into multiple…
hippietrail 6370a27
Merge commit 'f27bd61c260b61d340626041bf948c2e828c409e' into multiple…
hippietrail dfcf05e
Merge commit '93175e43c7ae47e2ad8ff031db753830bb9e1f16' into multiple…
hippietrail cf5447d
Merge commit '5c2e6d035c7b1862d569de052bbb6c5bc8e08338' into multiple…
hippietrail f033355
Merge commit 'cd63a5ec41772da75fab060d2fc05e2ad0fe2fc1' into multiple…
hippietrail a8564af
Merge commit '292720388f020ea3f963af3acc9fd9ff92ba1d96' into multiple…
hippietrail 1b2cdae
Merge commit 'e3e573520eac82ad575573de8da97e4ab36aa4a6' into multiple…
hippietrail cfde7e6
chore: merge old pr branch bit by bit
hippietrail ddd8be4
Merge commit 'db89187c3f9dd06d3e6ffeb980ea068ec3c1f1d6' into multiple…
hippietrail 7a4ed87
Merge commit '3ec4daeb71421da45b0546893cd41d5f45e34067' into multiple…
hippietrail 9ae88ac
Merge commit '57de1b03704dffca274fbff195c5d1045c7e1728' into multiple…
hippietrail f3d8af0
Merge commit 'c05f5342b0258902e67c3c4b2243ec81410feead' into multiple…
hippietrail 5afb765
Merge commit 'ead504e9525f071fad04abe2297faf51f2a166af' into multiple…
hippietrail ec7b748
Merge commit '86b03d67a45735fad2bcf48d7d39a3bcdb8ebf3e' into multiple…
hippietrail b648e9e
Merge commit '973b7b82353b7297331d5230c83f5791b0f247e1' into multiple…
hippietrail 8da5e9b
Merge commit '0c04291bfec25d0e934eaeb057d0f54af8e14a78' into multiple…
hippietrail e858ad0
Merge commit '9fee646e9d1333fb9722bc385f8bdeabe730a24f' into multiple…
hippietrail ef89aec
Merge commit '5230a9d082fc4f9a023ecf4f7f6b599a5aa24d00' into multiple…
hippietrail 4af9ee2
Merge commit 'e9ff4c977e882121294fc7d405f5fe57cd30939e' into multiple…
hippietrail 8795944
Merge commit 'f27a6748bde71120942362252034525c5548636a' into multiple…
hippietrail 5be4f5d
Merge commit 'a8983e3f8af82291bb906eacb71af7f35d502ab2' into multiple…
hippietrail e5d2012
Merge commit 'cd534b6cc4e4248cc356693bd6b581a6f391cb63' into multiple…
hippietrail 3ce2a99
Merge commit '92d004796eec41ed2f133aa787b8743b251dd38d' into multiple…
hippietrail 5a6605d
Merge commit 'bb84be8310c5e92ab5650b0888e682202d586a3d' into multiple…
hippietrail 008d44f
Merge commit 'c87adcdc1a13a1cfb485f4339f48d4ca5f63ba77' into multiple…
hippietrail df13444
chore: merge old pr branch bit by bit
hippietrail 7e48780
Merge commit '92b964d0381ce9e26e23b1293c6cabf06feaa351' into multiple…
hippietrail 5faeae4
Merge commit '21888aab558f8fc1188a81210a9b5e9599829060' into multiple…
hippietrail e414c92
Merge commit 'e97f5975ad8a058f4d5d481124ff48a0fd93b52b' into multiple…
hippietrail eae984c
Merge commit '5c9d8df2fb4768337ca0772571595e88cf8010e2' into multiple…
hippietrail 1caa25d
Merge commit '29971de8c54e605d1250218b6ca1f4814fc4c55f' into multiple…
hippietrail 7b791fa
Merge commit '73cd8c38305087b68fecbe468e2211c77288151c' into multiple…
hippietrail fbbeb38
Merge commit '710a1ff6cf389e46e381a0282dc5a2b2cf9a82c3' into multiple…
hippietrail 96d7c66
Merge commit 'b325d5dbe24ff4b79482dcb651673690b44ae6ad' into multiple…
hippietrail cbd3ff9
Merge commit '705331f878f61974730b5ea4fa0a470bb21b7800' into multiple…
hippietrail 67b9696
Merge commit '26daaa516a5470811c18f504c4f272e4820280e8' into multiple…
hippietrail 074632b
Merge commit 'a965aaa086a5a17335a1b384a039afe264012f3b' into multiple…
hippietrail d3d7514
Merge commit '5238f7c1a7948bc04af25da5c674a1f5b94f9d95' into multiple…
hippietrail f0a4ebe
Merge commit '82f20e9d838cfdeed64d3ee4e17c56f8178027d9' into multiple…
hippietrail f553e04
chore: merge old pr branch bit by bit
hippietrail 30c7f71
Merge commit 'b6f66f5b93a91da4d981c0686dd6a7b5035a855a' into multiple…
hippietrail b6f545a
Merge commit '59465d54bec0a977756d4130a740b90b8acf612e' into multiple…
hippietrail ae1d34c
Merge commit '55a475eface67d0cb509b56eeb42ff57ee07898a' into multiple…
hippietrail c04c6da
Merge commit 'f30d08478d75715d2c2c9fc9da551c3a1884f6ea' into multiple…
hippietrail 88efd87
Merge commit '9bbe9b7051d03beb91b0c626174915b6314ffcb0' into multiple…
hippietrail 567fc48
Merge commit 'a1fb3d4f4ba7185cf6d41028fdca3e58c97a7393' into multiple…
hippietrail 623d62c
Merge commit '64b20a843008af5a94a6ebe85668d56c4d9082e6' into multiple…
hippietrail 0bb3a66
Merge commit '1214bd8e1c65d1196bd583aea470914cd5441b4f' into multiple…
hippietrail a504e63
Merge commit '1cef35cb66cf2d8ad6a0a9c4fb2554f9df65540a' into multiple…
hippietrail 3c648fc
Merge commit '65b0292760a125f8ebf0b8a098002a79fefb9412' into multiple…
hippietrail 637523c
Merge commit '2d358c24d0b7605a4406030d297208dec4255748' into multiple…
hippietrail e97226e
Merge commit '569d6162f01b4755f874ee5d1730cd0422300229' into multiple…
hippietrail 5d9bb1f
Merge commit 'a604ec448ea85b9965d8ef93e2385ed5803b5cbb' into multiple…
hippietrail 2635db9
Merge commit 'a2bc3743a0b8cd7250a0411f290664dd45f6b040' into multiple…
hippietrail f396684
Merge commit '4f09cecfc08d02b552d52836f9b3a6cd51b19497' into multiple…
hippietrail 06886ae
Merge commit '71521f2a1bbd2cd6631225e951c187df933d69be' into multiple…
hippietrail 7ac10bf
Merge commit 'f79548fd2ed3e7cb63e1093f91487efc191b1512' into multiple…
hippietrail 923647c
Merge commit '37b0ac5675baad870cec1776038d9c8e09d1bc8e' into multiple…
hippietrail 44588ee
Merge commit '6849aad2b331a9b4efd9b5fc3a13e8f7c626eb40' into multiple…
hippietrail 159a320
Merge commit '90a66a9c8fc7f6308986b117ab2a623c9909a3dd' into multiple…
hippietrail 0591673
Merge commit 'df118218f59a2411694e403b14313385de6ed730' into multiple…
hippietrail abd55f7
Merge commit '88244550f829afae8b0cd86fd42b972863c56ca7' into multiple…
hippietrail e58c3f2
Merge branch 'master' of https://github.com/Automattic/harper into mu…
hippietrail aa2916e
Merge branch 'master' of https://github.com/Automattic/harper into mu…
hippietrail 9403b1d
fix: appease precommit
hippietrail d1b7d5c
Merge branch 'master' of https://github.com/Automattic/harper into mu…
hippietrail 7def98a
Merge branch 'master' into multiple-derivations
hippietrail 1a1e0bc
Merge branch 'master' into multiple-derivations
hippietrail 8b7627f
Merge branch 'master' of https://github.com/Automattic/harper into mu…
hippietrail 2f0084b
Merge branch 'master' of https://github.com/Automattic/harper into mu…
hippietrail f8f5c55
chore: merge with upstream
hippietrail 1c5e616
Merge branch 'master' into multiple-derivations
hippietrail 7a957cf
Merge branch 'master' into multiple-derivations
hippietrail c78f13e
Merge branch 'multiple-derivations' of https://github.com/hippietrail…
hippietrail 61dc9e6
Merge branch 'master' of https://github.com/Automattic/harper into mu…
hippietrail File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These hashes seem highly dubious to me. Still work in progress?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe @elijah-potter added that with a plan in mind but so far those are not really used by anything.
Also worth noting, the field the hashes are written into is not checked to see if something is already there and the new one stomps the old one. I wrote a patch that's in a PR to use a set instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear: my comment was in reference to the fact most variants have the same hash, which defeats the purpose of hashing.
Wdym by "the field"? This function is generic over the hasher, so we don't know anything about how hashing is done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless I'm on the wrong track and there's two kinds/places with hashing, the hash gets stored in a field in the metadata,
derived_from
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so you were talking about
WordMetadata::derived_from
and not about this hashing function. I thought you were talking about theHasher
implementation used in this function.And the hash in
WordMetadata::derived_from
is created byWordId
, which completely unrelated this hashing function.