<commit_before>#!/usr/bin/bash

# REQUIRES ENV VARS: in particular, must define $CONDA_PY

# TODO: these should become cmd line arguments
ENV_NAME="openpathsampling-py$CONDA_PY"
INCLUDE_PACKAGES="all"

DEVTOOLS_DIR=`dirname "${BASH_SOURCE[0]}"`

conda create -q -y --name $ENV_NAME conda future pyyaml python=$CONDA_PY
source activate $ENV_NAME

conda config --env --add pinned_packages python=$CONDA_PY
PACKAGES=`python ${DEVTOOLS_DIR}/install_recipe_requirements.py --dry ${DEVTOOLS_DIR}/conda-recipe/meta.yaml | tr "\n" " "`
TESTING=`cat ${DEVTOOLS_DIR}/testing_requirements.txt | tr "\n" " "`
EXTRA=`cat ${DEVTOOLS_DIR}/optional_packages.txt | tr "\n" " "`
ALL_PACKAGES="$PACKAGES $TESTING $EXTRA"
echo $ALL_PACKAGES
conda install -y -q -c conda-forge -c omnia $ALL_PACKAGES<commit_msg>make python request explicit<commit_after>#!/usr/bin/bash

# REQUIRES ENV VARS: in particular, must define $CONDA_PY

# TODO: these should become cmd line arguments
ENV_NAME="openpathsampling-py$CONDA_PY"
DEVTOOLS_DIR=`dirname "${BASH_SOURCE[0]}"`

conda create -q -y --name $ENV_NAME conda future pyyaml python=$CONDA_PY
source activate $ENV_NAME

conda config --env --add pinned_packages python=$CONDA_PY
PACKAGES=`python ${DEVTOOLS_DIR}/install_recipe_requirements.py --dry ${DEVTOOLS_DIR}/conda-recipe/meta.yaml | tr "\n" " "`
TESTING=`cat ${DEVTOOLS_DIR}/testing_requirements.txt | tr "\n" " "`
EXTRA=`cat ${DEVTOOLS_DIR}/optional_packages.txt | tr "\n" " "`
PY_INSTALL="python=$CONDA_PY"
ALL_PACKAGES="$PACKAGES $TESTING $EXTRA"
#echo $ALL_PACKAGES
echo "conda install -y -q -c conda-forge -c omnia $PY_INSTALL $ALL_PACKAGES"
conda install -y -q -c conda-forge -c omnia $PY_INSTALL $ALL_PACKAGES
{'fraction_non_alphanumeric': 0.13778829095209935, 'fraction_numerical': 0.0011827321111768185, 'mean_word_length': 5.82258064516129, 'pattern_counts': {'":': 0, '<': 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': '5604510', 'n_tokens_mistral': 660, 'n_tokens_neox': 605, 'n_words': 148}