This is an automated email from the ASF dual-hosted git repository.

EmryZhang pushed a commit to branch prepare/lua-1.47.0-headers
in repository https://gitbox.apache.org/repos/asf/casbin-lua-casbin.git

commit 39ea1829eec6adaa3651ee53e7218dc992332323
Author: Zhangyanrui123 <[email protected]>
AuthorDate: Sat Nov 7 23:29:35 2026 +0800

    Use ASF contribution headers and preserve third-party attribution
---
 .busted                                            | 16 +++++++++++++
 .github/actions/setup-luarocks/action.yml          | 16 +++++++++++++
 .github/luarocks-template.rockspec                 | 16 +++++++++++++
 .github/workflows/build.yml                        | 16 +++++++++++++
 .github/workflows/release.yml                      | 16 +++++++++++++
 .gitignore                                         | 16 +++++++++++++
 .luacheckrc                                        | 16 +++++++++++++
 CONTRIBUTING.md                                    | 18 +++++++++++++++
 README.md                                          | 18 +++++++++++++++
 bench.lua                                          | 16 +++++++++++++
 casbin.lua                                         | 25 ++++++++++++---------
 examples/abac_model.conf                           | 16 +++++++++++++
 examples/abac_multiple_rules_model.conf            | 16 +++++++++++++
 examples/abac_rule_model.conf                      | 16 +++++++++++++
 examples/basic_model.conf                          | 16 +++++++++++++
 examples/basic_model_with_regex.conf               | 16 +++++++++++++
 examples/basic_model_without_spaces.conf           | 16 +++++++++++++
 examples/basic_with_root_model.conf                | 16 +++++++++++++
 examples/basic_without_resources_model.conf        | 16 +++++++++++++
 examples/basic_without_users_model.conf            | 16 +++++++++++++
 examples/comment_model.conf                        | 16 +++++++++++++
 examples/error/error_model.conf                    | 16 +++++++++++++
 examples/glob_model.conf                           | 16 +++++++++++++
 examples/in_matcher_model.conf                     | 16 +++++++++++++
 examples/ipmatch_model.conf                        | 16 +++++++++++++
 examples/keyget2_model.conf                        | 16 +++++++++++++
 examples/keyget_model.conf                         | 16 +++++++++++++
 examples/keymatch2_model.conf                      | 16 +++++++++++++
 examples/keymatch_custom_model.conf                | 16 +++++++++++++
 examples/keymatch_model.conf                       | 16 +++++++++++++
 examples/priority_model.conf                       | 16 +++++++++++++
 examples/priority_model_explicit.conf              | 16 +++++++++++++
 examples/rbac_model.conf                           | 16 +++++++++++++
 examples/rbac_model_in_multi_line.conf             | 16 +++++++++++++
 examples/rbac_model_matcher_using_in_op.conf       | 16 +++++++++++++
 .../rbac_model_matcher_using_in_op_bracket.conf    | 16 +++++++++++++
 examples/rbac_with_all_pattern_model.conf          | 16 +++++++++++++
 examples/rbac_with_deny_model.conf                 | 16 +++++++++++++
 examples/rbac_with_domain_pattern_model.conf       | 16 +++++++++++++
 examples/rbac_with_domains_model.conf              | 16 +++++++++++++
 examples/rbac_with_keymatch4_model.conf            | 16 +++++++++++++
 examples/rbac_with_not_deny_model.conf             | 16 +++++++++++++
 examples/rbac_with_pattern_model.conf              | 16 +++++++++++++
 examples/rbac_with_resource_roles_model.conf       | 16 +++++++++++++
 examples/subject_priority_model.conf               | 16 +++++++++++++
 examples/subject_priority_model_with_domain.conf   | 16 +++++++++++++
 src/config/Config.lua                              | 25 ++++++++++++---------
 src/effect/DefaultEffector.lua                     | 25 ++++++++++++---------
 src/effect/Effect.lua                              | 26 ++++++++++++----------
 src/effect/Effector.lua                            | 25 ++++++++++++---------
 src/main/CachedEnforcer.lua                        | 25 ++++++++++++---------
 src/main/CoreEnforcer.lua                          | 25 ++++++++++++---------
 src/main/Enforcer.lua                              | 25 ++++++++++++---------
 src/main/InternalEnforcer.lua                      | 25 ++++++++++++---------
 src/main/ManagementEnforcer.lua                    | 25 ++++++++++++---------
 src/model/Assertion.lua                            | 25 ++++++++++++---------
 src/model/FunctionMap.lua                          | 25 ++++++++++++---------
 src/model/Model.lua                                | 25 ++++++++++++---------
 src/model/Policy.lua                               | 25 ++++++++++++---------
 src/persist/Adapter.lua                            | 25 ++++++++++++---------
 src/persist/BatchAdapter.lua                       | 25 ++++++++++++---------
 src/persist/Dispatcher.lua                         | 25 ++++++++++++---------
 src/persist/FilteredAdapter.lua                    | 25 ++++++++++++---------
 src/persist/UpdateAdapter.lua                      | 25 ++++++++++++---------
 src/persist/Watcher.lua                            | 25 ++++++++++++---------
 src/persist/WatcherEx.lua                          | 25 ++++++++++++---------
 src/persist/WatcherUpdatable.lua                   | 25 ++++++++++++---------
 src/persist/cache/Cache.lua                        | 25 ++++++++++++---------
 src/persist/cache/DefaultCache.lua                 | 25 ++++++++++++---------
 src/persist/database_adapter/DatabaseAdapter.lua   | 25 ++++++++++++---------
 src/persist/file_adapter/FileAdapter.lua           | 25 ++++++++++++---------
 src/persist/file_adapter/Filter.lua                | 25 ++++++++++++---------
 src/persist/file_adapter/FilteredAdapter.lua       | 25 ++++++++++++---------
 src/rbac/DefaultRoleManager.lua                    | 25 ++++++++++++---------
 src/rbac/Role.lua                                  | 25 ++++++++++++---------
 src/rbac/RoleManager.lua                           | 25 ++++++++++++---------
 src/util/BuiltInFunctions.lua                      | 25 ++++++++++++---------
 src/util/Log.lua                                   | 25 ++++++++++++---------
 src/util/Util.lua                                  | 25 ++++++++++++---------
 tests/config/config_spec.lua                       | 25 ++++++++++++---------
 tests/main/cached_enforcer_spec.lua                | 25 ++++++++++++---------
 tests/main/enforcer_spec.lua                       | 25 ++++++++++++---------
 tests/main/internal_api_spec.lua                   | 25 ++++++++++++---------
 tests/main/management_api_spec.lua                 | 25 ++++++++++++---------
 tests/main/rbac_api_spec.lua                       | 25 ++++++++++++---------
 tests/model/model_spec.lua                         | 25 ++++++++++++---------
 tests/persist/adapter_error_spec.lua               | 25 ++++++++++++---------
 tests/persist/database_adapter_spec.lua            | 25 ++++++++++++---------
 tests/persist/file_adapter_spec.lua                | 25 ++++++++++++---------
 tests/persist/filtered_adapter_spec.lua            | 25 ++++++++++++---------
 tests/persist/watcher_spec.lua                     | 25 ++++++++++++---------
 tests/rbac/role_manager_spec.lua                   | 25 ++++++++++++---------
 tests/util/built_in_functions_spec.lua             | 25 ++++++++++++---------
 tests/util/log_spec.lua                            | 25 ++++++++++++---------
 tests/util/util_spec.lua                           | 25 ++++++++++++---------
 95 files changed, 1424 insertions(+), 551 deletions(-)

