Skip to content

Commit

Permalink
Added license to all files in Seqsee.
Browse files Browse the repository at this point in the history
  • Loading branch information
amahabal committed Apr 12, 2012
1 parent 3e95214 commit f369214
Show file tree
Hide file tree
Showing 27 changed files with 1,000 additions and 0 deletions.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/apps/seqsee/anchored.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 apps.seqsee.sobject import SObject, LTMStorableSObject, SElement
from farg.codelet import Codelet
from farg.exceptions import FargError, FargException
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/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 apps.seqsee.question import AreTheseTheNextTermsQuestion
from farg.exceptions import SuccessfulCompletion
from farg.ui.batch_ui import BatchUI
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/categories.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/>

"""Seqsee-specific categories.
These will include (not all implemented yet):
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/codelet_families/extend_group.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.codelet import CodeletFamily
from farg.util import Toss
from apps.seqsee.anchored import SAnchored
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/codelet_families/overlapping_groups.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.codelet import CodeletFamily
from apps.seqsee.anchored import SAnchored
from farg.exceptions import ConflictingGroupException, CannotReplaceSubgroupException
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/codelet_families/read_from_ws.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.codelet import CodeletFamily
from apps.seqsee.subspaces.choose_item_to_focus_on import SubspaceSelectObjectToFocusOn

Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/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 apps.seqsee.codelet_families.read_from_ws import CF_ReadFromWS
from apps.seqsee.workspace import Workspace
from farg.ltm.manager import LTMManager
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/gui/conversation.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 *

class Conversation(Frame):
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/gui/groups_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
1 change: 1 addition & 0 deletions src/apps/seqsee/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# 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/apps/seqsee/gui/workspace_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.ui.gui.views.viewport import ViewPort
from tkinter import LAST

Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/mapping.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/>

"""A way to specify how two entities are related."""

from farg.ltm.storable import LTMStorableMixin
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/question.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.question.question import BooleanQuestion

class AreTheseTheNextTermsQuestion(BooleanQuestion):
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/read_input_spec.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 ReadInputSpec:
def Read(self, filelike):
for line in filelike:
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/relation.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/>

"""A relation is a specific instance of a mapping."""

from farg.focusable_mixin import FocusableMixin
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/run_seqsee.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/usr/bin/python
# 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 apps.seqsee.batch_ui import SeqseeBatchUI
from apps.seqsee.controller import SeqseeController
from apps.seqsee.gui.gui import SeqseeGUI
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/sobject.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/>

"""Represents a group or a single number in a sequence.
.. warning:: This is an implementation of the SObject in Perl, but differs significantly in
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/stopping_conditions.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/>

stopping_conditions_dict = dict()

def RegisterStoppingCondition(*, condition_name):
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/structure_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/>

def StructureDepth(structure):
"""Returns how deeply nested a structure is. 0 is no nesting, 1 is flat, etc."""
if isinstance(structure, int):
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/subspaces/choose_item_to_focus_on.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.subspace import Subspace
from farg.exceptions import AnswerFoundException
from farg.util import WeightedChoice
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/subspaces/deal_with_conflicting_groups.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.subspace import Subspace
from farg.codelet import CodeletFamily
from farg.util import Toss
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/subspaces/get_mapping.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 apps.seqsee.categories import GetNaiveMapping, Number
from apps.seqsee.mapping import NumericMapping, StructuralMapping
from apps.seqsee.relation import Relation
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/subspaces/go_beyond_known.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.codelet import CodeletFamily
from farg.subspace import Subspace
from farg.exceptions import NoAnswerException, AnswerFoundException
Expand Down
13 changes: 13 additions & 0 deletions src/apps/seqsee/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/>

# Utility functions for testing seqsee.
from apps.seqsee.anchored import SAnchored
from apps.seqsee.workspace import Workspace
Expand Down
Loading

0 comments on commit f369214

Please sign in to comment.