diff --git a/agent/.gitignore b/agent/.gitignore index acc42b1..6c2a650 100644 --- a/agent/.gitignore +++ b/agent/.gitignore @@ -1,3 +1,8 @@ +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/agent/README.md b/agent/README.md index fd6b66b..14544a5 100644 --- a/agent/README.md +++ b/agent/README.md @@ -1 +1,8 @@ + + the agent module of octopus diff --git a/agent/setup.py b/agent/setup.py index a307cb1..b8c201c 100644 --- a/agent/setup.py +++ b/agent/setup.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ from setuptools import setup, find_packages diff --git a/agent/src/og_agent/agent_builder.py b/agent/src/og_agent/agent_builder.py index a1b36bf..e2eb75a 100644 --- a/agent/src/og_agent/agent_builder.py +++ b/agent/src/og_agent/agent_builder.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import json diff --git a/agent/src/og_agent/agent_llm.py b/agent/src/og_agent/agent_llm.py index 270bd28..3111012 100644 --- a/agent/src/og_agent/agent_llm.py +++ b/agent/src/og_agent/agent_llm.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/agent/src/og_agent/agent_server.py b/agent/src/og_agent/agent_server.py index 2000df9..62e046c 100644 --- a/agent/src/og_agent/agent_server.py +++ b/agent/src/og_agent/agent_server.py @@ -1,6 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 import asyncio import logging diff --git a/agent/src/og_agent/agent_setup.py b/agent/src/og_agent/agent_setup.py index 9faab0b..1296dfe 100644 --- a/agent/src/og_agent/agent_setup.py +++ b/agent/src/og_agent/agent_setup.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import click diff --git a/agent/src/og_agent/base_agent.py b/agent/src/og_agent/base_agent.py index e2502c9..46c7b8b 100644 --- a/agent/src/og_agent/base_agent.py +++ b/agent/src/og_agent/base_agent.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import openai diff --git a/agent/src/og_agent/base_stream_client.py b/agent/src/og_agent/base_stream_client.py index ad46f2b..c8721d0 100644 --- a/agent/src/og_agent/base_stream_client.py +++ b/agent/src/og_agent/base_stream_client.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import json diff --git a/agent/src/og_agent/codellama_agent.py b/agent/src/og_agent/codellama_agent.py index 119513b..87cf27a 100644 --- a/agent/src/og_agent/codellama_agent.py +++ b/agent/src/og_agent/codellama_agent.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/agent/src/og_agent/codellama_client.py b/agent/src/og_agent/codellama_client.py index 21ffc67..ea6c112 100644 --- a/agent/src/og_agent/codellama_client.py +++ b/agent/src/og_agent/codellama_client.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/agent/src/og_agent/mock_agent.py b/agent/src/og_agent/mock_agent.py index 39bf783..659fb4c 100644 --- a/agent/src/og_agent/mock_agent.py +++ b/agent/src/og_agent/mock_agent.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import json diff --git a/agent/src/og_agent/openai_agent.py b/agent/src/og_agent/openai_agent.py index d6d4d3e..f09ad9c 100644 --- a/agent/src/og_agent/openai_agent.py +++ b/agent/src/og_agent/openai_agent.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import openai diff --git a/agent/src/og_agent/prompt.py b/agent/src/og_agent/prompt.py index a7e1148..cdb50ee 100644 --- a/agent/src/og_agent/prompt.py +++ b/agent/src/og_agent/prompt.py @@ -1,19 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. - +# SPDX-License-Identifier: Elastic-2.0 OCTOGEN_FUNCTION_SYSTEM = """Firstly,You are the Programming Copilot called **Octogen**, a large language model designed to complete any goal by **executing code** diff --git a/agent/src/og_agent/tokenizer.py b/agent/src/og_agent/tokenizer.py index ee46ac9..7e8029c 100644 --- a/agent/src/og_agent/tokenizer.py +++ b/agent/src/og_agent/tokenizer.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ Taken from the NAYA project diff --git a/chat/README.md b/chat/README.md index f2ce746..898759f 100644 --- a/chat/README.md +++ b/chat/README.md @@ -1 +1,8 @@ + + the terminal cli module of octopus diff --git a/chat/setup.py b/chat/setup.py index 0bc5b1f..e367d00 100644 --- a/chat/setup.py +++ b/chat/setup.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ from setuptools import setup, find_packages diff --git a/chat/src/og_discord/discord_chat.py b/chat/src/og_discord/discord_chat.py index 81c5ca7..b1fe9be 100644 --- a/chat/src/og_discord/discord_chat.py +++ b/chat/src/og_discord/discord_chat.py @@ -1,18 +1,7 @@ -# vim:fenc=utf-8 +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Copyright (C) 2023 dbpunk.com Author imotai -# -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/chat/src/og_terminal/markdown.py b/chat/src/og_terminal/markdown.py index 10c978f..badef5e 100644 --- a/chat/src/og_terminal/markdown.py +++ b/chat/src/og_terminal/markdown.py @@ -1,19 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. - +# SPDX-License-Identifier: Elastic-2.0 from rich.markdown import TextElement, Markdown from rich.syntax import Syntax diff --git a/chat/src/og_terminal/ping.py b/chat/src/og_terminal/ping.py index 8651ba2..d822a82 100644 --- a/chat/src/og_terminal/ping.py +++ b/chat/src/og_terminal/ping.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import sys diff --git a/chat/src/og_terminal/terminal_chat.py b/chat/src/og_terminal/terminal_chat.py index 0f84862..314c43d 100644 --- a/chat/src/og_terminal/terminal_chat.py +++ b/chat/src/og_terminal/terminal_chat.py @@ -1,4 +1,10 @@ #! /usr/bin/env python3 + +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 + # vim:fenc=utf-8 # diff --git a/chat/src/og_terminal/utils.py b/chat/src/og_terminal/utils.py index e1494b4..8217b95 100644 --- a/chat/src/og_terminal/utils.py +++ b/chat/src/og_terminal/utils.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/chat/tests/test_chat_function.py b/chat/tests/test_chat_function.py index 531f3b4..a140310 100644 --- a/chat/tests/test_chat_function.py +++ b/chat/tests/test_chat_function.py @@ -1,9 +1,10 @@ #! /usr/bin/env python3 -# vim:fenc=utf-8 -# + # Copyright © 2023 imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Distributed under terms of the MIT license. +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/chat/tests/test_parse_files.py b/chat/tests/test_parse_files.py index facb1ff..4d99d5d 100644 --- a/chat/tests/test_parse_files.py +++ b/chat/tests/test_parse_files.py @@ -1,9 +1,10 @@ #! /usr/bin/env python3 -# vim:fenc=utf-8 -# + # Copyright © 2023 imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Distributed under terms of the MIT license. +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/kernel/.gitignore b/kernel/.gitignore index dc41586..9f20fb8 100644 --- a/kernel/.gitignore +++ b/kernel/.gitignore @@ -1,3 +1,8 @@ +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/kernel/README.md b/kernel/README.md index a24f44a..80ba717 100644 --- a/kernel/README.md +++ b/kernel/README.md @@ -1,2 +1,9 @@ + + The Kernel Server for Python Execution diff --git a/kernel/cases/pie.py b/kernel/cases/pie.py index 0fafffd..ee293b6 100644 --- a/kernel/cases/pie.py +++ b/kernel/cases/pie.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import matplotlib.pyplot as plt diff --git a/kernel/setup.py b/kernel/setup.py index 6c7f5f3..8531757 100644 --- a/kernel/setup.py +++ b/kernel/setup.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ from setuptools import setup, find_packages diff --git a/kernel/src/og_kernel/kernel/config.py b/kernel/src/og_kernel/kernel/config.py index cf3255f..44b1140 100644 --- a/kernel/src/og_kernel/kernel/config.py +++ b/kernel/src/og_kernel/kernel/config.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 from dotenv import dotenv_values diff --git a/kernel/src/og_kernel/kernel/kernel_app.py b/kernel/src/og_kernel/kernel/kernel_app.py index 5a1a949..8e6c1a6 100644 --- a/kernel/src/og_kernel/kernel/kernel_app.py +++ b/kernel/src/og_kernel/kernel/kernel_app.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ """An application to launch a kernel by name in a local subprocess.""" diff --git a/kernel/src/og_kernel/kernel/kernel_client.py b/kernel/src/og_kernel/kernel/kernel_client.py index bc56a5e..577f6e3 100644 --- a/kernel/src/og_kernel/kernel/kernel_client.py +++ b/kernel/src/og_kernel/kernel/kernel_client.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 import os import logging diff --git a/kernel/src/og_kernel/kernel/kernel_mgr.py b/kernel/src/og_kernel/kernel/kernel_mgr.py index 5159d16..917d625 100644 --- a/kernel/src/og_kernel/kernel/kernel_mgr.py +++ b/kernel/src/og_kernel/kernel/kernel_mgr.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 import os import logging diff --git a/kernel/src/og_kernel/kernel/launch_kernel.py b/kernel/src/og_kernel/kernel/launch_kernel.py index c88ae63..dec1247 100644 --- a/kernel/src/og_kernel/kernel/launch_kernel.py +++ b/kernel/src/og_kernel/kernel/launch_kernel.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ from og_kernel.kernel.kernel_app import run_app diff --git a/kernel/src/og_kernel/server/kernel_rpc_server.py b/kernel/src/og_kernel/server/kernel_rpc_server.py index e3aa5c0..3204df5 100644 --- a/kernel/src/og_kernel/server/kernel_rpc_server.py +++ b/kernel/src/og_kernel/server/kernel_rpc_server.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ the websocket server for the kernel diff --git a/kernel/tests/kernel_client_tests.py b/kernel/tests/kernel_client_tests.py index 790d166..aac122a 100644 --- a/kernel/tests/kernel_client_tests.py +++ b/kernel/tests/kernel_client_tests.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import json diff --git a/kernel/tests/kernel_mgr_tests.py b/kernel/tests/kernel_mgr_tests.py index e76caf0..16b15e1 100644 --- a/kernel/tests/kernel_mgr_tests.py +++ b/kernel/tests/kernel_mgr_tests.py @@ -1,18 +1,9 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 + import pytest from og_kernel.kernel.kernel_mgr import KernelManager diff --git a/kernel/update_requirement.sh b/kernel/update_requirement.sh index 8186c24..5bfaa3f 100644 --- a/kernel/update_requirement.sh +++ b/kernel/update_requirement.sh @@ -1,9 +1,9 @@ #! /bin/sh -# -# update_requirement.sh + # Copyright (C) 2023 jackwang +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Distributed under terms of the MIT license. -# +# SPDX-License-Identifier: Elastic-2.0 pipreqs . --savepath ./requirements.txt diff --git a/proto/.gitignore b/proto/.gitignore index 24ac3d4..862e192 100644 --- a/proto/.gitignore +++ b/proto/.gitignore @@ -1,3 +1,8 @@ +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/proto/Makefile b/proto/Makefile index 5d450e9..ef51cfe 100644 --- a/proto/Makefile +++ b/proto/Makefile @@ -1,3 +1,8 @@ +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 + # # Makefile # jackwang, 2023-08-25 12:24 diff --git a/proto/README.md b/proto/README.md index ca7f4c1..75ed997 100644 --- a/proto/README.md +++ b/proto/README.md @@ -1,3 +1,9 @@ + the protobuf module of octogen diff --git a/proto/requirements.txt b/proto/requirements.txt index 17a2460..3ed4b11 100644 --- a/proto/requirements.txt +++ b/proto/requirements.txt @@ -1,2 +1,7 @@ +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 + grpcio-tools==1.59.0 grpc-google-iam-v1==0.12.6 diff --git a/proto/setup.py b/proto/setup.py index 25f08e3..1432c40 100644 --- a/proto/setup.py +++ b/proto/setup.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ from setuptools import setup, find_packages diff --git a/proto/src/og_proto/agent_server.proto b/proto/src/og_proto/agent_server.proto index 04a1b88..c954aaf 100644 --- a/proto/src/og_proto/agent_server.proto +++ b/proto/src/og_proto/agent_server.proto @@ -1,19 +1,8 @@ -// -// agent_server.proto // Copyright (C) 2023 db3.network Author imotai +// SPDX-FileCopyrightText: 2023 imotai +// SPDX-FileContributor: imotai // -// 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. -// +// SPDX-License-Identifier: Elastic-2.0 syntax = "proto3"; package octopus_agent_proto; diff --git a/proto/src/og_proto/common.proto b/proto/src/og_proto/common.proto index 229ca90..6c50a17 100644 --- a/proto/src/og_proto/common.proto +++ b/proto/src/og_proto/common.proto @@ -1,19 +1,8 @@ -// -// common.proto // Copyright (C) 2023 db3.network Author imotai +// SPDX-FileCopyrightText: 2023 imotai +// SPDX-FileContributor: imotai // -// 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. -// +// SPDX-License-Identifier: Elastic-2.0 syntax = "proto3"; diff --git a/proto/src/og_proto/kernel_server.proto b/proto/src/og_proto/kernel_server.proto index f48f594..5d722b5 100644 --- a/proto/src/og_proto/kernel_server.proto +++ b/proto/src/og_proto/kernel_server.proto @@ -1,19 +1,9 @@ -// -// kernel_server.proto // Copyright (C) 2023 db3.network Author imotai +// SPDX-FileCopyrightText: 2023 imotai +// SPDX-FileContributor: imotai // -// 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. -// +// SPDX-License-Identifier: Elastic-2.0 + syntax = "proto3"; package octopus_kernel_proto; diff --git a/sdk/README.md b/sdk/README.md index 37f19d5..b347172 100644 --- a/sdk/README.md +++ b/sdk/README.md @@ -1 +1,8 @@ + + the sdk module of octopus diff --git a/sdk/setup.py b/sdk/setup.py index f12c9f4..cbffa24 100644 --- a/sdk/setup.py +++ b/sdk/setup.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ from setuptools import setup, find_packages diff --git a/sdk/src/og_sdk/agent_sdk.py b/sdk/src/og_sdk/agent_sdk.py index bd18b26..ec8a183 100644 --- a/sdk/src/og_sdk/agent_sdk.py +++ b/sdk/src/og_sdk/agent_sdk.py @@ -1,7 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai - +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 """ """ import logging diff --git a/sdk/src/og_sdk/kernel_sdk.py b/sdk/src/og_sdk/kernel_sdk.py index a47e34e..dfdb410 100644 --- a/sdk/src/og_sdk/kernel_sdk.py +++ b/sdk/src/og_sdk/kernel_sdk.py @@ -1,6 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/sdk/src/og_sdk/utils.py b/sdk/src/og_sdk/utils.py index 029d583..c474718 100644 --- a/sdk/src/og_sdk/utils.py +++ b/sdk/src/og_sdk/utils.py @@ -1,6 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai +# +# SPDX-License-Identifier: Elastic-2.0 import re import string diff --git a/sdk/tests/agent_sdk_tests.py b/sdk/tests/agent_sdk_tests.py index 78e4a78..d1ce965 100644 --- a/sdk/tests/agent_sdk_tests.py +++ b/sdk/tests/agent_sdk_tests.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ diff --git a/sdk/tests/kernel_sdk_tests.py b/sdk/tests/kernel_sdk_tests.py index d8f54d0..631bb20 100644 --- a/sdk/tests/kernel_sdk_tests.py +++ b/sdk/tests/kernel_sdk_tests.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import os diff --git a/sdk/tests/utils_test.py b/sdk/tests/utils_test.py index f4ed5e8..2b35fed 100644 --- a/sdk/tests/utils_test.py +++ b/sdk/tests/utils_test.py @@ -1,9 +1,10 @@ #! /usr/bin/env python3 -# vim:fenc=utf-8 -# + # Copyright © 2023 imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Distributed under terms of the MIT license. +# SPDX-License-Identifier: Elastic-2.0 """ """ import pytest diff --git a/up/README.md b/up/README.md index 6c14cb9..f98ce57 100644 --- a/up/README.md +++ b/up/README.md @@ -1,2 +1,9 @@ + + octopus setup tool diff --git a/up/setup.py b/up/setup.py index a6879b1..eaa4831 100644 --- a/up/setup.py +++ b/up/setup.py @@ -1,18 +1,7 @@ -# vim:fenc=utf-8 +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Copyright (C) 2023 dbpunk.com Author imotai -# -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ from setuptools import setup, find_packages diff --git a/up/src/og_up/kernel_up.py b/up/src/og_up/kernel_up.py index a0506ba..cfcbeb8 100644 --- a/up/src/og_up/kernel_up.py +++ b/up/src/og_up/kernel_up.py @@ -1,9 +1,9 @@ #! /usr/bin/env python3 -# vim:fenc=utf-8 -# -# Copyright © 2023 imotai + +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Distributed under terms of the MIT license. +# SPDX-License-Identifier: Elastic-2.0 """ """ import click diff --git a/up/src/og_up/model_downloader.py b/up/src/og_up/model_downloader.py index 3bdcc8f..fc825f7 100644 --- a/up/src/og_up/model_downloader.py +++ b/up/src/og_up/model_downloader.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import os diff --git a/up/src/og_up/up.py b/up/src/og_up/up.py index 2a1751b..b7df2cb 100644 --- a/up/src/og_up/up.py +++ b/up/src/og_up/up.py @@ -1,18 +1,8 @@ -# vim:fenc=utf-8 -# # Copyright (C) 2023 dbpunk.com Author imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# 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. +# SPDX-License-Identifier: Elastic-2.0 """ """ import json diff --git a/up/src/og_up/utils.py b/up/src/og_up/utils.py index 614a252..03d739e 100644 --- a/up/src/og_up/utils.py +++ b/up/src/og_up/utils.py @@ -1,9 +1,9 @@ #! /usr/bin/env python3 -# vim:fenc=utf-8 -# -# Copyright © 2023 imotai + +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Distributed under terms of the MIT license. +# SPDX-License-Identifier: Elastic-2.0 """ """ import subprocess diff --git a/up/tests/up_tests.py b/up/tests/up_tests.py index de38d20..e1bec59 100644 --- a/up/tests/up_tests.py +++ b/up/tests/up_tests.py @@ -1,9 +1,10 @@ #! /usr/bin/env python3 -# vim:fenc=utf-8 -# + # Copyright © 2023 imotai +# SPDX-FileCopyrightText: 2023 imotai +# SPDX-FileContributor: imotai # -# Distributed under terms of the MIT license. +# SPDX-License-Identifier: Elastic-2.0 """ """