<commit_before><polymer-element name="noflo-graph-inspector" attributes="graph">
  <template>
    <h1 on-keyup="{{ updateName }}" contenteditable>{{ graph.properties.name }}</h1>
    <template if="{{ graph.properties.environment.runtime == 'html' }}">
    <textarea>
      {{ graph.properties.environment.content }}
    </textarea>
    </template>
  </template>
  <script>
    Polymer('noflo-graph-inspector', {
      updateName: function (event, detail, sender) {
        this.graph.properties.name = sender.innerText;
      }
    });
  </script>
</polymer-element><commit_msg>Styling for the preview HTML input<commit_after><polymer-element name="noflo-graph-inspector" attributes="graph">
  <style>
    noflo-graph-inspector label span {
      display: block;
      font-size: 8pt;
      padding-top: 8px;
    }
    noflo-graph-inspector textarea {
      width: 100%;
      height: 210px;
      border: none;
      font-family: "SourceCodePro",Helvetica,Arial,sans-serif;
      padding: 8px;
      background-color: hsl(184, 50%, 11%);
      color: hsl(184, 40%, 89%);
    }
  </style>
  <template>
    <h1 on-keyup="{{ updateName }}" contenteditable>{{ graph.properties.name }}</h1>
    <template if="{{ graph.properties.environment.runtime == 'html' }}">
    <label>
      <span>Preview contents</span>
      <textarea>
        {{ graph.properties.environment.content }}
      </textarea>
    </label>
    </template>
  </template>
  <script>
    Polymer('noflo-graph-inspector', {
      updateName: function (event, detail, sender) {
        this.graph.properties.name = sender.innerText;
      }
    });
  </script>
</polymer-element>
{'fraction_non_alphanumeric': 0.16331505179768435, 'fraction_numerical': 0.016453382084095063, 'mean_word_length': 3.0146699266503667, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '1062549', 'n_tokens_mistral': 560, 'n_tokens_neox': 518, 'n_words': 99}