<commit_before>#!/usr/bin/env python

from misc_parser import parse_misc
from gh_parser import parse_gh
from asset_parser import parse_asset
from docs_parser import parse_docs
from deploy_setup import deploy_setup

import copy, os

try: #check if the env already exists, it's better not to mess with existing stuff
    os.environ["wait_to_deploy"]
except KeyError:
    os.environ["wait_to_deploy"] = "False" #check to see if there is going to be a rebuild (if there are any deployment tokens present.)
else:
    print "\"wait_to_deploy\" already exists as an env variable. change it to something else."
    exit(1)

parse_misc()

rebuild_yml = {
    "language": ["objective-c"],
    "install": ["sh ./CI/unity_install.sh"],
    "script": ["sh ./CI/unity_build.sh"],
    "before_deploy": ["sh ./CI/pre_deploy.sh"],
    "env": {"global": ["verbose = %s" % os.environ["verbose"]]}
}

if os.environ["TRAVIS_PULL_REQUEST"] == "false" and not os.environ["TRAVIS_TAG"].strip():
    
    deploy_yml = copy.deepcopy(rebuild_yml) #yes it's slow, but there's no real substitute from what I could gather
    
    ini_docs = parse_docs()
    if ini_docs:
        deploy_yml["deploy"].append(ini_docs)
        print '------------------------------------------------------------------------------------------------------------------------'
        print "Deployment to Github Pages accepted. -----------------------------------------------------------------------------------"
        print '------------------------------------------------------------------------------------------------------------------------'
    
    ini_gh = parse_gh()
    if ini_gh:
        deploy_yml["deploy"].append(ini_gh)
        print '------------------------------------------------------------------------------------------------------------------------'
        print "Deployment to Github Releases accepted. --------------------------------------------------------------------------------"
        print '------------------------------------------------------------------------------------------------------------------------'
    
    ini_asset = parse_asset()
    if ini_asset:<commit_msg>Syntax error. God I suck.<commit_after>#!/usr/bin/env python

from misc_parser import parse_misc
from gh_parser import parse_gh
from asset_parser import parse_asset
from docs_parser import parse_docs
from deploy_setup import deploy_setup

import copy, os

try: #check if the env already exists, it's better not to mess with existing stuff
    os.environ["wait_to_deploy"]
except KeyError:
    os.environ["wait_to_deploy"] = "False" #check to see if there is going to be a rebuild (if there are any deployment tokens present.)
else:
    print "\"wait_to_deploy\" already exists as an env variable. change it to something else."
    exit(1)

parse_misc()

rebuild_yml = {
    "language": ["objective-c"],
    "install": ["sh ./CI/unity_install.sh"],
    "script": ["sh ./CI/unity_build.sh"],
    "before_deploy": ["sh ./CI/pre_deploy.sh"],
    "deploy": [],
    "env": {"global": ["verbose = %s" % os.environ["verbose"]]}
}

if os.environ["TRAVIS_PULL_REQUEST"] == "false" and not os.environ["TRAVIS_TAG"].strip():
    
    deploy_yml = copy.deepcopy(rebuild_yml) #yes it's slow, but there's no real substitute from what I could gather
    
    ini_docs = parse_docs()
    if ini_docs:
        deploy_yml["deploy"].append(ini_docs)
        print '------------------------------------------------------------------------------------------------------------------------'
        print "Deployment to Github Pages accepted. -----------------------------------------------------------------------------------"
        print '------------------------------------------------------------------------------------------------------------------------'
    
    ini_gh = parse_gh()
    if ini_gh:
        deploy_yml["deploy"].append(ini_gh)
        print '------------------------------------------------------------------------------------------------------------------------'
        print "Deployment to Github Releases accepted. --------------------------------------------------------------------------------"
        print '------------------------------------------------------------------------------------------------------------------------'
    
    ini_asset = parse_asset()
    if ini_asset:
{'fraction_non_alphanumeric': 0.378961874138723, 'fraction_numerical': 0.00045934772622875517, 'mean_word_length': 1.1807711567351027, 'pattern_counts': {'":': 13, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7173827', 'n_tokens_mistral': 1029, 'n_tokens_neox': 979, 'n_words': 298}