<commit_before><?php
require 'vendor/autoload.php';
Logger::configure(array(
    'rootLogger' => array(
        'appenders' => array('default'),
    ),
    'appenders' => array(
		'default' => array(
            'class' => 'LoggerAppenderNull',
        ),
		// uncomment to enable logging
        /*'default' => array(
            'class' => 'LoggerAppenderFile',
            'layout' => array(
                'class' => 'LoggerLayoutHtml'
            ),
            'params' => array(
            	'file' => 'log.html',
            	'append' => true
            )
        ),*/
    )
));

define('ROOT_DIR',dirname(__FILE__));
define('GWTPHP_DIR',ROOT_DIR.'/gwtphp');

require_once(GWTPHP_DIR.'/RemoteServiceServlet.class.php');
require_once(GWTPHP_DIR.'/lang/SimpleClassLoader.class.php');
require_once(GWTPHP_DIR.'/lang/ArrayMappedClassLoader.class.php');
require_once(GWTPHP_DIR.'/lang/TypeSignatures.class.php');

GWTPHPContext::getInstance()->setServicesRootDir(ROOT_DIR.'/gwtphp-maps');
GWTPHPContext::getInstance()->setGWTPHPRootDir(GWTPHP_DIR);

$servlet = new RemoteServiceServlet();

$mappedClassLoader = new FolderMappedClassLoader();
<commit_msg>update rpc.php to use composer<commit_after><?php
require_once dirname(__FILE__) . "/../vendor/autoload.php";

Logger::configure(array(
    'rootLogger' => array(
        'appenders' => array('default'),
    ),
    'appenders' => array(
        'default' => array(
            'class' => 'LoggerAppenderNull',
        ),
		// uncomment to enable logging
        /*'default' => array(
            'class' => 'LoggerAppenderFile',
            'layout' => array(
                'class' => 'LoggerLayoutHtml'
            ),
            'params' => array(
            	'file' => 'log.html',
            	'append' => true
            )
        ),*/
    )
));

GWTPHPContext::getInstance()->setServicesRootDir(dirname(__FILE__).'/gwtphp-maps');
GWTPHPContext::getInstance()->setGWTPHPRootDir(GWTPHP_DIR);

$servlet = new RemoteServiceServlet();

$mappedClassLoader = new FolderMappedClassLoader();

{'fraction_non_alphanumeric': 0.16626036079960996, 'fraction_numerical': 0.0, 'mean_word_length': 2.8355140186915886, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '1616696', 'n_tokens_mistral': 652, 'n_tokens_neox': 636, 'n_words': 91}