<commit_before><commit_msg>Add User Experience experiment in HTML<commit_after><!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Flies Fly: Prototype for User Experience (gameplay)</title>
  </head>
  <body>
    <h1>Flies Fly: Prototype for User Experience (gameplay)</h1>
    <p>Press the space bar, hold it, release it.</p>
    <div id="out"></div>
    <script>
      var outDiv = document.getElementById('out');

      function print( message ) {
        outDiv.innerHTML = message;
      }

      function no( value ) {
        var undef; // do not trust global undefined, which can be set to a value
        return value === null || value === undef;
      }

      function or( a, b ) {
        return no( a )? b: a;
      }

      function getKeyCode( event ) {
        event = or( event, window.event );
        return event.keyCode;
      }

      var SPACE_KEYCODE = 32;

      function isSpaceBar( event ) {
        return getKeyCode( event ) === SPACE_KEYCODE;
      }

      window.onkeydown = function( event ) {
        if ( isSpaceBar( event ) ) {
          print( "Space bar pressed." );
        }
      };

      window.onkeyup = function( event ) {
        if ( isSpaceBar( event ) ) {
          print( "Space bar released." );
        }
      };
    </script>
  </body>
</html>
{'fraction_non_alphanumeric': 0.13102409638554216, 'fraction_numerical': 0.0037650602409638554, 'mean_word_length': 2.0411899313501145, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '3055795', 'n_tokens_mistral': 415, 'n_tokens_neox': 400, 'n_words': 120}