<commit_before><?php
/**
 * Class for a dice
 *
 */
class CDice
{

  /**
   * Properties
   */
  private $value;
  public function setValue($value) { $this->value = $value; }
  public function getValue() { return $this->value; }

  private $sides;
  public function setSides($sides) { $this->sides = $sides; }
  public function getSides() { return $this->sides; }

  /**
   * Constructor
   *
   * @param value Initial dice value
   * @param sides Sides of the dice
   */
  public function __construct($value = -1, $sides = 6) {
    $this->setSides($sides);

    if ($value == -1) {
      $this->setValue(rand(1, $sides));
    } else {
      $this->setValue($value);
    }
  }
}
<commit_msg>Remove else from CDice::__construct<commit_after><?php
/**
 * Class for a dice
 *
 */
class CDice
{

  /**
   * Properties
   */
  private $value;
  public function setValue($value) { $this->value = $value; }
  public function getValue() { return $this->value; }

  private $sides;
  public function setSides($sides) { $this->sides = $sides; }
  public function getSides() { return $this->sides; }

  /**
   * Constructor
   *
   * @param value Initial dice value
   * @param sides Sides of the dice
   */
  public function __construct($value = -1, $sides = 6) {
    $this->setSides($sides);

    if ($value == -1) {
      $value = rand(1, $sides);
    }

    $this->setValue($value);
  }
}

{'fraction_non_alphanumeric': 0.1671490593342981, 'fraction_numerical': 0.005788712011577424, 'mean_word_length': 2.809917355371901, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7349196', 'n_tokens_mistral': 486, 'n_tokens_neox': 479, 'n_words': 119}