<commit_before><?php

$path = dirname(__FILE__) . '/';

$srcRoot = $path . "src";
$buildRoot = $path . "build";

$fpath = $buildRoot . "myapp.phar";
 
$phar = new Phar($fpath, 
	FilesystemIterator::CURRENT_AS_FILEINFO |     	FilesystemIterator::KEY_AS_FILENAME, "myapp.phar");

$phar->buildFromDirectory($srcRoot,'/\.php$/'); 

$phar->setStub(file_get_contents($path . 'stub.php'));

//echo (int)chmod($fpath, 0777);

echo "Done!\007" . PHP_EOL;<commit_msg>Phar path fixed, fixing chmod<commit_after><?php

$path = dirname(__FILE__) . '/';

$srcRoot = $path . "src";
$buildRoot = $path . "build";

$fpath = $buildRoot . "/myapp.phar";
 
$phar = new Phar($fpath, 
	FilesystemIterator::CURRENT_AS_FILEINFO |     	FilesystemIterator::KEY_AS_FILENAME, "myapp.phar");

$phar->buildFromDirectory($srcRoot,'/\.php$/'); 

$phar->setStub(file_get_contents($path . 'stub.php'));

chmod($fpath, 0777);

echo "Done!\007" . PHP_EOL;
{'fraction_non_alphanumeric': 0.2045701849836779, 'fraction_numerical': 0.015233949945593036, 'mean_word_length': 5.0130718954248366, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7411973', 'n_tokens_mistral': 379, 'n_tokens_neox': 363, 'n_words': 56}