From 70144b0c2b5dfadcdec447818342ab21aed8d65a Mon Sep 17 00:00:00 2001
From: Jan Mach <jan.mach@cesnet.cz>
Date: Fri, 7 Apr 2017 09:14:23 +0200
Subject: [PATCH] Updated license files and license headers at the beginning of
 each file.

(Redmine issue: #3361)
---
 LICENSE.txt                                   | 21 +++++++++++++
 bin/mentat-backup.py                          |  6 ++--
 bin/mentat-cleanup.py                         |  6 ++--
 bin/mentat-controller.py                      |  6 ++--
 bin/mentat-dbmngr.py                          |  6 ++--
 bin/mentat-ideagen.py                         |  6 ++--
 bin/mentat-inspector.py                       | 31 +++++++++++++++----
 bin/mentat-sampler.py                         |  6 ++--
 bin/test_mentat-backup.py                     |  6 ++--
 bin/test_mentat-cleanup.py                    |  6 ++--
 bin/test_mentat-inspector.py                  |  6 ++--
 deploy/ctrl/copyright                         | 27 ++++++++++++++--
 lib/mentat/const.py                           |  6 ++--
 lib/mentat/daemon/component/commiter.py       |  6 ++--
 lib/mentat/daemon/component/filer.py          |  6 ++--
 lib/mentat/daemon/component/filter.py         |  6 ++--
 lib/mentat/daemon/component/inspector.py      |  6 ++--
 lib/mentat/daemon/component/mailer.py         |  6 ++--
 lib/mentat/daemon/component/parser.py         |  6 ++--
 lib/mentat/daemon/component/printer.py        |  6 ++--
 lib/mentat/daemon/component/sampler.py        |  6 ++--
 lib/mentat/daemon/component/test_commiter.py  |  6 ++--
 lib/mentat/daemon/component/test_filer.py     |  6 ++--
 lib/mentat/daemon/component/test_filter.py    |  6 ++--
 lib/mentat/daemon/component/test_inspector.py |  6 ++--
 lib/mentat/daemon/component/test_mailer.py    |  6 ++--
 lib/mentat/daemon/component/test_parser.py    |  6 ++--
 lib/mentat/daemon/component/test_printer.py   |  6 ++--
 lib/mentat/daemon/component/test_sampler.py   |  6 ++--
 lib/mentat/daemon/piper.py                    |  6 ++--
 lib/mentat/daemon/test_piper.py               |  6 ++--
 lib/mentat/dirq.py                            |  6 ++--
 lib/mentat/filtering/filters.py               |  4 ++-
 lib/mentat/filtering/gparser.py               |  4 ++-
 lib/mentat/filtering/jpath.py                 |  4 ++-
 lib/mentat/filtering/lexer.py                 |  4 ++-
 lib/mentat/filtering/rules.py                 |  4 ++-
 lib/mentat/filtering/test_filters.py          |  4 ++-
 lib/mentat/filtering/test_filters_idea.py     |  4 ++-
 .../filtering/test_filters_inspector.py       |  4 ++-
 lib/mentat/filtering/test_gparser.py          |  4 ++-
 lib/mentat/filtering/test_jpath.py            |  4 ++-
 lib/mentat/filtering/test_lexer.py            |  4 ++-
 lib/mentat/filtering/test_rules.py            |  4 ++-
 lib/mentat/idea/internal.py                   |  4 ++-
 lib/mentat/idea/mongodb.py                    |  4 ++-
 lib/mentat/idea/test_internal.py              |  4 ++-
 lib/mentat/idea/test_mongodb.py               |  4 ++-
 lib/mentat/storage.py                         |  6 ++--
 lib/mentat/test_dirq.py                       |  6 ++--
 lib/mentat/test_idea.py                       |  6 ++--
 lib/mentat/test_storage.py                    |  6 ++--
 52 files changed, 250 insertions(+), 91 deletions(-)
 create mode 100644 LICENSE.txt

diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 00000000..18202f1e
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) since 2011 CESNET, z.s.p.o
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/bin/mentat-backup.py b/bin/mentat-backup.py
index 3b6f64ae..14e18fe1 100755
--- a/bin/mentat-backup.py
+++ b/bin/mentat-backup.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-cleanup.py b/bin/mentat-cleanup.py
index dc644211..ca3ed7c2 100755
--- a/bin/mentat-cleanup.py
+++ b/bin/mentat-cleanup.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-controller.py b/bin/mentat-controller.py
index 59d88b29..d58723fb 100755
--- a/bin/mentat-controller.py
+++ b/bin/mentat-controller.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-dbmngr.py b/bin/mentat-dbmngr.py
index 737d5562..45872e73 100755
--- a/bin/mentat-dbmngr.py
+++ b/bin/mentat-dbmngr.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-ideagen.py b/bin/mentat-ideagen.py
index bb0537e9..bd0f56ca 100755
--- a/bin/mentat-ideagen.py
+++ b/bin/mentat-ideagen.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-inspector.py b/bin/mentat-inspector.py
index 4ee12ba5..29b4f56e 100755
--- a/bin/mentat-inspector.py
+++ b/bin/mentat-inspector.py
@@ -1,21 +1,41 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
-import pprint
 
