From 57fe3463f2b46386aeb210a471cd76af6a3480a6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 30 Jul 2023 08:05:05 -0400 Subject: [PATCH] Fix a bunch of spelling mistakes (1/n) (#1112) --- CMakeLists.txt | 2 +- release/CMakeLists.txt | 4 ++-- src/query/db_accessor.hpp | 2 +- src/query/interpret/awesome_memgraph_functions.cpp | 4 ++-- src/query/stream/streams.hpp | 2 +- src/utils/file_locker.hpp | 2 +- src/utils/memory_tracker.cpp | 2 +- src/utils/temporal.cpp | 2 +- tests/e2e/interactive_mg_runner.py | 2 +- tests/manual/interactive_planning.cpp | 2 +- tests/mgbench/benchmark.py | 2 +- tests/mgbench/client.cpp | 2 +- tests/stress/durability | 2 +- tests/unit/cypher_main_visitor.cpp | 4 ++-- tests/unit/formatters.hpp | 2 +- tests/unit/query_plan.cpp | 2 +- tests/unit/storage_v2_replication.cpp | 2 +- tools/github/cppcheck_and_clang_format | 2 +- 18 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1308b6ee3..2c5ce5d6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,7 +298,7 @@ set(ENABLE_JEMALLOC ON) if (ASAN) message(WARNING "Disabling jemalloc as it doesn't work well with ASAN") set(ENABLE_JEMALLOC OFF) - # Enable Addres sanitizer and get nicer stack traces in error messages. + # Enable Address sanitizer and get nicer stack traces in error messages. # NOTE: AddressSanitizer uses llvm-symbolizer binary from the Clang # distribution to symbolize the stack traces (note that ideally the # llvm-symbolizer version must match the version of ASan runtime library). diff --git a/release/CMakeLists.txt b/release/CMakeLists.txt index 7055f4543..d34410c0e 100644 --- a/release/CMakeLists.txt +++ b/release/CMakeLists.txt @@ -14,7 +14,7 @@ set(CPACK_PACKAGE_VENDOR "Memgraph Ltd.") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "High performance, in-memory, transactional graph database") -# Setting arhitecture extension for deb packages +# Setting architecture extension for deb packages set(MG_ARCH_EXTENSION_DEB "all") if(${MG_ARCH} STREQUAL "x86_64") @@ -50,7 +50,7 @@ set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY} # We also depend on `python3` because we embed it in Memgraph. set(CPACK_DEBIAN_PACKAGE_DEPENDS "openssl (>= 1.1.0), python3 (>= 3.5.0)") -# Setting arhitecture extension for rpm packages +# Setting architecture extension for rpm packages set(MG_ARCH_EXTENSION_RPM "noarch") if(${MG_ARCH} STREQUAL "x86_64") diff --git a/src/query/db_accessor.hpp b/src/query/db_accessor.hpp index b5414be73..f5ee4f0c1 100644 --- a/src/query/db_accessor.hpp +++ b/src/query/db_accessor.hpp @@ -27,7 +27,7 @@ /////////////////////////////////////////////////////////// // Our communication layer and query engine don't mix -// very well on Centos because OpenSSL version avaialable +// very well on Centos because OpenSSL version available // on Centos 7 include libkrb5 which has brilliant macros // called TRUE and FALSE. For more detailed explanation go // to memgraph.cpp. diff --git a/src/query/interpret/awesome_memgraph_functions.cpp b/src/query/interpret/awesome_memgraph_functions.cpp index a90aa70aa..4640e0d8e 100644 --- a/src/query/interpret/awesome_memgraph_functions.cpp +++ b/src/query/interpret/awesome_memgraph_functions.cpp @@ -1202,7 +1202,7 @@ TypedValue Duration(const TypedValue *args, int64_t nargs, const FunctionContext std::function UserFunction( const mgp_func &func, const std::string &fully_qualified_name) { return [func, fully_qualified_name](const TypedValue *args, int64_t nargs, const FunctionContext &ctx) -> TypedValue { - /// Find function is called to aquire the lock on Module pointer while user-defined function is executed + /// Find function is called to acquire the lock on Module pointer while user-defined function is executed const auto &maybe_found = procedure::FindFunction(procedure::gModuleRegistry, fully_qualified_name, utils::NewDeleteResource()); if (!maybe_found) { @@ -1210,7 +1210,7 @@ std::function timeout = std::nullopt, diff --git a/src/utils/file_locker.hpp b/src/utils/file_locker.hpp index 5fd96e159..6e88a6f4f 100644 --- a/src/utils/file_locker.hpp +++ b/src/utils/file_locker.hpp @@ -59,7 +59,7 @@ namespace memgraph::utils { * { * // Create accessor to the locker so you can * // add the files which need to be locked. - * // Accesor prevents deletion of any files + * // Accessor prevents deletion of any files * // so you safely add multiple files in atomic way * auto accessor = locker.Access(); * accessor.AddPath(file1); diff --git a/src/utils/memory_tracker.cpp b/src/utils/memory_tracker.cpp index 0989aed62..e8087c8dc 100644 --- a/src/utils/memory_tracker.cpp +++ b/src/utils/memory_tracker.cpp @@ -110,7 +110,7 @@ void MemoryTracker::Alloc(const int64_t size) { amount_.fetch_sub(size, std::memory_order_relaxed); throw OutOfMemoryException( - fmt::format("Memory limit exceeded! Atempting to allocate a chunk of {} which would put the current " + fmt::format("Memory limit exceeded! Attempting to allocate a chunk of {} which would put the current " "use to {}, while the maximum allowed size for allocation is set to {}.", GetReadableSize(size), GetReadableSize(will_be), GetReadableSize(current_hard_limit))); } diff --git a/src/utils/temporal.cpp b/src/utils/temporal.cpp index a84a26b0a..dd7fceeea 100644 --- a/src/utils/temporal.cpp +++ b/src/utils/temporal.cpp @@ -448,7 +448,7 @@ std::pair ParseLocalDateTimeParameters(std: // https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations // ISO8601 specifies that you cannot mix extended and basic format of date and time // If the date is in the extended format, same must be true for the time, so we don't send T - // which denotes the basic format. The opposite case also aplies. + // which denotes the basic format. The opposite case also applies. auto local_time_substring = string.substr(t_position + 1); if (local_time_substring.empty()) { throw temporal::InvalidArgumentException("Invalid LocalDateTime format. {}", diff --git a/tests/e2e/interactive_mg_runner.py b/tests/e2e/interactive_mg_runner.py index 646e8e785..769516961 100644 --- a/tests/e2e/interactive_mg_runner.py +++ b/tests/e2e/interactive_mg_runner.py @@ -12,7 +12,7 @@ # TODO(gitbuda): Add action to print the context/cluster. # TODO(gitbuda): Add action to print logs of each Memgraph instance. # TODO(gitbuda): Polish naming within script. -# TODO(gitbuda): Consider moving this somewhere higher in the project or even put inside GQLAlchmey. +# TODO(gitbuda): Consider moving this somewhere higher in the project or even put inside GQLAlchemy. # The idea here is to implement simple interactive runner of Memgraph instances because: # * it should be possible to manually create new test cases first diff --git a/tests/manual/interactive_planning.cpp b/tests/manual/interactive_planning.cpp index cbcbe38b8..d5da0ba2b 100644 --- a/tests/manual/interactive_planning.cpp +++ b/tests/manual/interactive_planning.cpp @@ -492,7 +492,7 @@ void RunInteractivePlanning(memgraph::query::DbAccessor *dba) { auto *query = dynamic_cast(MakeAst(*line, &ast)); if (!query) { throw memgraph::utils::BasicException( - "Interactive planning is only avaialable for regular openCypher " + "Interactive planning is only available for regular openCypher " "queries."); } auto symbol_table = memgraph::query::MakeSymbolTable(query); diff --git a/tests/mgbench/benchmark.py b/tests/mgbench/benchmark.py index 81091f2da..fcec5e811 100755 --- a/tests/mgbench/benchmark.py +++ b/tests/mgbench/benchmark.py @@ -292,7 +292,7 @@ def mixed_workload( function_type = random.choices(population=options, weights=percentage_distribution, k=num_of_queries) for t in function_type: - # Get the apropropriate functions with same probabilty + # Get the appropriate functions with same probabilty if t == "query": full_workload.append(base_query()) else: diff --git a/tests/mgbench/client.cpp b/tests/mgbench/client.cpp index 8db7b619d..b26a61995 100644 --- a/tests/mgbench/client.cpp +++ b/tests/mgbench/client.cpp @@ -470,7 +470,7 @@ int main(int argc, char **argv) { gflags::ParseCommandLineFlags(&argc, &argv, true); spdlog::info("Running a bolt client with following settings:"); - spdlog::info("Adress: {} ", FLAGS_address); + spdlog::info("Address: {} ", FLAGS_address); spdlog::info("Port: {} ", FLAGS_port); spdlog::info("Username: {} ", FLAGS_username); spdlog::info("Password: {} ", FLAGS_password); diff --git a/tests/stress/durability b/tests/stress/durability index 4e09281d2..d107e57ef 100755 --- a/tests/stress/durability +++ b/tests/stress/durability @@ -118,7 +118,7 @@ def run_client(id, data): if counter % 100000 == 0: print("Client %d executed %d" % (id, counter)) except Exception: - print("DB isn't reachable any more") + print("DB isn't reachable anymore") break data[id] = counter print("Client %d executed %d" % (id, counter)) diff --git a/tests/unit/cypher_main_visitor.cpp b/tests/unit/cypher_main_visitor.cpp index effa96cd7..dab14c874 100644 --- a/tests/unit/cypher_main_visitor.cpp +++ b/tests/unit/cypher_main_visitor.cpp @@ -19,9 +19,9 @@ #include ////////////////////////////////////////////////////// -// "json.hpp" should always come before "antrl4-runtime.h" +// "json.hpp" should always come before "antlr4-runtime.h" // "json.hpp" uses libc's EOF macro while -// "antrl4-runtime.h" contains a static variable of the +// "antlr4-runtime.h" contains a static variable of the // same name, EOF. // This hides the definition of the macro which causes // the compilation to fail. diff --git a/tests/unit/formatters.hpp b/tests/unit/formatters.hpp index 0b4d25908..f9b8fbba4 100644 --- a/tests/unit/formatters.hpp +++ b/tests/unit/formatters.hpp @@ -22,7 +22,7 @@ /// `TAccessor` supplied must have the functions `NameToLabel`, `LabelToName`, /// `NameToProperty`, `PropertyToName`, `NameToEdgeType` and `EdgeTypeToName`. /// For example, both `memgraph::storage::Storage` and `Storage::Accessor` will -/// be apropriate. +/// be appropriate. template inline std::string ToString(const memgraph::query::VertexAccessor &vertex, const TAccessor &acc) { diff --git a/tests/unit/query_plan.cpp b/tests/unit/query_plan.cpp index 8b14c3bf2..296dc5be8 100644 --- a/tests/unit/query_plan.cpp +++ b/tests/unit/query_plan.cpp @@ -949,7 +949,7 @@ TYPED_TEST(TestPlanner, ListWithAggregationAndGroupBy) { CheckPlan(query, this->storage, aggr, ExpectProduce()); } -TYPED_TEST(TestPlanner, AggregatonWithListWithAggregationAndGroupBy) { +TYPED_TEST(TestPlanner, AggregationWithListWithAggregationAndGroupBy) { // Test RETURN sum(2), [sum(3), 42] auto sum2 = SUM(LITERAL(2), false); auto sum3 = SUM(LITERAL(3), false); diff --git a/tests/unit/storage_v2_replication.cpp b/tests/unit/storage_v2_replication.cpp index f61d05c67..ed076e0bf 100644 --- a/tests/unit/storage_v2_replication.cpp +++ b/tests/unit/storage_v2_replication.cpp @@ -787,7 +787,7 @@ TEST_F(ReplicationTest, ReplicationReplicaWithExistingEndPoint) { .GetError() == memgraph::storage::InMemoryStorage::RegisterReplicaError::END_POINT_EXISTS); } -TEST_F(ReplicationTest, RestoringReplicationAtStartupAftgerDroppingReplica) { +TEST_F(ReplicationTest, RestoringReplicationAtStartupAfterDroppingReplica) { auto main_config = configuration; main_config.durability.restore_replication_state_on_startup = true; std::unique_ptr main_store{new memgraph::storage::InMemoryStorage(main_config)}; diff --git a/tools/github/cppcheck_and_clang_format b/tools/github/cppcheck_and_clang_format index 044fb270b..fada71ba2 100755 --- a/tools/github/cppcheck_and_clang_format +++ b/tools/github/cppcheck_and_clang_format @@ -23,7 +23,7 @@ noExplicitConstructor:src/storage/property_value.hpp noExplicitConstructor:src/query/typed_value.hpp noExplicitConstructor:src/communication/bolt/v1/decoder/decoded_value.hpp -// suppress antrl warnings +// suppress antlr warnings variableScope:src/query/frontend/opencypher/generated/CypherParser.h variableScope:src/query/frontend/opencypher/generated/CypherLexer.h variableScope:src/query/frontend/opencypher/generated/CypherParser.cpp