<commit_before>language: python
python:
  - "2.6"
  - "2.7"
env:
  - DJANGO_VERSION="Django<1.5"
  - DJANGO_VERSION="Django<1.6"
  - DJANGO_VERSION="Django<1.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 https://github.com/opinkerfi/okconfig/zipball/master
  - pip install https://github.com/opinkerfi/okconfig/zipball/master || true
  - sudo touch /etc/okconfig.conf
  - sudo chown travis /etc/okconfig.conf
  - echo 'nagios_config /etc/nagios3/nagios.cfg' >> /etc/okconfig.conf
  - echo 'template_directory /etc/nagios3/okconfig/templates'  >> /etc/okconfig.conf
  - echo 'examples_directory /etc/nagios3/okconfig/examples'  >> /etc/okconfig.conf
  - echo 'destination_directory /etc/nagios3/okconfig' >> /etc/okconfig.conf
  - cat /etc/okconfig.conf
  - okconfig init
  - pip install $DJANGO_VERSION
  - pip install simplejson
  - pip install paramiko
  - pip install selenium
  - pip install https://github.com/pynag/pynag/zipball/master
  - python setup.py build
  - python setup.py install
  - cp -r adagios/etc/adagios/conf.d /etc/adagios/conf.d
  - cp -r adagios/etc/adagios.conf /etc/adagios
  - 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/okconfig/templates /etc/nagios3/okconfig/examples
  - mkdir -p /etc/nagios3/adagios<commit_msg>Revert "Travis: Explicitly copy adagios.conf"<commit_after>language: python
python:
  - "2.6"
  - "2.7"
env:
  - DJANGO_VERSION="Django<1.5"
  - DJANGO_VERSION="Django<1.6"
  - DJANGO_VERSION="Django<1.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 https://github.com/opinkerfi/okconfig/zipball/master
  - pip install https://github.com/opinkerfi/okconfig/zipball/master || true
  - sudo touch /etc/okconfig.conf
  - sudo chown travis /etc/okconfig.conf
  - echo 'nagios_config /etc/nagios3/nagios.cfg' >> /etc/okconfig.conf
  - echo 'template_directory /etc/nagios3/okconfig/templates'  >> /etc/okconfig.conf
  - echo 'examples_directory /etc/nagios3/okconfig/examples'  >> /etc/okconfig.conf
  - echo 'destination_directory /etc/nagios3/okconfig' >> /etc/okconfig.conf
  - cat /etc/okconfig.conf
  - okconfig init
  - pip install $DJANGO_VERSION
  - pip install simplejson
  - pip install paramiko
  - pip install selenium
  - pip install https://github.com/pynag/pynag/zipball/master
  - python setup.py build
  - python setup.py install
  - cp -r adagios/etc/adagios/conf.d /etc/adagios/conf.d
  - 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/okconfig/templates /etc/nagios3/okconfig/examples
  - mkdir -p /etc/nagios3/adagios
{'fraction_non_alphanumeric': 0.1388644366197183, 'fraction_numerical': 0.014084507042253521, 'mean_word_length': 3.1168478260869565, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, 'https://': 6, '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': '3889272', 'n_tokens_mistral': 1878, 'n_tokens_neox': 1828, 'n_words': 345}