<commit_before><div ng-if="ctrl.state.loaded" class="clearfix">
  <div class="container-fluid form-horizontal">
    <h4>Resource to Patch</h4>
    <div class="horizontal-rule"></div>
    <kubernetes-manifest-selector
      application="ctrl.$scope.application"
      modes='["static", "dynamic"]'
      on-change="ctrl.handleManifestSelectorChange"
      selector="ctrl.$scope.stage"
    ></kubernetes-manifest-selector>

    <h4>Patch Content</h4>
    <hr />
    <ng-form name="patchContentSource">
      <stage-config-field label="Manifest Source" help-key="kubernetes.manifest.source">
        <div class="radio">
          <label class="sm-label-right">
            <input type="radio" ng-model="ctrl.$scope.stage.source" value="{{ctrl.textSource}}" />
            {{ ctrl.textSource | robotToHuman }}
          </label>
        </div>
        <div class="radio">
          <label class="sm-label-right">
            <input type="radio" ng-model="ctrl.$scope.stage.source" value="{{ctrl.artifactSource}}" />
            {{ ctrl.artifactSource | robotToHuman }}
          </label>
        </div>
      </stage-config-field>
    </ng-form>
    <yaml-editor
      ng-if="stage.source === ctrl.textSource && ctrl.getEditorMode() === 'yaml'"
      on-change="ctrl.handlePatchBodyChange"
      value="ctrl.rawPatchBody"
    >
    </yaml-editor>
    <json-editor
      ng-if="stage.source === ctrl.textSource && ctrl.getEditorMode() === 'json'"
      on-change="ctrl.handlePatchBodyChange"
      value="ctrl.rawPatchBody"
    >
    </json-editor>
    <stage-config-field
      label="Expected Artifact"
      help-key="kubernetes.manifest.expectedArtifact"
      field-columns="8"
      ng-if="ctrl.$scope.stage.source === ctrl.artifactSource"
    >
      <expected-artifact-selector-react
        expected-artifacts="ctrl.$scope.expectedArtifacts"
        selected="ctrl.manifestArtifactDelegate.getSelectedExpectedArtifact()"
        on-change="ctrl.manifestArtifactController.onArtifactChange"
        on-request-create="ctrl.manifestArtifactController.onRequestCreate"
        excluded-artifact-types="ctrl.manifestArtifactDelegate.getExcludedArtifactTypes()"
        requesting-new="ctrl.$scope.showCreateArtifactForm"
      >
      </expected-artifact-selector-react>
    </stage-config-field>
    <stage-config-field label="Artifact Account" field-columns="8" ng-if="ctrl.canShowAccountSelect()">
      <artifact-account-selector-react
        accounts="ctrl.manifestArtifactController.accountsForArtifact"
        selected="ctrl.manifestArtifactDelegate.getSelectedAccount()"
        on-change="ctrl.manifestArtifactController.onAccountChange"
      >
      </artifact-account-selector-react>
    </stage-config-field>
    <expected-artifact-editor-react
      ng-if="ctrl.$scope.showCreateArtifactForm"
      kinds="ctrl.manifestArtifactDelegate.getSupportedArtifactKinds()"
      sources="ctrl.manifestArtifactDelegate.getExpectedArtifactSources()"
      accounts="ctrl.manifestArtifactDelegate.getExpectedArtifactAccounts()"
      on-save="ctrl.manifestArtifactController.onArtifactCreated"
    >
    </expected-artifact-editor-react>
    <hr />
    <expected-artifact-multi-selector
      command="ctrl.$scope.stage"
      ids-field="requiredArtifactIds"
      artifact-label="Req. Artifacts To Bind"
      expected-artifacts="ctrl.expectedArtifacts"
      help-field-key="kubernetes.manifest.requiredArtifactsToBind"
      show-icons="true"
    >
    </expected-artifact-multi-selector>

    <h4>Patch Options</h4>
    <div class="horizontal-rule"></div>
    <kubernetes-patch-manifest-options-form
      options="ctrl.$scope.stage.options"
      on-change="ctrl.handleMergeStrategyChange"
    >
    </kubernetes-patch-manifest-options-form>
  </div>
