<commit_before>#!/bin/bash
rm -rf json/
mkdir json

function getSamples () {
  ls -la -fd $(find $1) | grep '.js' | xargs -I{} basename {} .js | jo -pa
}

pathArr=()
baseNameArr=()
for path in $(find ./samples/* -maxdepth 0); do
  if [ -d $path ] ; then
    pathArr+=("$path")
    bn=$(basename $path)
    getSamples $path > json/samples_$bn.json
  fi
done<commit_msg>rename samples -> examples in makeSamplePathList.sh<commit_after>#!/bin/bash
rm -rf json/
mkdir json

function getExamples () {
  ls -la -fd $(find $1) | grep '.js' | xargs -I{} basename {} .js | jo -pa
}

pathArr=()
baseNameArr=()
for path in $(find ./examples/* -maxdepth 0); do
  if [ -d $path ] ; then
    pathArr+=("$path")
    bn=$(basename $path)
    getExamples $path > json/examples_$bn.json
  fi
done
{'fraction_non_alphanumeric': 0.18123393316195371, 'fraction_numerical': 0.005141388174807198, 'mean_word_length': 3.143617021276596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6848371', 'n_tokens_mistral': 309, 'n_tokens_neox': 289, 'n_words': 89}