<commit_before><?php

/**
* Synful API Framework.
* @author  <NAME> <<EMAIL>>
*
* Required            : [ PHP 7+, PHP-MySql Extension ]
* Optionally Required : [ PHP Sockets, PECL PThreads, MySQL Server ]
*
*  Synful API is a framework that allows you to create your own API's simply and quickly.
*  It supports running in two modes, 'standalone' and 'HTTP'.
*
*  To run it in standalone, run 'php synful.php standalone=true'
*      You can configure the standalone settings in 'config.ini'
*      under the 'system' section or via the command line.
*      (Standalone mode requires the PHP Sockets Module to be enabled)
*
*  To run it in HTTP mode, simply put the files on a web server and
*  configure the SQL information in 'config.ini'
*
* - Multi Thread Support -
*      Sunful API does fully support multiple requests when running in standalone mode
*      via multithread capabilities.
*
*      (PHP needs the PECL PThreads module enabled in order for this feature to work)
*
*      To enable the multithread feature when running in standalone mode,
*      simply enable it in 'config.ini' under the 'system' section.
*
* - Making A Request -
*      Requests are to be made in JSON format.
*
*
* Request Examples: https://gist.github.com/nathan-fiscaletti/16339c4c1e2f4e8183f3237f2d42d901
*/
if (file_exists('./vendor')) {
     include './vendor/autoload.php';
     \Synful\Synful::initialize();
} else {
     echo 'Please run \'composer install --no-scripts\' before running Synful.';
     exit(3);
}<commit_msg>Added vendor directory check<commit_after><?php

/**
* Synful API Framework.
* @author  <NAME> <<EMAIL>>
*
* Required            : [ PHP 7+, PHP-MySql Extension ]
* Optionally Required : [ PHP Sockets, PECL PThreads, MySQL Server ]
*
*  Synful API is a framework that allows you to create your own API's simply and quickly.
*  It supports running in two modes, 'standalone' and 'HTTP'.
*
*  To run it in standalone, run 'php synful.php standalone=true'
*      You can configure the standalone settings in 'config.ini'
*      under the 'system' section or via the command line.
*      (Standalone mode requires the PHP Sockets Module to be enabled)
*
*  To run it in HTTP mode, simply put the files on a web server and
*  configure the SQL information in 'config.ini'
*
* - Multi Thread Support -
*      Sunful API does fully support multiple requests when running in standalone mode
*      via multithread capabilities.
*
*      (PHP needs the PECL PThreads module enabled in order for this feature to work)
*
*      To enable the multithread feature when running in standalone mode,
*      simply enable it in 'config.ini' under the 'system' section.
*
* - Making A Request -
*      Requests are to be made in JSON format.
*
*
* Request Examples: https://gist.github.com/nathan-fiscaletti/16339c4c1e2f4e8183f3237f2d42d901
*/
if (file_exists('./vendor')) {
     include './vendor/autoload.php';
     \Synful\Synful::initialize();
} else {
     echo 'Please run \'composer install --no-scripts\' before running Synful.' . "\r\n";
     exit(3);
}
{'fraction_non_alphanumeric': 0.09889033942558746, 'fraction_numerical': 0.016318537859007835, 'mean_word_length': 3.310829817158931, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '1004015', 'n_tokens_mistral': 947, 'n_tokens_neox': 905, 'n_words': 370}