<commit_before>{{!
    Copyright (C) 2014 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

<custom-attributes instance="instance" load="true">
  {{#if loading}}
  <div class="row-fluid">
    <div class="span12">
      Loading Custom Attributes...<span  {{attach_spinner '{ "radius": 4, "length": 7, "width": 2 }' 'display:inline-block; top: -6px; left: 20px;' }}></span>
    </div>
  </div>
  {{else}}
    {{#if instance.custom_attribute_definitions.length}}
      {{#iterate_by_two instance.custom_attribute_definitions}}
        <div class="row-fluid wrap-row">
        {{#list}}
          <div class="span6">
            <div data-custom-attribute="{{id}}" data-type="{{attribute_type}}">
              {{#with_value_for_id id}}
                {{#switch attribute_type}}
                {{#case 'Checkbox'}}
                  <inline-edit
                    instance="instance"
                    ca-id="id"
                    property="value"
                    label="title"
                    type="checkbox"
                    mandatory="mandatory"
                    placeholder="placeholder"
                    helptext="helptext"
                  ></inline-edit>
                {{/case}}
                {{#case 'Rich Text'}}
                  <inline-edit
                    instance="instance"
                    ca-id="id"
                    property="value"
                    label="title"
                    type="text"
                    mandatory="mandatory"
                    placeholder="placeholder"
                    helptext="helptext"
                  ></inline-edit>
                {{/case}}
                {{#case 'Dropdown'}}
                  <inline-edit
                    instance="instance"
                    ca-id="id"
                    property="value"
                    label="title"
                    type="dropdown"
                    mandatory="mandatory"
                    values="multi_choice_options"
                    placeholder="placeholder"
                    helptext="helptext"
                  ></inline-edit>
                {{/case}}
                {{#case 'Text'}}
                  <inline-edit
                    instance="instance"
                    ca-id="id"
                    property="value"
                    label="title"
                    type="input"
                    mandatory="mandatory"
                    placeholder="placeholder"
                    helptext="helptext"
                  ></inline-edit>
                {{/case}}
                {{#case 'Map:Person'}}
                  <h6>{{title}}</h6>
                  {{#with_object_for_id id}}
                    {{#using person=object}}
                      {{>'/static/mustache/people/popover.mustache'}}
                    {{/using}}
                  {{/with_object_for_id}}
                {{/case}}
                {{#default}}
                  <h6>{{title}}</h6>
                  {{value}}
                {{/default}}
                {{/switch}}
              {{/with_value_for_id}}
            </div>
          </div>
        {{/list}}
        </div>
      {{/instance.custom_attribute_definitions}}
    {{/if}}
  {{/loading}}
</custom-attributes><commit_msg>Remove loader for custom attributes<commit_after>{{!
    Copyright (C) 2014 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

<custom-attributes instance="instance" load="true">
  {{#if instance.custom_attribute_definitions.length}}
    {{#iterate_by_two instance.custom_attribute_definitions}}
      <div class="row-fluid wrap-row">
      {{#list}}
        <div class="span6">
          <div data-custom-attribute="{{id}}" data-type="{{attribute_type}}">
            {{#with_value_for_id id}}
              {{#switch attribute_type}}
              {{#case 'Checkbox'}}
                <inline-edit
                  instance="instance"
                  ca-id="id"
                  property="value"
                  label="title"
                  type="checkbox"
                  mandatory="mandatory"
                  placeholder="placeholder"
                  helptext="helptext"
                ></inline-edit>
              {{/case}}
              {{#case 'Rich Text'}}
                <inline-edit
                  instance="instance"
                  ca-id="id"
                  property="value"
                  label="title"
                  type="text"
                  mandatory="mandatory"
                  placeholder="placeholder"
                  helptext="helptext"
                ></inline-edit>
              {{/case}}
              {{#case 'Dropdown'}}
                <inline-edit
                  instance="instance"
                  ca-id="id"
                  property="value"
                  label="title"
                  type="dropdown"
                  mandatory="mandatory"
                  values="multi_choice_options"
                  placeholder="placeholder"
                  helptext="helptext"
                ></inline-edit>
              {{/case}}
              {{#case 'Text'}}
                <inline-edit
                  instance="instance"
                  ca-id="id"
                  property="value"
                  label="title"
                  type="input"
                  mandatory="mandatory"
                  placeholder="placeholder"
                  helptext="helptext"
                ></inline-edit>
              {{/case}}
              {{#case 'Map:Person'}}
                <h6>{{title}}</h6>
                {{#with_object_for_id id}}
                  {{#using person=object}}
                    {{>'/static/mustache/people/popover.mustache'}}
                  {{/using}}
                {{/with_object_for_id}}
              {{/case}}
              {{#default}}
                <h6>{{title}}</h6>
                {{value}}
              {{/default}}
              {{/switch}}
            {{/with_value_for_id}}
          </div>
        </div>
      {{/list}}
      </div>
    {{/instance.custom_attribute_definitions}}
  {{/if}}
</custom-attributes>
{'fraction_non_alphanumeric': 0.13466958972752896, 'fraction_numerical': 0.004697776385844034, 'mean_word_length': 1.1873287671232877, 'pattern_counts': {'":': 3, '<': 57, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4889444', 'n_tokens_mistral': 1678, 'n_tokens_neox': 1553, 'n_words': 273}