<commit_before><div class='material-list'>
  {{#if (gt (get materials 'length') 0)}}
    <span class='course-filter'>
      <select onchange={{action setCourseIdFilter value="target.value"}}>
        <option value=null selected={{is-equal null courseIdFilter}}>
          {{t 'general.allCourses'}}
        </option>
        {{#each courses as |courseObj|}}
          <option value={{courseObj.id}} selected={{is-equal courseObj.id courseIdFilter}}>
            {{courseObj.title}}
          </option>
        {{/each}}
      </select>
    </span>
    <span class="filter">
      {{one-way-input
        update=(action setFilter)
        value=filter
        placeholder=(t 'general.filterPlaceholder')
      }}
    </span>
    <table>
      <thead>
        <tr>
          {{#sortable-th
            colspan=3
            click=(action 'sortBy' 'sessionTitle')
            sortedBy=(or (eq sortBy 'sessionTitle') (eq sortBy 'sessionTitle:desc'))
            sortedAscending=sortedAscending
          }}
            {{t 'general.session'}}
          {{/sortable-th}}
          {{#sortable-th
            colspan=3
            click=(action 'sortBy' 'courseTitle')
            sortedBy=(or (eq sortBy 'courseTitle') (eq sortBy 'courseTitle:desc'))
            sortedAscending=sortedAscending
          }}
            {{t 'general.course'}}
          {{/sortable-th}}
          {{#sortable-th
            colspan=3
            click=(action 'sortBy' 'title')
            sortedBy=(or (eq sortBy 'title') (eq sortBy 'title:desc'))
            sortedAscending=sortedAscending
          }}
            {{t 'general.title'}}
          {{/sortable-th}}
          <th class='hide-from-small-screen'>
            {{t 'general.instructor'}}
          </th>
          {{#sortable-th
            colspan=1
            click=(action 'sortBy' 'firstOfferingDate')
            sortedBy=(or (eq sortBy 'firstOfferingDate') (eq sortBy 'firstOfferingDate:desc'))
            sortedAscending=sortedAscending
            sortType='numeric'
          }}
            {{t 'general.date'}}
          {{/sortable-th}}
        </tr>
      </thead>
      <tbody>
        {{#each (sort-by sortBy filteredMaterials) as |lmObject|}}
          <tr>
            <td colspan="3">{{lmObject.sessionTitle}}</td>
            <td colspan="3">{{lmObject.courseTitle}}</td>
            <td colspan="3">
              {{lm-type-icon lm=lmObject}}
              {{#if lmObject.absoluteFileUri}}
                <a href={{lmObject.absoluteFileUri}} target='_blank' rel='noopener'>{{lmObject.title}}</a>
              {{else if lmObject.link}}
                <a href={{lmObject.link}} target='_blank' rel='noopener'>{{lmObject.title}}</a>
              {{else}}
                {{lmObject.title}}<br>
                <small>{{lmObject.citation}}</small>
              {{/if}}
            </td>
            <td colspan="1">{{big-text length=25 text=(join ', ' (sort-by (action 'sortString') lmObject.instructors))}}</td>
            <td>
              {{#if lmObject.firstOfferingDate}}
                {{moment-format lmObject.firstOfferingDate 'L'}}
              {{else}}
                {{t 'general.none'}}
              {{/if}}<commit_msg>fixed arguments when invoking lm type icon component in my materials.<commit_after><div class='material-list'>
  {{#if (gt (get materials 'length') 0)}}
    <span class='course-filter'>
      <select onchange={{action setCourseIdFilter value="target.value"}}>
        <option value=null selected={{is-equal null courseIdFilter}}>
          {{t 'general.allCourses'}}
        </option>
        {{#each courses as |courseObj|}}
          <option value={{courseObj.id}} selected={{is-equal courseObj.id courseIdFilter}}>
            {{courseObj.title}}
          </option>
        {{/each}}
      </select>
    </span>
    <span class="filter">
      {{one-way-input
        update=(action setFilter)
        value=filter
        placeholder=(t 'general.filterPlaceholder')
      }}
    </span>
    <table>
      <thead>
        <tr>
          {{#sortable-th
            colspan=3
            click=(action 'sortBy' 'sessionTitle')
            sortedBy=(or (eq sortBy 'sessionTitle') (eq sortBy 'sessionTitle:desc'))
            sortedAscending=sortedAscending
          }}
            {{t 'general.session'}}
          {{/sortable-th}}
          {{#sortable-th
            colspan=3
            click=(action 'sortBy' 'courseTitle')
            sortedBy=(or (eq sortBy 'courseTitle') (eq sortBy 'courseTitle:desc'))
            sortedAscending=sortedAscending
          }}
            {{t 'general.course'}}
          {{/sortable-th}}
          {{#sortable-th
            colspan=3
            click=(action 'sortBy' 'title')
            sortedBy=(or (eq sortBy 'title') (eq sortBy 'title:desc'))
            sortedAscending=sortedAscending
          }}
            {{t 'general.title'}}
          {{/sortable-th}}
          <th class='hide-from-small-screen'>
            {{t 'general.instructor'}}
          </th>
          {{#sortable-th
            colspan=1
            click=(action 'sortBy' 'firstOfferingDate')
            sortedBy=(or (eq sortBy 'firstOfferingDate') (eq sortBy 'firstOfferingDate:desc'))
            sortedAscending=sortedAscending
            sortType='numeric'
          }}
            {{t 'general.date'}}
          {{/sortable-th}}
        </tr>
      </thead>
      <tbody>
        {{#each (sort-by sortBy filteredMaterials) as |lmObject|}}
          <tr>
            <td colspan="3">{{lmObject.sessionTitle}}</td>
            <td colspan="3">{{lmObject.courseTitle}}</td>
            <td colspan="3">
              {{lm-type-icon type=lmObject.type mimetype=lmObject.mimetype}}
              {{#if lmObject.absoluteFileUri}}
                <a href={{lmObject.absoluteFileUri}} target='_blank' rel='noopener'>{{lmObject.title}}</a>
              {{else if lmObject.link}}
                <a href={{lmObject.link}} target='_blank' rel='noopener'>{{lmObject.title}}</a>
              {{else}}
                {{lmObject.title}}<br>
                <small>{{lmObject.citation}}</small>
              {{/if}}
            </td>
            <td colspan="1">{{big-text length=25 text=(join ', ' (sort-by (action 'sortString') lmObject.instructors))}}</td>
            <td>
              {{#if lmObject.firstOfferingDate}}
                {{moment-format lmObject.firstOfferingDate 'L'}}
              {{else}}
                {{t 'general.none'}}
              {{/if}}
{'fraction_non_alphanumeric': 0.15773259396179914, 'fraction_numerical': 0.0033887861983980284, 'mean_word_length': 1.8590929106120653, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '5757261', 'n_tokens_mistral': 1922, 'n_tokens_neox': 1879, 'n_words': 354}