<commit_before><commit_msg>sample client file<commit_after><?php
   $GLOBALS['THRIFT_ROOT'] = 'thrift';
   // Load up all the thrift stuff
   require_once($GLOBALS['THRIFT_ROOT'].'/Thrift.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/exception/TException.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/exception/TTransportException.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/factory/TStringFuncFactory.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/protocol/TBinaryProtocol.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/transport/TSocket.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/transport/TBufferedTransport.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/stringFunc/TStringFunc.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/stringFunc/Core.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/type/TType.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/type/TMessageType.php');
   require_once($GLOBALS['THRIFT_ROOT'].'/RecommenderService.php');
 
   // Create a thrift connection
   $socket = new Thrift\Transport\TSocket('kibitz.csail.mit.edu', '9888');
   $transport = new Thrift\Transport\TBufferedTransport($socket);
   $protocol = new Thrift\Protocol\TBinaryProtocol($transport);
   // Create a reposearch service client
   $client = new Recommender\RecommenderServiceClient($protocol);
 
   // Open up the connection
   $transport->open();
 
   echo implode(", ", $client->makeRecommendation(10));
?>
{'fraction_non_alphanumeric': 0.1738826815642458, 'fraction_numerical': 0.004189944134078212, 'mean_word_length': 5.990243902439024, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '2420228', 'n_tokens_mistral': 483, 'n_tokens_neox': 463, 'n_words': 53}