<commit_before>#!/bin/sh

if [ ! -d elation ]; then
  git clone https://github.com/jbaicoianu/elation.git
  cd elation
  git clone https://github.com/jbaicoianu/elation-engine.git components/engine
  git clone https://github.com/jbaicoianu/cyclone-physics-js.git components/physics
  git clone https://github.com/jbaicoianu/elation-share.git components/share
  #git clone https://github.com/jbaicoianu/janusweb.git components/janusweb
  ln -s `pwd`/.. components/janusweb
  ./elation web init
  ./elation component enable engine physics share janusweb
fi<commit_msg>Use npm for package instalation<commit_after>#!/bin/bash

echo "Installing dependencies..."
npm install
echo "done"
echo

echo "Creating directory tree..."
DEPENDENCYPATHS=$(npm ls -parseable)

declare -A dependencies

for DEP in $DEPENDENCYPATHS; do
  DEPNAME=$(basename $DEP)
  dependencies[$DEPNAME]=$DEP
done

if [ ! -d elation ]; then
  ln -s ${dependencies["elation"]}

  cd elation/components
  ln -s ${dependencies["elation-engine"]} engine
  ln -s ${dependencies["elation-share"]} share
  ln -s ${dependencies["cyclone-physics"]} physics
  ln -s ${dependencies["janusweb"]} janusweb

  cd ..
  ./elation web init
  ./elation component enable engine physics share janusweb
fi
echo "done"
{'fraction_non_alphanumeric': 0.12767644726407612, 'fraction_numerical': 0.0, 'mean_word_length': 4.214876033057851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '1248061', 'n_tokens_mistral': 444, 'n_tokens_neox': 417, 'n_words': 111}