<commit_before><polymer-element name="noflo-new-project" class="modal-content">
  <template>
    <h1>Create new project</h1>
    <form>
      <label>
        Project name
        <input type="text" value="{{ name }}" placeholder="my-project" required>
      </label>
      <label>
        Primary Type
        <select name="type" value="{{ type }}">
          <option value="html">Browser</option>
          <option value="websocket">Node.js</option>
          <option value="websocket">Microcontroller</option>
        </select>
      </label>
      <div class="toolbar">
        <button on-click="{{ send }}">Create</button>
        <a on-click="{{ close }}">Cancel</a>
      </div>
    </form>
  </template>
  <script>
    Polymer('noflo-new-project', {
      name: '',
      type: 'html',
      enteredView: function () {
        document.getElementById('container').classList.add('blur');
      },
      leftView: function () {
        document.getElementById('container').classList.remove('blur');
      },
      send: function (event) {
        if (event) {
          event.preventDefault();
        }
        this.fire('new', {
          name: this.name,
          type: this.type,
          graphs: [],
          components: []
        });
        this.close();
      },
      close: function () {
        if (!this.parentNode) {
          return;
        }
        this.parentNode.removeChild(this);
      }
    });
  </script>
</polymer-element><commit_msg>Allow users to type a nicer ID for projects<commit_after><polymer-element name="noflo-new-project" class="modal-content">
  <template>
    <h1>Create new project</h1>
    <form>
      <label>
        Project name
        <input type="text" value="{{ projectId }}" placeholder="my-project" required>
      </label>
      <label>
        Project label
        <input type="text" value="{{ name }}" placeholder="My Cool Project" required>
      </label>
      <label>
        Primary Type
        <select name="type" value="{{ type }}">
          <option value="html">Browser</option>
          <option value="websocket">Node.js</option>
          <option value="websocket">Microcontroller</option>
        </select>
      </label>
      <div class="toolbar">
        <button on-click="{{ send }}">Create</button>
        <a on-click="{{ close }}">Cancel</a>
      </div>
    </form>
  </template>
  <script>
    Polymer('noflo-new-project', {
      projectId: '',
      name: '',
      type: 'html',
      enteredView: function () {
        document.getElementById('container').classList.add('blur');
      },
      leftView: function () {
        document.getElementById('container').classList.remove('blur');
      },
      send: function (event) {
        if (event) {
          event.preventDefault();
        }
        this.fire('new', {
          id: this.projectId.replace(' ', '-'),
          name: this.name,
          type: this.type,
          graphs: [],
          components: []
        });
        this.close();
      },
      close: function () {
        if (!this.parentNode) {
          return;
        }
        this.parentNode.removeChild(this);
      }
    });
  </script>
</polymer-element>
{'fraction_non_alphanumeric': 0.16871262197041234, 'fraction_numerical': 0.0012590494176896443, 'mean_word_length': 2.003780718336484, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 64, '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': '6251284', 'n_tokens_mistral': 909, 'n_tokens_neox': 903, 'n_words': 180}