<commit_before>{
  "name": "Automated Testing and Debugging",
  "order": 14,
  "time": "15m",
  "challenges": [
    {
      "id":"cf1111c1c16feddfaeb6bdef",
      "title":"Use the Javascript Console",
      "difficulty":0,
      "description":[
        "Both Chrome and Firefox have excellent JavaScript consoles, also known as DevTools, for debugging your JavaScript.",
        "You can find <code>Developer tools</code> in your Chrome's menu or <code>Web Console</code> in FireFox's menu. If you're using a different browser, or a mobile phone, we strongly recommend switching to desktop Firefox or Chrome.",
        "Let's print to this console using the <code>console.log</code> method.",
        "<code>console.log('Hello world!')</code>"
      ],
      "tests":[
        "assert(editor.getValue().match(/console\\.log\\(/gi), 'message: You should use the console.log method to log \"Hello world!\" to your JavaScript console.');"
      ],
      "challengeSeed":[
        "",
        "",
        ""
      ],
      "challengeType":1,
      "type": "waypoint"
    },
    {
      "id":"cf1111c1c16feddfaeb7bdef",
      "title":"Using typeof",
      "difficulty":0,
      "description":[
        "You can use <code>typeof</code> to check the <code>data structure</code>, or type, of a variable.",
        "Note that in JavaScript, arrays are technically a type of object.",
        "Try using <code>typeof</code> on each of the following to see which types they have.",
        "<code>console.log(typeof(\"\"));</code>",
        "<code>console.log(typeof(0));</code>",
        "<code>console.log(typeof([]));</code>",
        "<code>console.log(typeof({}));</code>"
      ],
      "tests":[
        "assert(editor.getValue().match(/console\\.log\\(typeof\\(\"\"\\)\\);/gi), 'message: You should <code>console.log</code> the <code>typeof</code> a string.');",
        "assert(editor.getValue().match(/console\\.log\\(typeof\\(0\\)\\);/gi), 'message: You should <code>console.log</code> the <code>typeof</code> a number.');",
        "assert(editor.getValue().match(/console\\.log\\(typeof\\(\\[\\]\\)\\);/gi), 'message: You should <code>console.log</code> the <code>typeof</code> an array.');",
        "assert(editor.getValue().match(/console\\.log\\(typeof\\(\\{\\}\\)\\);/gi), 'message: You should <code>console.log</code> the <code>typeof</code> a object.');"
      ],
      "challengeSeed":[
        "",
        "",
        ""
      ],
      "challengeType":1,
      "type": "waypoint"
    }
  ]
}
<commit_msg>Add ES translation of testing and debugging. Thanks to @JS-Taiyou and @vtamara for the corrections<commit_after>{
  "name": "Automated Testing and Debugging",
  "order": 14,
  "time": "15m",
  "challenges": [
    {
      "id":"cf1111c1c16feddfaeb6bdef",
      "title":"Use the Javascript Console",
      "difficulty":0,
      "description":[
        "Both Chrome and Firefox have excellent JavaScript consoles, also known as DevTools, for debugging your JavaScript.",
        "You can find <code>Developer tools</code> in your Chrome's menu or <code>Web Console</code> in FireFox's menu. If you're using a different browser, or a mobile phone, we strongly recommend switching to desktop Firefox or Chrome.",
        "Let's print to this console using the <code>console.log</code> method.",
        "<code>console.log('Hello world!')</code>"
      ],
      "tests":[
        "assert(editor.getValue().match(/console\\.log\\(/gi), 'message: You should use the console.log method to log \"Hello world!\" to your JavaScript console.');"
      ],
      "challengeSeed":[
        "",
        "",
        ""
      ],
      "challengeType":1,
      "type": "waypoint",
      "nameCn": "",
      "descriptionCn": [],
      "nameFr": "",
      "descriptionFr": [],
      "nameRu": "",
      "descriptionRu": [],
      "nameEs": "Utiliza la consola de JavaScript",
      "descriptionEs": [
        "Tanto Chrome como Firefox tienen excelentes consolas JavaScript, también conocidas como DevTools, para depurar tu código JavaScript.",
        "Puedes encontrar las Herramientas para desarrolladores (<code>Developer tools</code>) en el menú de Chrome o la Consola web (<code>Web Console</code>) en el menú de FireFox. Si estás utilizando un navegador diferente, o un dispositivo móvil, nuestra recomendación es que cambies a la versión de escritorio de Firefox o Chrome.",
        "Vamos a imprimir en esta consola utilizando el método <code>console.log</code>.",
        "<code>console.log('Hello world!')</code>"
        ],
      "namePt": "",
      "descriptionPt": []
    },
    {
      "id":"cf1111c1c16feddfaeb7bdef",
      "title":"Using typeof",
      "difficulty":0,
      "description":[
        "You can use <code>typeof</code> to check the <code>data structure</code>, or type, of a variable.",
        "Note that in JavaScript, arrays are technically a type of object.",
        "Try using <code>typeof</code> on each of the following to see which types they have.",
        "<code>console.log(typeof(\"\"));</code>",
        "<code>console.log(typeof(0));</code>",
        "<code>console.log(typeof([]));</code>",
        "<code>console.log(typeof({}));</code>"
      ],
      "tests":[
        "assert(editor.getValue().match(/console\\.log\\(typeof\\(\"\"\\)\\);/gi), 'message: You should <code>console.log</code> the <code>typeof</code> a string.');",
        "assert(editor.getValue().match(/console\\.log\\(typeof\\(0\\)\\);/gi), 'message: You should <code>console.log</code> the <code>typeof</code> a number.');",
        "assert(editor.getValue().match(/console\\.log\\(typeof\\(\\[\\]\\)\\);/gi), 'message: You should <code>console.log</code> the <code>typeof</code> an array.');",
        "assert(editor.getValue().match(/console\\.log\\(typeof\\(\\{\\}\\)\\);/gi), 'message: You should <code>console.log</code> the <code>typeof</code> a object.');"
      ],
      "challengeSeed":[
        "",
        "",
        ""
      ],
      "challengeType":1,
      "type": "waypoint",
      "nameCn": "",
      "descriptionCn": [],
      "nameFr": "",
      "descriptionFr": [],
      "nameRu": "",
      "descriptionRu": [],
      "nameEs": "Usando typeof",
      "descriptionEs": [
        "Puedes usar <code>typeof</code> para verificar la <code>estructura de datos</code>, o el tipo, de una variable.",
        "Ten en cuenta que, en JavaScript, los vectores son técnicamente un tipo de objeto.",
        "Intenta utilizar <code>typeof</code> en cada uno de los siguientes valores para ver de qué tipo son.",
        "<code>console.log(typeof(\"\"));</code>",
        "<code>console.log(typeof(0));</code>",
        "<code>console.log(typeof([]));</code>",
        "<code>console.log(typeof({}));</code>"
        ],
      "namePt": "",
      "descriptionPt": []
    }
  ]
}

{'fraction_non_alphanumeric': 0.1880241282918935, 'fraction_numerical': 0.00779755774606444, 'mean_word_length': 2.832018038331454, 'pattern_counts': {'":': 60, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5004155', 'n_tokens_mistral': 2119, 'n_tokens_neox': 2051, 'n_words': 545}