<commit_before><section
  class="program-year-manage-objective-competency"
  data-test-program-year-manage-objective-competency
>
  <h3 class="objective-title" data-test-objective-title>
    {{! template-lint-disable no-triple-curlies }}
    {{{@objectiveTitle}}}
  </h3>
  {{#if @domains.length}}
    <ul class="parent-picker" data-test-parent-picker>
      {{#each @domains as |domain|}}
        <li class="domain {{if
              (or
                (is-equal @selected.id domain.id)
                (contains @selected.id (map-by "id" domain.competencies))
              )
              "selected"
            }}"
            data-test-domain
        >
          <h4
            class="domain-title"
          >
            {{domain.title}}
          </h4>
          <ul>
            {{#each (sort-by "title" domain.competencies) as |competency|}}
              <li>
                <ProgramYear::ManageObjectiveCompetencyItem
                  @title={{competency.title}}
                  @isSelected={{eq competency.id @selected.id}}
                  @add={{fn @add competency.id}}
                  @remove={{@remove}}
                />
              </li><commit_msg>adds ability to select/unselect competency domains.<commit_after><section
  class="program-year-manage-objective-competency"
  data-test-program-year-manage-objective-competency
>
  <h3 class="objective-title" data-test-objective-title>
    {{! template-lint-disable no-triple-curlies }}
    {{{@objectiveTitle}}}
  </h3>
  {{#if @domains.length}}
    <ul class="parent-picker" data-test-parent-picker>
      {{#each @domains as |domain|}}
        <li class="domain {{if
              (or
                (eq @selected.id domain.id)
                (contains @selected.id (map-by "id" domain.competencies))
              )
              "selected"
            }}"
            data-test-domain
        >
          {{#if (eq @selected.id domain.id)}}
            <h4 {{on "click" @remove}} class="domain-title selected">
              <input type="radio" checked="checked">
              {{domain.title}}
            </h4>
          {{else}}
            <h4 {{on "click" (fn @add domain.id)}} class="domain-title">
              <input type="radio">
              {{domain.title}}
            </h4>
          {{/if}}
          <ul>
            {{#each (sort-by "title" domain.competencies) as |competency|}}
              <li>
                <ProgramYear::ManageObjectiveCompetencyItem
                  @title={{competency.title}}
                  @isSelected={{eq competency.id @selected.id}}
                  @add={{fn @add competency.id}}
                  @remove={{@remove}}
                />
              </li>
{'fraction_non_alphanumeric': 0.15037037037037038, 'fraction_numerical': 0.003703703703703704, 'mean_word_length': 1.6299902629016554, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '254701', 'n_tokens_mistral': 795, 'n_tokens_neox': 783, 'n_words': 138}