<commit_before>function Clock(svgId, offset, minute, second) {

  // Setup clock face
  this.s = Snap("#" + svgId);
  this.showSeconds = true;

  // Set defaults
  this.updateTime();
  this.offset = 0;

  // Set time or offset?
  if (minute != undefined) {
    // Set time
    this.hour = offset;
    this.minute = minute;
    if (second != undefined) {
      this.second = second;
    } else {
      this.second = 0;
    }
  } else if (offset != undefined) {
    // Set offset
    this.offset = offset;
  }

  // Set up clock  
  this.drawClockFace();
}

Clock.prototype.hideSecondHand = function() {
  this.showSeconds = false;
  this.secondHand.remove();
}

Clock.prototype.showSecondHand = function() {
  this.showSeconds = true;
}

Clock.prototype.drawClockFace = function() {
    var clockFace = this.s.circle(150, 150, 100);
    clockFace.attr({
      fill: "#FFF",
        stroke: "#000",
        strokeWidth: 4
    });

    // Draw hours
    for (var x=1;x<=12;x++) {
        var hourStroke = this.s.line(150,60,150,80);
        hourStroke.attr({
          stroke: "#000",
          strokeWidth: 4
        });

        var t = new Snap.Matrix();
        t.rotate((360/12)*x, 150, 150);
        hourStroke.transform(t);
    }<commit_msg>Removing Clock.showSecondHand() since it won't work without refactoring<commit_after>function Clock(svgId, offset, minute, second) {

  // Setup clock face
  this.s = Snap("#" + svgId);
  this.showSeconds = true;

  // Set defaults
  this.updateTime();
  this.offset = 0;

  // Set time or offset?
  if (minute != undefined) {
    // Set time
    this.hour = offset;
    this.minute = minute;
    if (second != undefined) {
      this.second = second;
    } else {
      this.second = 0;
    }
  } else if (offset != undefined) {
    // Set offset
    this.offset = offset;
  }

  // Set up clock  
  this.drawClockFace();
}

Clock.prototype.hideSecondHand = function() {
  this.showSeconds = false;
  this.secondHand.remove();
}

Clock.prototype.drawClockFace = function() {
    var clockFace = this.s.circle(150, 150, 100);
    clockFace.attr({
      fill: "#FFF",
        stroke: "#000",
        strokeWidth: 4
    });

    // Draw hours
    for (var x=1;x<=12;x++) {
        var hourStroke = this.s.line(150,60,150,80);
        hourStroke.attr({
          stroke: "#000",
          strokeWidth: 4
        });

        var t = new Snap.Matrix();
        t.rotate((360/12)*x, 150, 150);
        hourStroke.transform(t);
    }
{'fraction_non_alphanumeric': 0.15129449838187703, 'fraction_numerical': 0.03478964401294499, 'mean_word_length': 2.249671484888305, 'pattern_counts': {'":': 0, '<': 5, '<?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': '992249', 'n_tokens_mistral': 895, 'n_tokens_neox': 807, 'n_words': 193}