# Path: will/utils.py
# def show_valid(valid_str):
#     puts(colored.green(u"✓ %s" % valid_str))
# 
# def warn(warn_string):
#     puts(colored.yellow("! Warning: %s" % warn_string))
# 
# def note(warn_string):
#     puts(colored.cyan("- Note: %s" % warn_string))
# 
# def error(err_string):
#     puts(colored.red("ERROR: %s" % err_string))


import os
import sys
    import uuid
    import time
    import random
    import hashlib
                import config
                        import config
from will.utils import show_valid, warn, note, error
from clint.textui import puts, indent
from six.moves.urllib import parse
from six.moves import input
                    key = auto_key()
                    if key:
                        warn(
                            """No SECRET_KEY specified and ENABLE_INTERNAL_ENCRYPTION is on.\n
                               Temporarily auto-generating a key specific to this computer:\n    {}\n
                               Please set WILL_SECRET_KEY in the environment as soon as possible to ensure \n
                               Will is able to access information from previous runs.""".format(key)
                        )
                    else:
                        error(
                            """ENABLE_INTERNAL_ENCRYPTION is turned on, but a SECRET_KEY has not been given.\n
                               We tried to automatically generate temporary SECRET_KEY, but this appears to be a \n"
                               shared or virtualized environment.\n Please set a unique secret key in the
                               environment as WILL_SECRET_KEY to run will."""
                        )
                        print("  Unable to start will without a SECRET_KEY while encryption is turned on. Shutting down.")
                        sys.exit(1)

                    settings["SECRET_KEY"] = key
                    os.environ["WILL_SECRET_KEY"] = settings["SECRET_KEY"]
                    os.environ["WILL_EPHEMERAL_SECRET_KEY"] = "True"

        if "FUZZY_MINIMUM_MATCH_CONFIDENCE" not in settings:
            settings["FUZZY_MINIMUM_MATCH_CONFIDENCE"] = 91
        if "FUZZY_REGEX_ALLOWABLE_ERRORS" not in settings:
            settings["FUZZY_REGEX_ALLOWABLE_ERRORS"] = 3

        # Set them in the module namespace
        for k in sorted(settings, key=lambda x: x[0]):
            if not quiet:

# Path: will/utils.py
# def show_valid(valid_str):
#     puts(colored.green(u"✓ %s" % valid_str))
# 
# def warn(warn_string):
#     puts(colored.yellow("! Warning: %s" % warn_string))
# 
# def note(warn_string):
#     puts(colored.cyan("- Note: %s" % warn_string))
# 
# def error(err_string):
#     puts(colored.red("ERROR: %s" % err_string))


# Path: will/settings.py
import os
import sys
    import uuid
    import time
    import random
    import hashlib
                import config
                        import config
from will.utils import show_valid, warn, note, error
from clint.textui import puts, indent
from six.moves.urllib import parse
from six.moves import input

                    key = auto_key()
                    if key:
                        warn(
                            """No SECRET_KEY specified and ENABLE_INTERNAL_ENCRYPTION is on.\n
                               Temporarily auto-generating a key specific to this computer:\n    {}\n
                               Please set WILL_SECRET_KEY in the environment as soon as possible to ensure \n
                               Will is able to access information from previous runs.""".format(key)
                        )
                    else:
                        error(
                            """ENABLE_INTERNAL_ENCRYPTION is turned on, but a SECRET_KEY has not been given.\n
                               We tried to automatically generate temporary SECRET_KEY, but this appears to be a \n"
                               shared or virtualized environment.\n Please set a unique secret key in the
                               environment as WILL_SECRET_KEY to run will."""
                        )
                        print("  Unable to start will without a SECRET_KEY while encryption is turned on. Shutting down.")
                        sys.exit(1)

                    settings["SECRET_KEY"] = key
                    os.environ["WILL_SECRET_KEY"] = settings["SECRET_KEY"]
                    os.environ["WILL_EPHEMERAL_SECRET_KEY"] = "True"

        if "FUZZY_MINIMUM_MATCH_CONFIDENCE" not in settings:
            settings["FUZZY_MINIMUM_MATCH_CONFIDENCE"] = 91
        if "FUZZY_REGEX_ALLOWABLE_ERRORS" not in settings:
            settings["FUZZY_REGEX_ALLOWABLE_ERRORS"] = 3

        # Set them in the module namespace
        for k in sorted(settings, key=lambda x: x[0]):
            if not quiet:

                show_valid(k)