<commit_before>#!/bin/bash
set -e

SRCDIR=$1
DSTDIR=$2

${SRCDIR}/Installation/file-list-js.sh ${SRCDIR} | while read a; do
  if test -f "$DSTDIR/$a";  then
    echo "$DSTDIR/$a: already exists, giving up"
    exit 1
  fi

  FROM="${SRCDIR}/$a"
  TO="${DSTDIR}/$a"
  DIR=`dirname "${TO}"`
  
  test -d "${DIR}" || mkdir -p "${DIR}"
  cp -n "${FROM}" "${TO}"
done
<commit_msg>by CoDEmanX: fix file permissions before installing<commit_after>#!/bin/bash
set -e

SRCDIR=$1
DSTDIR=$2

${SRCDIR}/Installation/file-list-js.sh ${SRCDIR} | while read a; do
  if test -f "$DSTDIR/$a";  then
    echo "$DSTDIR/$a: already exists, giving up"
    exit 1
  fi

  FROM="${SRCDIR}/$a"
  TO="${DSTDIR}/$a"
  DIR=`dirname "${TO}"`
  
  chmod a+r "${FROM}"
  test -d "${DIR}" || mkdir -p "${DIR}"
  cp -n "${FROM}" "${TO}"
done

{'fraction_non_alphanumeric': 0.22592592592592592, 'fraction_numerical': 0.007407407407407408, 'mean_word_length': 3.360215053763441, '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': '1852420', 'n_tokens_mistral': 344, 'n_tokens_neox': 338, 'n_words': 89}