<commit_before># Author: <NAME>
# Modified by: <NAME>
# License: CC0 1.0 Universal http://creativecommons.org/publicdomain/zero/1.0/

import sys
import os
import yaml
import glob
import shutil
from conda_build.config import config
import subprocess
import traceback

branch = None
if 'TRAVIS_BRANCH' in os.environ:
    branch = os.environ['TRAVIS_BRANCH']
if 'APPVEYOR_REPO_BRANCH' in os.environ:
    branch = os.environ['APPVEYOR_REPO_BRANCH']

if(branch):
    if branch == sys.argv[2]:
        with open(os.path.join(sys.argv[1], 'meta.yaml')) as f:
            name = yaml.load(f)['package']['name']
        binary_package_glob = os.path.join(config.bldpkgs_dir,
                                           '{0}*.tar.bz2'.format(name))
        binary_package = glob.glob(binary_package_glob)[0]
        shutil.move(binary_package, '.')

        token = os.environ['ANACONDA_TOKEN']
        cmd = ['anaconda', 'upload', '-t', token, '--force']
        cmd.extend(glob.glob('*.tar.bz2'))
        try:
            subprocess.check_call(cmd)
        except subprocess.CalledProcessError:
            traceback.print_exc()<commit_msg>Trial and error learning<commit_after># Author: <NAME>
# Modified by: <NAME>
# License: CC0 1.0 Universal http://creativecommons.org/publicdomain/zero/1.0/

import sys
import os
import yaml
import glob
import shutil
from conda_build.config import config
import subprocess
import traceback

branch = None
if 'TRAVIS_BRANCH' in os.environ:
    branch = os.environ['TRAVIS_BRANCH']
if 'APPVEYOR_REPO_BRANCH' in os.environ:
    branch = os.environ['APPVEYOR_REPO_BRANCH']

if(branch):
    if branch == sys.argv[2]:
        with open(os.path.join(sys.argv[1], 'meta.yaml')) as f:
            name = yaml.load(f)['package']['name']
        binary_package_glob = os.path.join(config.bldpkgs_dir,
                                           '{0}*.tar.bz2'.format(name))
        binary_package = glob.glob(binary_package_glob)[0]
        shutil.move(binary_package, '.')

        token = os.environ['ANACONDA_TOKEN']
        cmd = ['anaconda', '--token', token, 'upload', '--force']
        cmd.extend(glob.glob('*.tar.bz2'))
        try:
            subprocess.check_call(cmd)
        except subprocess.CalledProcessError:
            traceback.print_exc()
{'fraction_non_alphanumeric': 0.1356453028972783, 'fraction_numerical': 0.009657594381035996, 'mean_word_length': 2.869269949066214, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1435767', 'n_tokens_mistral': 764, 'n_tokens_neox': 766, 'n_words': 150}