diff --git a/floogen/config_parser.py b/floogen/config_parser.py index 51d4f062..7114330c 100644 --- a/floogen/config_parser.py +++ b/floogen/config_parser.py @@ -1,18 +1,10 @@ -# Tim Fischer +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2023 ETH Zürich -# -# 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 -# -# 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. +# Author: Tim Fischer + from pathlib import Path import logging from typing import List, Union, Tuple, Mapping, TypeVar diff --git a/floogen/examples/occamy_mesh.yml b/floogen/examples/occamy_mesh.yml index 5353aca7..bcc4af15 100644 --- a/floogen/examples/occamy_mesh.yml +++ b/floogen/examples/occamy_mesh.yml @@ -1,3 +1,7 @@ +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 + name: occamy_mesh description: "Occamy mesh configuration for FlooGen" diff --git a/floogen/examples/occamy_tree.yml b/floogen/examples/occamy_tree.yml index 79441a18..a428dc64 100644 --- a/floogen/examples/occamy_tree.yml +++ b/floogen/examples/occamy_tree.yml @@ -1,3 +1,7 @@ +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 + name: occamy_tree description: "Occamy configuration for FlooGen" diff --git a/floogen/examples/single_cluster.yml b/floogen/examples/single_cluster.yml index 28f16a5a..a1937531 100644 --- a/floogen/examples/single_cluster.yml +++ b/floogen/examples/single_cluster.yml @@ -1,3 +1,7 @@ +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 + name: single_cluster description: "Single Cluster Configuration for FlooGen" diff --git a/floogen/floo_gen.py b/floogen/floo_gen.py index 454f716a..6fb8ec41 100755 --- a/floogen/floo_gen.py +++ b/floogen/floo_gen.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer import argparse import pathlib diff --git a/floogen/model/connection.py b/floogen/model/connection.py index f2d8df63..59ab7e18 100644 --- a/floogen/model/connection.py +++ b/floogen/model/connection.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer from typing import Optional, List, Tuple, Dict from pydantic import BaseModel, field_validator, model_validator diff --git a/floogen/model/endpoint.py b/floogen/model/endpoint.py index 7ccc77af..e0436529 100644 --- a/floogen/model/endpoint.py +++ b/floogen/model/endpoint.py @@ -1,17 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. - +# Author: Tim Fischer from typing import Optional, List, Union, Tuple from pydantic import BaseModel, field_validator, model_validator diff --git a/floogen/model/graph.py b/floogen/model/graph.py index ff8b88bd..30fc583f 100644 --- a/floogen/model/graph.py +++ b/floogen/model/graph.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer from typing import List, Tuple diff --git a/floogen/model/link.py b/floogen/model/link.py index 3be7fa65..2b168d2b 100644 --- a/floogen/model/link.py +++ b/floogen/model/link.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer from typing import ClassVar, List, Union, Dict, Optional, NamedTuple from abc import ABC, abstractmethod diff --git a/floogen/model/network.py b/floogen/model/network.py index 137a0193..b749107d 100644 --- a/floogen/model/network.py +++ b/floogen/model/network.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer from typing import Optional, List, ClassVar from importlib import resources diff --git a/floogen/model/network_interface.py b/floogen/model/network_interface.py index d87bfb04..d4a1fd2c 100644 --- a/floogen/model/network_interface.py +++ b/floogen/model/network_interface.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer from typing import Optional, ClassVar from importlib import resources diff --git a/floogen/model/protocol.py b/floogen/model/protocol.py index 18a62a86..b3d4b434 100644 --- a/floogen/model/protocol.py +++ b/floogen/model/protocol.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer from typing import Optional, List, TypeVar, Union from typing_extensions import Annotated diff --git a/floogen/model/router.py b/floogen/model/router.py index 366d99b1..a6d94a40 100644 --- a/floogen/model/router.py +++ b/floogen/model/router.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer from typing import Optional, List, ClassVar, Tuple, Union diff --git a/floogen/model/routing.py b/floogen/model/routing.py index 47abdfdd..fccf6696 100644 --- a/floogen/model/routing.py +++ b/floogen/model/routing.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer from enum import Enum from typing import Optional, List diff --git a/floogen/model/utils.py b/floogen/model/utils.py index c05fdc28..cb1b3848 100644 --- a/floogen/model/utils.py +++ b/floogen/model/utils.py @@ -1,16 +1,9 @@ -# Copyright 2023 ETH Zurich and University of Bologna +#!/usr/bin/env python3 +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 # -# 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 -# -# 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. +# Author: Tim Fischer import math diff --git a/pyproject.toml b/pyproject.toml index 3c26b093..cd6a921c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +# Copyright 2023 ETH Zurich and University of Bologna. +# Licensed under the Apache License, Version 2.0, see LICENSE for details. +# SPDX-License-Identifier: Apache-2.0 + [project] name = "floogen" version = "0.0.1"