<commit_before>language: c
dist: bionic

before_install:
  - chmod +x js/install_emsdk.sh js/build_packages.sh js/link-parser/build.sh js/publish_packages.sh

install:
  - sudo apt-get update
  - sudo apt-get dist-upgrade
  - sudo apt-get install -y make m4 gcc g++ autoconf autoconf-archive pkg-config libtool  # link-grammar required dependencies
  - sudo apt-get install -y swig flex ant graphviz  # link-grammar optional dependencies
  - sudo ./js/install_emsdk.sh

script:
  - ./autogen.sh
  - ./configure --disable-python-bindings  # TODO: fix tests that fail with python bindings enabled
  - make
  - make check
  - sudo make install
  - sudo ldconfig
  - make installcheck
  - echo "The needs of the many outweigh the needs of the few." | /usr/local/bin/link-parser
  - sudo ./js/build_packages.sh
  - if [[ $TRAVIS_TAG == link-grammar-* ]]; then sudo ./js/publish_packages.sh; fi;

notifications:
  email: false<commit_msg>Publish only when success building & testing everything<commit_after>language: c
dist: bionic

before_install:
  - chmod +x js/install_emsdk.sh js/build_packages.sh js/link-parser/build.sh js/publish_packages.sh

install:
  - sudo apt-get update
  - sudo apt-get dist-upgrade
  - sudo apt-get install -y make m4 gcc g++ autoconf autoconf-archive pkg-config libtool  # link-grammar required dependencies
  - sudo apt-get install -y swig flex ant graphviz  # link-grammar optional dependencies
  - sudo ./js/install_emsdk.sh

script:
  - ./autogen.sh
  - ./configure --disable-python-bindings  # TODO: fix tests that fail with python bindings enabled
  - make
  - make check
  - sudo make install
  - sudo ldconfig
  - make installcheck
  - echo "The needs of the many outweigh the needs of the few." | /usr/local/bin/link-parser
  - sudo ./js/build_packages.sh

after_success:
  - if [[ $TRAVIS_TAG == link-grammar-* ]]; then sudo ./js/publish_packages.sh; fi;

notifications:
  email: false
{'fraction_non_alphanumeric': 0.10197710718002082, 'fraction_numerical': 0.001040582726326743, 'mean_word_length': 3.2171052631578947, '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': '852916', 'n_tokens_mistral': 655, 'n_tokens_neox': 620, 'n_words': 194}