</div><commit_msg>fix(kubernetes): fix req. artifacts to bind selector in patch manifest stage (#7095)<commit_after><div ng-if="ctrl.state.loaded" class="clearfix">
  <div class="container-fluid form-horizontal">
    <h4>Resource to Patch</h4>
    <div class="horizontal-rule"></div>
    <kubernetes-manifest-selector
      application="ctrl.$scope.application"
      modes='["static", "dynamic"]'
      on-change="ctrl.handleManifestSelectorChange"
      selector="ctrl.$scope.stage"
    ></kubernetes-manifest-selector>

    <h4>Patch Content</h4>
    <hr />
    <ng-form name="patchContentSource">
      <stage-config-field label="Manifest Source" help-key="kubernetes.manifest.source">
        <div class="radio">
          <label class="sm-label-right">
            <input type="radio" ng-model="ctrl.$scope.stage.source" value="{{ctrl.textSource}}" />
            {{ ctrl.textSource | robotToHuman }}
          </label>
        </div>
        <div class="radio">
          <label class="sm-label-right">
            <input type="radio" ng-model="ctrl.$scope.stage.source" value="{{ctrl.artifactSource}}" />
            {{ ctrl.artifactSource | robotToHuman }}
          </label>
        </div>
      </stage-config-field>
    </ng-form>
    <yaml-editor
      ng-if="stage.source === ctrl.textSource && ctrl.getEditorMode() === 'yaml'"
      on-change="ctrl.handlePatchBodyChange"
      value="ctrl.rawPatchBody"
    >
    </yaml-editor>
    <json-editor
      ng-if="stage.source === ctrl.textSource && ctrl.getEditorMode() === 'json'"
      on-change="ctrl.handlePatchBodyChange"
      value="ctrl.rawPatchBody"
    >
    </json-editor>
    <stage-config-field
      label="Expected Artifact"
      help-key="kubernetes.manifest.expectedArtifact"
      field-columns="8"
      ng-if="ctrl.$scope.stage.source === ctrl.artifactSource"
    >
      <expected-artifact-selector-react
        expected-artifacts="ctrl.$scope.expectedArtifacts"
        selected="ctrl.manifestArtifactDelegate.getSelectedExpectedArtifact()"
        on-change="ctrl.manifestArtifactController.onArtifactChange"
        on-request-create="ctrl.manifestArtifactController.onRequestCreate"
        excluded-artifact-types="ctrl.manifestArtifactDelegate.getExcludedArtifactTypes()"
        requesting-new="ctrl.$scope.showCreateArtifactForm"
      >
      </expected-artifact-selector-react>
    </stage-config-field>
    <stage-config-field label="Artifact Account" field-columns="8" ng-if="ctrl.canShowAccountSelect()">
      <artifact-account-selector-react
        accounts="ctrl.manifestArtifactController.accountsForArtifact"
        selected="ctrl.manifestArtifactDelegate.getSelectedAccount()"
        on-change="ctrl.manifestArtifactController.onAccountChange"
      >
      </artifact-account-selector-react>
    </stage-config-field>
    <expected-artifact-editor-react
      ng-if="ctrl.$scope.showCreateArtifactForm"
      kinds="ctrl.manifestArtifactDelegate.getSupportedArtifactKinds()"
      sources="ctrl.manifestArtifactDelegate.getExpectedArtifactSources()"
      accounts="ctrl.manifestArtifactDelegate.getExpectedArtifactAccounts()"
      on-save="ctrl.manifestArtifactController.onArtifactCreated"
    >
    </expected-artifact-editor-react>
    <hr />
    <expected-artifact-multi-selector
      command="ctrl.$scope.stage"
      ids-field="requiredArtifactIds"
      artifact-label="Req. Artifacts To Bind"
      expected-artifacts="ctrl.$scope.expectedArtifacts"
      help-field-key="kubernetes.manifest.requiredArtifactsToBind"
      show-icons="true"
    >
    </expected-artifact-multi-selector>

    <h4>Patch Options</h4>
    <div class="horizontal-rule"></div>
    <kubernetes-patch-manifest-options-form
      options="ctrl.$scope.stage.options"
      on-change="ctrl.handleMergeStrategyChange"
    >
    </kubernetes-patch-manifest-options-form>
  </div>
</div>
{'fraction_non_alphanumeric': 0.14366160293347302, 'fraction_numerical': 0.0026191723415400735, 'mean_word_length': 3.3293650793650795, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '1895889', 'n_tokens_mistral': 2279, 'n_tokens_neox': 2180, 'n_words': 260}