<commit_before><?php
abstract class PDORepository
{
  const USERNAME = "root";
  const PASSWORD = "";
  const HOST = "localhost";
  const DB = "grupo13";

  protected function getConnection()
  {
    $u = self::USERNAME;
    $p = self::PASSWORD;
    $db = self::DB;
    $host = self::HOST;
    $connection = new PDO("mysql:dbname=$db;host=$host", $u, $p);
    $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    return $connection;
  }

  protected function newPreparedStmt($sql)
  {
    $connection = $this->getConnection();
    return $connection->prepare($sql);
  }

  protected function queryList($sql, $args = [])
  {
    $stmt = $this->newPreparedStmt($sql);
    $stmt->execute($args);
    return $stmt->fetchAll();
  }
}<commit_msg>Base de datos, vuelve el usuario grupo13<commit_after><?php
abstract class PDORepository
{
  const USERNAME = "grupo13";
  const PASSWORD = "<PASSWORD>";
  const HOST = "localhost";
  const DB = "grupo13";

  protected function getConnection()
  {
    $u = self::USERNAME;
    $p = self::PASSWORD;
    $db = self::DB;
    $host = self::HOST;
    $connection = new PDO("mysql:dbname=$db;host=$host", $u, $p);
    $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    return $connection;
  }

  protected function newPreparedStmt($sql)
  {
    $connection = $this->getConnection();
    return $connection->prepare($sql);
  }

  protected function queryList($sql, $args = [])
  {
    $stmt = $this->newPreparedStmt($sql);
    $stmt->execute($args);
    return $stmt->fetchAll();
  }
}
{'fraction_non_alphanumeric': 0.16709346991037133, 'fraction_numerical': 0.005121638924455826, 'mean_word_length': 3.9305993690851735, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 16, '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': '4018626', 'n_tokens_mistral': 540, 'n_tokens_neox': 536, 'n_words': 109}