<commit_before>$( document ).ready(function(){
  var frame1 = new Frame();
  var frame2 = new Frame();
  var frame3 = new Frame();
  var frame4 = new Frame();
  var frame5 = new Frame();
  var frame6 = new Frame();
  var frame7 = new Frame();
  var frame8 = new Frame();
  var frame9 = new Frame();
  var frame10 = new Frame();
  var scorer = new bowlingScorer();

  $('#firstRoll1').submit(function(event) {
    event.preventDefault();
    var score = Number($("#1roll1").val());
    frame1.firstRoll(score);
    console.log(frame1)
    $('#firstRoll1').text(frame1.rollOne);
    if (frame1._isStrike()) {
      scorer.addFrame(frame1);
      $('#secondRoll1').text("-");
    };
  });
  $('#secondRoll1').submit(function(event) {
    event.preventDefault();
    var score = Number($("#1roll2").val());
    frame1.secondRoll(score);
    console.log(frame1)
    $('#secondRoll1').text(frame1.rollTwo);
    scorer.addFrame(frame1);
  });

});<commit_msg>adds getRoll to get form element id<commit_after>$( document ).ready(function(){
  var frame1 = new Frame();
  var frame2 = new Frame();
  var frame3 = new Frame();
  var frame4 = new Frame();
  var frame5 = new Frame();
  var frame6 = new Frame();
  var frame7 = new Frame();
  var frame8 = new Frame();
  var frame9 = new Frame();
  var frame10 = new Frame();
  var scorer = new bowlingScorer();

  var getRoll = function() {
    $('td').on('click', function() {
      alert(this.id)
    });
  };

  getRoll();

  $('#firstRoll1').submit(function(event) {
    event.preventDefault();
    var score = Number($("#1roll1").val());
    frame1.firstRoll(score);
    console.log(frame1)
    $('#firstRoll1').text(frame1.rollOne);
    if (frame1._isStrike()) {
      scorer.addFrame(frame1);
      $('#secondRoll1').text("-");
    };
  });
  $('#secondRoll1').submit(function(event) {
    event.preventDefault();
    var score = Number($("#1roll2").val());
    frame1.secondRoll(score);
    console.log(frame1)
    $('#secondRoll1').text(frame1.rollTwo);
    scorer.addFrame(frame1);
  });


});
{'fraction_non_alphanumeric': 0.19490695396669933, 'fraction_numerical': 0.02840352595494613, 'mean_word_length': 3.54, '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': '57964', 'n_tokens_mistral': 675, 'n_tokens_neox': 681, 'n_words': 149}