original_docstring: Method to generate piano dictionary
  
          Method generates a piano dictionary with key_index from left to right as its' key and a corresponding
          PianoKey object as Value
          
docstring: Method to generate piano dictionary
  Method generates a piano dictionary with key_index from left to right as its' key and a corresponding
  PianoKey object as Value
docstring_tokens: Method to generate piano dictionary Method generates a piano dictionary with key_index from left to right as its ' key and a corresponding PianoKey object as Value
code: def _create_keyboard_dict() -> Dict[int, PianoKey]:
          """Method to generate piano dictionary
  
          Method generates a piano dictionary with key_index from left to right as its' key and a corresponding
          PianoKey object as Value
          """
          raw_piano_keyboard = []
          for idx in range(10):
              for jdx in range(12):
                  tmp_base_key = BASE_PIANO_OCTAVE_PATTERN[jdx]
                  current_key = PianoKey(tmp_base_key.first, tmp_base_key.second, idx, tmp_base_key.color)
                  raw_piano_keyboard.append(current_key)
  
          kb = {}
          for index, key in enumerate(raw_piano_keyboard[9:97]):
              key.key_index = index
              kb.update({index: key})
  
          return kb
code_tokens: def _create_keyboard_dict ( ) -> Dict [ int , PianoKey ] : raw_piano_keyboard = [ ] for idx in range ( 10 ) : for jdx in range ( 12 ) : tmp_base_key = BASE_PIANO_OCTAVE_PATTERN [ jdx ] current_key = PianoKey ( tmp_base_key . first , tmp_base_key . second , idx , tmp_base_key . color ) raw_piano_keyboard . append ( current_key ) kb = { } for index , key in enumerate ( raw_piano_keyboard [ 9 : 97 ] ) : key . key_index = index kb . update ( { index : key } ) return kb
short_docstring: Method to generate piano dictionary
  Method generates a piano dictionary with key_index from left to right as its' key and a corresponding
  PianoKey object as Value
short_docstring_tokens: Method to generate piano dictionary Method generates a piano dictionary with key_index from left to right as its ' key and a corresponding PianoKey object as Value
comment: """Method to generate piano dictionary
  
          Method generates a piano dictionary with key_index from left to right as its' key and a corresponding
          PianoKey object as Value
          """