<commit_before>#!/bin/bash
set -e
# from: http://www.tomaz.me/2013/12/02/running-travis-ci-tests-on-arm.html
# Based on a test script from avsm/ocaml repo https://github.com/avsm/ocaml

CHROOT_DIR=/tmp/arm-chroot
MIRROR=http://s3.armhf.com/dist/bone/debian-wheezy-7.5-rootfs-3.14.4.1-bone-armhf.com.tar.xz
VERSION=wheezy
CHROOT_ARCH=armhf

# Debian package dependencies for the host
HOST_DEPENDENCIES="debootstrap qemu-user-static binfmt-support sbuild"

# Debian package dependencies for the chrooted environment
GUEST_DEPENDENCIES="pv"

# Command used to run the tests
TEST_COMMAND="uname -a"

function setup_arm_chroot {
  # Host dependencies
  sudo apt-get install -qq -y ${HOST_DEPENDENCIES}

  # Create chrooted environment
  sudo mkdir -p ${CHROOT_DIR}
  wget  ${MIRROR}
  sudo tar xf debian-wheezy-7.5-rootfs-3.14.4.1-bone-armhf.com.tar.xz -C ${CHROOT_DIR}

  # Create file with environment variables which will be used inside chrooted
  # environment
  echo "export ARCH=${ARCH}" > envvars.sh
  echo "export TRAVIS_BUILD_DIR=${TRAVIS_BUILD_DIR}" >> envvars.sh
  chmod a+x envvars.sh

  # Install dependencies inside chroot
  sudo cp /usr/bin/qemu-arm-static ${CHROOT_DIR}/usr/bin/<commit_msg>duplicate hosts<commit_after>#!/bin/bash
set -e
# from: http://www.tomaz.me/2013/12/02/running-travis-ci-tests-on-arm.html
# Based on a test script from avsm/ocaml repo https://github.com/avsm/ocaml

CHROOT_DIR=/tmp/arm-chroot
MIRROR=http://s3.armhf.com/dist/bone/debian-wheezy-7.5-rootfs-3.14.4.1-bone-armhf.com.tar.xz
VERSION=wheezy
CHROOT_ARCH=armhf

# Debian package dependencies for the host
HOST_DEPENDENCIES="debootstrap qemu-user-static binfmt-support sbuild"

# Debian package dependencies for the chrooted environment
GUEST_DEPENDENCIES="pv"

# Command used to run the tests
TEST_COMMAND="uname -a"

function setup_arm_chroot {
  # Host dependencies
  sudo apt-get install -qq -y ${HOST_DEPENDENCIES}

  # Create chrooted environment
  sudo mkdir -p ${CHROOT_DIR}
  wget  ${MIRROR}
  sudo tar xf debian-wheezy-7.5-rootfs-3.14.4.1-bone-armhf.com.tar.xz -C ${CHROOT_DIR}

  # Create file with environment variables which will be used inside chrooted
  # environment
  echo "export ARCH=${ARCH}" > envvars.sh
  echo "export TRAVIS_BUILD_DIR=${TRAVIS_BUILD_DIR}" >> envvars.sh
  chmod a+x envvars.sh

  # Install dependencies inside chroot
  sudo cp /usr/bin/qemu-arm-static ${CHROOT_DIR}/usr/bin/
  cp /etc/hosts ${CHROOT_DIR}/etc/
{'fraction_non_alphanumeric': 0.12013120131201312, 'fraction_numerical': 0.01886018860188602, 'mean_word_length': 4.269978401727862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 4, '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': '6761444', 'n_tokens_mistral': 959, 'n_tokens_neox': 915, 'n_words': 203}