# Path: corpkit/constants.py
# STRINGTYPE = str if PYTHON_VERSION == 3 else basestring
# 
# PYTHON_VERSION = sys.version_info.major
# 
# INPUTFUNC = input if PYTHON_VERSION == 3 else raw_input
# 
# Path: corpkit/constants.py
# PYTHON_VERSION = sys.version_info.major
# STRINGTYPE = str if PYTHON_VERSION == 3 else basestring
# INPUTFUNC = input if PYTHON_VERSION == 3 else raw_input
# OPENER = open if PYTHON_VERSION == 3 else codecs.open
# LETTERS = sorted(_letters + _adjacent)
# CONLL_COLUMNS = ['i', 'w', 'l', 'p', 'e', 'v', 'g', 'f', 'd', 'c']
# MAX_SPEAKERNAME_SIZE = 40
# REPEAT_PARSE_ATTEMPTS = 3
# CORENLP_VERSION = '3.7.0'
# CORENLP_URL  = 'http://nlp.stanford.edu/software/stanford-corenlp-full-2016-10-31.zip'
# MAX_METADATA_FIELDS = 99
# MAX_METADATA_VALUES = 99
# 
# Path: corpkit/completer.py
# class Completer(object):
#     """
#     Tab completion for interpreter
#     """
# 
#     def __init__(self, words):
#         self.words = words
#         self.prefix = None
# 
#     def complete(self, prefix, index):
#         """
#         Add paths etc to this
#         """
#         if prefix != self.prefix:
#             # we have a new prefix!
#             # find all words that start with this prefix
#             self.matching_words = [
#                 w for w in self.words if w.startswith(prefix)
#                 ]
#             self.prefix = prefix
#         try:
#             return self.matching_words[index]
#         except IndexError:
#             return None


from corpkit.constants import STRINGTYPE, PYTHON_VERSION, INPUTFUNC
from corpkit import *
from corpkit.constants import transshow, transobjs
from corpkit.completer import Completer
        from corpkit.dictionaries.roles import roles
        from corpkit.dictionaries.wordlists import wordlists
        from corpkit.dictionaries.process_types import processes
        from corpkit.dictionaries.verblist import allverbs
        from collections import defaultdict
        from corpkit.constants import OPENER
        from IPython import embed
        from IPython.terminal.embed import InteractiveShellEmbed
                from colorama import Fore, Back, Style, init
                from blessings import Terminal
            from corpkit.corpus import Corpus
        from corpkit.other import load
            from corpkit.corpus import Corpus, Corpora
        from corpkit.constants import transshow, transobjs
            from corpkit.dictionaries import roles, processes, wordlists
        from corpkit.interrogation import Concordance
        from corpkit.interrogation import Concordance
            from corpkit.interrogation import Interrogation, Concordance
            from corpkit.interrogation import Concordance
        from corpkit.interrogation import Concordance
        from corpkit.corpus import Corpus
        from corpkit.interrogation import Interrogation, Concordance
        from corpkit.other import load
            from corpkit.other import load_all_results
            from corpkit.other import new_project
        from corpkit.annotate import annotator
        from corpkit.interrogation import Concordance
        from corpkit.annotate import annotator
        from colorama import Fore, Back, Style, init
            from docker import Client
        from corpkit.interrogation import Concordance
        from corpkit.interrogation import Concordance
        from corpkit.process import makesafe
import os
import traceback
import pandas as pd
    import gnureadline as readline
    import readline
import atexit
import corpkit
import warnings
    import gnureadline as readline
    import readline as readline
        import gnureadline as readline
        import readline as readline
    import os
        import os
        import subprocess
            import os
        import subprocess
        import os
        import pydoc
            import tabview
            import os
            import readline
            import pydoc
        import pydoc
        import tabview
            import pandas as pd
        import os
                    import numpy as np
        import matplotlib.pyplot as plt
        import shutil
        import os
            import subprocess
        import shlex
        import os
        import os
    import shlex
        import os
                import sys
            import sys
                import sys
    import sys
    import pip
    import importlib
    import traceback
    import os
        cols = [int(i) for i in cols]
        objs.concordance = Concordance(objs.concordance.loc[cols])
        return objs.concordance

    def store_this(tokens):
        """
        Send a result into storage

        :Example:

           `store result as 'processes'`

        To view the contents of the store, do `show store`.

        """

        to_store = objs._get(tokens[0])[1]

        #if not to_store:
        #    print('Not storable:' % tokens[0])
        #    return

        if tokens[1] == 'as':
            name = tokens[2]
        else:
            count = 0
            while str(count) in objs.stored.keys():
                count += 1
            name = str(count)
        if name in objs.stored.keys():

