<commit_before>#!/bin/bash

if [ -d "$FEATHER_HOME" ]; then
  echo "FEATHER_HOME already appears to be configured for $FEATHER_HOME"
  exit 0
fi

MODULES=( connect jsdom socket.io cradle yuitest daemon colorize cli underscore inherits node-uuid, clean-css, uglify-js )

echo -n "Where is your feather installation? [`pwd`]"
read FEATHER_HOME

if [ "$FEATHER_HOME" = "" ]; then
  FEATHER_HOME=`pwd`
fi

# Preferably append to .bashrc.  Most systems that use .bashrc typically don't use .profile by default (*buntu).

if [ -f "$HOME/.bashrc" ]; then
  echo "" >> ~/.bashrc
  echo "# Feather Vars" >> ~/.bashrc
  echo "export FEATHER_HOME=$FEATHER_HOME" >> ~/.bashrc
  echo "export PATH=\$FEATHER_HOME/bin:\$PATH" >> ~/.bashrc
  . $HOME/.bashrc
else
  echo "" >> ~/.profile
  echo "# Feather Vars" >> ~/.profile 
  echo "export FEATHER_HOME=$FEATHER_HOME" >> ~/.profile
  echo "export PATH=\$FEATHER_HOME/bin:\$PATH" >> ~/.profile
  . $HOME/.profile
fi

echo "Installing modules."
OLDPWD=`pwd`
cd $FEATHER_HOME

# Test for npm
NPMVER=`npm --version`
if [ "${NPMVER:0:1}" != "" ] && (("${NPMVER:0:1}" >= "1")); then

  for mod in ${MODULES[@]}
  do
    echo "Installing ${mod}"
    npm install ${mod}
  done

  cd featherdoc
  mkdir node_modules
  npm install node-markdown

  echo "Setup complete."
else
  echo "feather requires npm 1.0+"
fi

cd $OLDPWD<commit_msg>fixing socket.io version in npm install list<commit_after>#!/bin/bash

if [ -d "$FEATHER_HOME" ]; then
  echo "FEATHER_HOME already appears to be configured for $FEATHER_HOME"
  exit 0
fi

MODULES=( connect jsdom socket.io@0.6.18 cradle yuitest daemon colorize cli underscore inherits node-uuid clean-css uglify-js )

echo -n "Where is your feather installation? [`pwd`]"
read FEATHER_HOME

if [ "$FEATHER_HOME" = "" ]; then
  FEATHER_HOME=`pwd`
fi

# Preferably append to .bashrc.  Most systems that use .bashrc typically don't use .profile by default (*buntu).

if [ -f "$HOME/.bashrc" ]; then
  echo "" >> ~/.bashrc
  echo "# Feather Vars" >> ~/.bashrc
  echo "export FEATHER_HOME=$FEATHER_HOME" >> ~/.bashrc
  echo "export PATH=\$FEATHER_HOME/bin:\$PATH" >> ~/.bashrc
  . $HOME/.bashrc
else
  echo "" >> ~/.profile
  echo "# Feather Vars" >> ~/.profile 
  echo "export FEATHER_HOME=$FEATHER_HOME" >> ~/.profile
  echo "export PATH=\$FEATHER_HOME/bin:\$PATH" >> ~/.profile
  . $HOME/.profile
fi

echo "Installing modules."
OLDPWD=`pwd`
cd $FEATHER_HOME

# Test for npm
NPMVER=`npm --version`
if [ "${NPMVER:0:1}" != "" ] && (("${NPMVER:0:1}" >= "1")); then

  for mod in ${MODULES[@]}
  do
    echo "Installing ${mod}"
    npm install ${mod}
  done

  cd featherdoc
  mkdir node_modules
  npm install node-markdown

  echo "Setup complete."
else
  echo "feather requires npm 1.0+"
fi

cd $OLDPWD
{'fraction_non_alphanumeric': 0.1572463768115942, 'fraction_numerical': 0.007246376811594203, 'mean_word_length': 3.695578231292517, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '1243395', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1009, 'n_words': 295}