<commit_before>#!/bin/sh

export LANG=C
export DEBIAN_FRONTEND=noninteractive

ruby_versions="2.0.0-p598 2.1.5 2.2.0-preview1"
export RUBY_CC_VERSION="2.0.0:2.1.5:2.2.0"

N_CPUS=$(grep '^processor' /proc/cpuinfo | wc -l)
export MAKE_N_JOBS=${N_CPUS}

export RUBYLIB="$(pwd)/pkg-config/lib"

run()
{
  "$@"
  if [ $? -ne 0 ]; then
    echo "Failed $@"
    exit 1
  fi
}

run sudo sed -i'' -e 's,http://us,http://jp,g' /etc/apt/sources.list
run sudo apt-get update

echo ttf-mscorefonts-installer \
     msttcorefonts/accepted-mscorefonts-eula \
     select true | \
  run sudo debconf-set-selections

run \
  sudo apt-get install -y -V \
  git \
  ruby \
  ruby-dev \
  build-essential \
  pkg-config \
  autoconf \
  libtool \
  gettext \
  intltool \
  gtk-doc-tools \
  libffi-dev \
  libglib2.0-dev \
  libgdk-pixbuf2.0-dev \
  gobject-introspection \
  flex \
  bison \
  python-dev \
  wine1.6 \
  mingw-w64
<commit_msg>windows: install libgtk2.0-bin for gtk-update-icon-cache<commit_after>#!/bin/sh

export LANG=C
export DEBIAN_FRONTEND=noninteractive

ruby_versions="2.0.0-p598 2.1.5 2.2.0-preview1"
export RUBY_CC_VERSION="2.0.0:2.1.5:2.2.0"

N_CPUS=$(grep '^processor' /proc/cpuinfo | wc -l)
export MAKE_N_JOBS=${N_CPUS}

export RUBYLIB="$(pwd)/pkg-config/lib"

run()
{
  "$@"
  if [ $? -ne 0 ]; then
    echo "Failed $@"
    exit 1
  fi
}

run sudo sed -i'' -e 's,http://us,http://jp,g' /etc/apt/sources.list
run sudo apt-get update

echo ttf-mscorefonts-installer \
     msttcorefonts/accepted-mscorefonts-eula \
     select true | \
  run sudo debconf-set-selections

run \
  sudo apt-get install -y -V \
  git \
  ruby \
  ruby-dev \
  build-essential \
  pkg-config \
  autoconf \
  libtool \
  gettext \
  intltool \
  gtk-doc-tools \
  libffi-dev \
  libglib2.0-dev \
  libgdk-pixbuf2.0-dev \
  gobject-introspection \
  libgtk2.0-bin \
  flex \
  bison \
  python-dev \
  wine1.6 \
  mingw-w64

{'fraction_non_alphanumeric': 0.15332286760858188, 'fraction_numerical': 0.035583464154892726, 'mean_word_length': 2.547309833024119, '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': '4701357', 'n_tokens_mistral': 909, 'n_tokens_neox': 848, 'n_words': 151}