Skip to content

Commit 300017b

Browse files
fix: the Chinese characters in the license template into English … (#1231)
Co-authored-by: Wendong <[email protected]>
1 parent 95af6f4 commit 300017b

File tree

470 files changed

+1883
-1883
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

470 files changed

+1883
-1883
lines changed

apps/agents/agents.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
"""
1515
Gradio-based web app Agents that uses OpenAI API to generate
1616
a chat between collaborative agents.

apps/agents/test/test_agents.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import gradio as gr
1515
import pytest
1616

apps/agents/test/test_text_utils.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import apps.agents.text_utils as text_utils
1515

1616

apps/agents/text_utils.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import re
1515

1616

apps/common/auto_zip.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import json
1515
import os
1616
import zipfile

apps/common/test/test_auto_zip.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import os
1515

1616
from apps.common.auto_zip import AutoZip

apps/data_explorer/data_explorer.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
"""
1515
Gradio-based web UI to explore the Camel dataset.
1616
"""

apps/data_explorer/downloader.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import os
1515
import urllib.request
1616

apps/data_explorer/loader.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
"""
1515
Everything related to parsing the data JSONs into UI-compatible format.
1616
"""

apps/data_explorer/test/test_data_explorer.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import os
1515
import urllib.request
1616

apps/data_explorer/test/test_loader.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import apps.data_explorer.loader as loader
1515

1616

apps/dilemma/database_connection.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import sqlalchemy
1515
from google.cloud.sql.connector import Connector, IPTypes
1616

apps/dilemma/dilemma.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
"""
1515
Gradio-based web UI to select between two
1616
options and save the answers to a database.

camel/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414

1515
__version__ = '0.2.9'
1616

camel/agents/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
from .base import BaseAgent
1515
from .chat_agent import ChatAgent
1616
from .critic_agent import CriticAgent

camel/agents/base.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
from abc import ABC, abstractmethod
1515
from typing import Any
1616

camel/agents/chat_agent.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
from __future__ import annotations
1515

1616
import json

camel/agents/critic_agent.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
2-
# Licensed under the Apache License, Version 2.0 (the License);
1+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
2+
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
55
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
# Unless required by applicable law or agreed to in writing, software
9-
# distributed under the License is distributed on an AS IS BASIS,
9+
# distributed under the License is distributed on an "AS IS" BASIS,
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
13+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
1414
import random
1515
import warnings
1616
from typing import Any, Dict, Optional, Sequence

0 commit comments

Comments
 (0)