<commit_before><?php
date_default_timezone_set('UTC');
ini_set('default_charset','UTF-8');
mb_internal_encoding('UTF-8');
require_once(__DIR__.'/../vendor/autoload.php');


$exampleResponse = file_get_contents(__DIR__.'/example_responses/sticky_ads_example_1.txt');
$bidResponse = new \openrtb\BidResponse();
$bidResponse->hydrate($exampleResponse);

// $bidResponse = new \openrtb\BidResponse();
// $bidResponse->set('id','ABC123');
// $bid = new \openrtb\models\Bid();
// $bid->set('id','ABC123');
// $bid->set('impid','ABC123');
// $bid->set('price',1.2);
// $seatBid = new \openrtb\models\SeatBid();
// $seatBid->set('bid',array(
//   $bid
// ));
// $bidResponse->set('seatbid',$seatBid);
// var_dump($bidResponse->getDataAsJson());


//$_SERVER['argv'] = array('phpunit','--configuration=conf.xml');
//$_SERVER['argc'] = count($_SERVER['argv']);
//\PHPUnit_TextUI_Command::main();<commit_msg>updates<commit_after><?php
date_default_timezone_set('UTC');
ini_set('default_charset','UTF-8');
mb_internal_encoding('UTF-8');
require_once(__DIR__.'/../vendor/autoload.php');


$exampleResponse = file_get_contents(__DIR__.'/example_responses/sticky_ads_example_1.txt');
$bidResponse = new \openrtb\BidResponse();
$bidResponse->hydrate($exampleResponse);

// $bidResponse = new \openrtb\BidResponse();
// $bidResponse->set('id','ABC123');
// $bid = new \openrtb\models\Bid();
// $bid->set('id','ABC123');
// $bid->set('impid','ABC123');
// $bid->set('price',1.2);
// $seatBid = new \openrtb\models\SeatBid();
// $seatBid->set('bid',array(
//   $bid
// ));
// $bidResponse->set('seatbid',$seatBid);
// var_dump($bidResponse->getDataAsJson());


//$_SERVER['argv'] = array('phpunit','--configuration=conf.xml');
//$_SERVER['argc'] = count($_SERVER['argv']);
//\PHPUnit_TextUI_Command::main();

{'fraction_non_alphanumeric': 0.25265511458915596, 'fraction_numerical': 0.015651201788708775, 'mean_word_length': 6.103174603174603, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7078535', 'n_tokens_mistral': 685, 'n_tokens_neox': 656, 'n_words': 65}