<commit_before># The language in this case has no bearing - we are going to be making use of "conda" for a
# python distribution for the scientific python stack.
language: c

env:
    global:
        - TARGET_ARCH="x64"
        - CONDA_INSTALL_LOCN="${HOME}/conda"
        # Defines BINSTAR_TOKEN for astropy binstar channel
        - secure: "<KEY>

    matrix:
        - CONDA_PY=27
          CONDA_NPY=19
        - CONDA_PY=34
          CONDA_NPY=19

install:
    # Install miniconda, always python2, because obvious-ci needs python2.
    - python ./Obvious-CI/bootstrap-obvious-ci-and-miniconda.py ${CONDA_INSTALL_LOCN} ${TARGET_ARCH} 2 --without-obvci
    - export PATH=${CONDA_INSTALL_LOCN}/bin:$PATH
    - conda config --set always_yes true
    - conda update conda
    # Install a couple of dependencies we need for sure.
    - conda install --yes astropy conda-build binstar jinja2
    - conda config --add channels astropy
    # Install obvious-ci
    - cd Obvious-CI; python setup.py install; cd ..

script:
    # Get ready to build.
    - python affiliate-builder/prepare_packages.py requirements.txt
    - if [[ -d recipes ]]; then obvci_conda_build_dir.py --disable-upload recipes astropy; fi
    # Build bdist_conda-based packages
    - if [[ -d bdist_conda ]]; then bash build_bdist.sh; fi

after_success:
    # Upload to binstar...this should probably be done as the bdists are built.
    - python affiliate-builder/upload_bdists.py<commit_msg>Install miniconda whose python version matches CONDA_PY<commit_after># The language in this case has no bearing - we are going to be making use of "conda" for a
# python distribution for the scientific python stack.
language: c

env:
    global:
        - TARGET_ARCH="x64"
        - CONDA_INSTALL_LOCN="${HOME}/conda"
        # Defines BINSTAR_TOKEN for astropy binstar channel
        - secure: "<KEY>

    matrix:
        - CONDA_PY=27
          CONDA_NPY=19
        - CONDA_PY=34
          CONDA_NPY=19

install:
    # Install miniconda, always the version specified by CONDA_PY, because
    # bdist_conda does not properly build python 3 packages in a python 2
    # base installation. See https://github.com/conda/conda-build/issues/132
    - python ./Obvious-CI/bootstrap-obvious-ci-and-miniconda.py ${CONDA_INSTALL_LOCN} ${TARGET_ARCH} ${CONDA_PY::1} --without-obvci
    - export PATH=${CONDA_INSTALL_LOCN}/bin:$PATH
    - conda config --set always_yes true
    - conda update conda
    # Install a couple of dependencies we need for sure.
    - conda install --yes astropy conda-build binstar jinja2
    - conda config --add channels astropy
    # Install obvious-ci; run 2to3 first if the build is python 3.
    - cd Obvious-CI; if [[ ${CONDA_PY::1} == 3 ]]; then 2to3 -w .; fi; python setup.py install; cd ..

script:
    # Get ready to build.
    - python affiliate-builder/prepare_packages.py requirements.txt
    - if [[ -d recipes ]]; then obvci_conda_build_dir.py --disable-upload recipes astropy; fi
    # Build bdist_conda-based packages
    - if [[ -d bdist_conda ]]; then bash build_bdist.sh; fi

after_success:
    # Upload to binstar...this should probably be done as the bdists are built.
    - python affiliate-builder/upload_bdists.py
{'fraction_non_alphanumeric': 0.09285714285714286, 'fraction_numerical': 0.011801242236024845, 'mean_word_length': 2.843675417661098, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2423834', 'n_tokens_mistral': 1051, 'n_tokens_neox': 1017, 'n_words': 322}