Skip to content

Commit

Permalink
Updated copyright to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
nawaz1991 committed Jul 9, 2024
1 parent f1f35a2 commit aea6bb4
Show file tree
Hide file tree
Showing 46 changed files with 116 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .license-scripts/COPYRIGHT-HEADER
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
2 changes: 1 addition & 1 deletion .license-scripts/EE-LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Muhammad Nawaz
Copyright (c) 2024 Muhammad Nawaz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 25 additions & 0 deletions .license-scripts/remove-license.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# Function to process each file
process_file() {
local file="$1"

# Read the first two lines of the file
first_two_lines=$(head -n 2 "$file")

# Check if the first two lines match the specified pattern
if [[ "$first_two_lines" == "/*
* Copyright (c) 2023 Muhammad Nawaz" ]]; then
# Remove the first six lines from the file
tail -n +7 "$file" > "$file.tmp" && mv "$file.tmp" "$file"
echo "Processed: $file"
fi
}

# Export the function so it can be used by find
export -f process_file

# Find all .cpp and .hpp files and process them
find . -type f \( -name "*.cpp" -o -name "*.hpp" \) -exec bash -c 'process_file "$0"' {} \;

echo "Processing complete."
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Muhammad Nawaz
Copyright (c) 2024 Muhammad Nawaz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions example/example.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include <oas_validator.hpp>

Expand Down
4 changes: 2 additions & 2 deletions include/deserializers/array_deserializer.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef ARRAY_DESERIALIZER_HPP
#define ARRAY_DESERIALIZER_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/deserializers/base_deserializer.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef BASE_DESERIALIZER_HPP
#define BASE_DESERIALIZER_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/deserializers/content_deserializer.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef CONTENT_DESERIALIZER_HPP
#define CONTENT_DESERIALIZER_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/deserializers/object_deserializer.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef OBJECT_DESERIALIZER_HPP
#define OBJECT_DESERIALIZER_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/deserializers/primitive_deserializer.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef PRIMITIVE_DESERIALIZER_HPP
#define PRIMITIVE_DESERIALIZER_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/oas_validator.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

/**
* @file oas_validator.hpp
Expand Down
4 changes: 2 additions & 2 deletions include/oas_validator_imp.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef OAS_VALIDATION_HPP
#define OAS_VALIDATION_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/utils/common.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef COMMON_HPP
#define COMMON_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/utils/path_trie.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef PATH_TRIE_HPP
#define PATH_TRIE_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/validators/base_validator.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef VALIDATOR_HPP
#define VALIDATOR_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/validators/body_validator.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef BODY_VALIDATOR_HPP
#define BODY_VALIDATOR_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/validators/json_validator.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef JSON_VALIDATOR_HPP
#define JSON_VALIDATOR_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/validators/method_validator.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef METHOD_VALIDATOR_HPP
#define METHOD_VALIDATOR_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/validators/param_validators.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef PARAM_VALIDATOR_HPP
#define PARAM_VALIDATOR_HPP
Expand Down
4 changes: 2 additions & 2 deletions include/validators/validators_store.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#ifndef OAS_VALIDATORS_HPP
#define OAS_VALIDATORS_HPP
Expand Down
4 changes: 2 additions & 2 deletions src/deserializers/array_deserializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "deserializers/array_deserializer.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/deserializers/base_deserializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "deserializers/base_deserializer.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/deserializers/content_deserializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "deserializers/content_deserializer.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/deserializers/object_deserializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "deserializers/object_deserializer.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/deserializers/primitive_deserializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "deserializers/primitive_deserializer.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/oas_validator.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "oas_validator.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/oas_validator_imp.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "oas_validator_imp.hpp"
#include <fstream>
Expand Down
6 changes: 6 additions & 0 deletions src/utils/path_trie.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "utils/path_trie.hpp"
#include "utils/common.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/validators/base_validator.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "validators/base_validator.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/validators/json_validator.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "validators/json_validator.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/validators/method_validator.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "validators/method_validator.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/validators/param_validators.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "validators/param_validators.hpp"
#include "deserializers/array_deserializer.hpp"
Expand Down
4 changes: 2 additions & 2 deletions src/validators/validators_store.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "validators/validators_store.hpp"

Expand Down
4 changes: 2 additions & 2 deletions test/perftest/src/perftest.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "oas_validator.hpp"
#include <benchmark/benchmark.h>
Expand Down
4 changes: 2 additions & 2 deletions test/unittest/src/deserializers/array_deserializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "deserializers/array_deserializer.hpp"
#include <gtest/gtest.h>
Expand Down
4 changes: 2 additions & 2 deletions test/unittest/src/deserializers/content_deserializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2023 Muhammad Nawaz
* Copyright (c) 2024 Muhammad Nawaz
* Licensed under the MIT License. See LICENSE file for more information.
*/
// [ END OF LICENSE 7982e23aed1dc8eda1fdc979fee617354ae998dc ]
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ]

#include "deserializers/content_deserializer.hpp"
#include <gtest/gtest.h>
Expand Down
Loading

0 comments on commit aea6bb4

Please sign in to comment.