<commit_before><?php
namespace JsonRpc;

use JsonRpc\Base\Rpc;
use JsonRpc\Base\Request;
use JsonRpc\Base\Response;


class Server
{

  private $handler;
  private $transport = null;
  private $logger = null;
  private $assoc = false;
  private $requests = array();
  private $responses = array();
  private $error = null;
  private $handlerError = null;
  private $refClass = null;


  public function __construct($methodHandler, $transport = null)
  {

    ini_set('display_errors', '0');

    $this->handler = $methodHandler;
    $this->transport = $transport;

    if (!$this->transport)
    {
      $this->transport = new Transport\BasicServer();
    }

  }


  public function receive($input = '')
  {

    $this->init();
<commit_msg>set display_errors modifiable.<commit_after><?php
namespace JsonRpc;

use JsonRpc\Base\Rpc;
use JsonRpc\Base\Request;
use JsonRpc\Base\Response;


class Server
{

  private $handler;
  private $transport = null;
  private $logger = null;
  private $assoc = false;
  private $requests = array();
  private $responses = array();
  private $error = null;
  private $handlerError = null;
  private $refClass = null;


  public function __construct($methodHandler, $transport = null, $display_errors = 0)
  {

    ini_set('display_errors', $display_errors);

    $this->handler = $methodHandler;
    $this->transport = $transport;

    if (!$this->transport)
    {
      $this->transport = new Transport\BasicServer();
    }

  }


  public function receive($input = '')
  {

    $this->init();

{'fraction_non_alphanumeric': 0.13660130718954247, 'fraction_numerical': 0.00130718954248366, 'mean_word_length': 3.5701492537313433, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '774873', 'n_tokens_mistral': 498, 'n_tokens_neox': 476, 'n_words': 118}