Skip to content

Commit

Permalink
Added GPL to files in farg
Browse files Browse the repository at this point in the history
  • Loading branch information
amahabal committed Apr 12, 2012
1 parent 03b03ac commit 3e95214
Show file tree
Hide file tree
Showing 22 changed files with 285 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/apps/seqsee/gui/gui.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>
"""Adapting the generic FARG GUI to Seqsee."""

from apps.seqsee.gui.groups_view import GroupsView
Expand Down
13 changes: 13 additions & 0 deletions src/farg/categorization/binding.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

class Binding(object):
"""Specification of how an instance is a member of some category.
Expand Down
13 changes: 13 additions & 0 deletions src/farg/codelet.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

"""Base classes for Codelet families and for codelet.
.. ToDo:: Keep eyes open for freshness issues; these have not been ported from Perl.
Expand Down
13 changes: 13 additions & 0 deletions src/farg/coderack.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

"""
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
Expand Down
13 changes: 13 additions & 0 deletions src/farg/controller.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from farg.stream import Stream
from farg.coderack import Coderack
from farg.util import Toss
Expand Down
13 changes: 13 additions & 0 deletions src/farg/exceptions.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

import traceback
from itertools import takewhile

Expand Down
13 changes: 13 additions & 0 deletions src/farg/focusable_mixin.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

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
Expand Down
13 changes: 13 additions & 0 deletions src/farg/main.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

"""The Main class is the entry point into an app.
"""
from farg.controller import Controller
Expand Down
13 changes: 13 additions & 0 deletions src/farg/meta.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from farg.exceptions import AnswerFoundException, NoAnswerException

class MemoizedConstructor(type):
Expand Down
13 changes: 13 additions & 0 deletions src/farg/run_mode/single.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from farg.exceptions import BatchModeStopException
from farg.run_mode.non_interactive import RunModeNonInteractive
from io import StringIO
Expand Down
13 changes: 13 additions & 0 deletions src/farg/run_mode/sxs.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from farg.run_mode.non_interactive import RunModeNonInteractive
from farg.run_stats import RunStats
from third_party import gflags
Expand Down
13 changes: 13 additions & 0 deletions src/farg/run_stats.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

"""
Collects stats for multiple run with a single setting.
"""
Expand Down
13 changes: 13 additions & 0 deletions src/farg/stream.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

# TODO(#4 --- Dec 28, 2011): Move to src/farg.
from collections import defaultdict
from farg.focusable_mixin import FocusableMixin
Expand Down
13 changes: 13 additions & 0 deletions src/farg/subspace.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from farg.controller import Controller
from farg.meta import SubspaceMeta

Expand Down
13 changes: 13 additions & 0 deletions src/farg/testing_utils.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

import unittest

class CodeletPresenceSpec(object):
Expand Down
13 changes: 13 additions & 0 deletions src/farg/ui/batch_ui.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from third_party import gflags
FLAGS = gflags.FLAGS

Expand Down
13 changes: 13 additions & 0 deletions src/farg/ui/gui/central_pane.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from tkinter import *
from third_party import gflags

Expand Down
13 changes: 13 additions & 0 deletions src/farg/ui/gui/views/coderack_view.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from collections import defaultdict
from farg.ui.gui.views.list_based_view import ListBasedView
from tkinter import NW, Text, Toplevel
Expand Down
13 changes: 13 additions & 0 deletions src/farg/ui/gui/views/list_based_view.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from farg.exceptions import FargError
from farg.ui.gui.views.viewport import ViewPort
from math import ceil
Expand Down
13 changes: 13 additions & 0 deletions src/farg/ui/gui/views/stream_view.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

from collections import defaultdict
from farg.ui.gui.views.list_based_view import ListBasedView
from tkinter import NW, Text, Toplevel
Expand Down
13 changes: 13 additions & 0 deletions src/farg/ui/gui/views/viewport.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

class ViewPort(object):
def __init__(self, canvas, left, bottom, width, height):
self.left = left
Expand Down
13 changes: 13 additions & 0 deletions src/farg/util.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>

import colorsys
import random

Expand Down

0 comments on commit 3e95214

Please sign in to comment.