From 7d26e9a13e0dd3dc4f34442f2661ae4a1defd85f Mon Sep 17 00:00:00 2001 From: skzhang1 Date: Mon, 10 Nov 2025 14:05:38 -0800 Subject: [PATCH 1/2] add license headers Signed-off-by: skzhang1 --- evaluation/benchmarks/swe_bench/run_infer.py | 16 ++++++++++++++++ openhands/agenthub/gui_agent/__init__.py | 16 ++++++++++++++++ openhands/agenthub/gui_agent/gui_agent.py | 16 ++++++++++++++++ openhands/nvidia/__init__.py | 16 ++++++++++++++++ openhands/nvidia/async_server.py | 16 ++++++++++++++++ openhands/nvidia/async_server_process.py | 16 ++++++++++++++++ openhands/nvidia/controller.py | 16 ++++++++++++++++ openhands/nvidia/gui_agent/__init__.py | 16 ++++++++++++++++ openhands/nvidia/gui_agent/gui_handler.py | 16 ++++++++++++++++ openhands/nvidia/gui_agent/gui_utils.py | 16 ++++++++++++++++ openhands/nvidia/llm_judge.py | 16 ++++++++++++++++ openhands/nvidia/logger.py | 16 ++++++++++++++++ openhands/nvidia/math_coder/code_utils.py | 16 ++++++++++++++++ openhands/nvidia/math_coder/math_code_handler.py | 16 ++++++++++++++++ openhands/nvidia/math_coder/math_utils.py | 16 ++++++++++++++++ openhands/nvidia/math_coder/prorl_handler.py | 16 ++++++++++++++++ openhands/nvidia/registry.py | 16 ++++++++++++++++ openhands/nvidia/reward.py | 16 ++++++++++++++++ openhands/nvidia/stem_agent/stem_handler.py | 16 ++++++++++++++++ openhands/nvidia/stem_agent/stem_utils.py | 16 ++++++++++++++++ openhands/nvidia/swe_agent/r2egym_parser.py | 16 ++++++++++++++++ openhands/nvidia/swe_agent/swe_agent_handler.py | 16 ++++++++++++++++ openhands/nvidia/swe_agent/utils.py | 16 ++++++++++++++++ openhands/nvidia/timer.py | 16 ++++++++++++++++ openhands/nvidia/utils.py | 16 ++++++++++++++++ scripts/prepare_data.py | 16 ++++++++++++++++ scripts/profile/profile_batch.py | 16 ++++++++++++++++ scripts/profile/profile_latency.py | 16 ++++++++++++++++ scripts/pull_swe_images.py | 16 ++++++++++++++++ scripts/run_math.py | 16 ++++++++++++++++ scripts/run_swe.py | 16 ++++++++++++++++ scripts/sft_data/run_gui_stable.py | 16 ++++++++++++++++ scripts/sft_data/run_gui_vllm_server.py | 16 ++++++++++++++++ scripts/sft_data/run_math_stable.py | 16 ++++++++++++++++ scripts/start_server.py | 16 ++++++++++++++++ scripts/start_server_thread.py | 16 ++++++++++++++++ scripts/tests/test_async_server.py | 16 ++++++++++++++++ scripts/tests/test_async_server_timeout.py | 16 ++++++++++++++++ scripts/tests/test_async_server_tokens.py | 16 ++++++++++++++++ scripts/tests/test_code_utils.py | 16 ++++++++++++++++ scripts/tests/test_llm_judge.py | 16 ++++++++++++++++ scripts/tests/test_math_utils.py | 16 ++++++++++++++++ scripts/tests/test_r2egym.py | 16 ++++++++++++++++ scripts/tests/test_server.py | 16 ++++++++++++++++ scripts/tests/test_server_token.py | 16 ++++++++++++++++ scripts/tests/test_stem_utils.py | 16 ++++++++++++++++ scripts/tests/test_swe_agent_utils.py | 16 ++++++++++++++++ scripts/tests/test_swe_images.py | 16 ++++++++++++++++ scripts/tests/test_swesmith.py | 16 ++++++++++++++++ tests/nvidia/conftest.py | 16 ++++++++++++++++ tests/nvidia/run_tests.py | 16 ++++++++++++++++ tests/nvidia/run_tests_silent.py | 16 ++++++++++++++++ tests/nvidia/test_async_server.py | 16 ++++++++++++++++ tests/nvidia/test_browser_tool.py | 16 ++++++++++++++++ tests/nvidia/test_swe_agent_handler.py | 16 ++++++++++++++++ tests/nvidia/test_swebench_utils.py | 16 ++++++++++++++++ tests/nvidia/test_swebench_utils_integration.py | 16 ++++++++++++++++ tests/nvidia/test_timer.py | 16 ++++++++++++++++ 58 files changed, 928 insertions(+) diff --git a/evaluation/benchmarks/swe_bench/run_infer.py b/evaluation/benchmarks/swe_bench/run_infer.py index 9373bd1be..dc89a18b8 100644 --- a/evaluation/benchmarks/swe_bench/run_infer.py +++ b/evaluation/benchmarks/swe_bench/run_infer.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # type: ignore import asyncio import copy diff --git a/openhands/agenthub/gui_agent/__init__.py b/openhands/agenthub/gui_agent/__init__.py index 540e3e28a..f2f8a5c8a 100644 --- a/openhands/agenthub/gui_agent/__init__.py +++ b/openhands/agenthub/gui_agent/__init__.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from openhands.agenthub.gui_agent.gui_agent import ( GuiAgent, ) diff --git a/openhands/agenthub/gui_agent/gui_agent.py b/openhands/agenthub/gui_agent/gui_agent.py index 7d1521311..7074e0ed8 100644 --- a/openhands/agenthub/gui_agent/gui_agent.py +++ b/openhands/agenthub/gui_agent/gui_agent.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from browsergym.core.action.highlevel import HighLevelActionSet from browsergym.utils.obs import flatten_axtree_to_str diff --git a/openhands/nvidia/__init__.py b/openhands/nvidia/__init__.py index be79b767b..fd82aebfd 100644 --- a/openhands/nvidia/__init__.py +++ b/openhands/nvidia/__init__.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from openhands.nvidia.gui_agent.gui_handler import GuiAgentHandler from openhands.nvidia.math_coder.math_code_handler import CodeHandler, MathHandler from openhands.nvidia.math_coder.prorl_handler import ProRLHandler diff --git a/openhands/nvidia/async_server.py b/openhands/nvidia/async_server.py index 8af4be22a..a3302590a 100644 --- a/openhands/nvidia/async_server.py +++ b/openhands/nvidia/async_server.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import hashlib import heapq diff --git a/openhands/nvidia/async_server_process.py b/openhands/nvidia/async_server_process.py index ded74da58..423d101c4 100644 --- a/openhands/nvidia/async_server_process.py +++ b/openhands/nvidia/async_server_process.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # type: ignore import asyncio import hashlib diff --git a/openhands/nvidia/controller.py b/openhands/nvidia/controller.py index 845c4ab46..f9d4bcaa1 100644 --- a/openhands/nvidia/controller.py +++ b/openhands/nvidia/controller.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ This file is a adapted version of openhands/core/main.py. The run_controller function is seperated to two functions such that the controller can be exposed. diff --git a/openhands/nvidia/gui_agent/__init__.py b/openhands/nvidia/gui_agent/__init__.py index 507571a31..d4d54703b 100644 --- a/openhands/nvidia/gui_agent/__init__.py +++ b/openhands/nvidia/gui_agent/__init__.py @@ -1 +1,17 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from openhands.nvidia.gui_agent.gui_handler import GuiAgentHandler # noqa: F401 diff --git a/openhands/nvidia/gui_agent/gui_handler.py b/openhands/nvidia/gui_agent/gui_handler.py index ca36a3074..da25ba089 100644 --- a/openhands/nvidia/gui_agent/gui_handler.py +++ b/openhands/nvidia/gui_agent/gui_handler.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from typing import Any from evaluation.utils.shared import EvalMetadata # type: ignore diff --git a/openhands/nvidia/gui_agent/gui_utils.py b/openhands/nvidia/gui_agent/gui_utils.py index ae4f008e5..26f115f59 100644 --- a/openhands/nvidia/gui_agent/gui_utils.py +++ b/openhands/nvidia/gui_agent/gui_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from __future__ import annotations import base64 diff --git a/openhands/nvidia/llm_judge.py b/openhands/nvidia/llm_judge.py index 709671094..9d968bd66 100644 --- a/openhands/nvidia/llm_judge.py +++ b/openhands/nvidia/llm_judge.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import logging import os diff --git a/openhands/nvidia/logger.py b/openhands/nvidia/logger.py index c6528e57f..cdf1e64f4 100644 --- a/openhands/nvidia/logger.py +++ b/openhands/nvidia/logger.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import logging import os import re diff --git a/openhands/nvidia/math_coder/code_utils.py b/openhands/nvidia/math_coder/code_utils.py index a15630f90..4128101d3 100644 --- a/openhands/nvidia/math_coder/code_utils.py +++ b/openhands/nvidia/math_coder/code_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # type: ignore import time import os diff --git a/openhands/nvidia/math_coder/math_code_handler.py b/openhands/nvidia/math_coder/math_code_handler.py index 6646d74fd..dcd3264d1 100644 --- a/openhands/nvidia/math_coder/math_code_handler.py +++ b/openhands/nvidia/math_coder/math_code_handler.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from typing import Any, Optional from evaluation.utils.shared import EvalMetadata # type: ignore from openhands.core.config import OpenHandsConfig diff --git a/openhands/nvidia/math_coder/math_utils.py b/openhands/nvidia/math_coder/math_utils.py index 4e2b3b27b..5b29ec386 100644 --- a/openhands/nvidia/math_coder/math_utils.py +++ b/openhands/nvidia/math_coder/math_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # type: ignore import time import os diff --git a/openhands/nvidia/math_coder/prorl_handler.py b/openhands/nvidia/math_coder/prorl_handler.py index 0a002bba2..df734e779 100644 --- a/openhands/nvidia/math_coder/prorl_handler.py +++ b/openhands/nvidia/math_coder/prorl_handler.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from typing import Any, Optional import json import httpx diff --git a/openhands/nvidia/registry.py b/openhands/nvidia/registry.py index e975b6462..e2e9eae9c 100644 --- a/openhands/nvidia/registry.py +++ b/openhands/nvidia/registry.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import threading from abc import ABC, abstractmethod diff --git a/openhands/nvidia/reward.py b/openhands/nvidia/reward.py index 4c8969a47..a8594271a 100644 --- a/openhands/nvidia/reward.py +++ b/openhands/nvidia/reward.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import heapq import json diff --git a/openhands/nvidia/stem_agent/stem_handler.py b/openhands/nvidia/stem_agent/stem_handler.py index 74eb6c3a6..dbdc69e2d 100644 --- a/openhands/nvidia/stem_agent/stem_handler.py +++ b/openhands/nvidia/stem_agent/stem_handler.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from typing import Any, Optional from evaluation.utils.shared import EvalMetadata # type: ignore from openhands.core.config import OpenHandsConfig diff --git a/openhands/nvidia/stem_agent/stem_utils.py b/openhands/nvidia/stem_agent/stem_utils.py index 8535dfeac..3c7f1f4b7 100644 --- a/openhands/nvidia/stem_agent/stem_utils.py +++ b/openhands/nvidia/stem_agent/stem_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # type: ignore import time import pandas as pd diff --git a/openhands/nvidia/swe_agent/r2egym_parser.py b/openhands/nvidia/swe_agent/r2egym_parser.py index cffd2f673..e966420e5 100644 --- a/openhands/nvidia/swe_agent/r2egym_parser.py +++ b/openhands/nvidia/swe_agent/r2egym_parser.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from datetime import datetime from enum import Enum from pathlib import Path diff --git a/openhands/nvidia/swe_agent/swe_agent_handler.py b/openhands/nvidia/swe_agent/swe_agent_handler.py index 1c1c4847f..3ccafe725 100644 --- a/openhands/nvidia/swe_agent/swe_agent_handler.py +++ b/openhands/nvidia/swe_agent/swe_agent_handler.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import traceback from typing import Any, Optional diff --git a/openhands/nvidia/swe_agent/utils.py b/openhands/nvidia/swe_agent/utils.py index ad81ede84..13e29092f 100644 --- a/openhands/nvidia/swe_agent/utils.py +++ b/openhands/nvidia/swe_agent/utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # type: ignore import time import pandas as pd diff --git a/openhands/nvidia/timer.py b/openhands/nvidia/timer.py index a8c2ced4e..735bc3163 100644 --- a/openhands/nvidia/timer.py +++ b/openhands/nvidia/timer.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Timer implementation for OpenHands job processing. diff --git a/openhands/nvidia/utils.py b/openhands/nvidia/utils.py index eb996efa6..c32a30a5e 100644 --- a/openhands/nvidia/utils.py +++ b/openhands/nvidia/utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import copy import json diff --git a/scripts/prepare_data.py b/scripts/prepare_data.py index c0cb5dd5a..03c87413e 100644 --- a/scripts/prepare_data.py +++ b/scripts/prepare_data.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import numpy as np import pandas as pd import argparse diff --git a/scripts/profile/profile_batch.py b/scripts/profile/profile_batch.py index 6799096c6..732f901c5 100644 --- a/scripts/profile/profile_batch.py +++ b/scripts/profile/profile_batch.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import json import logging diff --git a/scripts/profile/profile_latency.py b/scripts/profile/profile_latency.py index 3a098cdf4..3be25ed2e 100644 --- a/scripts/profile/profile_latency.py +++ b/scripts/profile/profile_latency.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Migrated test script originally from openhands.nvidia.async_server """ diff --git a/scripts/pull_swe_images.py b/scripts/pull_swe_images.py index feac7a37e..fba944eeb 100644 --- a/scripts/pull_swe_images.py +++ b/scripts/pull_swe_images.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + from __future__ import annotations import argparse import json diff --git a/scripts/run_math.py b/scripts/run_math.py index c3097c821..54fcf34ad 100644 --- a/scripts/run_math.py +++ b/scripts/run_math.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import argparse import asyncio import json diff --git a/scripts/run_swe.py b/scripts/run_swe.py index d9ee5ae62..a94080e1f 100644 --- a/scripts/run_swe.py +++ b/scripts/run_swe.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import argparse import asyncio import json diff --git a/scripts/sft_data/run_gui_stable.py b/scripts/sft_data/run_gui_stable.py index 1d2c5fa55..55f74e582 100644 --- a/scripts/sft_data/run_gui_stable.py +++ b/scripts/sft_data/run_gui_stable.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # flake8: noqa: E402 import argparse import json diff --git a/scripts/sft_data/run_gui_vllm_server.py b/scripts/sft_data/run_gui_vllm_server.py index 55710bf7a..b844e9ef2 100644 --- a/scripts/sft_data/run_gui_vllm_server.py +++ b/scripts/sft_data/run_gui_vllm_server.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # flake8: noqa: E402 import argparse import json diff --git a/scripts/sft_data/run_math_stable.py b/scripts/sft_data/run_math_stable.py index e276a1ece..badf62331 100644 --- a/scripts/sft_data/run_math_stable.py +++ b/scripts/sft_data/run_math_stable.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # flake8: noqa: E402 import argparse import json diff --git a/scripts/start_server.py b/scripts/start_server.py index 453a9719b..310c8f0f6 100644 --- a/scripts/start_server.py +++ b/scripts/start_server.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import argparse import asyncio import os diff --git a/scripts/start_server_thread.py b/scripts/start_server_thread.py index c34d574ff..189b26d1d 100644 --- a/scripts/start_server_thread.py +++ b/scripts/start_server_thread.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import argparse import asyncio import os diff --git a/scripts/tests/test_async_server.py b/scripts/tests/test_async_server.py index 4d91b998e..d181e8f29 100644 --- a/scripts/tests/test_async_server.py +++ b/scripts/tests/test_async_server.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Migrated test script originally from openhands.nvidia.async_server """ diff --git a/scripts/tests/test_async_server_timeout.py b/scripts/tests/test_async_server_timeout.py index 6a3003188..8936f134a 100644 --- a/scripts/tests/test_async_server_timeout.py +++ b/scripts/tests/test_async_server_timeout.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Migrated test script originally from openhands.nvidia.async_server """ diff --git a/scripts/tests/test_async_server_tokens.py b/scripts/tests/test_async_server_tokens.py index d36634a04..aa3fc1f50 100644 --- a/scripts/tests/test_async_server_tokens.py +++ b/scripts/tests/test_async_server_tokens.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Migrated test script originally from openhands.nvidia.async_server """ diff --git a/scripts/tests/test_code_utils.py b/scripts/tests/test_code_utils.py index cbb11d668..7500739cb 100644 --- a/scripts/tests/test_code_utils.py +++ b/scripts/tests/test_code_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import numpy as np diff --git a/scripts/tests/test_llm_judge.py b/scripts/tests/test_llm_judge.py index adfa0cdf1..3743b1cd8 100644 --- a/scripts/tests/test_llm_judge.py +++ b/scripts/tests/test_llm_judge.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import os import random diff --git a/scripts/tests/test_math_utils.py b/scripts/tests/test_math_utils.py index ece87b013..9c201cd07 100644 --- a/scripts/tests/test_math_utils.py +++ b/scripts/tests/test_math_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import asyncio import numpy as np diff --git a/scripts/tests/test_r2egym.py b/scripts/tests/test_r2egym.py index 4119bd876..44c25feeb 100644 --- a/scripts/tests/test_r2egym.py +++ b/scripts/tests/test_r2egym.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Migrated test script originally from openhands.nvidia.async_server """ diff --git a/scripts/tests/test_server.py b/scripts/tests/test_server.py index 30c0dae36..29818cb5b 100644 --- a/scripts/tests/test_server.py +++ b/scripts/tests/test_server.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ How to run the server: diff --git a/scripts/tests/test_server_token.py b/scripts/tests/test_server_token.py index 9e58522cb..7167da69d 100644 --- a/scripts/tests/test_server_token.py +++ b/scripts/tests/test_server_token.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ How to run the server: diff --git a/scripts/tests/test_stem_utils.py b/scripts/tests/test_stem_utils.py index d4d5d2c19..e3b9fc828 100644 --- a/scripts/tests/test_stem_utils.py +++ b/scripts/tests/test_stem_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import argparse import asyncio diff --git a/scripts/tests/test_swe_agent_utils.py b/scripts/tests/test_swe_agent_utils.py index 3f2f820c8..34f7f3464 100644 --- a/scripts/tests/test_swe_agent_utils.py +++ b/scripts/tests/test_swe_agent_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Migrated test script originally from openhands.nvidia.swe_agent.utils """ diff --git a/scripts/tests/test_swe_images.py b/scripts/tests/test_swe_images.py index c102597a8..8581397ca 100644 --- a/scripts/tests/test_swe_images.py +++ b/scripts/tests/test_swe_images.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import argparse import asyncio import json diff --git a/scripts/tests/test_swesmith.py b/scripts/tests/test_swesmith.py index 152ebf1a3..9484abdfa 100644 --- a/scripts/tests/test_swesmith.py +++ b/scripts/tests/test_swesmith.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Test script for SWE-Smith dataset, mirroring functionality from test_r2egym.py """ diff --git a/tests/nvidia/conftest.py b/tests/nvidia/conftest.py index 88cf84538..5d5837f8e 100644 --- a/tests/nvidia/conftest.py +++ b/tests/nvidia/conftest.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # Suppress warnings at the very beginning before any imports import os # noqa: E402 import warnings # noqa: E402 diff --git a/tests/nvidia/run_tests.py b/tests/nvidia/run_tests.py index 0ece6081e..671c2a859 100644 --- a/tests/nvidia/run_tests.py +++ b/tests/nvidia/run_tests.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + #!/usr/bin/env python3 """ Test runner script for SWE-bench utils tests. diff --git a/tests/nvidia/run_tests_silent.py b/tests/nvidia/run_tests_silent.py index e53925ea9..fb789d353 100644 --- a/tests/nvidia/run_tests_silent.py +++ b/tests/nvidia/run_tests_silent.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + #!/usr/bin/env python3 """ Silent test runner that completely suppresses all warnings before running tests. diff --git a/tests/nvidia/test_async_server.py b/tests/nvidia/test_async_server.py index 09df4a505..125ff46f2 100644 --- a/tests/nvidia/test_async_server.py +++ b/tests/nvidia/test_async_server.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import threading import unittest from unittest.mock import Mock, patch diff --git a/tests/nvidia/test_browser_tool.py b/tests/nvidia/test_browser_tool.py index 4954207aa..e80d1cc1f 100644 --- a/tests/nvidia/test_browser_tool.py +++ b/tests/nvidia/test_browser_tool.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + #!/usr/bin/env python3 import os import re diff --git a/tests/nvidia/test_swe_agent_handler.py b/tests/nvidia/test_swe_agent_handler.py index b649366cf..dc7d3584d 100644 --- a/tests/nvidia/test_swe_agent_handler.py +++ b/tests/nvidia/test_swe_agent_handler.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # Suppress warnings at the very beginning before any imports import os # noqa: E402 import warnings # noqa: E402 diff --git a/tests/nvidia/test_swebench_utils.py b/tests/nvidia/test_swebench_utils.py index bc9f50551..0c6aedb67 100644 --- a/tests/nvidia/test_swebench_utils.py +++ b/tests/nvidia/test_swebench_utils.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # Suppress warnings at the very beginning before any imports import os # noqa: E402 import warnings # noqa: E402 diff --git a/tests/nvidia/test_swebench_utils_integration.py b/tests/nvidia/test_swebench_utils_integration.py index c128e2105..a3128f0da 100644 --- a/tests/nvidia/test_swebench_utils_integration.py +++ b/tests/nvidia/test_swebench_utils_integration.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + # Suppress warnings at the very beginning before any imports import os # noqa: E402 import warnings # noqa: E402 diff --git a/tests/nvidia/test_timer.py b/tests/nvidia/test_timer.py index 8fa1dbf28..543f84037 100644 --- a/tests/nvidia/test_timer.py +++ b/tests/nvidia/test_timer.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Unit tests for OpenHands timer module. From 1114cd969aba5afe71417c27dddce2ab4057394c Mon Sep 17 00:00:00 2001 From: skzhang1 Date: Mon, 10 Nov 2025 14:15:40 -0800 Subject: [PATCH 2/2] update license Signed-off-by: skzhang1 --- evaluation/benchmarks/swe_bench/run_infer.py | 16 ---------------- tests/runtime/conftest.py | 16 ++++++++++++++++ tests/runtime/run_singularity_attach_test.sh | 16 ++++++++++++++++ tests/runtime/test_direct_jupyter.py | 17 +++++++++++++++++ tests/runtime/test_ipython.py | 16 ++++++++++++++++ tests/runtime/test_mcp_action.py | 16 ++++++++++++++++ tests/runtime/test_mcp_fetch_parallel.py | 17 +++++++++++++++++ tests/runtime/test_mcp_multiturn.py | 16 ++++++++++++++++ tests/runtime/test_mcp_parallel.py | 16 ++++++++++++++++ tests/runtime/test_singularity_attach.py | 17 +++++++++++++++++ tests/runtime/test_singularity_parallel.py | 16 ++++++++++++++++ 11 files changed, 163 insertions(+), 16 deletions(-) diff --git a/evaluation/benchmarks/swe_bench/run_infer.py b/evaluation/benchmarks/swe_bench/run_infer.py index dc89a18b8..9373bd1be 100644 --- a/evaluation/benchmarks/swe_bench/run_infer.py +++ b/evaluation/benchmarks/swe_bench/run_infer.py @@ -1,19 +1,3 @@ -# Copyright 2025 NVIDIA CORPORATION & AFFILIATES -# -# 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: Apache-2.0 - # type: ignore import asyncio import copy diff --git a/tests/runtime/conftest.py b/tests/runtime/conftest.py index cacce2dda..3d4c26c51 100644 --- a/tests/runtime/conftest.py +++ b/tests/runtime/conftest.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + import os import random import shutil diff --git a/tests/runtime/run_singularity_attach_test.sh b/tests/runtime/run_singularity_attach_test.sh index 61a3312d9..ea1ddda6d 100755 --- a/tests/runtime/run_singularity_attach_test.sh +++ b/tests/runtime/run_singularity_attach_test.sh @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + #!/bin/bash # Script to run the SingularityRuntime attach test diff --git a/tests/runtime/test_direct_jupyter.py b/tests/runtime/test_direct_jupyter.py index 3816c303f..9a60da20c 100644 --- a/tests/runtime/test_direct_jupyter.py +++ b/tests/runtime/test_direct_jupyter.py @@ -1,3 +1,20 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + + """Test the DirectJupyterPlugin functionality including matplotlib plots and magic commands.""" import base64 diff --git a/tests/runtime/test_ipython.py b/tests/runtime/test_ipython.py index 2679c2f5c..9cb8147e3 100644 --- a/tests/runtime/test_ipython.py +++ b/tests/runtime/test_ipython.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """Test the DockerRuntime, which connects to the ActionExecutor running in the sandbox.""" import os diff --git a/tests/runtime/test_mcp_action.py b/tests/runtime/test_mcp_action.py index 65e8551ef..cf52dbba5 100644 --- a/tests/runtime/test_mcp_action.py +++ b/tests/runtime/test_mcp_action.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """Bash-related tests for the DockerRuntime, which connects to the ActionExecutor running in the sandbox.""" import json diff --git a/tests/runtime/test_mcp_fetch_parallel.py b/tests/runtime/test_mcp_fetch_parallel.py index b8f7514e6..42e46565f 100644 --- a/tests/runtime/test_mcp_fetch_parallel.py +++ b/tests/runtime/test_mcp_fetch_parallel.py @@ -1,3 +1,20 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + + """ Parallel fetch MCP test for SingularityRuntime. diff --git a/tests/runtime/test_mcp_multiturn.py b/tests/runtime/test_mcp_multiturn.py index e04966125..f033f0f3e 100644 --- a/tests/runtime/test_mcp_multiturn.py +++ b/tests/runtime/test_mcp_multiturn.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Test for MCP resource leak detection. diff --git a/tests/runtime/test_mcp_parallel.py b/tests/runtime/test_mcp_parallel.py index 50f84e8dc..befa747e5 100644 --- a/tests/runtime/test_mcp_parallel.py +++ b/tests/runtime/test_mcp_parallel.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Parallel MCP test for SingularityRuntime. diff --git a/tests/runtime/test_singularity_attach.py b/tests/runtime/test_singularity_attach.py index 8775ea1da..f7c2f2b9b 100644 --- a/tests/runtime/test_singularity_attach.py +++ b/tests/runtime/test_singularity_attach.py @@ -1,3 +1,20 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + + """ Test for SingularityRuntime attach-to-existing container capability. diff --git a/tests/runtime/test_singularity_parallel.py b/tests/runtime/test_singularity_parallel.py index d729aacc2..5982955bf 100644 --- a/tests/runtime/test_singularity_parallel.py +++ b/tests/runtime/test_singularity_parallel.py @@ -1,3 +1,19 @@ +# Copyright 2025 NVIDIA CORPORATION & AFFILIATES +# +# 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: Apache-2.0 + """ Debug test for SingularityRuntime parallel execution issues.