<commit_before>language: python
python:
  - "2.6"
  - "2.7"
script:
  - cd -
  - cd adagios
  - python manage.py test
install:
  - whoami
  - sudo apt-get update
  - sudo apt-get install nagios3 check-mk-livestatus pnp4nagios python-simplejson python-django -y
  - sudo usermod travis -G nagios -a
  - sudo chown -R nagios:nagios /etc/nagios3
  - sudo chmod -R 777 /etc/nagios3
  - sudo chmod -R a+rx /var/log/nagios3/
  - sudo mkdir -p /etc/adagios/
  - sudo chown -R travis /etc/adagios/
  - sudo usermod -G www-data nagios
  - sudo sed -i 's/RUN.*/RUN="yes"/' /etc/default/npcd
  - sudo pip install okconfig
  - pip install -r requirements.txt
  - python setup.py build
  - python setup.py install
  - pynag config --append "broker_module=/usr/lib/check_mk/livestatus.o /var/lib/nagios3/rw/livestatus"
  - pynag config --set "process_performance_data=1"
  - pynag config --append "broker_module=/usr/lib/pnp4nagios/npcdmod.o config_file=/etc/pnp4nagios/npcd.cfg"
  - pynag config --set 'nagios_binary="/usr/sbin/nagios3"' --filename /etc/adagios/adagios.conf
  - pynag config --set 'nagios_init="/etc/init.d/nagios3"' --filename /etc/adagios/adagios.conf
  - pynag config --set 'nagios_config="/etc/nagios3/nagios.cfg"' --filename /etc/adagios/adagios.conf
  - mkdir -p /etc/nagios3/adagios
  - pynag config --append cfg_dir=/etc/nagios3/adagios
  - cd /etc/nagios3/
  - git config --global user.email "<EMAIL>"
  - git config --global user.name "Adagios buildbot running inside travis"
  - git init
  - git add .
  - git commit -a -m "Initial commit"
  - sudo service nagios3 reload
  - sudo service npcd start
  - sudo chmod -R 777 /var/lib/nagios3
notifications:
  email: false<commit_msg>travis.yml - install pynag straight from github<commit_after>language: python
python:
  - "2.6"
  - "2.7"
script:
  - cd -
  - cd adagios
  - python manage.py test
install:
  - whoami
  - sudo apt-get update
  - sudo apt-get install nagios3 check-mk-livestatus pnp4nagios python-simplejson python-django -y
  - sudo usermod travis -G nagios -a
  - sudo chown -R nagios:nagios /etc/nagios3
  - sudo chmod -R 777 /etc/nagios3
  - sudo chmod -R a+rx /var/log/nagios3/
  - sudo mkdir -p /etc/adagios/
  - sudo chown -R travis /etc/adagios/
  - sudo usermod -G www-data nagios
  - sudo sed -i 's/RUN.*/RUN="yes"/' /etc/default/npcd
  - sudo pip install okconfig
  - sudo pip install git+https://github.com/pynag/pynag.git
  - pip install -r requirements.txt
  - python setup.py build
  - python setup.py install
  - pynag config --append "broker_module=/usr/lib/check_mk/livestatus.o /var/lib/nagios3/rw/livestatus"
  - pynag config --set "process_performance_data=1"
  - pynag config --append "broker_module=/usr/lib/pnp4nagios/npcdmod.o config_file=/etc/pnp4nagios/npcd.cfg"
  - pynag config --set 'nagios_binary="/usr/sbin/nagios3"' --filename /etc/adagios/adagios.conf
  - pynag config --set 'nagios_init="/etc/init.d/nagios3"' --filename /etc/adagios/adagios.conf
  - pynag config --set 'nagios_config="/etc/nagios3/nagios.cfg"' --filename /etc/adagios/adagios.conf
  - mkdir -p /etc/nagios3/adagios
  - pynag config --append cfg_dir=/etc/nagios3/adagios
  - cd /etc/nagios3/
  - git config --global user.email "<EMAIL>"
  - git config --global user.name "Adagios buildbot running inside travis"
  - git init
  - git add .
  - git commit -a -m "Initial commit"
  - sudo service nagios3 reload
  - sudo service npcd start
  - sudo chmod -R 777 /var/lib/nagios3
notifications:
  email: false
{'fraction_non_alphanumeric': 0.13117106773823192, 'fraction_numerical': 0.015499425947187142, 'mean_word_length': 2.8338833883388337, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '4753898', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1387, 'n_words': 330}