<commit_before>/**
 * Blockly Demos: Accessible Blockly
 *
 * Copyright 2016 Google Inc.
 * https://github.com/google/blockly-games
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @fileoverview Level sets for the Accessible Blockly music game.
 *
 * @author <EMAIL> (<NAME>)
 */

/**
 * This file is organized as follows:
 * - First, there are a few stock level sets that can be used as levels. You
 *     can create your own level packs, too!
 * - The LEVEL_SETS constant at the bottom collects all the sets that are
 *     actually used in index.html.
 */

 var LEVEL_SETS = {};

 LEVEL_SETS.tutorial = {
  name: 'Music Tutorial',
  levels: [{
    toolboxBlockDefns: [{
      type: 'music_play_note'
    }],
    introMessage: (
        'Welcome to Blockly! Blockly teaches you how to program using ' +
        'blocks of code you link together. Here\'s what you need to know. ' +
        'There are two main sections, the toolbox on the left, and the ' +
        'workspace on the right. The toolbox is where the blocks are kept. ' +
        'Add a block from the toolbox to the workspace. Then, go to the ' +
        'workspace and explore up and down in the block. The block will ' +
        'have different options for what you can do with it, like adding a ' +
        'link to attach another block. When you\'re ready to try out your ' +
        'program, choose the button called, "Run your program."'),
    beatsPerMinute: 80,
    expectedLine: [
      [[48], 1]
    ],
    getTargetedFeedback: function() {},
    hint: (
        'Start by going to the toolbox and finding the block called ' +
        '"play note C4". Press right to open the block menu, ' +
        'and press the button to create a new group with this block. ' +
        'Finally, press the "Run Code" button to run your code.'),
    instructions: 'Play the note C4.'
  }, {
    toolboxBlockDefns: [{
      type: 'music_play_note_blank'
    }],
    beatsPerMinute: 80,
    expectedLine: [
      [[55], 1]
    ],
    getTargetedFeedback: function(chords) {
      if (chords.length == 1 && chords[0].midiPitches[0] == 48) {
        return 'Not quite. Did you change C4 to the correct note?';
      }
    },
    instructions: 'Play the note G4.',
    hint: (
        'Start by putting a "play note C4" block in the workspace. Then, ' +
        'change its value to G4.')
  }, {
    toolboxBlockDefns: [{
      type: 'music_play_note'
    }],
    beatsPerMinute: 80,
    expectedLine: [
      [[48], 1],
      [[52], 1],
      [[55], 1]
    ],
    getTargetedFeedback: function(chords) {
      if (chords.length == 3 &&
          (chords[0].midiPitches[0] != 48 ||
           chords[1].midiPitches[0] != 52 ||
           chords[2].midiPitches[0] != 55)) {
        return 'Not quite. Are you playing the right notes?';
      } else if (chords.length != 3) {
        return (
            'Not quite. Are you using the right number of blocks?');
      }
    },
    hint: (
        'Make sure the blocks are connected to each other. You can connect ' +
        'blocks by going to the Block Options menu using the arrow keys, ' +
        'and finding the button to mark a spot in the workspace. Then, ' +
        'go to the block you want to copy, and copy it to the marked spot.'),<commit_msg>Update level text and hints.<commit_after>/**
 * Blockly Demos: Accessible Blockly
 *
 * Copyright 2016 Google Inc.
 * https://github.com/google/blockly-games
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @fileoverview Level sets for the Accessible Blockly music game.
 *
 * @author <EMAIL> (<NAME>)
 */

/**
 * This file is organized as follows:
 * - First, there are a few stock level sets that can be used as levels. You
 *     can create your own level packs, too!
 * - The LEVEL_SETS constant at the bottom collects all the sets that are
 *     actually used in index.html.
 */

 var LEVEL_SETS = {};

 LEVEL_SETS.tutorial = {
  name: 'Music Tutorial',
  levels: [{
    toolboxBlockDefns: [{
      type: 'music_play_note'
    }],
    introMessage: (
        'Welcome to Blockly! Here\'s what you need to know. Blockly teaches ' +
        'you how to program using blocks of code you link together. ' +
        'The main section is the workspace, where you can build programs. ' +
        'Next to the workspace, there is a sidebar with useful buttons.'),
    beatsPerMinute: 80,
    expectedLine: [
      [[48], 1]
    ],
    getTargetedFeedback: function() {},
    hint: (
        'Start by tabbing to the sidebar and selecting the button called ' +
        '"Create new block group" to open the list of blocks. Select the ' +
        'block you need in order to create a new "play note C4" block in the ' +
        'workspace. When you\'re ready to try out your program, choose the ' +
        'button in the sidebar called, "Run your program."'),
    instructions: 'Play the note C4.'
  }, {
    toolboxBlockDefns: [{
      type: 'music_play_note_blank'
    }],
    beatsPerMinute: 80,
    expectedLine: [
      [[55], 1]
    ],
    getTargetedFeedback: function(chords) {
      if (chords.length == 1 && chords[0].midiPitches[0] == 48) {
        return 'Not quite. Did you change C4 to the correct note?';
      }
    },
    instructions: 'Play the note G4.',
    hint: (
        'Start by putting a "play note C4" block in the workspace. Then ' +
        'change its value to G4.')
  }, {
    toolboxBlockDefns: [{
      type: 'music_play_note'
    }],
    beatsPerMinute: 80,
    expectedLine: [
      [[48], 1],
      [[52], 1],
      [[55], 1]
    ],
    getTargetedFeedback: function(chords) {
      if (chords.length == 3 &&
          (chords[0].midiPitches[0] != 48 ||
           chords[1].midiPitches[0] != 52 ||
           chords[2].midiPitches[0] != 55)) {
        return 'Not quite. Are you playing the right notes?';
      } else if (chords.length != 3) {
        return (
            'Not quite. Are you using the right number of blocks?');
      }
    },
    hint: (
        'Make sure the blocks are connected. You can connect blocks by ' +
        'pressing Enter on a block, then selecting "Add link after". Once ' +
        'you have set up the link, select the "Attach new block to link..." ' +
        'button in the sidebar and choose a block to attach.'),
{'fraction_non_alphanumeric': 0.10696653867251783, 'fraction_numerical': 0.014810751508502468, 'mean_word_length': 2.497841726618705, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3809652', 'n_tokens_mistral': 2215, 'n_tokens_neox': 2133, 'n_words': 877}