From ae88adba3435773892e696f8e5fd851867c96337 Mon Sep 17 00:00:00 2001 From: Tamas K Stenczel Date: Sun, 26 Jan 2025 08:57:28 +0000 Subject: [PATCH] automagically added copyright to all files --- abcd/backends/atoms_http.py | 4 ++++ abcd/backends/atoms_pymongo.py | 4 ++++ abcd/database.py | 4 ++++ abcd/errors.py | 4 ++++ abcd/frontends/commandline/commands.py | 4 ++++ abcd/frontends/commandline/config.py | 4 ++++ abcd/frontends/commandline/decorators.py | 4 ++++ abcd/frontends/commandline/parser.py | 4 ++++ abcd/model.py | 4 ++++ abcd/parsers/extras.py | 4 ++++ abcd/parsers/queries.py | 4 ++++ abcd/parsers/queries_new.py | 4 ++++ abcd/queryset.py | 4 ++++ abcd/server/app/db.py | 4 ++++ abcd/server/app/nav.py | 4 ++++ abcd/server/app/views/api.py | 4 ++++ abcd/server/app/views/database.py | 4 ++++ abcd/server/app/views/index.py | 4 ++++ tests/test_abstract_model.py | 4 ++++ tests/test_database.py | 4 ++++ tests/test_mongodb_srv.py | 4 ++++ tests/test_parsers.py | 4 ++++ tutorials/gb_upload.py | 4 ++++ tutorials/scripts/Preprocess.py | 4 ++++ tutorials/scripts/Reader.py | 4 ++++ tutorials/scripts/Visualise.py | 4 ++++ tutorials/scripts/Visualise_quip.py | 4 ++++ tutorials/test_db.py | 4 ++++ tutorials/test_upload.py | 4 ++++ 29 files changed, 116 insertions(+) diff --git a/abcd/backends/atoms_http.py b/abcd/backends/atoms_http.py index ee62e61a..5033931c 100644 --- a/abcd/backends/atoms_http.py +++ b/abcd/backends/atoms_http.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import json import logging import requests diff --git a/abcd/backends/atoms_pymongo.py b/abcd/backends/atoms_pymongo.py index c2baf7ad..ce87b69a 100644 --- a/abcd/backends/atoms_pymongo.py +++ b/abcd/backends/atoms_pymongo.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar, Tamás K. Stenczel, Gábor Csányi +# This program is distributed under the MIT License, see LICENSE.md. + import types import logging import numpy as np diff --git a/abcd/database.py b/abcd/database.py index 2553583b..7d418f83 100644 --- a/abcd/database.py +++ b/abcd/database.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete +# This program is distributed under the MIT License, see LICENSE.md. + import logging from abc import ABCMeta, abstractmethod diff --git a/abcd/errors.py b/abcd/errors.py index f8cb516d..19384ce6 100644 --- a/abcd/errors.py +++ b/abcd/errors.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete +# This program is distributed under the MIT License, see LICENSE.md. + class ABCDError(Exception): pass diff --git a/abcd/frontends/commandline/commands.py b/abcd/frontends/commandline/commands.py index de158a5c..b27e6024 100644 --- a/abcd/frontends/commandline/commands.py +++ b/abcd/frontends/commandline/commands.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar, Tamás K. Stenczel, Gábor Csányi, Elena Gelzinyte +# This program is distributed under the MIT License, see LICENSE.md. + import logging import os diff --git a/abcd/frontends/commandline/config.py b/abcd/frontends/commandline/config.py index 3aa21bea..0eef7d74 100644 --- a/abcd/frontends/commandline/config.py +++ b/abcd/frontends/commandline/config.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import os import json import logging diff --git a/abcd/frontends/commandline/decorators.py b/abcd/frontends/commandline/decorators.py index c2439be7..4e7a5b0c 100644 --- a/abcd/frontends/commandline/decorators.py +++ b/abcd/frontends/commandline/decorators.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import logging from abcd import ABCD diff --git a/abcd/frontends/commandline/parser.py b/abcd/frontends/commandline/parser.py index 9b2c1af2..2c04b9c0 100644 --- a/abcd/frontends/commandline/parser.py +++ b/abcd/frontends/commandline/parser.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar, Elena Gelzinyte +# This program is distributed under the MIT License, see LICENSE.md. + import logging from argparse import ArgumentParser from abcd.frontends.commandline import commands diff --git a/abcd/model.py b/abcd/model.py index 4b9dabfd..f744e7b3 100644 --- a/abcd/model.py +++ b/abcd/model.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import datetime import getpass import logging diff --git a/abcd/parsers/extras.py b/abcd/parsers/extras.py index c007acf6..a7ff09d5 100644 --- a/abcd/parsers/extras.py +++ b/abcd/parsers/extras.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import sys from lark import Lark, Transformer, v_args from lark.exceptions import LarkError diff --git a/abcd/parsers/queries.py b/abcd/parsers/queries.py index 41ef1c33..2a2a9155 100644 --- a/abcd/parsers/queries.py +++ b/abcd/parsers/queries.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import logging from lark import Lark, Transformer, v_args from lark.exceptions import LarkError diff --git a/abcd/parsers/queries_new.py b/abcd/parsers/queries_new.py index 22004d11..7e937b27 100644 --- a/abcd/parsers/queries_new.py +++ b/abcd/parsers/queries_new.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import logging from lark import Lark, Transformer, v_args from lark.lexer import Token diff --git a/abcd/queryset.py b/abcd/queryset.py index 82b8ea03..97dfa1d2 100644 --- a/abcd/queryset.py +++ b/abcd/queryset.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete +# This program is distributed under the MIT License, see LICENSE.md. + import logging from abc import ABCMeta diff --git a/abcd/server/app/db.py b/abcd/server/app/db.py index 65bc9c70..71914220 100644 --- a/abcd/server/app/db.py +++ b/abcd/server/app/db.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete +# This program is distributed under the MIT License, see LICENSE.md. + from abcd import ABCD diff --git a/abcd/server/app/nav.py b/abcd/server/app/nav.py index ec8ea2d1..24172148 100644 --- a/abcd/server/app/nav.py +++ b/abcd/server/app/nav.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + from flask_nav import Nav from flask_nav.elements import Navbar, View, Separator, Subgroup, Link from hashlib import sha1 diff --git a/abcd/server/app/views/api.py b/abcd/server/app/views/api.py index b3aa6d25..c06b332a 100644 --- a/abcd/server/app/views/api.py +++ b/abcd/server/app/views/api.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + from flask import Blueprint, Response, make_response, jsonify, request bp = Blueprint("api", __name__) diff --git a/abcd/server/app/views/database.py b/abcd/server/app/views/database.py index 8569dcd2..8c7d0c07 100644 --- a/abcd/server/app/views/database.py +++ b/abcd/server/app/views/database.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + from flask import Blueprint, render_template, request from flask import Response diff --git a/abcd/server/app/views/index.py b/abcd/server/app/views/index.py index 37faa52a..e3119eb1 100644 --- a/abcd/server/app/views/index.py +++ b/abcd/server/app/views/index.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + from flask import Blueprint, render_template, url_for # from flask import Blueprint, render_template, flash, redirect, url_for, request diff --git a/tests/test_abstract_model.py b/tests/test_abstract_model.py index f9e820e6..512d016d 100644 --- a/tests/test_abstract_model.py +++ b/tests/test_abstract_model.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import io import ase diff --git a/tests/test_database.py b/tests/test_database.py index 82cddfab..c1e3d78b 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Elliott Kasoar, Tamás K. Stenczel +# This program is distributed under the MIT License, see LICENSE.md. + import pytest import mongomock diff --git a/tests/test_mongodb_srv.py b/tests/test_mongodb_srv.py index bfaf2c8d..f89c11ff 100644 --- a/tests/test_mongodb_srv.py +++ b/tests/test_mongodb_srv.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Tamás K. Stenczel +# This program is distributed under the MIT License, see LICENSE.md. + """Tests for supporting `mongodb+srv://` URIs""" from pytest import fixture diff --git a/tests/test_parsers.py b/tests/test_parsers.py index 5a2211e0..6b15f52d 100644 --- a/tests/test_parsers.py +++ b/tests/test_parsers.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Elliott Kasoar, Tamás K. Stenczel +# This program is distributed under the MIT License, see LICENSE.md. + import pytest from abcd.parsers.extras import parser as extras_parser from abcd.parsers.queries import parser as queries_parser diff --git a/tutorials/gb_upload.py b/tutorials/gb_upload.py index 3d276de2..500430a9 100644 --- a/tutorials/gb_upload.py +++ b/tutorials/gb_upload.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import sys from pathlib import Path diff --git a/tutorials/scripts/Preprocess.py b/tutorials/scripts/Preprocess.py index 49a315d8..b13cf7a6 100644 --- a/tutorials/scripts/Preprocess.py +++ b/tutorials/scripts/Preprocess.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + from pathlib import Path from pprint import pprint import json diff --git a/tutorials/scripts/Reader.py b/tutorials/scripts/Reader.py index 83d6be52..8aa5446c 100644 --- a/tutorials/scripts/Reader.py +++ b/tutorials/scripts/Reader.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + from pathlib import Path from pprint import pprint import json diff --git a/tutorials/scripts/Visualise.py b/tutorials/scripts/Visualise.py index 308e76fb..4ae05262 100644 --- a/tutorials/scripts/Visualise.py +++ b/tutorials/scripts/Visualise.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import io import uuid diff --git a/tutorials/scripts/Visualise_quip.py b/tutorials/scripts/Visualise_quip.py index 308e76fb..4ae05262 100644 --- a/tutorials/scripts/Visualise_quip.py +++ b/tutorials/scripts/Visualise_quip.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import io import uuid diff --git a/tutorials/test_db.py b/tutorials/test_db.py index 8a8f34f8..955d885b 100644 --- a/tutorials/test_db.py +++ b/tutorials/test_db.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + from pathlib import Path from ase.io import iread, read diff --git a/tutorials/test_upload.py b/tutorials/test_upload.py index c5fe8e91..98bb1554 100644 --- a/tutorials/test_upload.py +++ b/tutorials/test_upload.py @@ -1,3 +1,7 @@ +# Copyright (c) 2025. +# Authors: Ádám Fekete, Elliott Kasoar +# This program is distributed under the MIT License, see LICENSE.md. + import numpy as np from collections import Counter