<commit_before>#!/usr/bin/env bash

set -e -u

echo "===> Setting up development workspace ..."

if [ ! -d $HOME/.homesick/repos/homeshick ]; then
	git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
fi

source $HOME/.homesick/repos/homeshick/homeshick.sh

[ ! -d ~/.homesick/repos/oh-my-zsh ] && homeshick -b -f clone robbyrussell/oh-my-zsh
[ ! -d ~/.homesick/repos/dotfiles ] && {
	homeshick -b -f clone kiesel/dotfiles
	sh -c "cd ~/.homesick/repos/dotfiles/ ; git remote add upstream <EMAIL>:kiesel/dotfiles.git"
}

if [ ! -e $HOME/bin/xp ]; then
	cd $HOME/bin
	wget 'http://xp-framework.net/downloads/releases/bin/setup' -O - | php
fi
<commit_msg>Install new xp-runners, install composer<commit_after>#!/usr/bin/env bash

set -e -u

echo "===> Setting up development workspace ..."

if [ ! -d $HOME/.homesick/repos/homeshick ]; then
	git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
fi

source $HOME/.homesick/repos/homeshick/homeshick.sh

[ ! -d ~/.homesick/repos/oh-my-zsh ] && homeshick -b -f clone robbyrussell/oh-my-zsh
[ ! -d ~/.homesick/repos/dotfiles ] && {
	homeshick -b -f clone kiesel/dotfiles
	sh -c "cd ~/.homesick/repos/dotfiles/ ; git remote add upstream <EMAIL>:kiesel/dotfiles.git"
}

if [ ! -e $HOME/bin/xp ]; then
	cd $HOME/bin
	wget 'https://github.com/xp-framework/xp-runners/releases/download/v5.2.0/setup' -O - | php
fi

# Generate xp.ini
grep -q 'PLEASE EDIT' ~/bin/xp.ini || {
  IFS=$'\r\n' PTH=($(find ~/dev/xp6 -maxdepth 2 -name '*.pth' | xargs -n 1 dirname | sed -e "s#$HOME#~#g"))
  # for E in $PTH; do echo -n "$E:"; done
}

[ -e ~/bin/composer ] || {
  curl -sS https://getcomposer.org/installer | php -- --install-dir=$HOME/bin/ --filename=composer
}

{'fraction_non_alphanumeric': 0.18993135011441648, 'fraction_numerical': 0.003432494279176201, 'mean_word_length': 3.1742243436754176, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4533362', 'n_tokens_mistral': 750, 'n_tokens_neox': 732, 'n_words': 152}