<commit_before>dist: trusty

language:
  - python
python:
  - "2.7"

cache:
  directories:
    - download
    - data

before_install:
  - deactivate  # leaving Travis' virtualenv first since otherwise Jupyter/IPython gets confused with conda inside a virtualenv (See: https://github.com/ipython/ipython/issues/8898)
  - mkdir -p download
  - cd download
  - travis_retry wget -c http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - bash miniconda.sh -b -f -p ~/miniconda
  - cd ..
  - export PATH=~/miniconda/bin:$PATH
  - conda update --yes conda

install:
  # Install binary distribution of scientific python modules
  - test -e ~/miniconda/envs/test/bin/activate || ( rm -rf ~/miniconda/envs/test; conda create --yes -n test python=$TRAVIS_PYTHON_VERSION )
  - source activate test
  - conda install --yes numpy scipy pip
  # Install all remaining dependencies as per our README
  - pip install -r python-package-requirements.txt

script:

  # Download data
  - chmod +x scripts/get_polarity.sh
  - scripts/get_polarity.sh
  - chmod +x scripts/get_senna.sh
  - scripts/get_senna.sh
  - chmod +x scripts/get_word_freq.sh
  - scripts/get_word_freq.sh
  # Run test
  - python shalo_test.py<commit_msg>fixing travis build<commit_after>dist: trusty

language:
  - python
python:
  - "2.7"

cache:
  directories:
    - download
    - data

before_install:
  - deactivate  # leaving Travis' virtualenv first since otherwise Jupyter/IPython gets confused with conda inside a virtualenv (See: https://github.com/ipython/ipython/issues/8898)
  - mkdir -p download
  - cd download
  - travis_retry wget -c http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - bash miniconda.sh -b -f -p ~/miniconda
  - cd ..
  - export PATH=~/miniconda/bin:$PATH
  - conda update --yes conda

install:
  # Install binary distribution of scientific python modules
  - test -e ~/miniconda/envs/test/bin/activate || ( rm -rf ~/miniconda/envs/test; conda create --yes -n test python=$TRAVIS_PYTHON_VERSION )
  - source activate test
  - conda install --yes numpy scipy pip
  # Install all remaining dependencies as per our README
  - pip install -r python-package-requirements.txt

script:

  # Download data
  - chmod +x scripts/get_polarity.sh
  - scripts/get_polarity.sh
  - chmod +x scripts/get_senna.sh
  - scripts/get_senna.sh
  - chmod +x scripts/get_word_freq.sh
  - scripts/get_word_freq.sh
  # Run test
  #- python shalo_test.py
  - python fit_model.py fasttext config/polarity.json
{'fraction_non_alphanumeric': 0.1064653503677894, 'fraction_numerical': 0.010065814943863724, 'mean_word_length': 3.088607594936709, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1714393', 'n_tokens_mistral': 947, 'n_tokens_neox': 926, 'n_words': 235}