+"""
+Daemon component capable of inspection IDEA messaes according to given
+set of filtering rules and performing number of associated actions.
+
+encapsulating :py:mod:`mentat.idea.mongodb`
+library and capable .
+"""
+
+
+__version__ = "0.1"
+__author__ = "Jan Mach <jan.mach@cesnet.cz>"
+__credits__ = "Pavel Kácha <pavel.kacha@cesnet.cz>, Andrea Kropáčová <andrea.kropacova@cesnet.cz>"
+
+
+#
+# Python system libraries
+#
 import os
 import sys
 
+
 # Generate the path to custom 'lib' directory
 lib = os.path.abspath(os.path.join(os.path.dirname(__file__), '../lib'))
 sys.path.insert(0, lib)
 lib = os.path.abspath(os.path.join(os.path.dirname(__file__), '../bin'))
 sys.path.insert(0, lib)
 
+
 #
 # Custom libraries
 #
@@ -27,12 +47,11 @@ import mentat.daemon.component.inspector
 import mentat.daemon.component.mailer
 import mentat.daemon.component.commiter
 
+
 class MentatInspectorDaemon(mentat.daemon.piper.PiperDaemon):
-    """
-    Daemon for IDEA message inspections.
-    """
     pass
 
+
 if __name__ == "__main__":
     """
     Execute the daemon.
diff --git a/bin/mentat-sampler.py b/bin/mentat-sampler.py
index 90207199..829d692a 100755
--- a/bin/mentat-sampler.py
+++ b/bin/mentat-sampler.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/test_mentat-backup.py b/bin/test_mentat-backup.py
index 9739ed13..18c02ca5 100755
--- a/bin/test_mentat-backup.py
+++ b/bin/test_mentat-backup.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/test_mentat-cleanup.py b/bin/test_mentat-cleanup.py
index 2db3932d..490bf2fb 100644
--- a/bin/test_mentat-cleanup.py
+++ b/bin/test_mentat-cleanup.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/test_mentat-inspector.py b/bin/test_mentat-inspector.py
index 07e6c751..6666d01c 100644
--- a/bin/test_mentat-inspector.py
+++ b/bin/test_mentat-inspector.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/deploy/ctrl/copyright b/deploy/ctrl/copyright
index e7f694dc..c588c6f4 100644
--- a/deploy/ctrl/copyright
+++ b/deploy/ctrl/copyright
@@ -1,9 +1,30 @@
 mentat-ng
 
-Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net)
+Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 Authors: Jan Mach <jan.mach@cesnet.cz>
          Pavel Kácha <pavel.kacha@cesnet.cz>
+Credits: Andrea Kropáčová <andrea.kropacova@cesnet.cz>
 
-2017-01-01
+The entire code base may be distributed under the terms of the MIT license.
 
-The entire code base may be distributed under the terms of the MIT-style license.
+---
+
+The MIT License (MIT)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/lib/mentat/const.py b/lib/mentat/const.py
index 1763e76a..4de6b04a 100644
--- a/lib/mentat/const.py
+++ b/lib/mentat/const.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/commiter.py b/lib/mentat/daemon/component/commiter.py
index 55e18d17..6523a183 100644
--- a/lib/mentat/daemon/component/commiter.py
+++ b/lib/mentat/daemon/component/commiter.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/filer.py b/lib/mentat/daemon/component/filer.py
index e887c3dd..05db2db3 100644
--- a/lib/mentat/daemon/component/filer.py
+++ b/lib/mentat/daemon/component/filer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/filter.py b/lib/mentat/daemon/component/filter.py
index 3bee11ac..9f2e363a 100644
--- a/lib/mentat/daemon/component/filter.py
+++ b/lib/mentat/daemon/component/filter.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/inspector.py b/lib/mentat/daemon/component/inspector.py
index 594ed150..8ba334ee 100644
--- a/lib/mentat/daemon/component/inspector.py
+++ b/lib/mentat/daemon/component/inspector.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/mailer.py b/lib/mentat/daemon/component/mailer.py
index c7457c8f..fe9f8390 100644
--- a/lib/mentat/daemon/component/mailer.py
+++ b/lib/mentat/daemon/component/mailer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/parser.py b/lib/mentat/daemon/component/parser.py
index a7946605..42536769 100644
--- a/lib/mentat/daemon/component/parser.py
+++ b/lib/mentat/daemon/component/parser.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/printer.py b/lib/mentat/daemon/component/printer.py
index 09c6e4be..bbc5a4d1 100644
--- a/lib/mentat/daemon/component/printer.py
+++ b/lib/mentat/daemon/component/printer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/sampler.py b/lib/mentat/daemon/component/sampler.py
index 5dca55bb..3ae17f26 100644
--- a/lib/mentat/daemon/component/sampler.py
+++ b/lib/mentat/daemon/component/sampler.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_commiter.py b/lib/mentat/daemon/component/test_commiter.py
index 8bdd9c6c..bd1d228b 100644
--- a/lib/mentat/daemon/component/test_commiter.py
+++ b/lib/mentat/daemon/component/test_commiter.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_filer.py b/lib/mentat/daemon/component/test_filer.py
index 09e48cf3..c6bea60c 100644
--- a/lib/mentat/daemon/component/test_filer.py
+++ b/lib/mentat/daemon/component/test_filer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_filter.py b/lib/mentat/daemon/component/test_filter.py
index 68271b61..df3b58b8 100644
--- a/lib/mentat/daemon/component/test_filter.py
+++ b/lib/mentat/daemon/component/test_filter.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_inspector.py b/lib/mentat/daemon/component/test_inspector.py
index e136b015..6ba15040 100644
--- a/lib/mentat/daemon/component/test_inspector.py
+++ b/lib/mentat/daemon/component/test_inspector.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_mailer.py b/lib/mentat/daemon/component/test_mailer.py
index 3a97e627..3d72db92 100644
--- a/lib/mentat/daemon/component/test_mailer.py
+++ b/lib/mentat/daemon/component/test_mailer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_parser.py b/lib/mentat/daemon/component/test_parser.py
index a99f4357..919986ff 100644
--- a/lib/mentat/daemon/component/test_parser.py
+++ b/lib/mentat/daemon/component/test_parser.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_printer.py b/lib/mentat/daemon/component/test_printer.py
index 4e2b669b..c4d4009a 100644
--- a/lib/mentat/daemon/component/test_printer.py
+++ b/lib/mentat/daemon/component/test_printer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_sampler.py b/lib/mentat/daemon/component/test_sampler.py
index a7e149ba..445422b8 100644
--- a/lib/mentat/daemon/component/test_sampler.py
+++ b/lib/mentat/daemon/component/test_sampler.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/piper.py b/lib/mentat/daemon/piper.py
index 9f5faf97..9b4dd153 100644
--- a/lib/mentat/daemon/piper.py
+++ b/lib/mentat/daemon/piper.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/test_piper.py b/lib/mentat/daemon/test_piper.py
index 3a2cb028..e6ab57bd 100644
--- a/lib/mentat/daemon/test_piper.py
+++ b/lib/mentat/daemon/test_piper.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/dirq.py b/lib/mentat/dirq.py
index d6561df3..de59b18d 100644
--- a/lib/mentat/dirq.py
+++ b/lib/mentat/dirq.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/filters.py b/lib/mentat/filtering/filters.py
index d92c6a3f..27f4b400 100644
--- a/lib/mentat/filtering/filters.py
+++ b/lib/mentat/filtering/filters.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/gparser.py b/lib/mentat/filtering/gparser.py
index 5a897b73..3f8ef645 100644
--- a/lib/mentat/filtering/gparser.py
+++ b/lib/mentat/filtering/gparser.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/jpath.py b/lib/mentat/filtering/jpath.py
index 7550e7e0..628d0107 100644
--- a/lib/mentat/filtering/jpath.py
+++ b/lib/mentat/filtering/jpath.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/lexer.py b/lib/mentat/filtering/lexer.py
index 0e42aec5..cc11fda5 100644
--- a/lib/mentat/filtering/lexer.py
+++ b/lib/mentat/filtering/lexer.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/rules.py b/lib/mentat/filtering/rules.py
index 48862e43..059d97fd 100644
--- a/lib/mentat/filtering/rules.py
+++ b/lib/mentat/filtering/rules.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_filters.py b/lib/mentat/filtering/test_filters.py
index 2325b8b8..9bfd1969 100644
--- a/lib/mentat/filtering/test_filters.py
+++ b/lib/mentat/filtering/test_filters.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_filters_idea.py b/lib/mentat/filtering/test_filters_idea.py
index ef8de0ce..4439fa62 100644
--- a/lib/mentat/filtering/test_filters_idea.py
+++ b/lib/mentat/filtering/test_filters_idea.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_filters_inspector.py b/lib/mentat/filtering/test_filters_inspector.py
index 0121c927..7e7be2f5 100644
--- a/lib/mentat/filtering/test_filters_inspector.py
+++ b/lib/mentat/filtering/test_filters_inspector.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_gparser.py b/lib/mentat/filtering/test_gparser.py
index 39d4ab2f..80a5d7c9 100644
--- a/lib/mentat/filtering/test_gparser.py
+++ b/lib/mentat/filtering/test_gparser.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_jpath.py b/lib/mentat/filtering/test_jpath.py
index b042533b..1a8ec2e0 100644
--- a/lib/mentat/filtering/test_jpath.py
+++ b/lib/mentat/filtering/test_jpath.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_lexer.py b/lib/mentat/filtering/test_lexer.py
index 4263914c..342632b5 100644
--- a/lib/mentat/filtering/test_lexer.py
+++ b/lib/mentat/filtering/test_lexer.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_rules.py b/lib/mentat/filtering/test_rules.py
index e4f96a18..6889eb99 100644
--- a/lib/mentat/filtering/test_rules.py
+++ b/lib/mentat/filtering/test_rules.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/idea/internal.py b/lib/mentat/idea/internal.py
index 4bc03f4b..507b54fd 100644
--- a/lib/mentat/idea/internal.py
+++ b/lib/mentat/idea/internal.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/idea/mongodb.py b/lib/mentat/idea/mongodb.py
index c48068e7..1900645d 100644
--- a/lib/mentat/idea/mongodb.py
+++ b/lib/mentat/idea/mongodb.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/idea/test_internal.py b/lib/mentat/idea/test_internal.py
index 263a3ce6..79070f24 100644
--- a/lib/mentat/idea/test_internal.py
+++ b/lib/mentat/idea/test_internal.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/idea/test_mongodb.py b/lib/mentat/idea/test_mongodb.py
index 78ccbf25..9d9863a5 100644
--- a/lib/mentat/idea/test_mongodb.py
+++ b/lib/mentat/idea/test_mongodb.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/storage.py b/lib/mentat/storage.py
index b51e56d0..a160ac2a 100644
--- a/lib/mentat/storage.py
+++ b/lib/mentat/storage.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/test_dirq.py b/lib/mentat/test_dirq.py
index bad7632b..0f07529b 100644
--- a/lib/mentat/test_dirq.py
+++ b/lib/mentat/test_dirq.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/test_idea.py b/lib/mentat/test_idea.py
index 4a718621..4fcf4287 100644
--- a/lib/mentat/test_idea.py
+++ b/lib/mentat/test_idea.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/test_storage.py b/lib/mentat/test_storage.py
index 5389b4a9..60c3b430 100644
--- a/lib/mentat/test_storage.py
+++ b/lib/mentat/test_storage.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
-- 
GitLab