<commit_before><html>
<head>
  <title>jQuery Idle</title>
  <style>
    #status, #visibility{
      background-color: #E6EFC2;
      border-color: #C6D880;
      color: #264409;
      padding:20px;
      text-align: center;
      width:100px;
    }
    #status.idle, #visibility.idle{
      background-color: #FFF6BF;
      border-color: #FFD324;
      color: #514721;
    }
  </style>
</head>
<body>
  <h1>jQuery Idle</h1>
  <p>This is a simple example that will print in the box below the user status (active or idle). In this example, after 5 seconds idle, it will be displayed... "Idle!", off course :)</p>
  <div id="status">Active!</div>
  <div id="visibility">Visible!</div>
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  <script type="text/javascript" src="jquery.idle.min.js"></script>
  <script type="text/javascript">
    $(document).idle({
      onIdle: function(){
        $('#status').toggleClass('idle').html('Idle!');
      },
      onActive: function(){
        $('#status').toggleClass('idle').html('Active!');
      },
      onHide: function(){
        $('#visibility').toggleClass('idle').html('Hidden!');
      },
      onShow: function(){
        $('#visibility').toggleClass('idle').html('Visible!');
      },
      idle: 5000
    });
  </script><commit_msg>Add a slight pause in the example<commit_after><html>
<head>
  <title>jQuery Idle</title>
  <style>
    #status, #visibility{
      background-color: #E6EFC2;
      border-color: #C6D880;
      color: #264409;
      padding:20px;
      text-align: center;
      width:100px;
    }
    #status.idle, #visibility.idle{
      background-color: #FFF6BF;
      border-color: #FFD324;
      color: #514721;
    }
  </style>
</head>
<body>
  <h1>jQuery Idle</h1>
  <p>This is a simple example that will print in the box below the user status (active or idle). In this example, after 5 seconds idle, it will be displayed... "Idle!", off course :)</p>
  <div id="status">Active!</div>
  <div id="visibility">Visible!</div>
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  <script type="text/javascript" src="jquery.idle.min.js"></script>
  <script type="text/javascript">
    $(document).idle({
      onIdle: function(){
        $('#status').toggleClass('idle').html('Idle!');
      },
      onActive: function(){
        $('#status').toggleClass('idle').html('Active!');
      },
      onHide: function(){
        $('#visibility').toggleClass('idle').html('Hidden!');
      },
      onShow: function(){
        // Add a slight pause so you can see the change
        setTimeout(function(){
          $('#visibility').toggleClass('idle').html('Visible!');
        }, 250);
      },
      idle: 5000
    });
  </script>
{'fraction_non_alphanumeric': 0.18834399431414356, 'fraction_numerical': 0.02736318407960199, 'mean_word_length': 2.9481065918653577, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '6043293', 'n_tokens_mistral': 961, 'n_tokens_neox': 930, 'n_words': 199}