<commit_before>#!/usr/bin/env bash

# Ensure the build directory exists
[[ -d "build" ]] || mkdir build

# Ensure that we have a copy of the ast extension
[[ -d "build/ast" ]] || git clone --depth 1 https://github.com/nikic/php-ast.git build/ast

# Install the ast extension
pushd ./build/ast
  phpize
  ./configure
  make
  make install
  echo "extension=ast.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
popd

# Update composer.
travis_retry composer self-update<commit_msg>Don't upgrade Composer. Travis handles this every 30-60 days.<commit_after>#!/usr/bin/env bash

# Ensure the build directory exists
[[ -d "build" ]] || mkdir build

# Ensure that we have a copy of the ast extension
[[ -d "build/ast" ]] || git clone --depth 1 https://github.com/nikic/php-ast.git build/ast

# Install the ast extension
pushd ./build/ast
  phpize
  ./configure
  make
  make install
  echo "extension=ast.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
popd

{'fraction_non_alphanumeric': 0.13817809621289662, 'fraction_numerical': 0.006141248720573183, 'mean_word_length': 3.5277777777777777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7007861', 'n_tokens_mistral': 339, 'n_tokens_neox': 331, 'n_words': 102}