<commit_before>
-- Focus on the display screen (i.e. click the right half of this window)
-- and start pressing keys!

import Graphics.Element exposing (..)
import Keyboard


display : List Int -> Element
display keyCodes =
  show "You are holding down the following keys: " `beside` show keyCodes


main : Signal.Signal Element
main =
  Signal.map display Keyboard.keysDown<commit_msg>Adjust for new type of Keyboard.keysDown<commit_after>
-- Focus on the display screen (i.e. click the right half of this window)
-- and start pressing keys!

import Graphics.Element exposing (..)
import Keyboard
import Set


display : Set.Set Int -> Element
display keyCodes =
  flow right
    [ show "You are holding down the following keys: "
    , show (Set.toList keyCodes)
    ]


main : Signal.Signal Element
main =
  Signal.map display Keyboard.keysDown
{'fraction_non_alphanumeric': 0.08037825059101655, 'fraction_numerical': 0.0, 'mean_word_length': 3.6538461538461537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3740239', 'n_tokens_mistral': 248, 'n_tokens_neox': 239, 'n_words': 102}