<commit_before>#!/bin/bash

# This script is largely based on numpy's travis setup
# We follow this rather closely

# Fail immediately on all errors
# Also print out commands as they are executed.
set -xe

uname -a
free -m
df -h
ulimit -a

# We want to control the environment, fully
mkdir -p builds
pushd builds
pip install --upgrade virtualenv

virtualenv --python=python sisl-venv
source sisl-venv/bin/activate
python -V
gcc --version

popd

# setuptools is part of requirements.txt
pip install --upgrade pip wheel

# fetch all common requirements (for running)
# then append the test specific requirements
# Use grep to remove comments
pip install --upgrade $(grep -v -e '^#' requirements.txt) \
    $(grep -v -e '^#' ci/requirements.txt)

# Optional packages
if [[ ${OPTIONAL_DEPENDENCIES:-false} == true ]]; then
    git submodule update --init files
    pip install --upgrade tqdm pathos matplotlib xarray
fi<commit_msg>test: added plotly to tests<commit_after>#!/bin/bash

# This script is largely based on numpy's travis setup
# We follow this rather closely

# Fail immediately on all errors
# Also print out commands as they are executed.
set -xe

uname -a
free -m
df -h
ulimit -a

# We want to control the environment, fully
mkdir -p builds
pushd builds
pip install --upgrade virtualenv

virtualenv --python=python sisl-venv
source sisl-venv/bin/activate
python -V
gcc --version

popd

# setuptools is part of requirements.txt
pip install --upgrade pip wheel

# fetch all common requirements (for running)
# then append the test specific requirements
# Use grep to remove comments
pip install --upgrade $(grep -v -e '^#' requirements.txt) \
    $(grep -v -e '^#' ci/requirements.txt)

# Optional packages
if [[ ${OPTIONAL_DEPENDENCIES:-false} == true ]]; then
    git submodule update --init files
    pip install --upgrade tqdm pathos matplotlib xarray plotly scikit-image sisl-gui
fi
{'fraction_non_alphanumeric': 0.08908803373748023, 'fraction_numerical': 0.0, 'mean_word_length': 3.745, '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': '1653810', 'n_tokens_mistral': 598, 'n_tokens_neox': 571, 'n_words': 248}