<commit_before>language: python

python:
  - 2.6
  - 2.7
  - 3.2
  - 3.3
  - 3.4

env:
  - NET_SNMP_VERSION=5.7.2
  - NET_SNMP_VERSION=5.7.3

before_install:
  # Install build dependencies
  - sudo apt-get update
  - sudo apt-get install -y autoconf libtool make libperl-dev python-dev

  # Download and extract the required version of Net-SNMP
  - wget http://downloads.sourceforge.net/sourceforge/net-snmp/net-snmp-$NET_SNMP_VERSION.tar.gz
  - tar zxvf net-snmp-$NET_SNMP_VERSION.tar.gz
  - cd net-snmp-$NET_SNMP_VERSION

  # Build and install Net-SNMP
  - autoreconf -f -i
  - ./configure
    --prefix=/usr/local
    --enable-ucd-snmp-compatibility
    --enable-ipv6
    --with-default-snmp-version="3"
    --with-sys-contact="root@localhost"
    --with-sys-location="Unknown"
    --with-logfile="/var/log/snmpd.log"
    --with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod"
    --with-persistent-directory="/var/net-snmp"
  - make -j4 NETSNMP_DONT_CHECK_VERSION=1
  - sudo make install
  - sudo ldconfig
  - cd ..

  # Clean up the extracted files
  - rm -rf net-snmp-$NET_SNMP_VERSION

  # Display the build version of Net-SNMP
  - net-snmp-config --version

  # Install the SNMP MIBs
  - sudo apt-get install -y snmp-mibs-downloader

  # Start up SNMPD with our test config
  - snmpd -c tests/snmpd.conf

  # Ensure that all mibs are loaded by the SNMP client/client library
  # SNMP will prefer $HOME/.snmp/snmp.conf over /usr/local/etc/snmp.conf
  - mkdir -m 0755 ~/.snmp
  - echo 'mibs +ALL' > ~/.snmp/snmp.conf

install:
  # Install the Coveralls library
  - pip install coveralls

script:
  # Run the unit tests using py.test
  - python setup.py test

after_script:
  # Stop the SNMPD daemon
  - pkill snmpd

after_success:
  # Send coverage statistics to Coveralls
  coveralls
<commit_msg>travis.yml: use snmpd -C to skip loading any other default snmpd configuration files; this will help when testing out mac versions<commit_after>language: python

python:
  - 2.6
  - 2.7
  - 3.2
  - 3.3
  - 3.4

env:
  - NET_SNMP_VERSION=5.7.2
  - NET_SNMP_VERSION=5.7.3

before_install:
  # Install build dependencies
  - sudo apt-get update
  - sudo apt-get install -y autoconf libtool make libperl-dev python-dev

  # Download and extract the required version of Net-SNMP
  - wget http://downloads.sourceforge.net/sourceforge/net-snmp/net-snmp-$NET_SNMP_VERSION.tar.gz
  - tar zxvf net-snmp-$NET_SNMP_VERSION.tar.gz
  - cd net-snmp-$NET_SNMP_VERSION

  # Build and install Net-SNMP
  - autoreconf -f -i
  - ./configure
    --prefix=/usr/local
    --enable-ucd-snmp-compatibility
    --enable-ipv6
    --with-default-snmp-version="3"
    --with-sys-contact="root@localhost"
    --with-sys-location="Unknown"
    --with-logfile="/var/log/snmpd.log"
    --with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod"
    --with-persistent-directory="/var/net-snmp"
  - make -j4 NETSNMP_DONT_CHECK_VERSION=1
  - sudo make install
  - sudo ldconfig
  - cd ..

  # Clean up the extracted files
  - rm -rf net-snmp-$NET_SNMP_VERSION

  # Display the build version of Net-SNMP
  - net-snmp-config --version

  # Install the SNMP MIBs
  - sudo apt-get install -y snmp-mibs-downloader

  # Start up SNMPD with our test config
  - snmpd -C -c tests/snmpd.conf

  # Ensure that all mibs are loaded by the SNMP client/client library
  # SNMP will prefer $HOME/.snmp/snmp.conf over /usr/local/etc/snmp.conf
  - mkdir -m 0755 ~/.snmp
  - echo 'mibs +ALL' > ~/.snmp/snmp.conf

install:
  # Install the Coveralls library
  - pip install coveralls

script:
  # Run the unit tests using py.test
  - python setup.py test

after_script:
  # Stop the SNMPD daemon
  - pkill snmpd

after_success:
  # Send coverage statistics to Coveralls
  coveralls

{'fraction_non_alphanumeric': 0.11226114649681529, 'fraction_numerical': 0.012738853503184714, 'mean_word_length': 2.7652347652347653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2516419', 'n_tokens_mistral': 1444, 'n_tokens_neox': 1393, 'n_words': 349}