Skip to content
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

[WIP] Introduce fuzzyRules storage and exploitation. #835

Closed
wants to merge 12 commits into from

Conversation

mgautierfr
Copy link
Collaborator

@mgautierfr mgautierfr commented Nov 3, 2023

Fixes #825
Fixes #826

FuzzyRule attribute follows the regex used by wabac service worker (see openzim/warc2zim#113)

While it follows what have been done in https://github.com/kiwix/libkiwix/tree/kiwix_no_sw POC.
However, the API and algorithm is not totally fixed and may involve when implementing and testing new warc2zim (without service worker).

Copy link

codecov bot commented Nov 6, 2023

Codecov Report

Attention: 139 lines in your changes are missing coverage. Please review.

Comparison is base (4d80e13) 57.60% compared to head (b01be3d) 56.16%.

Additional details and impacted files
@@               Coverage Diff               @@
##           clone_entry     #835      +/-   ##
===============================================
- Coverage        57.60%   56.16%   -1.45%     
===============================================
  Files               98      100       +2     
  Lines             4593     4786     +193     
  Branches          1924     2050     +126     
===============================================
+ Hits              2646     2688      +42     
- Misses             677      777     +100     
- Partials          1270     1321      +51     
Files Coverage Δ
include/zim/archive.h 94.82% <ø> (ø)
include/zim/writer/creator.h 100.00% <ø> (ø)
src/tools.h 100.00% <ø> (ø)
src/writer/creatordata.h 90.00% <ø> (ø)
src/fileimpl.h 82.35% <0.00%> (-5.15%) ⬇️
src/fileimpl.cpp 47.17% <25.00%> (-0.78%) ⬇️
src/writer/creator.cpp 50.00% <0.00%> (-4.50%) ⬇️
src/archive.cpp 46.64% <0.00%> (-2.13%) ⬇️
src/fuzzy_rules.h 56.00% <56.00%> (ø)
src/tools.cpp 46.80% <0.00%> (-6.86%) ⬇️
... and 1 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This commit does nothing with FuzzyRule but:
- Introduce a serialization format for FuzzyRule
- Test this serialization.
On aarch64, the compiler is a bit too old.
@kelson42
Copy link
Contributor

AFAIK we don’t need this code

@kelson42 kelson42 closed this Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend API to support fuzzy rules matching. Support storing and retrieving fuzzy rules
2 participants