<commit_before>#!/bin/bash

RETCODE=$(fw_exists ${IROOT}/php-composer.installed)
[ ! "$RETCODE" == 0 ] || { return 0; }

fw_depends php

mkdir -p php-composer
cd php-composer

fw_get https://getcomposer.org/installer -O composer-installer.php

# Use the PHP and composer from our PHP_HOME directory and 
# COMPOSER_HOME directories (should be specified in frameworks 
# install.sh file)
${PHP_HOME}/bin/php composer-installer.php --install-dir=${COMPOSER_HOME}

cd ..
touch ${IROOT}/php-composer.installed<commit_msg>correct install.sh for codeigniter<commit_after>#!/bin/bash

export PHP_HOME=${IROOT}/php-5.5.17
export COMPOSER_HOME=${IROOT}/php-composer
export PHP_FPM=${PHP_HOME}/sbin/php-fpm
export NGINX_HOME=${IROOT}/nginx

fw_depends php nginx composer

${PHP_HOME}/bin/php ${COMPOSER_HOME}/composer.phar install \
  --no-interaction --working-dir $TROOT \
  --no-progress --optimize-autoloader 
{'fraction_non_alphanumeric': 0.14174972314507198, 'fraction_numerical': 0.006644518272425249, 'mean_word_length': 4.87012987012987, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7572955', 'n_tokens_mistral': 338, 'n_tokens_neox': 326, 'n_words': 66}