<commit_before># BOX configuration



# Netbox Blue Specific

export BOX_DOCS=/Users/indika/dev/box/docs
export BOX_SAFECHAT=/Users/indika/dev/box/safechat



# Generic Stuff

SUBLIME_HOME_USER='/Users/indika/Library/Application Support/Sublime Text 3/Packages/User'
PYCHARM_CONFIG_HOME='/Users/indika/Library/Preferences/PyCharm30'

VIRTUALENV_ROOT=/Users/indika/.virtualenvs

# export CODE_LIBRARY=/Users/indika/dev/library/code-library

alias st='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
alias getpath='pwd | pbcopy'



function twitter()
{
    printf "Twitter\n"
    cd /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/twitter/test
}

function test_lego()
{
    printf "Twitter Testing on Lego\n"
    cd /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/twitter
    aup -r lego

    cd /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/twitter/test
    rununittest -n lego test_sent_direct_message.py
}

function update_lego()
{
    printf "Twitter Updating Lego\n"
    aup -r lego /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/

    printf "-> Flushing Redis Cache\n"
    ss lego 'redis-cli -n 1 flushdb'

    ss lego 'supervisorctl restart safechat:safechat-icap'

    cd /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/twitter/test
}

function fetch_cache()
{
    printf "Re-Fetching Debug cache from Lego\n"
    rm -rf /Users/indika/temp/debug_cache
    sc -r lego:/tmp/debug_cache /Users/indika/temp/debug_cache
}

function sync_cobalt()
{
    printf "Updating repositories in Cobalt\n"

    printf "Updating Boxen\n"
    cd /opt/boxen/my-boxen
    git commit -m 'autocommit'
    git pull origin master
    git push origin master

}



# activate
source $VIRTUALENV_ROOT/safechat/bin/activate

<commit_msg>adding syncs<commit_after># BOX configuration



# Netbox Blue Specific

export BOX_DOCS=/Users/indika/dev/box/docs
export BOX_SAFECHAT=/Users/indika/dev/box/safechat



# Generic Stuff

SUBLIME_HOME_USER='/Users/indika/Library/Application Support/Sublime Text 3/Packages/User'
PYCHARM_CONFIG_HOME='/Users/indika/Library/Preferences/PyCharm30'

VIRTUALENV_ROOT=/Users/indika/.virtualenvs

# export CODE_LIBRARY=/Users/indika/dev/library/code-library

alias st='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
alias getpath='pwd | pbcopy'



function twitter()
{
    printf "Twitter\n"
    cd /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/twitter/test
}

function test_lego()
{
    printf "Twitter Testing on Lego\n"
    cd /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/twitter
    aup -r lego

    cd /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/twitter/test
    rununittest -n lego test_sent_direct_message.py
}

function update_lego()
{
    printf "Twitter Updating Lego\n"
    aup -r lego /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/

    printf "-> Flushing Redis Cache\n"
    ss lego 'redis-cli -n 1 flushdb'

    ss lego 'supervisorctl restart safechat:safechat-icap'

    cd /Users/indika/dev/box/safechat/nbwebscan/src/nbwebscan/twitter/test
}

function fetch_cache()
{
    printf "Re-Fetching Debug cache from Lego\n"
    rm -rf /Users/indika/temp/debug_cache
    sc -r lego:/tmp/debug_cache /Users/indika/temp/debug_cache
}

function sync_cobalt()
{
    printf "Syncing repositories in Cobalt\n"

    printf "Syncing OH MY ZSH\n"
    cd /Users/indika/.oh-my-zsh
    git commit -m 'autocommit'
    git pull origin master
    git push origin master

    printf "Syncing Boxen\n"
    cd /opt/boxen/my-boxen
    git commit -m 'autocommit'
    git pull origin master
    git push origin master

    printf "Syncing Sublime\n"
    cd /opt/boxen/my-boxen
    git commit -m 'autocommit'
    git pull origin master
    git push origin master

}



# activate
source $VIRTUALENV_ROOT/safechat/bin/activate


{'fraction_non_alphanumeric': 0.10641627543035993, 'fraction_numerical': 0.0020865936358894104, 'mean_word_length': 3.543838862559242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '204328', 'n_tokens_mistral': 1459, 'n_tokens_neox': 1390, 'n_words': 275}