<commit_before><h1>ember-content-editable</h1>

<pre>
\{{content-editable value=value placeholder="enter something" maxlength=40
                   mouseEnter=(action (mut mouseInside) true) mouseLeave=(action (mut mouseInside) false)
                   enter=(action incrementProperty 'enterCount' 1)
                   escape-press=(action incrementProperty 'escapeCount' 1)
                   length-exceeded=(action displayLengthAlert)
                   id="text-input" class="important" autofocus=true}}
</pre>
{{content-editable value=value placeholder="enter something" maxlength=40
                   mouseEnter=(action (mut mouseInside) true) mouseLeave=(action (mut mouseInside) false)
                   enter=(action incrementProperty 'enterCount' 1)
                   escape-press=(action incrementProperty 'escapeCount' 1)
                   length-exceeded=(action displayLengthAlert)
                   id="text-input" class="important" autofocus=true}}

<p class="jsTest-textOutput info">
  \{{value}}:
  <pre id="text-output">{{value}}</pre>
</p>

<div class="info">
  <div>text length: {{value.length}}</div>
  <div>mouse is inside: {{mouseInside}}</div>
  <div>enter pressed: {{enterCount}}</div>
  <div>escape pressed: {{escapeCount}}</div>
  <button {{action (mut value) ''}}>set value to empty string</button>
</div><commit_msg>added keypress events counter to dummy app<commit_after><h1>ember-content-editable</h1>

<pre>
\{{content-editable value=value placeholder="enter something" maxlength=40
                   mouseEnter=(action (mut mouseInside) true) mouseLeave=(action (mut mouseInside) false)
                   enter=(action incrementProperty 'enterCount' 1)
                   escape-press=(action incrementProperty 'escapeCount' 1)
                   length-exceeded=(action displayLengthAlert)
                   id="text-input" class="important" autofocus=true}}
</pre>
{{content-editable value=value placeholder="enter something" maxlength=40
                   mouseEnter=(action (mut mouseInside) true) mouseLeave=(action (mut mouseInside) false)
                   enter=(action incrementProperty 'enterCount' 1)
                   escape-press=(action incrementProperty 'escapeCount' 1)
                   length-exceeded=(action displayLengthAlert)
                   key-up=(action incrementProperty 'keyup' 1)
                   key-press=(action incrementProperty 'keypress' 1)
                   key-down=(action incrementProperty 'keydown' 1)
                   id="text-input" class="important" autofocus=true}}

<p class="jsTest-textOutput info">
  \{{value}}:
  <pre id="text-output">{{value}}</pre>
</p>

<div class="info">
  <div>text length: {{value.length}}</div>
  <div>mouse is inside: {{mouseInside}}</div>
  <div>enter pressed: {{enterCount}}</div>
  <div>escape pressed: {{escapeCount}}</div>
  <div>key-up: {{keyup}}</div>
  <div>key-press: {{keypress}}</div>
  <div>key-down: {{keydown}}</div>
  <button {{action (mut value) ''}}>set value to empty string</button>
</div>
{'fraction_non_alphanumeric': 0.143233454066513, 'fraction_numerical': 0.007573263088574251, 'mean_word_length': 3.1446111869031377, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '2546078', 'n_tokens_mistral': 884, 'n_tokens_neox': 818, 'n_words': 197}