# Path: corpkit/constants.py
# STRINGTYPE = str if PYTHON_VERSION == 3 else basestring
# 
# PYTHON_VERSION = sys.version_info.major
# 
# INPUTFUNC = input if PYTHON_VERSION == 3 else raw_input
# 
# Path: corpkit/constants.py
# PYTHON_VERSION = sys.version_info.major
# STRINGTYPE = str if PYTHON_VERSION == 3 else basestring
# INPUTFUNC = input if PYTHON_VERSION == 3 else raw_input
# OPENER = open if PYTHON_VERSION == 3 else codecs.open
# LETTERS = sorted(_letters + _adjacent)
# CONLL_COLUMNS = ['i', 'w', 'l', 'p', 'e', 'v', 'g', 'f', 'd', 'c']
# MAX_SPEAKERNAME_SIZE = 40
# REPEAT_PARSE_ATTEMPTS = 3
# CORENLP_VERSION = '3.7.0'
# CORENLP_URL  = 'http://nlp.stanford.edu/software/stanford-corenlp-full-2016-10-31.zip'
# MAX_METADATA_FIELDS = 99
# MAX_METADATA_VALUES = 99
# 
# Path: corpkit/completer.py
# class Completer(object):
#     """
#     Tab completion for interpreter
#     """
# 
#     def __init__(self, words):
#         self.words = words
#         self.prefix = None
# 
#     def complete(self, prefix, index):
#         """
#         Add paths etc to this
#         """
#         if prefix != self.prefix:
#             # we have a new prefix!
#             # find all words that start with this prefix
#             self.matching_words = [
#                 w for w in self.words if w.startswith(prefix)
#                 ]
#             self.prefix = prefix
#         try:
#             return self.matching_words[index]
#         except IndexError:
#             return None


# Path: corpkit/env.py
from corpkit.constants import STRINGTYPE, PYTHON_VERSION, INPUTFUNC
from corpkit import *
from corpkit.constants import transshow, transobjs
from corpkit.completer import Completer
        from corpkit.dictionaries.roles import roles
        from corpkit.dictionaries.wordlists import wordlists
        from corpkit.dictionaries.process_types import processes
        from corpkit.dictionaries.verblist import allverbs
        from collections import defaultdict
        from corpkit.constants import OPENER
        from IPython import embed
        from IPython.terminal.embed import InteractiveShellEmbed
                from colorama import Fore, Back, Style, init
                from blessings import Terminal
            from corpkit.corpus import Corpus
        from corpkit.other import load
            from corpkit.corpus import Corpus, Corpora
        from corpkit.constants import transshow, transobjs
            from corpkit.dictionaries import roles, processes, wordlists
        from corpkit.interrogation import Concordance
        from corpkit.interrogation import Concordance
            from corpkit.interrogation import Interrogation, Concordance
            from corpkit.interrogation import Concordance
        from corpkit.interrogation import Concordance
        from corpkit.corpus import Corpus
        from corpkit.interrogation import Interrogation, Concordance
        from corpkit.other import load
            from corpkit.other import load_all_results
            from corpkit.other import new_project
        from corpkit.annotate import annotator
        from corpkit.interrogation import Concordance
        from corpkit.annotate import annotator
        from colorama import Fore, Back, Style, init
            from docker import Client
        from corpkit.interrogation import Concordance
        from corpkit.interrogation import Concordance
        from corpkit.process import makesafe
import os
import traceback
import pandas as pd
    import gnureadline as readline
    import readline
import atexit
import corpkit
import warnings
    import gnureadline as readline
    import readline as readline
        import gnureadline as readline
        import readline as readline
    import os
        import os
        import subprocess
            import os
        import subprocess
        import os
        import pydoc
            import tabview
            import os
            import readline
            import pydoc
        import pydoc
        import tabview
            import pandas as pd
        import os
                    import numpy as np
        import matplotlib.pyplot as plt
        import shutil
        import os
            import subprocess
        import shlex
        import os
        import os
    import shlex
        import os
                import sys
            import sys
                import sys
    import sys
    import pip
    import importlib
    import traceback
    import os

        cols = [int(i) for i in cols]
        objs.concordance = Concordance(objs.concordance.loc[cols])
        return objs.concordance

    def store_this(tokens):
        """
        Send a result into storage

        :Example:

           `store result as 'processes'`

        To view the contents of the store, do `show store`.

        """

        to_store = objs._get(tokens[0])[1]

        #if not to_store:
        #    print('Not storable:' % tokens[0])
        #    return

        if tokens[1] == 'as':
            name = tokens[2]
        else:
            count = 0
            while str(count) in objs.stored.keys():
                count += 1
            name = str(count)
        if name in objs.stored.keys():

            cont = INPUTFUNC('%s already in store. Replace it? (y/n) ')