<commit_before><script type="text/ng-template" id="components/fallbackEditor">
  <div style="height: 100%;">

    <div ng-if="!triggerEditorIsOpen"
         style="height: 100%;"
         ng-attr-title="<[isEditable ? 'Edit fallback condition' : '']>">
      <div class="oppia-readonly-rule-tile protractor-test-edit-trigger-button"
           ng-class="{'oppia-editable-section': isEditable}">
        <div class="oppia-rule-preview oppia-transition-200">
          <div class="oppia-click-to-start-editing protractor-test-open-trigger-editor"
               ng-if="isEditable" ng-click="openTriggerEditor()">
          </div>

          Once the learner has made <[trigger.customization_args.num_submits.value]>
          unsuccessful attempt<span ng-if="trigger.customization_args.num_submits.value !== 1">s</span>:

          <i ng-if="isEditable"
             class="material-icons oppia-editor-edit-icon pull-right" 
             title="Edit Fallback Condition">&#xE254;
          </i>
        </div>
      </div>
    </div>

    <div ng-if="isEditable && triggerEditorIsOpen">
      <form role="form"
            class="form-inline protractor-test-edit-trigger"
            name="editFallbackForm.editTriggerForm"
            ng-submit="saveThisTrigger()">
        <div class="oppia-rule-details-header">
          Once the learner has made
          <schema-based-editor schema="INT_FORM_SCHEMA"
                               local-value="trigger.customization_args.num_submits.value">
          </schema-based-editor>
          unsuccessful attempt<span ng-if="trigger.customization_args.num_submits.value !== 1">s</span>:
        </div>
      </form>

      <div class="oppia-rule-save-cancel-buttons">
        <div class="pull-right">
          <button type="button"
                  class="btn btn-default protractor-test-cancel-trigger"
                  ng-click="cancelThisTriggerEdit()">
            Cancel
          </button>
          <button type="button"
                  class="btn btn-success protractor-test-save-trigger"
                  ng-disabled="editFallbackForm.editTriggerForm.$invalid"
                  ng-click="saveThisTrigger()">
            Save
          </button>
        </div>

        <div style="clear: both;"></div>
      </div>
    </div>

    <br>

    <outcome-editor is-editable="isEditable"
                    on-save-dest="getOnSaveFn()"
                    on-save-feedback="getOnSaveFn()"
                    outcome="outcome">
    </outcome-editor>
  </div>
</script>
<commit_msg>Change the position of the edit button.<commit_after><script type="text/ng-template" id="components/fallbackEditor">
  <div style="height: 100%;">

    <div ng-if="!triggerEditorIsOpen"
         style="height: 100%;"
         ng-attr-title="<[isEditable ? 'Edit fallback condition' : '']>">
      <div class="oppia-readonly-rule-tile protractor-test-edit-trigger-button"
           ng-class="{'oppia-editable-section': isEditable}">
        <div class="oppia-rule-preview oppia-transition-200">
          <div class="oppia-click-to-start-editing protractor-test-open-trigger-editor"
               ng-if="isEditable" ng-click="openTriggerEditor()">
            <i ng-if="isEditable"
               class="material-icons oppia-editor-edit-icon pull-right" 
               title="Edit Fallback Condition">&#xE254;
            </i>
          </div>

          Once the learner has made <[trigger.customization_args.num_submits.value]>
          unsuccessful attempt<span ng-if="trigger.customization_args.num_submits.value !== 1">s</span>:
        </div>
      </div>
    </div>

    <div ng-if="isEditable && triggerEditorIsOpen">
      <form role="form"
            class="form-inline protractor-test-edit-trigger"
            name="editFallbackForm.editTriggerForm"
            ng-submit="saveThisTrigger()">
        <div class="oppia-rule-details-header">
          Once the learner has made
          <schema-based-editor schema="INT_FORM_SCHEMA"
                               local-value="trigger.customization_args.num_submits.value">
          </schema-based-editor>
          unsuccessful attempt<span ng-if="trigger.customization_args.num_submits.value !== 1">s</span>:
        </div>
      </form>

      <div class="oppia-rule-save-cancel-buttons">
        <div class="pull-right">
          <button type="button"
                  class="btn btn-default protractor-test-cancel-trigger"
                  ng-click="cancelThisTriggerEdit()">
            Cancel
          </button>
          <button type="button"
                  class="btn btn-success protractor-test-save-trigger"
                  ng-disabled="editFallbackForm.editTriggerForm.$invalid"
                  ng-click="saveThisTrigger()">
            Save
          </button>
        </div>

        <div style="clear: both;"></div>
      </div>
    </div>

    <br>

    <outcome-editor is-editable="isEditable"
                    on-save-dest="getOnSaveFn()"
                    on-save-feedback="getOnSaveFn()"
                    outcome="outcome">
    </outcome-editor>
  </div>
</script>

{'fraction_non_alphanumeric': 0.14151497357604229, 'fraction_numerical': 0.00548052456449403, 'mean_word_length': 2.1215638362858886, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '7320825', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1462, 'n_words': 230}