<commit_before>var pianoKeys = document.querySelectorAll('.piano-key');

for (var i = 0; i < pianoKeys.length; i++) {

  pianoKeys[i].addEventListener('click', function (event) {
    var note = this.getAttribute('data-piano-key');
    playNote(note);
  });

}<commit_msg>Remove solution code for data-attributes demo<commit_after>// Write an event listener for each key that looks at the data-piano-key of the
// element that was clicked and passes that note to the playNote global function
{'fraction_non_alphanumeric': 0.11836734693877551, 'fraction_numerical': 0.0020408163265306124, 'mean_word_length': 4.579545454545454, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2873474', 'n_tokens_mistral': 140, 'n_tokens_neox': 139, 'n_words': 50}