<commit_before>"""Module containing global bliss constants and functions."""

import os


# whether or not we're running in the dev_appserver
_DEV_MODE = os.environ['SERVER_SOFTWARE'].startswith('Development/')

# namespace for bliss specific data
BLISS_NAMESPACE = '_bliss'

# Extensions to exclude when creating template projects
SKIP_EXTENSIONS = ('swp', 'pyc', 'svn')

# The application where the bliss IDE runs
BLISS_APP_ID = 'try-appengine'

# The application where user code runs
PLAYGROUND_APP_ID = 'shared-playground'

USER_CONTENT_PREFIX = 'user-content'

# All app ids used by this project
_APP_IDS = (BLISS_APP_ID, PLAYGROUND_APP_ID)

if _DEV_MODE:
  BLISS_HOST = 'localhost:8080'
  BLISS_USER_CONTENT_HOST = 'localhost:9100'
  PLAYGROUND_HOST = 'localhost:9200'
else:
  BLISS_HOST = '{0}.appspot.com'.format(BLISS_APP_ID)
  BLISS_USER_CONTENT_HOST = '{0}.{1}.appspot.com'.format(USER_CONTENT_PREFIX,
                                                         BLISS_APP_ID)
  PLAYGROUND_HOST = '{0}.appspot.com'.format(PLAYGROUND_APP_ID)


def PrintAppIdsInMap():
  """Prints a new line delimited list of known app ids."""
  app_ids = set((BLISS_APP_ID, PLAYGROUND_APP_ID))<commit_msg>'.' -> '-dot-' for SSL<commit_after>"""Module containing global bliss constants and functions."""

import os


# whether or not we're running in the dev_appserver
_DEV_MODE = os.environ['SERVER_SOFTWARE'].startswith('Development/')

# namespace for bliss specific data
BLISS_NAMESPACE = '_bliss'

# Extensions to exclude when creating template projects
SKIP_EXTENSIONS = ('swp', 'pyc', 'svn')

# The application where the bliss IDE runs
BLISS_APP_ID = 'try-appengine'

# The application where user code runs
PLAYGROUND_APP_ID = 'shared-playground'

USER_CONTENT_PREFIX = 'user-content'

# All app ids used by this project
_APP_IDS = (BLISS_APP_ID, PLAYGROUND_APP_ID)

if _DEV_MODE:
  BLISS_HOST = 'localhost:8080'
  BLISS_USER_CONTENT_HOST = 'localhost:9100'
  PLAYGROUND_HOST = 'localhost:9200'
else:
  BLISS_HOST = '{0}.appspot.com'.format(BLISS_APP_ID)
  BLISS_USER_CONTENT_HOST = ('{0}-dot-{1}.appspot.com'
                             .format(USER_CONTENT_PREFIX, BLISS_APP_ID))
  PLAYGROUND_HOST = '{0}.appspot.com'.format(PLAYGROUND_APP_ID)


def PrintAppIdsInMap():
  """Prints a new line delimited list of known app ids."""
  app_ids = set((BLISS_APP_ID, PLAYGROUND_APP_ID))
{'fraction_non_alphanumeric': 0.10849453322119428, 'fraction_numerical': 0.01345668629100084, 'mean_word_length': 4.65083135391924, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '445144', 'n_tokens_mistral': 870, 'n_tokens_neox': 793, 'n_words': 197}