Skip to content

Commit ac1a744

Browse files
committed
πŸ„πŸ»β€β™‚οΈ Update LICENSE to GPLv3
1 parent 541dd25 commit ac1a744

File tree

113 files changed

+1388
-1275
lines changed

Some content is hidden

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

113 files changed

+1388
-1275
lines changed

β€Žrofunc/config/utils.py

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
1+
# Copyright (C) 2024, Junjia Liu
2+
#
3+
# This file is part of Rofunc.
4+
#
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
7+
#
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
import copy
1617
import os

β€Žrofunc/learning/RofuncRL/agents/base_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
import collections
1617
import os

β€Žrofunc/learning/RofuncRL/agents/mixline/amp_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
import math
1617
from typing import Callable, Union, Tuple, Optional, List

β€Žrofunc/learning/RofuncRL/agents/mixline/ase_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
import gym
1617
import gymnasium

β€Žrofunc/learning/RofuncRL/agents/mixline/ase_hrl_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
import gym
1617
import gymnasium

β€Žrofunc/learning/RofuncRL/agents/mixline/odtrans_agent.py

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
1+
# Copyright (C) 2024, Junjia Liu
2+
#
3+
# This file is part of Rofunc.
4+
#
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
7+
#
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
from typing import Union, Tuple, Optional
1617

β€Žrofunc/learning/RofuncRL/agents/mixline/physhoi_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
from typing import Union, Tuple, Optional
1617

β€Žrofunc/learning/RofuncRL/agents/offline/cql_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516

1617
class CQLAgent():

β€Žrofunc/learning/RofuncRL/agents/offline/dtrans_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
import collections
1617
from typing import Union, Tuple, Optional

β€Žrofunc/learning/RofuncRL/agents/offline/edac_agent.py

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
1+
# Copyright (C) 2024, Junjia Liu
2+
#
3+
# This file is part of Rofunc.
4+
#
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
7+
#
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516

1617
class EDACAgent():

β€Žrofunc/learning/RofuncRL/agents/offline/td3bc_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516

1617
class TD3BCAgent():

β€Žrofunc/learning/RofuncRL/agents/online/a2c_agent.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
1+
# Copyright (C) 2024, Junjia Liu
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# This file is part of Rofunc.
64
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
87
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
import gym
1617
import gymnasium

β€Žrofunc/learning/RofuncRL/agents/online/ppo_agent.py

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# Copyright 2023, Junjia LIU, [email protected]
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
1+
# Copyright (C) 2024, Junjia Liu
2+
#
3+
# This file is part of Rofunc.
4+
#
5+
# Rofunc is licensed under the GNU General Public License v3.0.
6+
# You may use, distribute, and modify this code under the terms of the GPL-3.0.
7+
#
8+
# Additional Terms for Commercial Use:
9+
# Commercial use requires sharing 50% of net profits with the copyright holder.
10+
# Financial reports and regular payments must be provided as agreed in writing.
11+
# Non-compliance results in revocation of commercial rights.
12+
#
13+
# For more details, see <https://www.gnu.org/licenses/>.
14+
1415

1516
import gym
1617
import gymnasium

0 commit comments

Comments
Β (0)