<commit_before><?php

namespace BrowserStack;

use Exception;
use BrowserStack\LocalBinary;
use BrowserStack\LocalException;

error_reporting(1);

class Local {

  private $handle = NULL;
  private $pipes = array();
  private $loghandle = NULL;
  
  public function __construct() {
    $this->key = getenv("BROWSERSTACK_ACCESS_KEY");
    $this->logfile = getcwd() . "/local.log";
  }

  public function __destruct() {
  }

  public function isRunning() {
    if (is_null($this->handle))
      return False;

    $status = proc_get_status($this->handle);
    return $status["running"];
  }

  public function add_args($arg_key, $value = NULL) {
    if ($arg_key == "key")
      $this->key = $value;
    elseif ($arg_key == "binaryPath")
      $this->binary_path = $value;<commit_msg>kill int<commit_after><?php

namespace BrowserStack;

use Exception;
use BrowserStack\LocalBinary;
use BrowserStack\LocalException;

error_reporting(1);

class Local {

  private $handle = NULL;
  private $pipes = array();
  private $loghandle = NULL;
  private $pid = NULL;
  
  public function __construct() {
    $this->key = getenv("BROWSERSTACK_ACCESS_KEY");
    $this->logfile = getcwd() . "/local.log";
  }

  public function __destruct() {
  }

  public function isRunning() {
    if (is_null($this->handle))
      return False;

    $status = proc_get_status($this->handle);
    return $status["running"];
  }

  public function add_args($arg_key, $value = NULL) {
    if ($arg_key == "key")
      $this->key = $value;
    elseif ($arg_key == "binaryPath")
      $this->binary_path = $value;
{'fraction_non_alphanumeric': 0.14601769911504425, 'fraction_numerical': 0.0012642225031605564, 'mean_word_length': 3.6558823529411764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '2301725', 'n_tokens_mistral': 534, 'n_tokens_neox': 514, 'n_words': 119}