<commit_before>$(document).ready(function(){
    var rupert = new Robot();
    var rupertAnimation = new DrawnRobot();
    rupertAnimation.canvas.add(rupertAnimation.body);
    invalidCommand = false;
    rupertAnimation.moveForward(2);
    rupert.instructions = [];
    rupert.fullInstructions = [];
    rupert.resetInstructions = [];
    rupert.resetFullInstructions = [];

  $("#game_status_string").ace({ theme: 'monokai', lang: 'javascript' });

  $(".game-console").on("click", ".hint-link", function(event){
    event.preventDefault();
    $(".hint").toggle();
  });

  $(".game-console").on("submit", ".edit_game", function(event){
    event.preventDefault();

    var sourceCode, url, robotInstructions, counter, invalidCommand;

    sourceCode = $("#game_status_string").val();
    url = $(".edit_game").attr("action");
    
    counter = 0;
    console.log(sourceCode);
    try { eval(sourceCode); }
    catch(error) { alert("Whoops! Looks like that was an invalid command. Do you need a hint?");
                   invalidCommand = true; }

    robotInstructions = rupert.serializedInstructions();
    
    pingRobot(robotInstructions);
    rupertAnimation.doTheseFrames(rupert.fullInstructions);<commit_msg>added line space for readability<commit_after>$(document).ready(function(){
    var rupert = new Robot();
    var rupertAnimation = new DrawnRobot();
    rupertAnimation.canvas.add(rupertAnimation.body);
    invalidCommand = false;
    rupertAnimation.moveForward(2);
    rupert.instructions = [];
    rupert.fullInstructions = [];
    rupert.resetInstructions = [];
    rupert.resetFullInstructions = [];

  $("#game_status_string").ace({ theme: 'monokai', lang: 'javascript' });

  $(".game-console").on("click", ".hint-link", function(event){
    event.preventDefault();
    $(".hint").toggle();
  });

  $(".game-console").on("submit", ".edit_game", function(event){
    event.preventDefault();

    var sourceCode, url, robotInstructions, counter, invalidCommand;

    sourceCode = $("#game_status_string").val();
    url = $(".edit_game").attr("action");
    
    counter = 0;
    console.log(sourceCode);
    try { eval(sourceCode); }
    catch(error) { alert("Whoops! Looks like that was an invalid command. Do you need a hint?");
                   invalidCommand = true; }

    robotInstructions = rupert.serializedInstructions();
    
    pingRobot(robotInstructions);
    
    rupertAnimation.doTheseFrames(rupert.fullInstructions);
{'fraction_non_alphanumeric': 0.1599025974025974, 'fraction_numerical': 0.0016233766233766235, 'mean_word_length': 3.8523622047244093, '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': '3000754', 'n_tokens_mistral': 732, 'n_tokens_neox': 719, 'n_words': 135}