<commit_before>{{!
    Copyright (C) 2016 Google Inc.
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
}}

<custom-attributes instance="instance">
    {{#if instance.custom_attribute_definitions.length}}
      {{#iterate_by_two items}}
      <div class="row-fluid wrap-row">
      {{#list}}
        <div class="span6">
          <div data-custom-attribute="{{id}}" data-type="{{attribute_type}}">
            <inline-edit
              instance="instance"
              ca-id="cad.id"
              {{#if cav.attribute_object}}
              value="cav.attribute_object"
              {{else}}
              value="cav.attribute_value"
              {{/if}}
              values="cad.multi_choice_options"
              title="cad.title"
              label="cad.label"
              type="{{type}}"
              mandatory="cad.mandatory"
              placeholder="cad.placeholder"
              helptext="cad.helptext"
              {{^is_allowed 'update' instance context='for'}}
                readonly
              {{/is_allowed}}
              can-before-edit="instance.confirmBeginEdit"
            ></inline-edit>
          </div>
        </div>
      {{/list}}
      </div>
      {{/iterate_by_two}}
    {{/if}}
</custom-attributes><commit_msg>Make sure confirmBeginEdit event is only fired for Requests<commit_after>{{!
    Copyright (C) 2016 Google Inc.
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
}}

<custom-attributes instance="instance">
    {{#if instance.custom_attribute_definitions.length}}
      {{#iterate_by_two items}}
      <div class="row-fluid wrap-row">
      {{#list}}
        <div class="span6">
          <div data-custom-attribute="{{id}}" data-type="{{attribute_type}}">
            <inline-edit
              instance="instance"
              ca-id="cad.id"
              {{#if cav.attribute_object}}
              value="cav.attribute_object"
              {{else}}
              value="cav.attribute_value"
              {{/if}}
              values="cad.multi_choice_options"
              title="cad.title"
              label="cad.label"
              type="{{type}}"
              mandatory="cad.mandatory"
              placeholder="cad.placeholder"
              helptext="cad.helptext"
              {{^is_allowed 'update' instance context='for'}}
                readonly
              {{/is_allowed}}
              {{#if_instance_of instance 'Request'}}
                can-before-edit="instance.confirmBeginEdit"
              {{/if_instance_of}}
            ></inline-edit>
          </div>
        </div>
      {{/list}}
      </div>
      {{/iterate_by_two}}
    {{/if}}
</custom-attributes>
{'fraction_non_alphanumeric': 0.14754703061600885, 'fraction_numerical': 0.005164146071560309, 'mean_word_length': 1.7617107942973524, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6199298', 'n_tokens_mistral': 772, 'n_tokens_neox': 740, 'n_words': 127}