<commit_before><template>
  <div>
    <uw-section
      v-for="section in sections"
      :key="section.id"
      :section="section"
      :mobile-only="mobileOnly"
    >
      <template v-if="getLinkedSections(section).length">
        <b-button
          v-if="!isOpen"
          v-b-toggle="`linked-sections-${section.id}`"
          variant="link"
          size="sm"
          :aria-label="`SHOW LINKED SECTIONS for ${section.id}`"
          title="Expand to show linked sections"
        >
          Show Linked Sections of {{ section.curriculum_abbr }}
          {{ section.course_number }} {{ section.section_id }}
        </b-button>

        <b-button
          v-else
          v-b-toggle="`linked-sections-${section.id}`"
          variant="link"
          size="sm"
          :aria-label="`HIDE LINKED SECTIONS for ${section.id}`"
          title="Collapse to show linked sections"
        >
          Hide Linked Sections of {{ section.curriculum_abbr }}
          {{ section.course_number }} {{ section.section_id }}
        </b-button>

        <b-collapse
          :id="`linked-sections-${section.id}`"
          v-model="isOpen"
          :aria-label="`LINKED SECTIONS FOR ${section.id}`"
        >
          <uw-linked-section
            v-for="(sec, j) in getLinkedSections(section)" :key="j"
            :section="sec"
            :mobile-only="mobileOnly"
          />
        </b-collapse>
      </template>
      <hr>
    </uw-section>
  </div>
</template>

<script>
import LinkedSection from './linked-section.vue';
import Section from './section.vue';

export default {
  components: {
    'uw-section': Section,
    'uw-linked-section': LinkedSection,
  },
  props: {<commit_msg>Remove the v-model attribute which caused all the disclosures being opened.<commit_after><template>
  <div>
    <uw-section
      v-for="section in sections"
      :key="section.id"
      :section="section"
      :mobile-only="mobileOnly"
    >
      <template v-if="getLinkedSections(section).length">
        <b-button
          v-if="!isOpen"
          v-b-toggle="`linked-sections-${section.id}`"
          variant="link"
          size="sm"
          :aria-label="`SHOW LINKED SECTIONS for ${section.id}`"
          title="Expand to show linked sections"
        >
          Show Linked Sections of {{ section.curriculum_abbr }}
          {{ section.course_number }} {{ section.section_id }}
        </b-button>

        <b-button
          v-else
          v-b-toggle="`linked-sections-${section.id}`"
          variant="link"
          size="sm"
          :aria-label="`HIDE LINKED SECTIONS for ${section.id}`"
          title="Collapse to show linked sections"
        >
          Hide Linked Sections of {{ section.curriculum_abbr }}
          {{ section.course_number }} {{ section.section_id }}
        </b-button>

        <b-collapse
          :id="`linked-sections-${section.id}`"
          :aria-label="`LINKED SECTIONS FOR ${section.id}`"
        >
          <uw-linked-section
            v-for="(sec, j) in getLinkedSections(section)" :key="j"
            :section="sec"
            :mobile-only="mobileOnly"
          />
        </b-collapse>
      </template>
      <hr>
    </uw-section>
  </div>
</template>

<script>
import LinkedSection from './linked-section.vue';
import Section from './section.vue';

export default {
  components: {
    'uw-section': Section,
    'uw-linked-section': LinkedSection,
  },
  props: {
{'fraction_non_alphanumeric': 0.15126050420168066, 'fraction_numerical': 0.0, 'mean_word_length': 2.0148471615720522, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '375898', 'n_tokens_mistral': 1056, 'n_tokens_neox': 1051, 'n_words': 199}