diff --git a/.busted b/.busted
index 01d8359..e87c8c4 100644
--- a/.busted
+++ b/.busted
@@ -1,3 +1,19 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--   https://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 return {
    default = {
       output = "htest",
diff --git a/.github/actions/setup-luarocks/action.yml 
b/.github/actions/setup-luarocks/action.yml
index 331391b..748bc66 100644
--- a/.github/actions/setup-luarocks/action.yml
+++ b/.github/actions/setup-luarocks/action.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 name: "Set up LuaRocks"
 description: >
   Build and install LuaRocks against the Lua tree produced by 
leafo/gh-actions-lua.
diff --git a/.github/luarocks-template.rockspec 
b/.github/luarocks-template.rockspec
index 23bae7e..cd16902 100644
--- a/.github/luarocks-template.rockspec
+++ b/.github/luarocks-template.rockspec
@@ -1,3 +1,19 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--   https://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 package = "casbin"
 version = "1.47.0-1"
 source = {
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 467f17c..b0e0a49 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 name: build
 on:
   push:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b865046..614c8c0 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 name: Release
 
 # Releases are cut manually by pushing a git tag (Apache releases must be 
voted on,
diff --git a/.gitignore b/.gitignore
index d4db1b9..a5a9773 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 # Binaries for programs and plugins
 *.exe
 *.dll
diff --git a/.luacheckrc b/.luacheckrc
index 74ae380..09e363e 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -1,3 +1,19 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--   https://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 codes = true
 
 ignore = {
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 3b97bb1..c427d9b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,3 +1,21 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  https://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, 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.
+-->
 # How to contribute
 
 The following is a set of guidelines for contributing to casbin and its 
libraries, which are hosted at [casbin organization at 
Github](https://github.com/casbin).
diff --git a/README.md b/README.md
index d5d2b5e..b532c37 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,21 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  https://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, 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.
+-->
 # Apache Casbin for Lua (incubating)
 [![GitHub 
Action](https://github.com/apache/casbin-lua-casbin/workflows/build/badge.svg?branch=master)](https://github.com/apache/casbin-lua-casbin/actions)
 [![Coverage 
Status](https://coveralls.io/repos/github/apache/casbin-lua-casbin/badge.svg?branch=master)](https://coveralls.io/github/apache/casbin-lua-casbin?branch=master)
diff --git a/bench.lua b/bench.lua
index b315edb..57a6406 100644
--- a/bench.lua
+++ b/bench.lua
@@ -1,3 +1,19 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--   https://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 local socket = require("socket")
 local Enforcer = require("src.main.Enforcer")
 local path = os.getenv("PWD") or io.popen("cd"):read()
diff --git a/casbin.lua b/casbin.lua
index abbd780..cc84629 100644
--- a/casbin.lua
+++ b/casbin.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 -- link to the Enforcer module
 local CasbinEnforcer = require("src.main.Enforcer")
diff --git a/examples/abac_model.conf b/examples/abac_model.conf
index 4cfaea3..f333c36 100644
--- a/examples/abac_model.conf
+++ b/examples/abac_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/abac_multiple_rules_model.conf 
b/examples/abac_multiple_rules_model.conf
index 58fe442..2d84ba0 100644
--- a/examples/abac_multiple_rules_model.conf
+++ b/examples/abac_multiple_rules_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/abac_rule_model.conf b/examples/abac_rule_model.conf
index 591dd3a..dbc9c6f 100644
--- a/examples/abac_rule_model.conf
+++ b/examples/abac_rule_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/basic_model.conf b/examples/basic_model.conf
index dc6da81..1b7034c 100644
--- a/examples/basic_model.conf
+++ b/examples/basic_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/basic_model_with_regex.conf 
b/examples/basic_model_with_regex.conf
index b7c3269..5823f68 100644
--- a/examples/basic_model_with_regex.conf
+++ b/examples/basic_model_with_regex.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/basic_model_without_spaces.conf 
b/examples/basic_model_without_spaces.conf
index 5452f95..57e8230 100644
--- a/examples/basic_model_without_spaces.conf
+++ b/examples/basic_model_without_spaces.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub,obj,act
 
diff --git a/examples/basic_with_root_model.conf 
b/examples/basic_with_root_model.conf
index 8f13907..8e8193e 100644
--- a/examples/basic_with_root_model.conf
+++ b/examples/basic_with_root_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/basic_without_resources_model.conf 
b/examples/basic_without_resources_model.conf
index f61bd71..292ea34 100644
--- a/examples/basic_without_resources_model.conf
+++ b/examples/basic_without_resources_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, act
 
diff --git a/examples/basic_without_users_model.conf 
b/examples/basic_without_users_model.conf
index 1fe5993..41695e3 100644
--- a/examples/basic_without_users_model.conf
+++ b/examples/basic_without_users_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = obj, act
 
diff --git a/examples/comment_model.conf b/examples/comment_model.conf
index a4200eb..afce3c8 100644
--- a/examples/comment_model.conf
+++ b/examples/comment_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act ; Request definition
 
diff --git a/examples/error/error_model.conf b/examples/error/error_model.conf
index 59304db..a8c2fbd 100644
--- a/examples/error/error_model.conf
+++ b/examples/error/error_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/glob_model.conf b/examples/glob_model.conf
index b16cad4..0db6c8a 100644
--- a/examples/glob_model.conf
+++ b/examples/glob_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/in_matcher_model.conf b/examples/in_matcher_model.conf
index 9b90a75..b8d5108 100644
--- a/examples/in_matcher_model.conf
+++ b/examples/in_matcher_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/ipmatch_model.conf b/examples/ipmatch_model.conf
index 26e4b01..d24866d 100644
--- a/examples/ipmatch_model.conf
+++ b/examples/ipmatch_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/keyget2_model.conf b/examples/keyget2_model.conf
index 5b569a6..8c714a6 100644
--- a/examples/keyget2_model.conf
+++ b/examples/keyget2_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/keyget_model.conf b/examples/keyget_model.conf
index cc92832..ad6a0c0 100644
--- a/examples/keyget_model.conf
+++ b/examples/keyget_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/keymatch2_model.conf b/examples/keymatch2_model.conf
index 944123d..535b89f 100644
--- a/examples/keymatch2_model.conf
+++ b/examples/keymatch2_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/keymatch_custom_model.conf 
b/examples/keymatch_custom_model.conf
index 1cad8bf..b128eb6 100644
--- a/examples/keymatch_custom_model.conf
+++ b/examples/keymatch_custom_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/keymatch_model.conf b/examples/keymatch_model.conf
index 4f86ba8..cfd2185 100644
--- a/examples/keymatch_model.conf
+++ b/examples/keymatch_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/priority_model.conf b/examples/priority_model.conf
index ece1562..a967b51 100644
--- a/examples/priority_model.conf
+++ b/examples/priority_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/priority_model_explicit.conf 
b/examples/priority_model_explicit.conf
index 5df75b2..fb903d0 100644
--- a/examples/priority_model_explicit.conf
+++ b/examples/priority_model_explicit.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_model.conf b/examples/rbac_model.conf
index 71159e3..ec1fa1d 100644
--- a/examples/rbac_model.conf
+++ b/examples/rbac_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_model_in_multi_line.conf 
b/examples/rbac_model_in_multi_line.conf
index 17771b6..3d9ca6b 100644
--- a/examples/rbac_model_in_multi_line.conf
+++ b/examples/rbac_model_in_multi_line.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_model_matcher_using_in_op.conf 
b/examples/rbac_model_matcher_using_in_op.conf
index 227d149..33b7f2d 100644
--- a/examples/rbac_model_matcher_using_in_op.conf
+++ b/examples/rbac_model_matcher_using_in_op.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_model_matcher_using_in_op_bracket.conf 
b/examples/rbac_model_matcher_using_in_op_bracket.conf
index a7aa985..cc52042 100644
--- a/examples/rbac_model_matcher_using_in_op_bracket.conf
+++ b/examples/rbac_model_matcher_using_in_op_bracket.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_with_all_pattern_model.conf 
b/examples/rbac_with_all_pattern_model.conf
index 045bfa5..18276dc 100644
--- a/examples/rbac_with_all_pattern_model.conf
+++ b/examples/rbac_with_all_pattern_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, dom, obj, act
 
diff --git a/examples/rbac_with_deny_model.conf 
b/examples/rbac_with_deny_model.conf
index 33749f0..267d714 100644
--- a/examples/rbac_with_deny_model.conf
+++ b/examples/rbac_with_deny_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_with_domain_pattern_model.conf 
b/examples/rbac_with_domain_pattern_model.conf
index 774e441..a971d7d 100644
--- a/examples/rbac_with_domain_pattern_model.conf
+++ b/examples/rbac_with_domain_pattern_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, dom, obj, act
 
diff --git a/examples/rbac_with_domains_model.conf 
b/examples/rbac_with_domains_model.conf
index 57c3721..2f22e15 100644
--- a/examples/rbac_with_domains_model.conf
+++ b/examples/rbac_with_domains_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, dom, obj, act
 
diff --git a/examples/rbac_with_keymatch4_model.conf 
b/examples/rbac_with_keymatch4_model.conf
index da39667..a618f2c 100644
--- a/examples/rbac_with_keymatch4_model.conf
+++ b/examples/rbac_with_keymatch4_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_with_not_deny_model.conf 
b/examples/rbac_with_not_deny_model.conf
index 771f33d..2b07831 100644
--- a/examples/rbac_with_not_deny_model.conf
+++ b/examples/rbac_with_not_deny_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_with_pattern_model.conf 
b/examples/rbac_with_pattern_model.conf
index 84580d9..017aa15 100644
--- a/examples/rbac_with_pattern_model.conf
+++ b/examples/rbac_with_pattern_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/rbac_with_resource_roles_model.conf 
b/examples/rbac_with_resource_roles_model.conf
index 845bc6c..eaef3cf 100644
--- a/examples/rbac_with_resource_roles_model.conf
+++ b/examples/rbac_with_resource_roles_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/subject_priority_model.conf 
b/examples/subject_priority_model.conf
index 77b8c4e..54d7b90 100644
--- a/examples/subject_priority_model.conf
+++ b/examples/subject_priority_model.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, act
 
diff --git a/examples/subject_priority_model_with_domain.conf 
b/examples/subject_priority_model_with_domain.conf
index 92820ce..359f143 100644
--- a/examples/subject_priority_model_with_domain.conf
+++ b/examples/subject_priority_model_with_domain.conf
@@ -1,3 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, 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.
 [request_definition]
 r = sub, obj, dom, act
 
diff --git a/src/config/Config.lua b/src/config/Config.lua
index 7d8f82f..da8acf3 100644
--- a/src/config/Config.lua
+++ b/src/config/Config.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 local Util = require("src/util/Util")
 
 local Config = {
diff --git a/src/effect/DefaultEffector.lua b/src/effect/DefaultEffector.lua
index 029a4af..c6c0aa5 100644
--- a/src/effect/DefaultEffector.lua
+++ b/src/effect/DefaultEffector.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Effector = require("src/effect/Effector")
 --[[
diff --git a/src/effect/Effect.lua b/src/effect/Effect.lua
index a8a093c..7665a05 100644
--- a/src/effect/Effect.lua
+++ b/src/effect/Effect.lua
@@ -1,17 +1,19 @@
-
---Copyright 2021 The casbin Authors. All Rights Reserved.
---
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---    http://www.apache.org/licenses/LICENSE-2.0
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 --[[
     * Effect is the result for a policy rule.
diff --git a/src/effect/Effector.lua b/src/effect/Effector.lua
index ad24de1..906e5f4 100644
--- a/src/effect/Effector.lua
+++ b/src/effect/Effector.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Effect = require("src/effect/Effect")
 
diff --git a/src/main/CachedEnforcer.lua b/src/main/CachedEnforcer.lua
index 3aec660..26e85f9 100644
--- a/src/main/CachedEnforcer.lua
+++ b/src/main/CachedEnforcer.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Enforcer = require("src.main.Enforcer")
 local DefaultCache=require("src.persist.cache.DefaultCache")
diff --git a/src/main/CoreEnforcer.lua b/src/main/CoreEnforcer.lua
index 0249343..d424f9c 100644
--- a/src/main/CoreEnforcer.lua
+++ b/src/main/CoreEnforcer.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local DefaultEffector = require("src.effect.DefaultEffector")
 local Effect = require("src.effect.Effect")
diff --git a/src/main/Enforcer.lua b/src/main/Enforcer.lua
index a5d4a14..cca237f 100644
--- a/src/main/Enforcer.lua
+++ b/src/main/Enforcer.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local ManagementEnforcer = require("src.main.ManagementEnforcer")
 local Util = require("src.util.Util")
diff --git a/src/main/InternalEnforcer.lua b/src/main/InternalEnforcer.lua
index 89968f2..0fd288a 100644
--- a/src/main/InternalEnforcer.lua
+++ b/src/main/InternalEnforcer.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local CoreEnforcer = require("src/main/CoreEnforcer")
 
diff --git a/src/main/ManagementEnforcer.lua b/src/main/ManagementEnforcer.lua
index 89a689d..02ff295 100644
--- a/src/main/ManagementEnforcer.lua
+++ b/src/main/ManagementEnforcer.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local InternalEnforcer = require("src.main.InternalEnforcer")
 local FunctionMap = require("src.model.FunctionMap")
diff --git a/src/model/Assertion.lua b/src/model/Assertion.lua
index 627f8f7..e627b7f 100644
--- a/src/model/Assertion.lua
+++ b/src/model/Assertion.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Util = require("src/util/Util")
 
diff --git a/src/model/FunctionMap.lua b/src/model/FunctionMap.lua
index 9984a41..626d08c 100644
--- a/src/model/FunctionMap.lua
+++ b/src/model/FunctionMap.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local BuiltInFunctions = require("src.util.BuiltInFunctions")
 
diff --git a/src/model/Model.lua b/src/model/Model.lua
index 4efa7d1..7dfabc3 100644
--- a/src/model/Model.lua
+++ b/src/model/Model.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Config = require("src/config/Config")
 local Policy = require("src/model/Policy")
diff --git a/src/model/Policy.lua b/src/model/Policy.lua
index b8165a7..0ef1225 100644
--- a/src/model/Policy.lua
+++ b/src/model/Policy.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Util = require("src/util/Util")
 local Log = require("src/util/Log")
diff --git a/src/persist/Adapter.lua b/src/persist/Adapter.lua
index ee44aff..afd4e4b 100644
--- a/src/persist/Adapter.lua
+++ b/src/persist/Adapter.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 --Adapter is the interface for Casbin adapters.
 local Util = require("src.util.Util")
diff --git a/src/persist/BatchAdapter.lua b/src/persist/BatchAdapter.lua
index 8287b6d..6d85c0a 100644
--- a/src/persist/BatchAdapter.lua
+++ b/src/persist/BatchAdapter.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Adapter = require("src/persist/Adapter")
 
diff --git a/src/persist/Dispatcher.lua b/src/persist/Dispatcher.lua
index 4134847..f8a6875 100644
--- a/src/persist/Dispatcher.lua
+++ b/src/persist/Dispatcher.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 -- Dispatcher is the interface for Casbin dispatcher
 local Dispatcher = {}
diff --git a/src/persist/FilteredAdapter.lua b/src/persist/FilteredAdapter.lua
index b80874d..ecbc235 100644
--- a/src/persist/FilteredAdapter.lua
+++ b/src/persist/FilteredAdapter.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Adapter = require("src/persist/Adapter")
 
diff --git a/src/persist/UpdateAdapter.lua b/src/persist/UpdateAdapter.lua
index b7dbbc2..0952655 100644
--- a/src/persist/UpdateAdapter.lua
+++ b/src/persist/UpdateAdapter.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Adapter = require("src/persist/Adapter")
 
diff --git a/src/persist/Watcher.lua b/src/persist/Watcher.lua
index 4ff0380..45b61be 100644
--- a/src/persist/Watcher.lua
+++ b/src/persist/Watcher.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Watcher = {}
 Watcher.__index = Watcher
diff --git a/src/persist/WatcherEx.lua b/src/persist/WatcherEx.lua
index b775dab..2500ae6 100644
--- a/src/persist/WatcherEx.lua
+++ b/src/persist/WatcherEx.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Watcher = require("src.persist.Watcher")
 
diff --git a/src/persist/WatcherUpdatable.lua b/src/persist/WatcherUpdatable.lua
index 11993c3..f9a6daa 100644
--- a/src/persist/WatcherUpdatable.lua
+++ b/src/persist/WatcherUpdatable.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Watcher = require("src.persist.Watcher")
 
diff --git a/src/persist/cache/Cache.lua b/src/persist/cache/Cache.lua
index a8cf5ff..04bfac7 100644
--- a/src/persist/cache/Cache.lua
+++ b/src/persist/cache/Cache.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 local Cache={}
 
 function Cache:new()
diff --git a/src/persist/cache/DefaultCache.lua 
b/src/persist/cache/DefaultCache.lua
index fab9868..7a38122 100644
--- a/src/persist/cache/DefaultCache.lua
+++ b/src/persist/cache/DefaultCache.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 local Cache=require("src/persist/cache/Cache")
 
 
diff --git a/src/persist/database_adapter/DatabaseAdapter.lua 
b/src/persist/database_adapter/DatabaseAdapter.lua
index 7596a2a..fa778fa 100644
--- a/src/persist/database_adapter/DatabaseAdapter.lua
+++ b/src/persist/database_adapter/DatabaseAdapter.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Adapter = require("src/persist/Adapter")
 
diff --git a/src/persist/file_adapter/FileAdapter.lua 
b/src/persist/file_adapter/FileAdapter.lua
index 2b958a8..2b0ced9 100644
--- a/src/persist/file_adapter/FileAdapter.lua
+++ b/src/persist/file_adapter/FileAdapter.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Util = require("src/util/Util")
 local Adapter = require("src/persist/Adapter")
diff --git a/src/persist/file_adapter/Filter.lua 
b/src/persist/file_adapter/Filter.lua
index f0de8c3..a4c09db 100644
--- a/src/persist/file_adapter/Filter.lua
+++ b/src/persist/file_adapter/Filter.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 --[[
     * the filter class.
diff --git a/src/persist/file_adapter/FilteredAdapter.lua 
b/src/persist/file_adapter/FilteredAdapter.lua
index 04ecd28..bd1a404 100644
--- a/src/persist/file_adapter/FilteredAdapter.lua
+++ b/src/persist/file_adapter/FilteredAdapter.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Adapter = require("src/persist/Adapter")
 local FileAdapter = require("src/persist/file_adapter/FileAdapter")
diff --git a/src/rbac/DefaultRoleManager.lua b/src/rbac/DefaultRoleManager.lua
index bb524f1..fed0547 100644
--- a/src/rbac/DefaultRoleManager.lua
+++ b/src/rbac/DefaultRoleManager.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Role = require("src/rbac/Role")
 local Log = require("src/util/Log")
diff --git a/src/rbac/Role.lua b/src/rbac/Role.lua
index 0f2c07f..b856534 100644
--- a/src/rbac/Role.lua
+++ b/src/rbac/Role.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 --  * Role represents the data structure for a role in RBAC.
 local Role = {}
diff --git a/src/rbac/RoleManager.lua b/src/rbac/RoleManager.lua
index 395369a..08c478f 100644
--- a/src/rbac/RoleManager.lua
+++ b/src/rbac/RoleManager.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 -- RoleManager provides interface to define the operations for managing roles.
 local RoleManager = {}
diff --git a/src/util/BuiltInFunctions.lua b/src/util/BuiltInFunctions.lua
index c39d4d0..627f854 100644
--- a/src/util/BuiltInFunctions.lua
+++ b/src/util/BuiltInFunctions.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local rex = require ("rex_pcre2")
 local posix = require("posix.fnmatch")
diff --git a/src/util/Log.lua b/src/util/Log.lua
index 54c5d56..bf92096 100644
--- a/src/util/Log.lua
+++ b/src/util/Log.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Logging = require "logging"
 local fileLogging = require "logging.file"
diff --git a/src/util/Util.lua b/src/util/Util.lua
index 5026d9c..7fb64bd 100644
--- a/src/util/Util.lua
+++ b/src/util/Util.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 -- Utility Functions for lua-casbin
 local Util = {}
diff --git a/tests/config/config_spec.lua b/tests/config/config_spec.lua
index 9746020..5552204 100644
--- a/tests/config/config_spec.lua
+++ b/tests/config/config_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Config = require("src.config.Config")
 local path = os.getenv("PWD") or io.popen("cd"):read()
diff --git a/tests/main/cached_enforcer_spec.lua 
b/tests/main/cached_enforcer_spec.lua
index d7fbdd7..f80ba79 100644
--- a/tests/main/cached_enforcer_spec.lua
+++ b/tests/main/cached_enforcer_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local CachedEnforcer = require("src.main.CachedEnforcer")
 local path = os.getenv("PWD") or io.popen("cd"):read()
diff --git a/tests/main/enforcer_spec.lua b/tests/main/enforcer_spec.lua
index 54977a9..3701a4b 100644
--- a/tests/main/enforcer_spec.lua
+++ b/tests/main/enforcer_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Enforcer = require("src.main.Enforcer")
 local BuiltInFunctions = require "src.util.BuiltInFunctions"
diff --git a/tests/main/internal_api_spec.lua b/tests/main/internal_api_spec.lua
index 1ff6677..4b1a9b3 100644
--- a/tests/main/internal_api_spec.lua
+++ b/tests/main/internal_api_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Enforcer = require("src.main.Enforcer")
 local path = os.getenv("PWD") or io.popen("cd"):read()
diff --git a/tests/main/management_api_spec.lua 
b/tests/main/management_api_spec.lua
index 84edb37..1bc9181 100644
--- a/tests/main/management_api_spec.lua
+++ b/tests/main/management_api_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Enforcer = require("src.main.Enforcer")
 local Util = require("src.util.Util")
diff --git a/tests/main/rbac_api_spec.lua b/tests/main/rbac_api_spec.lua
index 9ae7c74..51770a1 100644
--- a/tests/main/rbac_api_spec.lua
+++ b/tests/main/rbac_api_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Enforcer = require("src.main.Enforcer")
 local BuiltInFunctions = require("src.util.BuiltInFunctions")
diff --git a/tests/model/model_spec.lua b/tests/model/model_spec.lua
index 33fb8ab..375f865 100644
--- a/tests/model/model_spec.lua
+++ b/tests/model/model_spec.lua
@@ -1,16 +1,19 @@
-         --Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Model = require("src.model.Model")
 local path = os.getenv("PWD") or io.popen("cd"):read()
diff --git a/tests/persist/adapter_error_spec.lua 
b/tests/persist/adapter_error_spec.lua
index 839788f..1aef72f 100644
--- a/tests/persist/adapter_error_spec.lua
+++ b/tests/persist/adapter_error_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Adapter = require("src.persist.Adapter")
 local Enforcer = require("src.main.Enforcer")
diff --git a/tests/persist/database_adapter_spec.lua 
b/tests/persist/database_adapter_spec.lua
index 55cd4b3..ba25349 100644
--- a/tests/persist/database_adapter_spec.lua
+++ b/tests/persist/database_adapter_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local DatabaseAdapter = require("src.persist.database_adapter.DatabaseAdapter")
 local Enforcer = require("src.main.Enforcer")
diff --git a/tests/persist/file_adapter_spec.lua 
b/tests/persist/file_adapter_spec.lua
index e3784ec..5ccfd61 100644
--- a/tests/persist/file_adapter_spec.lua
+++ b/tests/persist/file_adapter_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local FileAdapter = require("src.persist.file_adapter.FileAdapter")
 local Model = require("src.model.Model")
diff --git a/tests/persist/filtered_adapter_spec.lua 
b/tests/persist/filtered_adapter_spec.lua
index 3f19d09..ba8bd3b 100644
--- a/tests/persist/filtered_adapter_spec.lua
+++ b/tests/persist/filtered_adapter_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local FilteredAdapter = require("src.persist.file_adapter.FilteredAdapter")
 local Filter = require("src.persist.file_adapter.Filter")
diff --git a/tests/persist/watcher_spec.lua b/tests/persist/watcher_spec.lua
index 9d58207..3f2f591 100644
--- a/tests/persist/watcher_spec.lua
+++ b/tests/persist/watcher_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Watcher = require("src.persist.Watcher")
 local WatcherEx = require("src.persist.WatcherEx")
diff --git a/tests/rbac/role_manager_spec.lua b/tests/rbac/role_manager_spec.lua
index 1d0439f..00f40df 100644
--- a/tests/rbac/role_manager_spec.lua
+++ b/tests/rbac/role_manager_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local DefaultRoleManager = require("src.rbac.DefaultRoleManager")
 local Util = require("src.util.Util")
diff --git a/tests/util/built_in_functions_spec.lua 
b/tests/util/built_in_functions_spec.lua
index 44f2e30..e7a80a5 100644
--- a/tests/util/built_in_functions_spec.lua
+++ b/tests/util/built_in_functions_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local BuiltInFunctions = require("src.util.BuiltInFunctions")
 
diff --git a/tests/util/log_spec.lua b/tests/util/log_spec.lua
index 3442d98..043b71c 100644
--- a/tests/util/log_spec.lua
+++ b/tests/util/log_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Log = require("src.util.Log")
 
diff --git a/tests/util/util_spec.lua b/tests/util/util_spec.lua
index d0c559d..ee715f4 100644
--- a/tests/util/util_spec.lua
+++ b/tests/util/util_spec.lua
@@ -1,16 +1,19 @@
---Copyright 2021 The casbin Authors. All Rights Reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
 --
---Licensed under the Apache License, Version 2.0 (the "License");
---you may not use this file except in compliance with the License.
---You may obtain a copy of the License at
+--   https://www.apache.org/licenses/LICENSE-2.0
 --
---    http://www.apache.org/licenses/LICENSE-2.0
---
---Unless required by applicable law or agreed to in writing, software
---distributed under the License is distributed on an "AS IS" BASIS,
---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.
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, 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.
 
 local Util = require("src.util.Util")
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to