<commit_before><?php

  class Database {

    //> Setup your database settings and put isSet on true
    public  $isSet = true;
    private $databaseHost = "127.0.0.1";
    private $databaseUser = "";
    private $databasePassword = "";
    private $databaseName = "";
    private $DB;

    public function __construct() {
      if(!isset($this->DB)) {
        $this->DB = new PDO("mysql:host=". $this->databaseHost .";dbname=". $this->databaseName, $this->databaseUser, $this->databasePassword);
      }
    }

    public function newQuery($query) {
      return $this->DB->query($query);
    }

    public function newQueryArray($query, $array = array()) {
      $newQueryArray = $this->DB->prepare($query);
      $newQueryArray->execute($array);
      return $newQueryArray->fetch();
    }

    public function lastInsertId($query, $array) {
      $lastInsertId = $this->DB->prepare($query);
      $lastInsertId->execute($array);
      return $this->DB->lastInsertId();
    }

    public function allQueryArray($query, $array) {
      $newQueryArray = $this->DB->prepare($query);
      $newQueryArray->execute($array);
      return $newQueryArray->fetchAll();
    }

    public function rowCount($query, $array) {
      $rowCount = $this->DB->prepare($query);
      $rowCount->execute($array);
      return $rowCount->rowCount();
    }


  }
<commit_msg>Update Database.php<commit_after><?php

  class Database {

    //> Setup your database settings and put isSet on true
    public  $isSet = false;
    private $databaseHost = "127.0.0.1";
    private $databaseUser = "";
    private $databasePassword = "";
    private $databaseName = "";
    private $DB;

    public function __construct() {
      if(!isset($this->DB)) {
        $this->DB = new PDO("mysql:host=". $this->databaseHost .";dbname=". $this->databaseName, $this->databaseUser, $this->databasePassword);
      }
    }

    public function newQuery($query) {
      return $this->DB->query($query);
    }

    public function newQueryArray($query, $array = array()) {
      $newQueryArray = $this->DB->prepare($query);
      $newQueryArray->execute($array);
      return $newQueryArray->fetch();
    }

    public function lastInsertId($query, $array) {
      $lastInsertId = $this->DB->prepare($query);
      $lastInsertId->execute($array);
      return $this->DB->lastInsertId();
    }

    public function allQueryArray($query, $array) {
      $newQueryArray = $this->DB->prepare($query);
      $newQueryArray->execute($array);
      return $newQueryArray->fetchAll();
    }

    public function rowCount($query, $array) {
      $rowCount = $this->DB->prepare($query);
      $rowCount->execute($array);
      return $rowCount->rowCount();
    }


  }

{'fraction_non_alphanumeric': 0.1615193468228612, 'fraction_numerical': 0.004259850905218318, 'mean_word_length': 2.683660130718954, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6174847', 'n_tokens_mistral': 860, 'n_tokens_neox': 806, 'n_words': 161}