<commit_before><!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>Test mousefu plugin</title>
  <script src="lib/jquery-1.7.1.min.js"></script>
  <script src="lib/jquery.mousewheel.js"></script>
  <script src="mousefu.js"></script>
  <style>
  body{background:#eee}
  #wrap{margin:15px auto;padding:5px 30px;width:250px;background:#fff}
  #example{width:250px;height:150px;border:1px solid #000}
  .p{background:#f0f}.r{background:#f00}.y{background:#ff0}.b{background:#00f}
  </style>
  
  <!-- Initialize mousefu when ready -->
  <script>
  // on document ready
  $(function() {
    $("#example").mousefu('leave', function(c) {
      $("#example").attr("class", "");
      $("#event").html("Leave: "+c.leave.x+","+c.leave.y);
    });
    $("#example").mousefu('!downleft move', function(c) {
      $("#example").attr("class", "p");
      $("#event").html("Move: "+c.move.x+","+c.move.y);
    });
    $("#example").mousefu('downleft move', {
      start: function(c) {
        $("#example").attr("class", "r");
      },
      default: function(c) {
        $("#event").html("Drag: "+c.move.x+","+c.move.y+" (start at "+c.downleft.x+","+c.downleft.y+")");
      },
      end: function(c) {
        $("#example").attr("class", "p");
      }
    });
    $("#example").mousefu('mousewheel', function(c) {
      if(c.mousewheel.event_obj.delta > 0) {
        $("#example").attr("class", "y");
      }
      else {
        $("#example").attr("class", "b");
      }
    });
  });
  </script>

</head>
<body>
<div id="wrap">
  <p>Try the following on the box below:</p>
  <ul>
    <li>Hover over
    <li>Left and right click
    <li>Click and drag
  </ul>
  <div id="example"></div>
  <p id="event">No mouse events detected.</p>
</div>
</body>
</html><commit_msg>better example for scrolling<commit_after><!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>Test mousefu plugin</title>
  <script src="lib/jquery-1.7.1.min.js"></script>
  <script src="lib/jquery.mousewheel.js"></script>
  <script src="mousefu.js"></script>
  <style>
  body{background:#eee}
  #wrap{margin:15px auto;padding:5px 30px;width:250px;background:#fff}
  #example{width:250px;height:150px;border:1px solid #000}
  .p{background:#f0f}.r{background:#f00}.y{background:#ff0}.b{background:#00f}
  </style>
  
  <!-- Initialize mousefu when ready -->
  <script>
  // on document ready
  $(function() {
    $("#example").mousefu('leave', function(c) {
      $("#example").attr("class", "");
      $("#event").html("Leave: "+c.leave.x+","+c.leave.y);
    });
    $("#example").mousefu('!downleft move', function(c) {
      $("#example").attr("class", "p");
      $("#event").html("Move: "+c.move.x+","+c.move.y);
    });
    $("#example").mousefu('downleft move', {
      start: function(c) {
        $("#example").attr("class", "r");
      },
      default: function(c) {
        $("#event").html("Drag: "+c.move.x+","+c.move.y+" (start at "+c.downleft.x+","+c.downleft.y+")");
      },
      end: function(c) {
        $("#example").attr("class", "p");
      }
    });
    $("#example").mousefu('mousewheel', function(c) {
      if(c.mousewheel.event_obj.delta > 0) {
        $("#example").attr("class", "y");
      }
      else {
        $("#example").attr("class", "b");
      }
      $("#event").html("Mousewheel: "+c.mousewheel.x+","+c.mousewheel.y+" (delta "+c.mousewheel.event_obj.delta+")");
      // prevent scrolling default behavior
      c.mousewheel.event_obj.preventDefault();
    });
  });
  </script>

</head>
<body>
<div id="wrap">
  <p>Try the following on the box below:</p>
  <ul>
    <li>Hover over
    <li>Left and right click
    <li>Click and drag
  </ul>
  <div id="example"></div>
  <p id="event">No mouse events detected.</p>
</div>
</body>
</html>
{'fraction_non_alphanumeric': 0.25066454013822437, 'fraction_numerical': 0.01541733120680489, 'mean_word_length': 3.320321469575201, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 73, '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': '5163037', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1369, 'n_words': 221}