From dd7cb0ffbb8c5b3bad320e4d27bd81cced3a9038 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 10 Dec 2015 14:06:17 +0100 Subject: Add copyright info --- server/__init__.py | 16 +++++++++++++++- server/handlers.py | 16 +++++++++++++++- server/hints.py | 16 +++++++++++++++- server/problems.py | 16 +++++++++++++++- server/prolog_session.py | 16 +++++++++++++++- server/python_session.py | 16 +++++++++++++++- server/robot_session.py | 16 +++++++++++++++- server/socket.py | 16 +++++++++++++++- server/user_session.py | 16 +++++++++++++++- 9 files changed, 135 insertions(+), 9 deletions(-) (limited to 'server') diff --git a/server/__init__.py b/server/__init__.py index e174626..c8e4581 100644 --- a/server/__init__.py +++ b/server/__init__.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . __all__ = ['socket', 'handlers', 'user_session', 'prolog_session', 'python_session', 'robot_session', 'problems', 'LanguageSession'] diff --git a/server/handlers.py b/server/handlers.py index da257c1..918067f 100644 --- a/server/handlers.py +++ b/server/handlers.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from concurrent.futures import ThreadPoolExecutor import traceback diff --git a/server/hints.py b/server/hints.py index 62999ca..9652ca2 100644 --- a/server/hints.py +++ b/server/hints.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # Hint.instantiate takes a hint object (dictionary) to be sent to the client # and sets additional fields based on previously sent hints. diff --git a/server/problems.py b/server/problems.py index a143e74..2b6f134 100644 --- a/server/problems.py +++ b/server/problems.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import sys import importlib.machinery diff --git a/server/prolog_session.py b/server/prolog_session.py index c5fa1de..7e0af90 100644 --- a/server/prolog_session.py +++ b/server/prolog_session.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import operator import threading diff --git a/server/python_session.py b/server/python_session.py index 4fcc3b5..555a55f 100644 --- a/server/python_session.py +++ b/server/python_session.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . from fcntl import fcntl, F_GETFL, F_SETFL import io diff --git a/server/robot_session.py b/server/robot_session.py index 137c16a..410016b 100644 --- a/server/robot_session.py +++ b/server/robot_session.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import threading diff --git a/server/socket.py b/server/socket.py index 561ab29..a32c205 100644 --- a/server/socket.py +++ b/server/socket.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import socket import selectors diff --git a/server/user_session.py b/server/user_session.py index 19c29c6..906f610 100644 --- a/server/user_session.py +++ b/server/user_session.py @@ -1,4 +1,18 @@ -# coding=utf-8 +# CodeQ: an online programming tutor. +# Copyright (C) 2015 UL FRI +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import base64 import datetime -- cgit v1.2.1