<commit_before>#!/bin/bash

: ${RAILS_VERSION:='~> 5.0'}
RAILS_VERSION=${RAILS_VERSION%\"}
RAILS_VERSION=${RAILS_VERSION%\'}
RAILS_VERSION=${RAILS_VERSION#\"}
RAILS_VERSION=${RAILS_VERSION#\'}

USER_ID=${LOCAL_USER_ID:-1000}
export HOME=/home/app

echo "Starting with UID : $USER_ID"

if [[ "$USER_ID" != "$(id -u app)" ]]; then
  if [[ "$(cat /etc/issue | grep 'Alpine')" ]]; then
    deluser app;
    addgroup -g $USER_ID app;
    adduser -u $USER_ID -D -G app -s /bin/bash app;
    chown -R app:app /home/app;
  else<commit_msg>Bump rails version to 5.1<commit_after>#!/bin/bash

: ${RAILS_VERSION:='~> 5.1'}
RAILS_VERSION=${RAILS_VERSION%\"}
RAILS_VERSION=${RAILS_VERSION%\'}
RAILS_VERSION=${RAILS_VERSION#\"}
RAILS_VERSION=${RAILS_VERSION#\'}

USER_ID=${LOCAL_USER_ID:-1000}
export HOME=/home/app

echo "Starting with UID : $USER_ID"

if [[ "$USER_ID" != "$(id -u app)" ]]; then
  if [[ "$(cat /etc/issue | grep 'Alpine')" ]]; then
    deluser app;
    addgroup -g $USER_ID app;
    adduser -u $USER_ID -D -G app -s /bin/bash app;
    chown -R app:app /home/app;
  else
{'fraction_non_alphanumeric': 0.20018621973929238, 'fraction_numerical': 0.01303538175046555, 'mean_word_length': 4.168269230769231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '599046', 'n_tokens_mistral': 482, 'n_tokens_neox': 449, 'n_words': 97}