From 205f088b988d146ddd30fcff210fe015c141de44 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Thu, 28 Dec 2023 21:55:49 +0100 Subject: [PATCH] update links --- CMakeLists.txt | 2 +- README.md | 22 +++++++++++----------- extras/rapidfuzz_amalgamated.hpp | 12 ++++++------ rapidfuzz/fuzz_impl.hpp | 12 ++++++------ test/tests-fuzz.cpp | 10 +++++----- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 892ddd06..87cdd498 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,7 +137,7 @@ if (RAPIDFUZZ_INSTALL) endif() set(CPACK_PACKAGE_VENDOR "Max Bachmann") - set(CPACK_PACKAGE_CONTACT "https://github.com/maxbachmann/rapidfuzz-cpp") + set(CPACK_PACKAGE_CONTACT "https://github.com/rapidfuzz/rapidfuzz-cpp") include(CPack) endif(RAPIDFUZZ_INSTALL) diff --git a/README.md b/README.md index df334476..57b563f6 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@

-RapidFuzz +RapidFuzz

Rapid fuzzy string matching in C++ using the Levenshtein Distance

- - + Continuous Integration - + Documentation - - + GitHub license

@@ -29,11 +29,11 @@ ## Description RapidFuzz is a fast string matching library for Python and C++, which is using the string similarity calculations from [FuzzyWuzzy](https://github.com/seatgeek/fuzzywuzzy). However, there are two aspects that set RapidFuzz apart from FuzzyWuzzy: 1) It is MIT licensed so it can be used whichever License you might want to choose for your project, while you're forced to adopt the GPL license when using FuzzyWuzzy -2) It is mostly written in C++ and on top of this comes with a lot of Algorithmic improvements to make string matching even faster, while still providing the same results. More details on these performance improvements in the form of benchmarks can be found [here](https://github.com/maxbachmann/rapidfuzz/blob/master/Benchmarks.md) +2) It is mostly written in C++ and on top of this comes with a lot of Algorithmic improvements to make string matching even faster, while still providing the same results. More details on these performance improvements in the form of benchmarks can be found [here](https://github.com/rapidfuzz/rapidfuzz/blob/master/Benchmarks.md) The Library is split across multiple repositories for the different supported programming languages: - The C++ version is versioned in this repository -- The Python version can be found at [maxbachmann/rapidfuzz](https://github.com/maxbachmann/rapidfuzz) +- The Python version can be found at [rapidfuzz/rapidfuzz](https://github.com/rapidfuzz/rapidfuzz) ## CMake Integration @@ -42,7 +42,7 @@ There are severals ways to integrate `rapidfuzz` in your CMake project. ### By Installing it ```bash -git clone https://github.com/maxbachmann/rapidfuzz-cpp.git rapidfuzz-cpp +git clone https://github.com/rapidfuzz/rapidfuzz-cpp.git rapidfuzz-cpp cd rapidfuzz-cpp mkdir build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release @@ -59,7 +59,7 @@ target_link_libraries(foo rapidfuzz::rapidfuzz) ### Add this repository as a submodule ```bash -git submodule add https://github.com/maxbachmann/rapidfuzz-cpp.git 3rdparty/RapidFuzz +git submodule add https://github.com/rapidfuzz/rapidfuzz-cpp.git 3rdparty/RapidFuzz ``` Then you can either: @@ -86,7 +86,7 @@ Then you can either: If you don't want to add `rapidfuzz-cpp` as a submodule, you can also download it with `FetchContent`: ```cmake FetchContent_Declare(rapidfuzz - GIT_REPOSITORY https://github.com/maxbachmann/rapidfuzz-cpp.git + GIT_REPOSITORY https://github.com/rapidfuzz/rapidfuzz-cpp.git GIT_TAG main) FetchContent_MakeAvailable(rapidfuzz) add_executable(foo main.cpp) diff --git a/extras/rapidfuzz_amalgamated.hpp b/extras/rapidfuzz_amalgamated.hpp index 21482a7b..8a800d9e 100644 --- a/extras/rapidfuzz_amalgamated.hpp +++ b/extras/rapidfuzz_amalgamated.hpp @@ -10443,7 +10443,7 @@ double token_set_ratio(const rapidfuzz::detail::SplittedSentenceView& const double score_cutoff) { /* in FuzzyWuzzy this returns 0. For sake of compatibility return 0 here as well - * see https://github.com/maxbachmann/RapidFuzz/issues/110 */ + * see https://github.com/rapidfuzz/RapidFuzz/issues/110 */ if (tokens_a.empty() || tokens_b.empty()) return 0; auto decomposition = detail::set_decomposition(tokens_a, tokens_b); @@ -10532,7 +10532,7 @@ double partial_token_set_ratio(const rapidfuzz::detail::SplittedSentenceView len2) ? static_cast(len1) / static_cast(len2) @@ -10921,7 +10921,7 @@ double CachedWRatio::similarity(InputIt2 first2, InputIt2 last2, double size_t len2 = static_cast(std::distance(first2, last2)); /* in FuzzyWuzzy this returns 0. For sake of compatibility return 0 here as well - * see https://github.com/maxbachmann/RapidFuzz/issues/110 */ + * see https://github.com/rapidfuzz/RapidFuzz/issues/110 */ if (!len1 || !len2) return 0; double len_ratio = (len1 > len2) ? static_cast(len1) / static_cast(len2) @@ -10967,7 +10967,7 @@ double QRatio(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, ptrdiff_t len2 = std::distance(first2, last2); /* in FuzzyWuzzy this returns 0. For sake of compatibility return 0 here as well - * see https://github.com/maxbachmann/RapidFuzz/issues/110 */ + * see https://github.com/rapidfuzz/RapidFuzz/issues/110 */ if (!len1 || !len2) return 0; return ratio(first1, last1, first2, last2, score_cutoff); @@ -10988,7 +10988,7 @@ double CachedQRatio::similarity(InputIt2 first2, InputIt2 last2, double auto len2 = std::distance(first2, last2); /* in FuzzyWuzzy this returns 0. For sake of compatibility return 0 here as well - * see https://github.com/maxbachmann/RapidFuzz/issues/110 */ + * see https://github.com/rapidfuzz/RapidFuzz/issues/110 */ if (s1.empty() || !len2) return 0; return cached_ratio.similarity(first2, last2, score_cutoff); diff --git a/rapidfuzz/fuzz_impl.hpp b/rapidfuzz/fuzz_impl.hpp index 18ca05b4..a2e874a7 100644 --- a/rapidfuzz/fuzz_impl.hpp +++ b/rapidfuzz/fuzz_impl.hpp @@ -374,7 +374,7 @@ double token_set_ratio(const rapidfuzz::detail::SplittedSentenceView& const double score_cutoff) { /* in FuzzyWuzzy this returns 0. For sake of compatibility return 0 here as well - * see https://github.com/maxbachmann/RapidFuzz/issues/110 */ + * see https://github.com/rapidfuzz/RapidFuzz/issues/110 */ if (tokens_a.empty() || tokens_b.empty()) return 0; auto decomposition = detail::set_decomposition(tokens_a, tokens_b); @@ -463,7 +463,7 @@ double partial_token_set_ratio(const rapidfuzz::detail::SplittedSentenceView len2) ? static_cast(len1) / static_cast(len2) @@ -852,7 +852,7 @@ double CachedWRatio::similarity(InputIt2 first2, InputIt2 last2, double size_t len2 = static_cast(std::distance(first2, last2)); /* in FuzzyWuzzy this returns 0. For sake of compatibility return 0 here as well - * see https://github.com/maxbachmann/RapidFuzz/issues/110 */ + * see https://github.com/rapidfuzz/RapidFuzz/issues/110 */ if (!len1 || !len2) return 0; double len_ratio = (len1 > len2) ? static_cast(len1) / static_cast(len2) @@ -898,7 +898,7 @@ double QRatio(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, ptrdiff_t len2 = std::distance(first2, last2); /* in FuzzyWuzzy this returns 0. For sake of compatibility return 0 here as well - * see https://github.com/maxbachmann/RapidFuzz/issues/110 */ + * see https://github.com/rapidfuzz/RapidFuzz/issues/110 */ if (!len1 || !len2) return 0; return ratio(first1, last1, first2, last2, score_cutoff); @@ -919,7 +919,7 @@ double CachedQRatio::similarity(InputIt2 first2, InputIt2 last2, double auto len2 = std::distance(first2, last2); /* in FuzzyWuzzy this returns 0. For sake of compatibility return 0 here as well - * see https://github.com/maxbachmann/RapidFuzz/issues/110 */ + * see https://github.com/rapidfuzz/RapidFuzz/issues/110 */ if (s1.empty() || !len2) return 0; return cached_ratio.similarity(first2, last2, score_cutoff); diff --git a/test/tests-fuzz.cpp b/test/tests-fuzz.cpp index 136f125a..47f739a7 100644 --- a/test/tests-fuzz.cpp +++ b/test/tests-fuzz.cpp @@ -147,7 +147,7 @@ TEST_CASE("RatioTest") score_test(100, fuzz::partial_ratio("physics 2 vid", "study physics physics 2 video")); } - SECTION("testIssue206") /* test for https://github.com/maxbachmann/RapidFuzz/issues/206 */ + SECTION("testIssue206") /* test for https://github.com/rapidfuzz/RapidFuzz/issues/206 */ { const char* str1 = "South Korea"; const char* str2 = "North Korea"; @@ -160,7 +160,7 @@ TEST_CASE("RatioTest") } } - SECTION("testIssue210") /* test for https://github.com/maxbachmann/RapidFuzz/issues/210 */ + SECTION("testIssue210") /* test for https://github.com/rapidfuzz/RapidFuzz/issues/210 */ { const char* str1 = "bc"; const char* str2 = "bca"; @@ -173,7 +173,7 @@ TEST_CASE("RatioTest") } } - SECTION("testIssue231") /* test for https://github.com/maxbachmann/RapidFuzz/issues/231 */ + SECTION("testIssue231") /* test for https://github.com/rapidfuzz/RapidFuzz/issues/231 */ { const char* str1 = "er merkantilismus f/rderte handel und verkehr mit teils marktkonformen, teils " "dirigistischen ma_nahmen."; @@ -188,7 +188,7 @@ TEST_CASE("RatioTest") REQUIRE(alignment.dest_end == 51); } - SECTION("testIssue257") /* test for https://github.com/maxbachmann/RapidFuzz/issues/257 */ + SECTION("testIssue257") /* test for https://github.com/rapidfuzz/RapidFuzz/issues/257 */ { const char* str1 = "aaaaaaaaaaaaaaaaaaaaaaaabacaaaaaaaabaaabaaaaaaaababbbbbbbbbbabbcb"; const char* str2 = "aaaaaaaaaaaaaaaaaaaaaaaababaaaaaaaabaaabaaaaaaaababbbbbbbbbbabbcb"; @@ -197,7 +197,7 @@ TEST_CASE("RatioTest") score_test(98.4615385, fuzz::partial_ratio(str2, str1)); } - SECTION("testIssue257") /* test for https://github.com/maxbachmann/RapidFuzz/issues/219 */ + SECTION("testIssue257") /* test for https://github.com/rapidfuzz/RapidFuzz/issues/219 */ { const char* str1 = "TTAGCGCTACCGGTCGCCACCATGGTTTTCTAAGGGGAGGCCGTCATCAAAAGAGTTCATGTAGCACGAAGTCCACCTTTGAAGGATCGATGAATG"