<commit_before><?php

/**
 * Simple PHP wrapper for Git repository
 *
 * @link      http://github.com/ornicar/php-git-repo
 * @version   1.0
 * @author    <NAME> <thibault.duplessis at gmail dot com>
 * @license   MIT License
 *
 * Documentation: http://github.com/ornicar/php-git-repo/blob/master/README.markdown
 * Tickets:       http://github.com/ornicar/php-git-repo/issues
 */

require_once(dirname(__FILE__).'/phpGitRepoCommand.php');

class phpGitRepo
{
  /**
   * @var string  local repository directory
   */
  protected $dir;

  protected $debug;

  protected $options = array(
    'command_class'   => 'phpGitRepoCommand', // class used to create a command
    'git_executable'  => '/usr/bin/git'       // path of the executable on the server
  );

  /**
   * Instanciate a new HTML Writer
   *
   * @param   array $options
   */
  public function __construct($dir, $debug = false, array $options = array())
  {
    $this->dir      = $dir;
    $this->debug    = $debug;
    $this->options  = array_merge($this->options, $options);

    $this->checkIsValidGitRepo();
  }

  /**
   * Get branches list<commit_msg>Fix phpdoc<commit_after><?php

/**
 * Simple PHP wrapper for Git repository
 *
 * @link      http://github.com/ornicar/php-git-repo
 * @version   1.0
 * @author    <NAME> <thibault.duplessis at gmail dot com>
 * @license   MIT License
 *
 * Documentation: http://github.com/ornicar/php-git-repo/blob/master/README.markdown
 * Tickets:       http://github.com/ornicar/php-git-repo/issues
 */

require_once(dirname(__FILE__).'/phpGitRepoCommand.php');

class phpGitRepo
{
  /**
   * @var string  local repository directory
   */
  protected $dir;

  protected $debug;

  protected $options = array(
    'command_class'   => 'phpGitRepoCommand', // class used to create a command
    'git_executable'  => '/usr/bin/git'       // path of the executable on the server
  );

  /**
   * Instanciate a new Git repository wrapper
   *
   * @param   array $options
   */
  public function __construct($dir, $debug = false, array $options = array())
  {
    $this->dir      = $dir;
    $this->debug    = $debug;
    $this->options  = array_merge($this->options, $options);

    $this->checkIsValidGitRepo();
  }

  /**
   * Get branches list
{'fraction_non_alphanumeric': 0.14564831261101244, 'fraction_numerical': 0.0017761989342806395, 'mean_word_length': 2.8644939965694682, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, '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': '6842766', 'n_tokens_mistral': 759, 'n_tokens_neox': 733, 'n_words': 169}