<commit_before>#!/bin/bash
[ -z "$DEBIAN_MIRROR" ] && DEBIAN_MIRROR=deb.debian.org

if [ -z "$NVM_VERSION" ] ; then
  echo get latest nvm release number ... 
  NVM_VERSION=$(git ls-remote --tags https://github.com/creationix/nvm master v\* | sed -r -n -e 's/.*(v[0-9\.]+)$/\1/p' | sort -V | tail -n 1)
fi
echo using nvm $NVM_VERSION

if [ -z "$NODE_VERSION" ] ; then
  if nvm 2> /dev/null ; then
    echo get latest node LTS release number
    NODE_VERSION=$(nvm ls-remote | grep LTS | tail -n 1 | sed -r -n -e 's/.*(v[0-9\.]+).*/\1/p')
  else
    NODE_VERSION=v6.11.4
  fi
fi
echo using node $NODE_VERSION
docker build \
  $DOCKER_BUILD_OPTIONS \
  --build-arg debian_mirror=$DEBIAN_MIRROR \
  --build-arg nvm_version=$NVM_VERSION \
  --build-arg node_version=$NODE_VERSION \
  -t doxel-dev \
  .
<commit_msg>fix nvm not found with bashbang -l<commit_after>#!/bin/bash -l
[ -z "$DEBIAN_MIRROR" ] && DEBIAN_MIRROR=deb.debian.org

if [ -z "$NVM_VERSION" ] ; then
  echo get latest nvm release number ... 
  NVM_VERSION=$(git ls-remote --tags https://github.com/creationix/nvm master v\* | sed -r -n -e 's/.*(v[0-9\.]+)$/\1/p' | sort -V | tail -n 1)
fi
echo using nvm $NVM_VERSION

if [ -z "$NODE_VERSION" ] ; then
  if nvm > /dev/null 2>&1 ; then
    echo get latest node LTS release number
    NODE_VERSION=$(nvm ls-remote | grep LTS | tail -n 1 | sed -r -n -e 's/.*(v[0-9\.]+).*/\1/p')
  else
    NODE_VERSION=v6.11.4
  fi
fi
echo using node $NODE_VERSION
docker build \
  $DOCKER_BUILD_OPTIONS \
  --build-arg debian_mirror=$DEBIAN_MIRROR \
  --build-arg nvm_version=$NVM_VERSION \
  --build-arg node_version=$NODE_VERSION \
  -t doxel-dev \
  .

{'fraction_non_alphanumeric': 0.17111650485436894, 'fraction_numerical': 0.016383495145631068, 'mean_word_length': 2.808314087759815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4181813', 'n_tokens_mistral': 726, 'n_tokens_neox': 684, 'n_words': 171}