From 02c4242cebfe030086f908378600131f607a33f7 Mon Sep 17 00:00:00 2001 From: Kim Stone Date: Thu, 30 Oct 2025 09:33:13 -0700 Subject: [PATCH] Update company --- examples/c_example/main.c | 2 +- include/automata.h | 2 +- include/basic.h | 2 +- include/boost_asio.h | 4 ++-- include/boost_lexical_cast.h | 4 ++-- include/byteset.h | 4 ++-- include/c_api_util.h | 2 +- include/chain.h | 2 +- include/codegen.h | 2 +- include/compiler.h | 2 +- include/decoders/asciidecoder.h | 2 +- include/decoders/bytesource.h | 2 +- include/decoders/decoder.h | 2 +- include/decoders/decoderfactory.h | 2 +- include/decoders/icudecoder.h | 2 +- include/decoders/ocedecoder.h | 2 +- include/decoders/rotdecoder.h | 2 +- include/decoders/utf16.h | 2 +- include/decoders/utf16decoder.h | 2 +- include/decoders/utf32.h | 2 +- include/decoders/utf32decoder.h | 2 +- include/decoders/utf8.h | 2 +- include/decoders/utf8decoder.h | 2 +- include/decoders/utfdecoderbase.h | 2 +- include/decoders/xordecoder.h | 2 +- include/encoders/ascii.h | 2 +- include/encoders/byteencoder.h | 2 +- include/encoders/caching_encoder.h | 2 +- include/encoders/charencoder.h | 2 +- include/encoders/concrete_encoders.h | 2 +- include/encoders/decorating_encoder.h | 2 +- include/encoders/encoder.h | 2 +- include/encoders/encoderbase.h | 2 +- include/encoders/encoderfactory.h | 2 +- include/encoders/icuencoder.h | 2 +- include/encoders/oceencoder.h | 2 +- include/encoders/rotencoder.h | 2 +- include/encoders/utf16.h | 2 +- include/encoders/utf32.h | 2 +- include/encoders/utf8.h | 2 +- include/encoders/utfbase.h | 2 +- include/encoders/xorencoder.h | 2 +- include/errors.h | 4 ++-- include/factor_analysis.h | 8 ++++---- include/fragment.h | 2 +- include/fsmthingy.h | 4 ++-- include/fwd_pointers.h | 2 +- include/graph.h | 2 +- include/handles.h | 2 +- include/hitwriter.h | 4 ++-- include/icuconverter.h | 2 +- include/icuutil.h | 2 +- include/instructions.h | 2 +- include/lg_app.h | 4 ++-- include/lightgrep/api.h | 2 +- include/lightgrep/encodings.h.no_icu | 2 +- include/lightgrep/search_hit.h | 2 +- include/lightgrep/transforms.h | 2 +- include/lightgrep/util.h | 2 +- include/matchgen.h | 2 +- include/nfabuilder.h | 2 +- include/nfaoptimizer.h | 2 +- include/options.h | 4 ++-- include/optparser.h | 4 ++-- include/parsenode.h | 2 +- include/parser.h | 2 +- include/parsetree.h | 2 +- include/parseutil.h | 2 +- include/pattern.h | 2 +- include/pattern_map.h | 4 ++-- include/program.h | 2 +- include/rangeset.h | 2 +- include/reader.h | 4 ++-- include/rewriter.h | 2 +- include/searchcontroller.h | 4 ++-- include/searchhit.h | 4 ++-- include/sequences.h | 2 +- include/simplevectorfamily.h | 2 +- include/sparseset.h | 2 +- include/states.h | 2 +- include/staticvector.h | 4 ++-- include/thread.h | 2 +- include/transition.h | 2 +- include/transitionfactory.h | 2 +- include/unicode.h | 2 +- include/unparser.h | 2 +- include/util.h | 4 ++-- include/utility.h | 2 +- include/vectorfamily.h | 2 +- include/vm.h | 2 +- include/vm_interface.h | 2 +- pylightgrep/lg_example.py | 2 +- pylightgrep/lightgrep/__init__.py | 2 +- pylightgrep/setup.py | 4 ++-- pylightgrep/tests/test_lightgrep.py | 2 +- pytest/analyze_trace.py | 8 ++++---- pytest/guid_gen.py | 2 +- pytest/lightgrep_stats.py | 2 +- pytest/receive_data.py | 4 ++-- pytest/regression.py | 2 +- pytest/send_data_to_lg.py | 2 +- pytest/tb_db_create.py | 2 +- pytest/tinderbox.py | 12 ++++++------ pytest/trace_runner.py | 2 +- re_gen/basic.h | 4 ++-- re_gen/lgtestlib.py | 4 ++-- re_gen/minfail.py | 2 +- re_gen/node.cpp | 2 +- re_gen/node.h | 4 ++-- re_gen/parsecheck.cpp | 6 +++--- re_gen/parsetree.h | 4 ++-- re_gen/pat2data-enc.py | 2 +- re_gen/pat2data.py | 2 +- re_gen/pat2sorttest.py | 2 +- re_gen/pat2swith.py | 2 +- re_gen/pat2test.py | 2 +- re_gen/patsample.py | 2 +- re_gen/randpat.cpp | 16 ++++++++-------- re_gen/shitgrep.cpp | 20 ++++++++++---------- re_gen/unparser.cpp | 2 +- re_gen/unparser.h | 4 ++-- re_gen/utf8-gen.py | 2 +- src/cmd/hitwriter.cpp | 4 ++-- src/cmd/lg_app.cpp | 4 ++-- src/cmd/main.cpp | 4 ++-- src/cmd/options.cpp | 2 +- src/cmd/optparser.cpp | 2 +- src/cmd/reader.cpp | 2 +- src/cmd/searchcontroller.cpp | 2 +- src/cmd/util.cpp | 2 +- src/enc/encodings.cpp | 4 ++-- src/java/jni/jlightgrep.cpp | 2 +- src/lib/ascii.cpp | 2 +- src/lib/automata.cpp | 2 +- src/lib/byteencoder.cpp | 2 +- src/lib/byteset.cpp | 2 +- src/lib/c_api_util.cpp | 2 +- src/lib/chain.cpp | 2 +- src/lib/charencoder.cpp | 2 +- src/lib/codegen.cpp | 2 +- src/lib/compiler.cpp | 2 +- src/lib/decoders/decoder.cpp | 2 +- src/lib/decoders/decoderfactory.cpp | 2 +- src/lib/decoders/ocedecoder.cpp | 2 +- src/lib/encoderbase.cpp | 2 +- src/lib/encoderfactory.cpp | 2 +- src/lib/errors.cpp | 2 +- src/lib/fsmthingy.cpp | 2 +- src/lib/icuconverter.cpp | 2 +- src/lib/icuencoder.cpp | 2 +- src/lib/icuutil.cpp | 2 +- src/lib/instructions.cpp | 2 +- src/lib/lightgrep_c_api.cpp | 4 ++-- src/lib/lightgrep_c_util.cpp | 2 +- src/lib/matchgen.cpp | 2 +- src/lib/nfabuilder.cpp | 2 +- src/lib/nfaoptimizer.cpp | 2 +- src/lib/oceencoder.cpp | 2 +- src/lib/parsenode.cpp | 2 +- src/lib/parser.cpp | 2 +- src/lib/parsetree.cpp | 2 +- src/lib/parseutil.cpp | 2 +- src/lib/pattern.cpp | 2 +- src/lib/pattern_map.cpp | 16 ++++++++-------- src/lib/program.cpp | 2 +- src/lib/rewriter.cpp | 2 +- src/lib/states.cpp | 2 +- src/lib/thread.cpp | 2 +- src/lib/unparser.cpp | 2 +- src/lib/utf8.cpp | 2 +- src/lib/utfbase.cpp | 2 +- src/lib/utility.cpp | 2 +- src/lib/vm.cpp | 4 ++-- src/val/valid.cpp | 2 +- src/what/what.cpp | 2 +- test/data_reader.cpp | 2 +- test/data_reader.h | 2 +- test/dtest.cpp | 2 +- test/dtest.h | 2 +- test/executor.h | 2 +- test/mockcallback.cpp | 2 +- test/mockcallback.h | 2 +- test/stest.cpp | 2 +- test/stest.h | 2 +- test/test_ascii.cpp | 2 +- test/test_auto_search_1.cpp | 2 +- test/test_auto_search_2.cpp | 2 +- test/test_auto_search_3.cpp | 2 +- test/test_auto_search_4.cpp | 2 +- test/test_auto_search_5.cpp | 2 +- test/test_auto_search_6.cpp | 2 +- test/test_auto_search_7.cpp | 2 +- test/test_auto_search_multi_1.cpp | 2 +- test/test_auto_search_multi_2.cpp | 2 +- test/test_auto_starts_with_1.cpp | 2 +- test/test_auto_starts_with_2.cpp | 2 +- test/test_auto_starts_with_3.cpp | 2 +- test/test_auto_starts_with_4.cpp | 4 ++-- test/test_auto_starts_with_5.cpp | 2 +- test/test_auto_starts_with_6.cpp | 2 +- test/test_auto_starts_with_7.cpp | 2 +- test/test_auto_starts_with_multi_1.cpp | 2 +- test/test_auto_starts_with_multi_2.cpp | 2 +- test/test_basic.cpp | 2 +- test/test_byteset.cpp | 2 +- test/test_bytesource.cpp | 2 +- test/test_c_api.cpp | 2 +- test/test_c_util.cpp | 2 +- test/test_compiler.cpp | 2 +- test/test_factor_analysis.cpp | 12 ++++++------ test/test_graph.cpp | 2 +- test/test_helper.cpp | 2 +- test/test_helper.h | 2 +- test/test_hitwriter.cpp | 4 ++-- test/test_icu.cpp | 2 +- test/test_icudecoder.cpp | 2 +- test/test_icuutil.cpp | 2 +- test/test_instructions.cpp | 2 +- test/test_main.cpp | 4 ++-- test/test_matchgen.cpp | 2 +- test/test_nfabuilder.cpp | 2 +- test/test_nfaoptimizer.cpp | 2 +- test/test_oceencoder.cpp | 2 +- test/test_options.cpp | 2 +- test/test_optparser.cpp | 2 +- test/test_parser.cpp | 2 +- test/test_parseutil.cpp | 2 +- test/test_pattern_map.cpp | 2 +- test/test_program.cpp | 2 +- test/test_rangeset.cpp | 2 +- test/test_rewriter.cpp | 2 +- test/test_rotencoder.cpp | 2 +- test/test_search.cpp | 2 +- test/test_search_assertions.cpp | 2 +- test/test_search_data.cpp | 2 +- test/test_search_data_driver.cpp | 2 +- test/test_search_switches.cpp | 2 +- test/test_sequences.h | 2 +- test/test_sparseset.cpp | 2 +- test/test_starts_with.cpp | 2 +- test/test_states.cpp | 2 +- test/test_testregex_basic_modified.cpp | 2 +- test/test_thread.cpp | 2 +- test/test_transitionfactory.cpp | 2 +- test/test_unicode.cpp | 4 ++-- test/test_unparser.cpp | 2 +- test/test_utf16.cpp | 2 +- test/test_utf32.cpp | 2 +- test/test_utf8.cpp | 2 +- test/test_utf8decoder.cpp | 2 +- test/test_utility.cpp | 2 +- test/test_vectorfamily.cpp | 2 +- test/test_vm.cpp | 2 +- test/test_xorencoder.cpp | 2 +- test/unicode_sets.h | 2 +- 255 files changed, 328 insertions(+), 328 deletions(-) diff --git a/examples/c_example/main.c b/examples/c_example/main.c index 4bd4b6d8..1903415f 100644 --- a/examples/c_example/main.c +++ b/examples/c_example/main.c @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/automata.h b/include/automata.h index 5ffd7257..33a69763 100644 --- a/include/automata.h +++ b/include/automata.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/basic.h b/include/basic.h index 37e73e85..125b83e0 100644 --- a/include/basic.h +++ b/include/basic.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/boost_asio.h b/include/boost_asio.h index 3ac54f44..25bf1040 100644 --- a/include/boost_asio.h +++ b/include/boost_asio.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #pragma clang diagnostic push diff --git a/include/boost_lexical_cast.h b/include/boost_lexical_cast.h index b11d393a..a13a3db0 100644 --- a/include/boost_lexical_cast.h +++ b/include/boost_lexical_cast.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #pragma GCC diagnostic push diff --git a/include/byteset.h b/include/byteset.h index 8f726379..7fb1ff3d 100644 --- a/include/byteset.h +++ b/include/byteset.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -90,7 +90,7 @@ class ByteSet: public std::bitset<256> { } } - + using std::bitset<256>::set; bool operator<(const ByteSet& other) const { diff --git a/include/c_api_util.h b/include/c_api_util.h index e5a64e09..5a3cb214 100644 --- a/include/c_api_util.h +++ b/include/c_api_util.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/chain.h b/include/chain.h index c28f6ab8..45e24723 100644 --- a/include/chain.h +++ b/include/chain.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/codegen.h b/include/codegen.h index 69c5b5c3..9b006e87 100644 --- a/include/codegen.h +++ b/include/codegen.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/compiler.h b/include/compiler.h index 7dd84526..af928ef2 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/asciidecoder.h b/include/decoders/asciidecoder.h index 34af29ed..70fd56e8 100644 --- a/include/decoders/asciidecoder.h +++ b/include/decoders/asciidecoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/bytesource.h b/include/decoders/bytesource.h index 57085b73..6d47c882 100644 --- a/include/decoders/bytesource.h +++ b/include/decoders/bytesource.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/decoder.h b/include/decoders/decoder.h index e34769a5..296c7448 100644 --- a/include/decoders/decoder.h +++ b/include/decoders/decoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/decoderfactory.h b/include/decoders/decoderfactory.h index 98d086d8..ddb34d58 100644 --- a/include/decoders/decoderfactory.h +++ b/include/decoders/decoderfactory.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/icudecoder.h b/include/decoders/icudecoder.h index b1e84da7..30f055bc 100644 --- a/include/decoders/icudecoder.h +++ b/include/decoders/icudecoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/ocedecoder.h b/include/decoders/ocedecoder.h index 12dba0df..9af4f7a7 100644 --- a/include/decoders/ocedecoder.h +++ b/include/decoders/ocedecoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/rotdecoder.h b/include/decoders/rotdecoder.h index 08eb7a47..b5ea6d7a 100644 --- a/include/decoders/rotdecoder.h +++ b/include/decoders/rotdecoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/utf16.h b/include/decoders/utf16.h index 57b8f73e..ef50aa5d 100644 --- a/include/decoders/utf16.h +++ b/include/decoders/utf16.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/utf16decoder.h b/include/decoders/utf16decoder.h index c7ef2bb1..79102bba 100644 --- a/include/decoders/utf16decoder.h +++ b/include/decoders/utf16decoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/utf32.h b/include/decoders/utf32.h index 753f7702..e6c2b1ee 100644 --- a/include/decoders/utf32.h +++ b/include/decoders/utf32.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/utf32decoder.h b/include/decoders/utf32decoder.h index a66bd39f..82d0944f 100644 --- a/include/decoders/utf32decoder.h +++ b/include/decoders/utf32decoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/utf8.h b/include/decoders/utf8.h index 36589a64..844dffcf 100644 --- a/include/decoders/utf8.h +++ b/include/decoders/utf8.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/utf8decoder.h b/include/decoders/utf8decoder.h index 85f0c3c0..fdfca431 100644 --- a/include/decoders/utf8decoder.h +++ b/include/decoders/utf8decoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/utfdecoderbase.h b/include/decoders/utfdecoderbase.h index bb7d786f..86edee6c 100644 --- a/include/decoders/utfdecoderbase.h +++ b/include/decoders/utfdecoderbase.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/decoders/xordecoder.h b/include/decoders/xordecoder.h index e2b2947b..548cf9e5 100644 --- a/include/decoders/xordecoder.h +++ b/include/decoders/xordecoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/ascii.h b/include/encoders/ascii.h index 01ff28c8..8dc49944 100644 --- a/include/encoders/ascii.h +++ b/include/encoders/ascii.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/byteencoder.h b/include/encoders/byteencoder.h index 433790da..459753aa 100644 --- a/include/encoders/byteencoder.h +++ b/include/encoders/byteencoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/caching_encoder.h b/include/encoders/caching_encoder.h index 7387c014..9f7a733c 100644 --- a/include/encoders/caching_encoder.h +++ b/include/encoders/caching_encoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/charencoder.h b/include/encoders/charencoder.h index ea3a3e15..6292b669 100644 --- a/include/encoders/charencoder.h +++ b/include/encoders/charencoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/concrete_encoders.h b/include/encoders/concrete_encoders.h index 7beccc8e..efc5b5a6 100644 --- a/include/encoders/concrete_encoders.h +++ b/include/encoders/concrete_encoders.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/decorating_encoder.h b/include/encoders/decorating_encoder.h index d0110b7c..4d95de78 100644 --- a/include/encoders/decorating_encoder.h +++ b/include/encoders/decorating_encoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/encoder.h b/include/encoders/encoder.h index 222037c6..39d9a6d3 100644 --- a/include/encoders/encoder.h +++ b/include/encoders/encoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/encoderbase.h b/include/encoders/encoderbase.h index 01e5f467..c25d7f07 100644 --- a/include/encoders/encoderbase.h +++ b/include/encoders/encoderbase.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/encoderfactory.h b/include/encoders/encoderfactory.h index dfc0fe63..d257bf52 100644 --- a/include/encoders/encoderfactory.h +++ b/include/encoders/encoderfactory.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/icuencoder.h b/include/encoders/icuencoder.h index 6e6704df..9bce37de 100644 --- a/include/encoders/icuencoder.h +++ b/include/encoders/icuencoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/oceencoder.h b/include/encoders/oceencoder.h index 78397780..ab9a34e3 100644 --- a/include/encoders/oceencoder.h +++ b/include/encoders/oceencoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/rotencoder.h b/include/encoders/rotencoder.h index 88582758..5bf2caa5 100644 --- a/include/encoders/rotencoder.h +++ b/include/encoders/rotencoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/utf16.h b/include/encoders/utf16.h index dc22b94b..f7d20f16 100644 --- a/include/encoders/utf16.h +++ b/include/encoders/utf16.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/utf32.h b/include/encoders/utf32.h index cb3e55e3..9811a892 100644 --- a/include/encoders/utf32.h +++ b/include/encoders/utf32.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/utf8.h b/include/encoders/utf8.h index 22d5dfc7..59ae6640 100644 --- a/include/encoders/utf8.h +++ b/include/encoders/utf8.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/utfbase.h b/include/encoders/utfbase.h index 7ce1cc1e..50ff05b3 100644 --- a/include/encoders/utfbase.h +++ b/include/encoders/utfbase.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/encoders/xorencoder.h b/include/encoders/xorencoder.h index 1c8702eb..7b3603c1 100644 --- a/include/encoders/xorencoder.h +++ b/include/encoders/xorencoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/errors.h b/include/errors.h index bb121bcd..bfe54bc7 100644 --- a/include/errors.h +++ b/include/errors.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #include "lightgrep/api.h" #include diff --git a/include/factor_analysis.h b/include/factor_analysis.h index 3852a744..93c43916 100644 --- a/include/factor_analysis.h +++ b/include/factor_analysis.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -93,7 +93,7 @@ void updateQueue( } Lists breadthFirstSearch( - NFA::VertexDescriptor startingNode, + NFA::VertexDescriptor startingNode, const NFA& graph) { //Create empty queue @@ -211,10 +211,10 @@ List getShortestPath(Lists pos) { return s; } -List dominantPath( +List dominantPath( NFA::VertexDescriptor startingNode, const NFA& graph) { - + Lists pos(breadthFirstSearch(startingNode, graph)); int n = pos.size(); diff --git a/include/fragment.h b/include/fragment.h index e3a6bcd1..913acff7 100644 --- a/include/fragment.h +++ b/include/fragment.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/fsmthingy.h b/include/fsmthingy.h index 8cf92d10..84dd236b 100644 --- a/include/fsmthingy.h +++ b/include/fsmthingy.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include "basic.h" diff --git a/include/fwd_pointers.h b/include/fwd_pointers.h index cb867b93..d722e53d 100644 --- a/include/fwd_pointers.h +++ b/include/fwd_pointers.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/graph.h b/include/graph.h index b154fafd..bce35270 100644 --- a/include/graph.h +++ b/include/graph.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/handles.h b/include/handles.h index 78eddf74..5d2b4324 100644 --- a/include/handles.h +++ b/include/handles.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/hitwriter.h b/include/hitwriter.h index 8bc51bbf..567d7bb3 100644 --- a/include/hitwriter.h +++ b/include/hitwriter.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include diff --git a/include/icuconverter.h b/include/icuconverter.h index 06dd86d9..72d4daa1 100644 --- a/include/icuconverter.h +++ b/include/icuconverter.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/icuutil.h b/include/icuutil.h index 5b45b83e..9b9e84d4 100644 --- a/include/icuutil.h +++ b/include/icuutil.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/instructions.h b/include/instructions.h index ce678ec2..fb1127d5 100644 --- a/include/instructions.h +++ b/include/instructions.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/lg_app.h b/include/lg_app.h index 81bf3b36..c9b3a1cf 100644 --- a/include/lg_app.h +++ b/include/lg_app.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #include #include #include diff --git a/include/lightgrep/api.h b/include/lightgrep/api.h index de02a4f2..cbfbec35 100644 --- a/include/lightgrep/api.h +++ b/include/lightgrep/api.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/lightgrep/encodings.h.no_icu b/include/lightgrep/encodings.h.no_icu index b93c85da..51c2be43 100644 --- a/include/lightgrep/encodings.h.no_icu +++ b/include/lightgrep/encodings.h.no_icu @@ -1,4 +1,4 @@ -// Copyright 2011-, Aon Cyber Solutions. All Rights Reserved. +// Copyright 2011-, LevelBlue. All Rights Reserved. #ifndef LIGHTGREP_C_ENCODINGS_H_ #define LIGHTGREP_C_ENCODINGS_H_ diff --git a/include/lightgrep/search_hit.h b/include/lightgrep/search_hit.h index 7eda2ac9..3bbd2111 100644 --- a/include/lightgrep/search_hit.h +++ b/include/lightgrep/search_hit.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/lightgrep/transforms.h b/include/lightgrep/transforms.h index 3e80f774..18dfe6ae 100644 --- a/include/lightgrep/transforms.h +++ b/include/lightgrep/transforms.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/lightgrep/util.h b/include/lightgrep/util.h index 4430be9c..7f992051 100644 --- a/include/lightgrep/util.h +++ b/include/lightgrep/util.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/matchgen.h b/include/matchgen.h index 1f409e21..821affdc 100644 --- a/include/matchgen.h +++ b/include/matchgen.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/nfabuilder.h b/include/nfabuilder.h index c2dd35a2..68d16fe3 100644 --- a/include/nfabuilder.h +++ b/include/nfabuilder.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/nfaoptimizer.h b/include/nfaoptimizer.h index e2e96b03..8bd5b7db 100644 --- a/include/nfaoptimizer.h +++ b/include/nfaoptimizer.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/options.h b/include/options.h index ee49e9c8..411cab38 100644 --- a/include/options.h +++ b/include/options.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include "basic.h" diff --git a/include/optparser.h b/include/optparser.h index 981c1ff9..f0e0b109 100644 --- a/include/optparser.h +++ b/include/optparser.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include "options.h" diff --git a/include/parsenode.h b/include/parsenode.h index 8a3610c8..50b0f2ec 100644 --- a/include/parsenode.h +++ b/include/parsenode.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/parser.h b/include/parser.h index 0b317be7..41a22cd0 100644 --- a/include/parser.h +++ b/include/parser.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/parsetree.h b/include/parsetree.h index 89a0b4da..52c92b9c 100644 --- a/include/parsetree.h +++ b/include/parsetree.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/parseutil.h b/include/parseutil.h index 28b2df02..2f26ddb9 100644 --- a/include/parseutil.h +++ b/include/parseutil.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/pattern.h b/include/pattern.h index 70f12d6f..f7f31521 100644 --- a/include/pattern.h +++ b/include/pattern.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/pattern_map.h b/include/pattern_map.h index caf9c263..c32f4851 100644 --- a/include/pattern_map.h +++ b/include/pattern_map.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include diff --git a/include/program.h b/include/program.h index 655e21b2..4ad80cad 100644 --- a/include/program.h +++ b/include/program.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/rangeset.h b/include/rangeset.h index 2fcba866..3ca6a55f 100644 --- a/include/rangeset.h +++ b/include/rangeset.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/reader.h b/include/reader.h index 78d77b8d..dfad3611 100644 --- a/include/reader.h +++ b/include/reader.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include diff --git a/include/rewriter.h b/include/rewriter.h index 7fc2a21c..cafa5dfc 100644 --- a/include/rewriter.h +++ b/include/rewriter.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/searchcontroller.h b/include/searchcontroller.h index 8f02c5c2..a45f0774 100644 --- a/include/searchcontroller.h +++ b/include/searchcontroller.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include "hitwriter.h" diff --git a/include/searchhit.h b/include/searchhit.h index 268fc077..23ceaa66 100644 --- a/include/searchhit.h +++ b/include/searchhit.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ class SearchHit: public LG_SearchHit { public: SearchHit() {} - SearchHit(const LG_SearchHit& s): LG_SearchHit{s.Start, s.End, s.KeywordIndex} {} + SearchHit(const LG_SearchHit& s): LG_SearchHit{s.Start, s.End, s.KeywordIndex} {} // note that this takes the length SearchHit(uint64_t start, uint64_t end, uint32_t lbl) { diff --git a/include/sequences.h b/include/sequences.h index 8dc01c66..18ad59ce 100644 --- a/include/sequences.h +++ b/include/sequences.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/simplevectorfamily.h b/include/simplevectorfamily.h index ba0474ec..4950a6de 100644 --- a/include/simplevectorfamily.h +++ b/include/simplevectorfamily.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/sparseset.h b/include/sparseset.h index 404e1f13..5a7a771e 100644 --- a/include/sparseset.h +++ b/include/sparseset.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/states.h b/include/states.h index 3cc2528a..c5a6a933 100644 --- a/include/states.h +++ b/include/states.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/staticvector.h b/include/staticvector.h index df3556a0..49a19da7 100644 --- a/include/staticvector.h +++ b/include/staticvector.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include "basic.h" diff --git a/include/thread.h b/include/thread.h index 68de73b9..e014ae43 100644 --- a/include/thread.h +++ b/include/thread.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/transition.h b/include/transition.h index 16a47165..f1f310b3 100644 --- a/include/transition.h +++ b/include/transition.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/transitionfactory.h b/include/transitionfactory.h index 158ba3ba..ec436661 100644 --- a/include/transitionfactory.h +++ b/include/transitionfactory.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/unicode.h b/include/unicode.h index 47bfe35c..2d99e932 100644 --- a/include/unicode.h +++ b/include/unicode.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/unparser.h b/include/unparser.h index 32e4342a..a0e07f15 100644 --- a/include/unparser.h +++ b/include/unparser.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/util.h b/include/util.h index be2b79e2..9ba3df61 100644 --- a/include/util.h +++ b/include/util.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include diff --git a/include/utility.h b/include/utility.h index abc6c74b..40990b15 100644 --- a/include/utility.h +++ b/include/utility.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/vectorfamily.h b/include/vectorfamily.h index 6e44cef9..2a436036 100644 --- a/include/vectorfamily.h +++ b/include/vectorfamily.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/vm.h b/include/vm.h index 26186ad7..a373ebeb 100644 --- a/include/vm.h +++ b/include/vm.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/vm_interface.h b/include/vm_interface.h index 73cd9dc4..6e96f87b 100644 --- a/include/vm_interface.h +++ b/include/vm_interface.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/pylightgrep/lg_example.py b/pylightgrep/lg_example.py index 3a285686..b236cfde 100644 --- a/pylightgrep/lg_example.py +++ b/pylightgrep/lg_example.py @@ -1,5 +1,5 @@ -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pylightgrep/lightgrep/__init__.py b/pylightgrep/lightgrep/__init__.py index 8bdc9afb..d623fa3c 100644 --- a/pylightgrep/lightgrep/__init__.py +++ b/pylightgrep/lightgrep/__init__.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pylightgrep/setup.py b/pylightgrep/setup.py index d3dcf4ae..59162692 100644 --- a/pylightgrep/setup.py +++ b/pylightgrep/setup.py @@ -1,5 +1,5 @@ -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ setuptools.setup( name='lightgrep', version='0.1.0', - author='Joel Uckelman ', + author='Joel Uckelman ', packages=['lightgrep'], package_data={ 'lightgrep': ['liblightgrep.so', 'liblightgrep.dylib'] diff --git a/pylightgrep/tests/test_lightgrep.py b/pylightgrep/tests/test_lightgrep.py index dc14616d..062f492d 100755 --- a/pylightgrep/tests/test_lightgrep.py +++ b/pylightgrep/tests/test_lightgrep.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytest/analyze_trace.py b/pytest/analyze_trace.py index 56e1533f..a6c3bb18 100755 --- a/pytest/analyze_trace.py +++ b/pytest/analyze_trace.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # encoding: utf-8 -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ import collections import math -InstructionCodes = { +InstructionCodes = { 0:'UNINITIALIZED', 1:'BYTE_OP', 2:'EITHER_OP', @@ -104,7 +104,7 @@ def read(self, lines): pass self.NumThreadsSegments.append((lastNumThreads, lastStart, bytes)) self.NumBytes = bytes - + def totalThreads(self): return sum(self.ThreadLifetimes.values()) @@ -162,7 +162,7 @@ def output(self): print("Instructions executed histogram:") for el in self.InstructionHist.most_common(): print(" %s, %s, %s" % (el[0], el[1], float(el[1] * 100) / totalInstrs)) - + print("File segments (%s)" % (str(len(self.NumThreadsSegments)))) for seg in self.NumThreadsSegments: print(" %s, %s, %s, %s" % (seg[0], seg[2] - seg[1], seg[1], seg[2])) diff --git a/pytest/guid_gen.py b/pytest/guid_gen.py index d960ba7f..55ee1352 100755 --- a/pytest/guid_gen.py +++ b/pytest/guid_gen.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytest/lightgrep_stats.py b/pytest/lightgrep_stats.py index f6ae7a20..f86b6970 100644 --- a/pytest/lightgrep_stats.py +++ b/pytest/lightgrep_stats.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # encoding: utf-8 -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytest/receive_data.py b/pytest/receive_data.py index ef7405b6..dd12e58a 100755 --- a/pytest/receive_data.py +++ b/pytest/receive_data.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -sock.bind(('127.0.0.1', 12777)) +sock.bind(('127.0.0.1', 12777)) sock.listen(1) conn, addr = sock.accept() diff --git a/pytest/regression.py b/pytest/regression.py index 82ee93ef..8a319566 100644 --- a/pytest/regression.py +++ b/pytest/regression.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # encoding: utf-8 -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytest/send_data_to_lg.py b/pytest/send_data_to_lg.py index 0fe06b9a..a8693311 100755 --- a/pytest/send_data_to_lg.py +++ b/pytest/send_data_to_lg.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytest/tb_db_create.py b/pytest/tb_db_create.py index 9807373e..9bf92250 100755 --- a/pytest/tb_db_create.py +++ b/pytest/tb_db_create.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pytest/tinderbox.py b/pytest/tinderbox.py index 121d1a1f..fb136174 100755 --- a/pytest/tinderbox.py +++ b/pytest/tinderbox.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -188,7 +188,7 @@ def main(): commit = run(git_hash)[0].strip() task_result(commit) - + # clean and build task_declare("Cleaning") run(scons_clean, scons_env) @@ -201,16 +201,16 @@ def main(): gcc_warnings = [ line for line in stderr if 'warning' in line ] gcc_errors = [ line for line in stderr if 'error' in line ] - + if gcc_warnings: task_result("warnings") task_result(gcc_warnings) - + if gcc_errors: task_failure() task_result(gcc_errors) sys.exit() - + if not gcc_warnings: task_success() @@ -223,7 +223,7 @@ def main(): task_result(unit_failures) sys.exit() except ValueError: - task_success() + task_success() # prepare for tests using the database with sqlite3.connect(dbfile) as db: diff --git a/pytest/trace_runner.py b/pytest/trace_runner.py index 4ddf760d..4d154b97 100644 --- a/pytest/trace_runner.py +++ b/pytest/trace_runner.py @@ -1,4 +1,4 @@ -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/re_gen/basic.h b/re_gen/basic.h index 7edf698d..72dc8236 100644 --- a/re_gen/basic.h +++ b/re_gen/basic.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include diff --git a/re_gen/lgtestlib.py b/re_gen/lgtestlib.py index 6e7e1a28..cd72a6a7 100644 --- a/re_gen/lgtestlib.py +++ b/re_gen/lgtestlib.py @@ -1,4 +1,4 @@ -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - + import os import subprocess import tempfile diff --git a/re_gen/minfail.py b/re_gen/minfail.py index ed1d4c44..2711e98d 100755 --- a/re_gen/minfail.py +++ b/re_gen/minfail.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/re_gen/node.cpp b/re_gen/node.cpp index 4c2324e9..75df3ce1 100644 --- a/re_gen/node.cpp +++ b/re_gen/node.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/re_gen/node.h b/re_gen/node.h index 144493c8..7fe980f7 100644 --- a/re_gen/node.h +++ b/re_gen/node.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include "basic.h" diff --git a/re_gen/parsecheck.cpp b/re_gen/parsecheck.cpp index 7b65708a..a66a55dd 100644 --- a/re_gen/parsecheck.cpp +++ b/re_gen/parsecheck.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,10 +34,10 @@ void parse(const char* pattern) { nullptr ); - if (!re) { + if (!re) { std::cout << pattern << ' ' << error_str << std::endl; } - + free(re); } diff --git a/re_gen/parsetree.h b/re_gen/parsetree.h index 856d42fb..1952bb3e 100644 --- a/re_gen/parsetree.h +++ b/re_gen/parsetree.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include "basic.h" diff --git a/re_gen/pat2data-enc.py b/re_gen/pat2data-enc.py index ef3cc894..222ca881 100755 --- a/re_gen/pat2data-enc.py +++ b/re_gen/pat2data-enc.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/re_gen/pat2data.py b/re_gen/pat2data.py index 9604b99a..7fbff6a3 100755 --- a/re_gen/pat2data.py +++ b/re_gen/pat2data.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/re_gen/pat2sorttest.py b/re_gen/pat2sorttest.py index 5159308b..c95f8b4b 100755 --- a/re_gen/pat2sorttest.py +++ b/re_gen/pat2sorttest.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/re_gen/pat2swith.py b/re_gen/pat2swith.py index 0f270652..8b1b9da0 100755 --- a/re_gen/pat2swith.py +++ b/re_gen/pat2swith.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/re_gen/pat2test.py b/re_gen/pat2test.py index 14392e64..ab76bc5c 100755 --- a/re_gen/pat2test.py +++ b/re_gen/pat2test.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/re_gen/patsample.py b/re_gen/patsample.py index eb49b322..12e7db3e 100755 --- a/re_gen/patsample.py +++ b/re_gen/patsample.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/re_gen/randpat.cpp b/re_gen/randpat.cpp index 1afd62ed..d2c583a1 100644 --- a/re_gen/randpat.cpp +++ b/re_gen/randpat.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ #include "unparser.h" // C_17 is the largest Catalan number which fits in 32 bits -// C_33 is the largest Catalan number which fits in 64 bits +// C_33 is the largest Catalan number which fits in 64 bits uint64 catalan(uint32 n) { return n == 0 ? 1 : catalan(n-1)*2*(2*n-1)/(n+1); } @@ -60,14 +60,14 @@ int main(int argc, char** argv) { // C[i] is the ith Catalan number std::vector C(nmax); - + for (uint32 i = 0; i < nmax; ++i) { C[i] = catalan(i); } // sumC[n] is the sum of C[i], 0 <= i < n std::vector sumC(C); - std::partial_sum(C.begin(), C.end(), sumC.begin()); + std::partial_sum(C.begin(), C.end(), sumC.begin()); /* std::copy(C.begin(), C.end(), std::ostream_iterator(std::cout, "\n")); @@ -95,7 +95,7 @@ int main(int argc, char** argv) { // Build a random n-node binary tree. ParseTree tree; tree.init(n+1); // extra node is for the REGEXP root - + Node* ig = tree.add(Node(Node::IGNORE, (Node*) 0, (Node*) 0)); tree.Root = tree.add(Node(Node::REGEXP, ig)); std::vector available(1, ig); @@ -108,7 +108,7 @@ int main(int argc, char** argv) { Node* c = tree.add(Node(Node::IGNORE, (Node*) 0, (Node*) 0)); if (!p->Left) { - p->Left = c; + p->Left = c; available.push_back(c); } else { @@ -116,7 +116,7 @@ int main(int argc, char** argv) { available[ni] = c; } } - + // Assign types to the non-root nodes. std::stack stack; @@ -200,7 +200,7 @@ int main(int argc, char** argv) { */ } } - + std::cout << unparse(tree) << '\n'; } diff --git a/re_gen/shitgrep.cpp b/re_gen/shitgrep.cpp index 99a1f8a2..99073ff3 100644 --- a/re_gen/shitgrep.cpp +++ b/re_gen/shitgrep.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,7 +74,7 @@ struct Regex { throw std::runtime_error(ss.str()); } } - + ~Regex() { pcre_free(re); pcre_free_study(extra); @@ -90,7 +90,7 @@ int do_one_match( const char* text, const size_t text_len, const unsigned int offset, int* ovector, const unsigned int ovector_size) { - int matches = pcre_exec( + int matches = pcre_exec( re.re, re.extra, text, @@ -108,7 +108,7 @@ int do_one_match( // is set for the pattern throw std::runtime_error("ovector is too small!"); } - + if (matches < 0) { std::ostringstream ss; ss << "pcre_exec: " << matches; @@ -153,7 +153,7 @@ unsigned int match( // reject this patern with the same error message as lightgrep std::cerr << "state 0 is not allowed as a final state of the NFA" << std::endl; - return 0; + return 0; } do { @@ -169,7 +169,7 @@ unsigned int match( // advance to match end, but at least one char offset = std::max(offset+1, static_cast(ovector[1])); - } while (offset < text_len); + } while (offset < text_len); return total; } @@ -180,7 +180,7 @@ void match_printer(int mstart, int mend, unsigned int patnum, << mend << '\t' << patnum << '\t' << pattern << '\t' - << charset << '\n'; + << charset << '\n'; } const char* help_short() { @@ -217,7 +217,7 @@ void do_matches(std::istream& is, const char* text, size_t text_len) { while (!is.eof()) { std::getline(is, pattern); - if (pattern.empty()) continue; // skip empty lines + if (pattern.empty()) continue; // skip empty lines std::cerr << patnum << std::endl; @@ -341,7 +341,7 @@ int main(int argc, char** argv) text_arg = 3; } else { - // get patterns from pattern file + // get patterns from pattern file use_pfile = true; pat = argv[1]; text_arg = 2; @@ -391,7 +391,7 @@ int main(int argc, char** argv) // if (use_pfile) { std::ifstream ifs(pat, std::ios::in | std::ios::binary); - + if (!ifs.is_open()) { std::cerr << "failed to open " << argv[1] << ": " << std::strerror(errno) << std::endl; diff --git a/re_gen/unparser.cpp b/re_gen/unparser.cpp index f68883c7..68b64170 100644 --- a/re_gen/unparser.cpp +++ b/re_gen/unparser.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/re_gen/unparser.h b/re_gen/unparser.h index 9238b171..ed11d55f 100644 --- a/re_gen/unparser.h +++ b/re_gen/unparser.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #pragma once #include "basic.h" diff --git a/re_gen/utf8-gen.py b/re_gen/utf8-gen.py index 58e7dafa..b9502b78 100755 --- a/re_gen/utf8-gen.py +++ b/re_gen/utf8-gen.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright 2024 Aon Cyber Solutions +# Copyright 2025 LevelBlue # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/cmd/hitwriter.cpp b/src/cmd/hitwriter.cpp index 122056fa..3e6e4af1 100644 --- a/src/cmd/hitwriter.cpp +++ b/src/cmd/hitwriter.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,7 +55,7 @@ const char* find_trailing_context(const char* const hend, const char* const bend bool histogramKeyComp(const LG_Histogram::value_type& a, const LG_Histogram::value_type& b) { // order descending by count, then ascending by user index and hit text return (a.second > b.second) - || (a.second == b.second && (a.first.UserIndex < b.first.UserIndex + || (a.second == b.second && (a.first.UserIndex < b.first.UserIndex || (a.first.UserIndex == b.first.UserIndex && a.first.HitText < b.first.HitText))); } diff --git a/src/cmd/lg_app.cpp b/src/cmd/lg_app.cpp index e667b634..9af5084f 100644 --- a/src/cmd/lg_app.cpp +++ b/src/cmd/lg_app.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ namespace { return { opts.DeterminizeDepth }; } } - + LgAppCollection parsePatterns(const Options& opts) { // read the patterns and parse them diff --git a/src/cmd/main.cpp b/src/cmd/main.cpp index 50fa9e14..15542ac2 100644 --- a/src/cmd/main.cpp +++ b/src/cmd/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,7 +59,7 @@ void printVersion(std::ostream& out) { // ANSI C now defines __DATE__ as 11-char string of MMM DD YYYY, but double-check const std::string year = buildDate.size() == 11 && buildDate[7] == '2' ? buildDate.substr(7, 4): "2024"; out << "lightgrep " << VERSION << '\n' - << "Copyright (c) 2010-" << year << ", Aon Cyber Solutions\n" + << "Copyright (c) 2010-" << year << ", LevelBlue\n" "Built " << buildDate << std::endl; } diff --git a/src/cmd/options.cpp b/src/cmd/options.cpp index 7eeac50f..927f2c8a 100644 --- a/src/cmd/options.cpp +++ b/src/cmd/options.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/cmd/optparser.cpp b/src/cmd/optparser.cpp index 72d4f0ae..e359f0f6 100644 --- a/src/cmd/optparser.cpp +++ b/src/cmd/optparser.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/cmd/reader.cpp b/src/cmd/reader.cpp index bc7d8b16..4e848750 100644 --- a/src/cmd/reader.cpp +++ b/src/cmd/reader.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/cmd/searchcontroller.cpp b/src/cmd/searchcontroller.cpp index 7f051df2..2cf5a2dd 100644 --- a/src/cmd/searchcontroller.cpp +++ b/src/cmd/searchcontroller.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/cmd/util.cpp b/src/cmd/util.cpp index 8c0a2f4a..cab70cfb 100644 --- a/src/cmd/util.cpp +++ b/src/cmd/util.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/enc/encodings.cpp b/src/enc/encodings.cpp index 5605a67f..a8d3b6f7 100644 --- a/src/enc/encodings.cpp +++ b/src/enc/encodings.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ void throw_on_error(UErrorCode err) { int main(int, char**) { // print copyright notice, ifdef guards, open extern "C" block std::cout << -R"(// Copyright 2011-, Aon Cyber Solutions. All Rights Reserved. +R"(// Copyright 2011-, LevelBlue. All Rights Reserved. #ifndef LIGHTGREP_C_ENCODINGS_H_ #define LIGHTGREP_C_ENCODINGS_H_ diff --git a/src/java/jni/jlightgrep.cpp b/src/java/jni/jlightgrep.cpp index 2487c1c3..d5b93e77 100644 --- a/src/java/jni/jlightgrep.cpp +++ b/src/java/jni/jlightgrep.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/ascii.cpp b/src/lib/ascii.cpp index f86c433a..607f0c07 100644 --- a/src/lib/ascii.cpp +++ b/src/lib/ascii.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/automata.cpp b/src/lib/automata.cpp index 2fb575a4..9ee7c42c 100644 --- a/src/lib/automata.cpp +++ b/src/lib/automata.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/byteencoder.cpp b/src/lib/byteencoder.cpp index 0b54273e..0c27dd1e 100644 --- a/src/lib/byteencoder.cpp +++ b/src/lib/byteencoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/byteset.cpp b/src/lib/byteset.cpp index 65f0772d..f2e6afbf 100644 --- a/src/lib/byteset.cpp +++ b/src/lib/byteset.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/c_api_util.cpp b/src/lib/c_api_util.cpp index faae55e6..117116c4 100644 --- a/src/lib/c_api_util.cpp +++ b/src/lib/c_api_util.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/chain.cpp b/src/lib/chain.cpp index 6ba92aab..09c43406 100644 --- a/src/lib/chain.cpp +++ b/src/lib/chain.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/charencoder.cpp b/src/lib/charencoder.cpp index a83aeb6d..482316da 100644 --- a/src/lib/charencoder.cpp +++ b/src/lib/charencoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/codegen.cpp b/src/lib/codegen.cpp index 8491d3a3..449b2b1b 100644 --- a/src/lib/codegen.cpp +++ b/src/lib/codegen.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/compiler.cpp b/src/lib/compiler.cpp index 8102def2..7be505e0 100644 --- a/src/lib/compiler.cpp +++ b/src/lib/compiler.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/decoders/decoder.cpp b/src/lib/decoders/decoder.cpp index 97aa6fbe..aa377ecc 100644 --- a/src/lib/decoders/decoder.cpp +++ b/src/lib/decoders/decoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/decoders/decoderfactory.cpp b/src/lib/decoders/decoderfactory.cpp index 607f4960..dddf8087 100644 --- a/src/lib/decoders/decoderfactory.cpp +++ b/src/lib/decoders/decoderfactory.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/decoders/ocedecoder.cpp b/src/lib/decoders/ocedecoder.cpp index a88a4ed4..c985ba8e 100644 --- a/src/lib/decoders/ocedecoder.cpp +++ b/src/lib/decoders/ocedecoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/encoderbase.cpp b/src/lib/encoderbase.cpp index f0aa2139..0d9432e5 100644 --- a/src/lib/encoderbase.cpp +++ b/src/lib/encoderbase.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/encoderfactory.cpp b/src/lib/encoderfactory.cpp index fcf49a8d..ab497b6b 100644 --- a/src/lib/encoderfactory.cpp +++ b/src/lib/encoderfactory.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/errors.cpp b/src/lib/errors.cpp index 4945fa0d..b57769b2 100644 --- a/src/lib/errors.cpp +++ b/src/lib/errors.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/fsmthingy.cpp b/src/lib/fsmthingy.cpp index fc40f428..93a952d2 100644 --- a/src/lib/fsmthingy.cpp +++ b/src/lib/fsmthingy.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/icuconverter.cpp b/src/lib/icuconverter.cpp index 21f04613..802ce5be 100644 --- a/src/lib/icuconverter.cpp +++ b/src/lib/icuconverter.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/icuencoder.cpp b/src/lib/icuencoder.cpp index c4fb1343..41d56d90 100644 --- a/src/lib/icuencoder.cpp +++ b/src/lib/icuencoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/icuutil.cpp b/src/lib/icuutil.cpp index 66134f54..4bdb8812 100644 --- a/src/lib/icuutil.cpp +++ b/src/lib/icuutil.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/instructions.cpp b/src/lib/instructions.cpp index 1bfeacee..81907b06 100644 --- a/src/lib/instructions.cpp +++ b/src/lib/instructions.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/lightgrep_c_api.cpp b/src/lib/lightgrep_c_api.cpp index cefa0d9d..e6ca058b 100644 --- a/src/lib/lightgrep_c_api.cpp +++ b/src/lib/lightgrep_c_api.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,7 +82,7 @@ int lg_parse_pattern_slice(LG_HPATTERN hPattern, const char* pattern, unsigned int patLen, const LG_KeyOptions* options, - LG_Error** err) + LG_Error** err) { if (!hPattern) { setError(err, "hPattern parameter was null. Use lg_create_pattern() to allocate."); diff --git a/src/lib/lightgrep_c_util.cpp b/src/lib/lightgrep_c_util.cpp index 8282f2ba..264a3ec7 100644 --- a/src/lib/lightgrep_c_util.cpp +++ b/src/lib/lightgrep_c_util.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/matchgen.cpp b/src/lib/matchgen.cpp index bb3afbc1..94158461 100644 --- a/src/lib/matchgen.cpp +++ b/src/lib/matchgen.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/nfabuilder.cpp b/src/lib/nfabuilder.cpp index 39b41344..c637e8bb 100644 --- a/src/lib/nfabuilder.cpp +++ b/src/lib/nfabuilder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/nfaoptimizer.cpp b/src/lib/nfaoptimizer.cpp index 080e7479..9d090107 100644 --- a/src/lib/nfaoptimizer.cpp +++ b/src/lib/nfaoptimizer.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/oceencoder.cpp b/src/lib/oceencoder.cpp index d89629e4..77068a55 100644 --- a/src/lib/oceencoder.cpp +++ b/src/lib/oceencoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/parsenode.cpp b/src/lib/parsenode.cpp index 10a92c28..54e2018a 100644 --- a/src/lib/parsenode.cpp +++ b/src/lib/parsenode.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/parser.cpp b/src/lib/parser.cpp index 27d42963..e27f5e12 100644 --- a/src/lib/parser.cpp +++ b/src/lib/parser.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/parsetree.cpp b/src/lib/parsetree.cpp index eb17853c..2de4e757 100644 --- a/src/lib/parsetree.cpp +++ b/src/lib/parsetree.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/parseutil.cpp b/src/lib/parseutil.cpp index 4b5b5527..1facea39 100644 --- a/src/lib/parseutil.cpp +++ b/src/lib/parseutil.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/pattern.cpp b/src/lib/pattern.cpp index 99119e6b..16e4b5fb 100644 --- a/src/lib/pattern.cpp +++ b/src/lib/pattern.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/pattern_map.cpp b/src/lib/pattern_map.cpp index 539a7870..79c101b3 100644 --- a/src/lib/pattern_map.cpp +++ b/src/lib/pattern_map.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -89,15 +89,15 @@ std::vector PatternMap::marshall() const { std::memcpy(i, pi.Pattern, slen); i += slen; - slen = std::strlen(pi.EncodingChain) + 1; + slen = std::strlen(pi.EncodingChain) + 1; std::memcpy(i, pi.EncodingChain, slen); i += slen; std::memcpy(i, &pi.UserIndex, sizeof(pi.UserIndex)); - i += sizeof(pi.UserIndex); + i += sizeof(pi.UserIndex); } - return buf; + return buf; } size_t PatternMap::bufSize() const { @@ -108,7 +108,7 @@ size_t PatternMap::bufSize() const { [](size_t s, const LG_PatternInfo& pi) { return s + std::strlen(pi.Pattern) + 1 + std::strlen(pi.EncodingChain) + 1 - + sizeof(pi.UserIndex); + + sizeof(pi.UserIndex); } ); } @@ -121,9 +121,9 @@ std::unique_ptr PatternMap::unmarshall(const void* buf, size_t len) const char* pat; const char* chain; const char* idx; - + const char* const end = i + len; - + while (i < end) { pat = i; chain = pat + std::strlen(pat) + 1; @@ -131,7 +131,7 @@ std::unique_ptr PatternMap::unmarshall(const void* buf, size_t len) p->usePattern(pat, chain, *reinterpret_cast(idx)); - i = idx + sizeof(LG_PatternInfo::UserIndex); + i = idx + sizeof(LG_PatternInfo::UserIndex); } return p; diff --git a/src/lib/program.cpp b/src/lib/program.cpp index 2fec54e6..9f07fc03 100644 --- a/src/lib/program.cpp +++ b/src/lib/program.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/rewriter.cpp b/src/lib/rewriter.cpp index 79a6ab18..a48fd6b0 100644 --- a/src/lib/rewriter.cpp +++ b/src/lib/rewriter.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/states.cpp b/src/lib/states.cpp index cce49f71..69baa6cb 100644 --- a/src/lib/states.cpp +++ b/src/lib/states.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/thread.cpp b/src/lib/thread.cpp index d058149e..fe71f280 100644 --- a/src/lib/thread.cpp +++ b/src/lib/thread.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/unparser.cpp b/src/lib/unparser.cpp index cd4a51c6..288730c1 100644 --- a/src/lib/unparser.cpp +++ b/src/lib/unparser.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/utf8.cpp b/src/lib/utf8.cpp index 7862a569..e4a41fa0 100644 --- a/src/lib/utf8.cpp +++ b/src/lib/utf8.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/utfbase.cpp b/src/lib/utfbase.cpp index ec5b7f29..6014edab 100644 --- a/src/lib/utfbase.cpp +++ b/src/lib/utfbase.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/utility.cpp b/src/lib/utility.cpp index 679a8e53..003dde6e 100644 --- a/src/lib/utility.cpp +++ b/src/lib/utility.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/lib/vm.cpp b/src/lib/vm.cpp index 7688743f..7ad745ba 100644 --- a/src/lib/vm.cpp +++ b/src/lib/vm.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -552,7 +552,7 @@ void Vm::startsWith(const byte* const beg, const byte* const end, const uint64_t break; } } - + closeOut(hitFn, userData); reset(); } diff --git a/src/val/valid.cpp b/src/val/valid.cpp index 939eb011..27d85637 100644 --- a/src/val/valid.cpp +++ b/src/val/valid.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/what/what.cpp b/src/what/what.cpp index 956a4421..2aae0dca 100644 --- a/src/what/what.cpp +++ b/src/what/what.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/data_reader.cpp b/test/data_reader.cpp index 513ff708..aa31e268 100644 --- a/test/data_reader.cpp +++ b/test/data_reader.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/data_reader.h b/test/data_reader.h index 2e48d63a..f173f5ba 100644 --- a/test/data_reader.h +++ b/test/data_reader.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/dtest.cpp b/test/dtest.cpp index 9ff0f4bf..27c3f737 100644 --- a/test/dtest.cpp +++ b/test/dtest.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/dtest.h b/test/dtest.h index b581686e..b22efaef 100644 --- a/test/dtest.h +++ b/test/dtest.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/executor.h b/test/executor.h index f0cc12b2..9fd26d49 100644 --- a/test/executor.h +++ b/test/executor.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/mockcallback.cpp b/test/mockcallback.cpp index c2089c08..dceadc36 100644 --- a/test/mockcallback.cpp +++ b/test/mockcallback.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/mockcallback.h b/test/mockcallback.h index 7424deb4..750d4f97 100644 --- a/test/mockcallback.h +++ b/test/mockcallback.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/stest.cpp b/test/stest.cpp index ec670072..f06fb908 100644 --- a/test/stest.cpp +++ b/test/stest.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/stest.h b/test/stest.h index 5a4cc16a..2c6486cc 100644 --- a/test/stest.h +++ b/test/stest.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_ascii.cpp b/test/test_ascii.cpp index 9d434be7..c0b51dbc 100644 --- a/test/test_ascii.cpp +++ b/test/test_ascii.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_1.cpp b/test/test_auto_search_1.cpp index c17f9c6f..9e2e1918 100644 --- a/test/test_auto_search_1.cpp +++ b/test/test_auto_search_1.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_2.cpp b/test/test_auto_search_2.cpp index e15c9f60..f62e9c42 100644 --- a/test/test_auto_search_2.cpp +++ b/test/test_auto_search_2.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_3.cpp b/test/test_auto_search_3.cpp index 714b10c1..427e8cf6 100644 --- a/test/test_auto_search_3.cpp +++ b/test/test_auto_search_3.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_4.cpp b/test/test_auto_search_4.cpp index 33773433..684498d4 100644 --- a/test/test_auto_search_4.cpp +++ b/test/test_auto_search_4.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_5.cpp b/test/test_auto_search_5.cpp index dd3b67b0..2728e7a3 100644 --- a/test/test_auto_search_5.cpp +++ b/test/test_auto_search_5.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_6.cpp b/test/test_auto_search_6.cpp index de915fcc..368eab2c 100644 --- a/test/test_auto_search_6.cpp +++ b/test/test_auto_search_6.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_7.cpp b/test/test_auto_search_7.cpp index 7ae6fc36..871dd181 100644 --- a/test/test_auto_search_7.cpp +++ b/test/test_auto_search_7.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_multi_1.cpp b/test/test_auto_search_multi_1.cpp index 5e2f0a2f..198159c9 100644 --- a/test/test_auto_search_multi_1.cpp +++ b/test/test_auto_search_multi_1.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_search_multi_2.cpp b/test/test_auto_search_multi_2.cpp index 3a646b26..3dcb0452 100644 --- a/test/test_auto_search_multi_2.cpp +++ b/test/test_auto_search_multi_2.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_starts_with_1.cpp b/test/test_auto_starts_with_1.cpp index ec89da30..5da9cfa7 100644 --- a/test/test_auto_starts_with_1.cpp +++ b/test/test_auto_starts_with_1.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_starts_with_2.cpp b/test/test_auto_starts_with_2.cpp index b63e4093..14bf70a7 100644 --- a/test/test_auto_starts_with_2.cpp +++ b/test/test_auto_starts_with_2.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_starts_with_3.cpp b/test/test_auto_starts_with_3.cpp index 48861f9c..36fcbcb2 100644 --- a/test/test_auto_starts_with_3.cpp +++ b/test/test_auto_starts_with_3.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_starts_with_4.cpp b/test/test_auto_starts_with_4.cpp index ca8edb3b..2ac1603c 100644 --- a/test/test_auto_starts_with_4.cpp +++ b/test/test_auto_starts_with_4.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #include #include "stest.h" diff --git a/test/test_auto_starts_with_5.cpp b/test/test_auto_starts_with_5.cpp index 3d682ef1..afb25104 100644 --- a/test/test_auto_starts_with_5.cpp +++ b/test/test_auto_starts_with_5.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_starts_with_6.cpp b/test/test_auto_starts_with_6.cpp index 76516c45..92295cd0 100644 --- a/test/test_auto_starts_with_6.cpp +++ b/test/test_auto_starts_with_6.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_starts_with_7.cpp b/test/test_auto_starts_with_7.cpp index 733c8b6a..8e6faf43 100644 --- a/test/test_auto_starts_with_7.cpp +++ b/test/test_auto_starts_with_7.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_starts_with_multi_1.cpp b/test/test_auto_starts_with_multi_1.cpp index 9c8a65b7..f69edd6b 100644 --- a/test/test_auto_starts_with_multi_1.cpp +++ b/test/test_auto_starts_with_multi_1.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_auto_starts_with_multi_2.cpp b/test/test_auto_starts_with_multi_2.cpp index 30f06072..3af1ef83 100644 --- a/test/test_auto_starts_with_multi_2.cpp +++ b/test/test_auto_starts_with_multi_2.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_basic.cpp b/test/test_basic.cpp index 926823cd..42b8c9df 100644 --- a/test/test_basic.cpp +++ b/test/test_basic.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_byteset.cpp b/test/test_byteset.cpp index 2d4e5fbb..17888457 100644 --- a/test/test_byteset.cpp +++ b/test/test_byteset.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_bytesource.cpp b/test/test_bytesource.cpp index 0ead4317..80190007 100644 --- a/test/test_bytesource.cpp +++ b/test/test_bytesource.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_c_api.cpp b/test/test_c_api.cpp index d4990a7b..b33e3fb6 100644 --- a/test/test_c_api.cpp +++ b/test/test_c_api.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_c_util.cpp b/test/test_c_util.cpp index db8d4816..b939790b 100644 --- a/test/test_c_util.cpp +++ b/test/test_c_util.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_compiler.cpp b/test/test_compiler.cpp index c16ec7cb..2ab36cbd 100644 --- a/test/test_compiler.cpp +++ b/test/test_compiler.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_factor_analysis.cpp b/test/test_factor_analysis.cpp index cad01d80..4d7ca89a 100644 --- a/test/test_factor_analysis.cpp +++ b/test/test_factor_analysis.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -199,21 +199,21 @@ TEST_CASE("testBFSdiscover") { breadthFirstSearch is templated off its third parameter, which it treats like a 2-arity function to which it passes a const ref to the graph and the vertex descriptor of the current vertex. - It's easy to run into compiler errors with functor template parameters in C++, but there's an - easier way in C++11 (and beyond): just use C++ lambdas. C++ will deduce the type of the lambda + It's easy to run into compiler errors with functor template parameters in C++, but there's an + easier way in C++11 (and beyond): just use C++ lambdas. C++ will deduce the type of the lambda and all will be well. In the lambda below, "[&discovered]" means that a -reference- to 'discovered' should be in scope within the lambda (i.e., closure). "(const NF&, NFA::VertexDescriptor)" are the function arguments to the lambda, and then "{ discovered.push_back(v); }" is the body of the lambda. By taking discovered - by reference, the lambda can easily manipulate its state, so after the call to breadthFirstSearch(), + by reference, the lambda can easily manipulate its state, so after the call to breadthFirstSearch(), discovered is now size 4 and should match the "expected" std::vector. Big complicated lambdas are discouraged -- since they're anonymous, they can't be unit tested very easily if at all. But it's easy enough to imagine that you could create a struct with the necesssary members - for figuring out all the paths through the graph, and then that struct could have a method for updating + for figuring out all the paths through the graph, and then that struct could have a method for updating those member data structures when a new vertex is visited, and the lambda passe to breadthFirstSearch() - could just take an instance of the struct as a closure and directly call the method. In this way the + could just take an instance of the struct as a closure and directly call the method. In this way the lambda is nothing more than glue. */ breadthFirstSearch(g, 0, [&discovered](const NFA&, NFA::VertexDescriptor v) { diff --git a/test/test_graph.cpp b/test/test_graph.cpp index b6b97d45..f77e68ce 100644 --- a/test/test_graph.cpp +++ b/test/test_graph.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_helper.cpp b/test/test_helper.cpp index c2184c21..5263462f 100644 --- a/test/test_helper.cpp +++ b/test/test_helper.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_helper.h b/test/test_helper.h index 537fa149..e87143ed 100644 --- a/test/test_helper.h +++ b/test/test_helper.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_hitwriter.cpp b/test/test_hitwriter.cpp index 5c4940b1..4a74467d 100644 --- a/test/test_hitwriter.cpp +++ b/test/test_hitwriter.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -222,7 +222,7 @@ TEST_CASE("hitOutputDataAndCallback") { const LG_SearchHit searchHit{44, 47, 0}; const HitBuffer expectedHitBuffer{"foo", LG_Window{0, 3}, 44}; const HitBuffer actualHitBuffer = data.decodeContext(searchHit); - + REQUIRE(expectedHitBuffer.DataOffset == actualHitBuffer.DataOffset); REQUIRE(expectedHitBuffer.Context == actualHitBuffer.Context); REQUIRE(expectedHitBuffer.HitWindow.begin == actualHitBuffer.HitWindow.begin); diff --git a/test/test_icu.cpp b/test/test_icu.cpp index 49522a2d..7f2d7b49 100644 --- a/test/test_icu.cpp +++ b/test/test_icu.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_icudecoder.cpp b/test/test_icudecoder.cpp index 578e65d0..729727a2 100644 --- a/test/test_icudecoder.cpp +++ b/test/test_icudecoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_icuutil.cpp b/test/test_icuutil.cpp index 240acc1d..1e15e059 100644 --- a/test/test_icuutil.cpp +++ b/test/test_icuutil.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_instructions.cpp b/test/test_instructions.cpp index dc7ba122..b1c9c9da 100644 --- a/test/test_instructions.cpp +++ b/test/test_instructions.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_main.cpp b/test/test_main.cpp index c2869523..255277b4 100644 --- a/test/test_main.cpp +++ b/test/test_main.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ TEST_CASE("testWriteProgramWithBinaryOpt") { opts.UnicodeMode = false; opts.DeterminizeDepth = 10; opts.Binary = true; - + std::ostringstream buf; writeProgram(opts, buf); diff --git a/test/test_matchgen.cpp b/test/test_matchgen.cpp index eebfdce7..1ef35d1f 100644 --- a/test/test_matchgen.cpp +++ b/test/test_matchgen.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_nfabuilder.cpp b/test/test_nfabuilder.cpp index f8f8a8f0..5ae50b1d 100644 --- a/test/test_nfabuilder.cpp +++ b/test/test_nfabuilder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_nfaoptimizer.cpp b/test/test_nfaoptimizer.cpp index 7dbbfb33..346c8372 100644 --- a/test/test_nfaoptimizer.cpp +++ b/test/test_nfaoptimizer.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_oceencoder.cpp b/test/test_oceencoder.cpp index 15bcaa72..1ef53b3a 100644 --- a/test/test_oceencoder.cpp +++ b/test/test_oceencoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_options.cpp b/test/test_options.cpp index 797ce1ab..f712dece 100644 --- a/test/test_options.cpp +++ b/test/test_options.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_optparser.cpp b/test/test_optparser.cpp index 3e84f3e9..1f09ddcd 100644 --- a/test/test_optparser.cpp +++ b/test/test_optparser.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_parser.cpp b/test/test_parser.cpp index ccfe1278..befb67c2 100644 --- a/test/test_parser.cpp +++ b/test/test_parser.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_parseutil.cpp b/test/test_parseutil.cpp index c96c8a4d..df57dcd6 100644 --- a/test/test_parseutil.cpp +++ b/test/test_parseutil.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_pattern_map.cpp b/test/test_pattern_map.cpp index 22e5f0aa..d8095a1a 100644 --- a/test/test_pattern_map.cpp +++ b/test/test_pattern_map.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_program.cpp b/test/test_program.cpp index e839d8b5..3b6f8a99 100644 --- a/test/test_program.cpp +++ b/test/test_program.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_rangeset.cpp b/test/test_rangeset.cpp index 73695fb7..420b3c2c 100644 --- a/test/test_rangeset.cpp +++ b/test/test_rangeset.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_rewriter.cpp b/test/test_rewriter.cpp index 11773656..c54e6cb2 100644 --- a/test/test_rewriter.cpp +++ b/test/test_rewriter.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_rotencoder.cpp b/test/test_rotencoder.cpp index 6b766e0a..4a6b53f0 100644 --- a/test/test_rotencoder.cpp +++ b/test/test_rotencoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_search.cpp b/test/test_search.cpp index 7f042000..7759453c 100644 --- a/test/test_search.cpp +++ b/test/test_search.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_search_assertions.cpp b/test/test_search_assertions.cpp index d36a3e23..5e5e83c3 100644 --- a/test/test_search_assertions.cpp +++ b/test/test_search_assertions.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_search_data.cpp b/test/test_search_data.cpp index 5b433675..153c7607 100644 --- a/test/test_search_data.cpp +++ b/test/test_search_data.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_search_data_driver.cpp b/test/test_search_data_driver.cpp index eb53a4cf..7fdf8f54 100644 --- a/test/test_search_data_driver.cpp +++ b/test/test_search_data_driver.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_search_switches.cpp b/test/test_search_switches.cpp index a583b417..15ba9c02 100644 --- a/test/test_search_switches.cpp +++ b/test/test_search_switches.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_sequences.h b/test/test_sequences.h index 8c8f3af4..72651ac7 100644 --- a/test/test_sequences.h +++ b/test/test_sequences.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_sparseset.cpp b/test/test_sparseset.cpp index 34bcf91a..f1b380a2 100644 --- a/test/test_sparseset.cpp +++ b/test/test_sparseset.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_starts_with.cpp b/test/test_starts_with.cpp index 4560e318..1ed05d19 100644 --- a/test/test_starts_with.cpp +++ b/test/test_starts_with.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_states.cpp b/test/test_states.cpp index e7befabd..49cb247b 100644 --- a/test/test_states.cpp +++ b/test/test_states.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_testregex_basic_modified.cpp b/test/test_testregex_basic_modified.cpp index c34637e9..0a0bd7bb 100644 --- a/test/test_testregex_basic_modified.cpp +++ b/test/test_testregex_basic_modified.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_thread.cpp b/test/test_thread.cpp index 83f05e25..23e07c9e 100644 --- a/test/test_thread.cpp +++ b/test/test_thread.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_transitionfactory.cpp b/test/test_transitionfactory.cpp index 75f092e1..862e4aaf 100644 --- a/test/test_transitionfactory.cpp +++ b/test/test_transitionfactory.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_unicode.cpp b/test/test_unicode.cpp index 2fecc3ac..370514df 100644 --- a/test/test_unicode.cpp +++ b/test/test_unicode.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. * */ - + #include #include diff --git a/test/test_unparser.cpp b/test/test_unparser.cpp index 45dcb3eb..0621ab1d 100644 --- a/test/test_unparser.cpp +++ b/test/test_unparser.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_utf16.cpp b/test/test_utf16.cpp index 033f1461..38fda384 100644 --- a/test/test_utf16.cpp +++ b/test/test_utf16.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_utf32.cpp b/test/test_utf32.cpp index 3359088c..a6d705e6 100644 --- a/test/test_utf32.cpp +++ b/test/test_utf32.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_utf8.cpp b/test/test_utf8.cpp index f0785f01..a74c6c5d 100644 --- a/test/test_utf8.cpp +++ b/test/test_utf8.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_utf8decoder.cpp b/test/test_utf8decoder.cpp index a9d55c03..1b37c039 100644 --- a/test/test_utf8decoder.cpp +++ b/test/test_utf8decoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_utility.cpp b/test/test_utility.cpp index c5030c9d..e42949f6 100644 --- a/test/test_utility.cpp +++ b/test/test_utility.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_vectorfamily.cpp b/test/test_vectorfamily.cpp index 3a2020b3..197553d6 100644 --- a/test/test_vectorfamily.cpp +++ b/test/test_vectorfamily.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_vm.cpp b/test/test_vm.cpp index f95b23ab..ecc08fa2 100644 --- a/test/test_vm.cpp +++ b/test/test_vm.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/test_xorencoder.cpp b/test/test_xorencoder.cpp index 7d4c76f8..cc159e7d 100644 --- a/test/test_xorencoder.cpp +++ b/test/test_xorencoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/unicode_sets.h b/test/unicode_sets.h index be31529b..f25e852b 100644 --- a/test/unicode_sets.h +++ b/test/unicode_sets.h @@ -1,5 +1,5 @@ /* - * Copyright 2024 Aon Cyber Solutions + * Copyright 2025 LevelBlue * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.