<commit_before>function Branch(begin, end, level) {
  this.begin = begin;
  this.end = end;
  this.level = level;
  this.finished = false;

  this.show = function() {
    stroke(120,120,100);
    strokeWeight(floor(((leafSlider.value() - level) + 2)/2));
    line(this.begin.x, this.begin.y, this.end.x, this.end.y);
  }

  this.branchA = function() {
    var brancheRatio = brancheRatioSlider.value();
    var dir = p5.Vector.sub(this.end, this.begin);
    dir.rotate(angleSlider.value());
    dir.mult(brancheRatio);
    var newEnd = p5.Vector.add(this.end, dir);
    var b = new Branch(this.end, newEnd, this.level + 1);
    return b;
  }
  this.branchB = function() {
    var brancheRatio = brancheRatioSlider.value();
    var dir = p5.Vector.sub(this.end, this.begin);
    dir.rotate(-angleSlider.value());
    dir.mult(brancheRatio);
    var newEnd = p5.Vector.add(this.end, dir);
    var b = new Branch(this.end, newEnd, this.level + 1);
    return b;
  }
}<commit_msg>cleaning<commit_after>function Branch(begin, end, level) {
  this.begin = begin;
  this.end = end;
  this.level = level;
  this.finished = false;

  this.show = function() {
    stroke(120,120,100);
    strokeWeight(floor(((leafSlider.value() - level) + 2)/2));
    line(this.begin.x, this.begin.y, this.end.x, this.end.y);
  }

  this.branch = function(angle) {
    var brancheRatio = brancheRatioSlider.value();
    var dir = p5.Vector.sub(this.end, this.begin);
    dir.rotate(angle);
    dir.mult(brancheRatio);
    var newEnd = p5.Vector.add(this.end, dir);
    var b = new Branch(this.end, newEnd, this.level + 1);
    return b;
  }

  this.branchA = function() {
    return this.branch(angleSlider.value());
  }
  this.branchB = function() {
    return this.branch(-angleSlider.value());
  }
}
{'fraction_non_alphanumeric': 0.16554054054054054, 'fraction_numerical': 0.017454954954954954, 'mean_word_length': 3.2209026128266034, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1408421', 'n_tokens_mistral': 655, 'n_tokens_neox': 640, 'n_words': 124}