<commit_before><template>
  <div class="talk-widget">
    <div class="talk-cell" :class="timeClass">
      <div class="left-column">
        <favourite :event="event" :mode="'standard'"/>
        <long-talk-marker :event="event" :long-talk-threshold-in-minutes="longTalkThresholdMinutes"/>
      </div>
      <router-link :to="{ name: 'scheduledEventPage', params: { eventId: event.id }}" style="padding: 0">
        <div class="talk-info">
          <div class="title darkLink">
            <a>{{event.title}}</a> <!-- the a is for preservation of the hover effect....  -->
            <img v-if="mode === 'grid' && Object.keys(languages).length > 1" class="language-icon" :src="languageIcon">
          </div>
          <div class="fully-booked stamp" v-if="event.fullyBooked">{{ $t('fullyBooked') }}</div>
          <div class="speaker">
            <span v-for="(s, i) in eventSpeaker" :key="s.id">{{ s.name }}<span v-if="i < eventSpeaker.length -1">, </span></span>
          </div>

          <scheduled-event-icons :event="event" :mode="mode"/>
        </div>
      </router-link>
    </div>
  </div>
</template>

<script>
import ScheduledEventIcons from './ScheduledEventIcons.vue'
import Conference from '../../Conference'
import Favourite from './Favourite.vue'
import LongTalkMarker from './LongTalkMarker'

function getTimeCategory (duration, threshold) {
  if (typeof duration === 'undefined' || (duration > 30 && duration <= threshold)) {
    return 'regular'
  }
  if (duration <= 30) {
    return 'short'<commit_msg>more talks, longer threshold for long talks - small fix (2), remove console log<commit_after><template>
  <div class="talk-widget">
    <div class="talk-cell" :class="timeClass">
      <div class="left-column">
        <favourite :event="event" :mode="'standard'"/>
        <long-talk-marker :event="event" :long-talk-threshold-minutes="longTalkThresholdMinutes"/>
      </div>
      <router-link :to="{ name: 'scheduledEventPage', params: { eventId: event.id }}" style="padding: 0">
        <div class="talk-info">
          <div class="title darkLink">
            <a>{{event.title}}</a> <!-- the a is for preservation of the hover effect....  -->
            <img v-if="mode === 'grid' && Object.keys(languages).length > 1" class="language-icon" :src="languageIcon">
          </div>
          <div class="fully-booked stamp" v-if="event.fullyBooked">{{ $t('fullyBooked') }}</div>
          <div class="speaker">
            <span v-for="(s, i) in eventSpeaker" :key="s.id">{{ s.name }}<span v-if="i < eventSpeaker.length -1">, </span></span>
          </div>

          <scheduled-event-icons :event="event" :mode="mode"/>
        </div>
      </router-link>
    </div>
  </div>
</template>

<script>
import ScheduledEventIcons from './ScheduledEventIcons.vue'
import Conference from '../../Conference'
import Favourite from './Favourite.vue'
import LongTalkMarker from './LongTalkMarker'

function getTimeCategory (duration, threshold) {
  if (typeof duration === 'undefined' || (duration > 30 && duration <= threshold)) {
    return 'regular'
  }
  if (duration <= 30) {
    return 'short'
{'fraction_non_alphanumeric': 0.18867924528301888, 'fraction_numerical': 0.004796929964822514, 'mean_word_length': 3.0729166666666665, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 67, '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': '7366899', 'n_tokens_mistral': 1001, 'n_tokens_neox': 964, 'n_words': 235}