<commit_before>"""
This file should be used for declaring any global variables that need to be
pulled in from environment variables or are just used across multiple files.
"""

import os

def get_global_from_env(env_var, default):
    return default if env_var not in os.environ.keys() \
            else os.environ[env_var]


# Optional environment variable to configure for development
# export BH_URL='http://localhost:9000'
BH_URL = get_global_from_env('BH_URL', 'http://bashhub.com')

BH_USER_ID = get_global_from_env('BH_USER_ID', '')

BH_SYSTEM_ID = get_global_from_env('BH_SYSTEM_ID', '')

BH_HOME = "~/.bashhub" if "HOME" not in os.environ.keys() \
        else os.environ["HOME"] + '/.bashhub'

<commit_msg>Configured bashhub to use https by default<commit_after>"""
This file should be used for declaring any global variables that need to be
pulled in from environment variables or are just used across multiple files.
"""

import os

def get_global_from_env(env_var, default):
    return default if env_var not in os.environ.keys() \
            else os.environ[env_var]


# Optional environment variable to configure for development
# export BH_URL='http://localhost:9000'
BH_URL = get_global_from_env('BH_URL', 'https://bashhub.com')

BH_USER_ID = get_global_from_env('BH_USER_ID', '')

BH_SYSTEM_ID = get_global_from_env('BH_SYSTEM_ID', '')

BH_HOME = "~/.bashhub" if "HOME" not in os.environ.keys() \
        else os.environ["HOME"] + '/.bashhub'


{'fraction_non_alphanumeric': 0.11202185792349727, 'fraction_numerical': 0.00546448087431694, 'mean_word_length': 4.528301886792453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1430849', 'n_tokens_mistral': 494, 'n_tokens_neox': 467, 'n_words': 140}