From 3e952149775bfa666663d5211f4902d97a89ace2 Mon Sep 17 00:00:00 2001 From: Abhijit Mahabal Date: Thu, 12 Apr 2012 15:14:29 -0400 Subject: [PATCH] Added GPL to files in farg --- src/apps/seqsee/gui/gui.py | 12 ++++++++++++ src/farg/categorization/binding.py | 13 +++++++++++++ src/farg/codelet.py | 13 +++++++++++++ src/farg/coderack.py | 13 +++++++++++++ src/farg/controller.py | 13 +++++++++++++ src/farg/exceptions.py | 13 +++++++++++++ src/farg/focusable_mixin.py | 13 +++++++++++++ src/farg/main.py | 13 +++++++++++++ src/farg/meta.py | 13 +++++++++++++ src/farg/run_mode/single.py | 13 +++++++++++++ src/farg/run_mode/sxs.py | 13 +++++++++++++ src/farg/run_stats.py | 13 +++++++++++++ src/farg/stream.py | 13 +++++++++++++ src/farg/subspace.py | 13 +++++++++++++ src/farg/testing_utils.py | 13 +++++++++++++ src/farg/ui/batch_ui.py | 13 +++++++++++++ src/farg/ui/gui/central_pane.py | 13 +++++++++++++ src/farg/ui/gui/views/coderack_view.py | 13 +++++++++++++ src/farg/ui/gui/views/list_based_view.py | 13 +++++++++++++ src/farg/ui/gui/views/stream_view.py | 13 +++++++++++++ src/farg/ui/gui/views/viewport.py | 13 +++++++++++++ src/farg/util.py | 13 +++++++++++++ 22 files changed, 285 insertions(+) diff --git a/src/apps/seqsee/gui/gui.py b/src/apps/seqsee/gui/gui.py index c8ad3ea..f00f3e7 100644 --- a/src/apps/seqsee/gui/gui.py +++ b/src/apps/seqsee/gui/gui.py @@ -1,3 +1,15 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see """Adapting the generic FARG GUI to Seqsee.""" from apps.seqsee.gui.groups_view import GroupsView diff --git a/src/farg/categorization/binding.py b/src/farg/categorization/binding.py index b2e5fbe..2f6734f 100644 --- a/src/farg/categorization/binding.py +++ b/src/farg/categorization/binding.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + class Binding(object): """Specification of how an instance is a member of some category. diff --git a/src/farg/codelet.py b/src/farg/codelet.py index e0fa7a8..2be4851 100644 --- a/src/farg/codelet.py +++ b/src/farg/codelet.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + """Base classes for Codelet families and for codelet. .. ToDo:: Keep eyes open for freshness issues; these have not been ported from Perl. diff --git a/src/farg/coderack.py b/src/farg/coderack.py index 8728808..ed1dae4 100644 --- a/src/farg/coderack.py +++ b/src/farg/coderack.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + """ The Coderack in Seqsee is like a todo list. It consists of promising actions to take next, each associated with a number indicating the degree diff --git a/src/farg/controller.py b/src/farg/controller.py index c2d3d5f..d657d12 100644 --- a/src/farg/controller.py +++ b/src/farg/controller.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from farg.stream import Stream from farg.coderack import Coderack from farg.util import Toss diff --git a/src/farg/exceptions.py b/src/farg/exceptions.py index a8bdb18..a816af2 100644 --- a/src/farg/exceptions.py +++ b/src/farg/exceptions.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + import traceback from itertools import takewhile diff --git a/src/farg/focusable_mixin.py b/src/farg/focusable_mixin.py index ae4e4f3..4dc5157 100644 --- a/src/farg/focusable_mixin.py +++ b/src/farg/focusable_mixin.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from farg.exceptions import FargError class FocusableMixin(object): """A mixin for things that want to be part of the stream. It is a pure interface --- all diff --git a/src/farg/main.py b/src/farg/main.py index 06d4797..a0a9e32 100644 --- a/src/farg/main.py +++ b/src/farg/main.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + """The Main class is the entry point into an app. """ from farg.controller import Controller diff --git a/src/farg/meta.py b/src/farg/meta.py index 00d2c0f..3b9bd4a 100644 --- a/src/farg/meta.py +++ b/src/farg/meta.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from farg.exceptions import AnswerFoundException, NoAnswerException class MemoizedConstructor(type): diff --git a/src/farg/run_mode/single.py b/src/farg/run_mode/single.py index 37999a1..a6d5c13 100644 --- a/src/farg/run_mode/single.py +++ b/src/farg/run_mode/single.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from farg.exceptions import BatchModeStopException from farg.run_mode.non_interactive import RunModeNonInteractive from io import StringIO diff --git a/src/farg/run_mode/sxs.py b/src/farg/run_mode/sxs.py index ddf0af7..5945409 100644 --- a/src/farg/run_mode/sxs.py +++ b/src/farg/run_mode/sxs.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from farg.run_mode.non_interactive import RunModeNonInteractive from farg.run_stats import RunStats from third_party import gflags diff --git a/src/farg/run_stats.py b/src/farg/run_stats.py index 14a1513..cefd9dc 100644 --- a/src/farg/run_stats.py +++ b/src/farg/run_stats.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + """ Collects stats for multiple run with a single setting. """ diff --git a/src/farg/stream.py b/src/farg/stream.py index f2c7ad5..e2ccd09 100644 --- a/src/farg/stream.py +++ b/src/farg/stream.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + # TODO(#4 --- Dec 28, 2011): Move to src/farg. from collections import defaultdict from farg.focusable_mixin import FocusableMixin diff --git a/src/farg/subspace.py b/src/farg/subspace.py index 94c004f..b6282c7 100644 --- a/src/farg/subspace.py +++ b/src/farg/subspace.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from farg.controller import Controller from farg.meta import SubspaceMeta diff --git a/src/farg/testing_utils.py b/src/farg/testing_utils.py index 931ee79..78c4bfe 100644 --- a/src/farg/testing_utils.py +++ b/src/farg/testing_utils.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + import unittest class CodeletPresenceSpec(object): diff --git a/src/farg/ui/batch_ui.py b/src/farg/ui/batch_ui.py index cf27745..4294035 100644 --- a/src/farg/ui/batch_ui.py +++ b/src/farg/ui/batch_ui.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from third_party import gflags FLAGS = gflags.FLAGS diff --git a/src/farg/ui/gui/central_pane.py b/src/farg/ui/gui/central_pane.py index bb94d72..cc1cf5a 100644 --- a/src/farg/ui/gui/central_pane.py +++ b/src/farg/ui/gui/central_pane.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from tkinter import * from third_party import gflags diff --git a/src/farg/ui/gui/views/coderack_view.py b/src/farg/ui/gui/views/coderack_view.py index 6cca3d7..cec8e59 100644 --- a/src/farg/ui/gui/views/coderack_view.py +++ b/src/farg/ui/gui/views/coderack_view.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from collections import defaultdict from farg.ui.gui.views.list_based_view import ListBasedView from tkinter import NW, Text, Toplevel diff --git a/src/farg/ui/gui/views/list_based_view.py b/src/farg/ui/gui/views/list_based_view.py index 9a5712e..a592bfa 100644 --- a/src/farg/ui/gui/views/list_based_view.py +++ b/src/farg/ui/gui/views/list_based_view.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from farg.exceptions import FargError from farg.ui.gui.views.viewport import ViewPort from math import ceil diff --git a/src/farg/ui/gui/views/stream_view.py b/src/farg/ui/gui/views/stream_view.py index 171c83d..01f4044 100644 --- a/src/farg/ui/gui/views/stream_view.py +++ b/src/farg/ui/gui/views/stream_view.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + from collections import defaultdict from farg.ui.gui.views.list_based_view import ListBasedView from tkinter import NW, Text, Toplevel diff --git a/src/farg/ui/gui/views/viewport.py b/src/farg/ui/gui/views/viewport.py index ab749fd..8ecbdd5 100644 --- a/src/farg/ui/gui/views/viewport.py +++ b/src/farg/ui/gui/views/viewport.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + class ViewPort(object): def __init__(self, canvas, left, bottom, width, height): self.left = left diff --git a/src/farg/util.py b/src/farg/util.py index 61640b7..a2f384a 100644 --- a/src/farg/util.py +++ b/src/farg/util.py @@ -1,3 +1,16 @@ +# Copyright (C) 2011, 2012 Abhijit Mahabal + +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU 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 General Public License for more details. + +# You should have received a copy of the GNU General Public License along with this +# program. If not, see + import colorsys import random