<commit_before>sudo apt-get install acl
sudo sed -i 's/;date.timezone =/date.timezone = "America\/New_York"/g' /etc/php5/cli/php.ini
sudo sed -i 's/;date.timezone =/date.timezone = "America\/New_York"/g' /etc/php5/apache2/php.ini
sudo sh -c 'echo "xdebug.max_nesting_level = 1000" >> /etc/php5/cli/php.ini'
sudo sh -c 'echo "xdebug.max_nesting_level = 1000" >> /etc/php5/apache2/php.ini'
sudo start xvfb
wget http://selenium.googlecode.com/files/selenium-server-standalone-2.35.0.jar --quiet
java -jar selenium-server-standalone-2.35.0.jar &
wget http://getcomposer.org/composer.phar && chmod +x composer.phar && sudo mv composer.phar /usr/local/bin/composer
rm -rf app/cache/*
rm -rf app/logs/*
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
cp app/config/parameters.yml.dist app/config/parameters.yml
cat app/config/parameters.yml
touch build/iffalse.txt
echo -e "if (false) {" >> build/iffalse.txt
sed -i '/$env = $this->container->get( 'kernel' )->getEnvironment();/r build/iffalse.txt' $(pwd)/src/AppBundle/Controller/DefaultController.php
sed -i 's/if ($env == 'test') {/\/\/if ($env == 'test') {/g' $(pwd)/src/AppBundle/Controller/DefaultController.php<commit_msg>Fixed build script<commit_after>sudo apt-get install acl
sudo sed -i 's/;date.timezone =/date.timezone = "America\/New_York"/g' /etc/php5/cli/php.ini
sudo sed -i 's/;date.timezone =/date.timezone = "America\/New_York"/g' /etc/php5/apache2/php.ini
sudo sh -c 'echo "xdebug.max_nesting_level = 1000" >> /etc/php5/cli/php.ini'
sudo sh -c 'echo "xdebug.max_nesting_level = 1000" >> /etc/php5/apache2/php.ini'
sudo start xvfb
wget http://selenium.googlecode.com/files/selenium-server-standalone-2.35.0.jar --quiet
java -jar selenium-server-standalone-2.35.0.jar &
wget http://getcomposer.org/composer.phar && chmod +x composer.phar && sudo mv composer.phar /usr/local/bin/composer
rm -rf app/cache/*
rm -rf app/logs/*
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
cp app/config/parameters.yml.dist app/config/parameters.yml
#cat app/config/parameters.yml
#read only mode
touch build/iffalse.txt
echo -e "if (false) {" >> build/iffalse.txt
sed -i '/\$env = \$this->container->get( '\''kernel'\'' )->getEnvironment();/r build/iffalse.txt' $(pwd)/src/AppBundle/Controller/DefaultController.php
sed -i 's/if (\$env == '\''test'\'') {/ \/\/if (\$env == '\''test'\'') {/g' $(pwd)/src/AppBundle/Controller/DefaultController.php
{'fraction_non_alphanumeric': 0.19624512929507615, 'fraction_numerical': 0.01700318809776833, 'mean_word_length': 4.033868092691622, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3895897', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1122, 'n_words': 238}