<commit_before><script>
  import moment from 'moment';
  import { sortBy } from 'lodash';
  import cdDateFormatter from '@/common/filters/cd-date-formatter';
  import cdTimeFormatter from '@/common/filters/cd-time-formatter';
  import cdUrlFormatter from '@/common/filters/cd-url-formatter';
  import EventsUtil from './util';

  export default {
    name: 'event-tile',
    props: ['event', 'dojo', 'usersDojos', 'users'],
    computed: {
      isFull() {
        let totalEventCapacity = 0;
        let totalTicketsBooked = 0;
        this.event.sessions.forEach((session) => {
          session.tickets.forEach((ticket) => {
            totalEventCapacity += ticket.quantity;
            totalTicketsBooked += ticket.approvedApplications;
          });
        });
        return totalEventCapacity === totalTicketsBooked;
      },
      nextStartTime() {
        return EventsUtil.getNextStartTime(this.event);
      },
      isRecurring() {
        return EventsUtil.isRecurring(this.event);
      },
      recurringFrequencyInfo() {
        return EventsUtil.buildRecurringFrequencyInfo(this.event);
      },
      isPastEvent() {
        const now = moment();
        const eventStartTime = moment(this.event.dates[this.event.dates.length - 1].startTime);
        eventStartTime.subtract(eventStartTime.utcOffset(), 'minutes');
        return now.isAfter(eventStartTime);
      },
      formattedStartTime() {
        return this.$options.filters.cdTimeFormatter(this.event.dates[0].startTime);
      },<commit_msg>Fix isFull condition<commit_after><script>
  import moment from 'moment';
  import { sortBy } from 'lodash';
  import cdDateFormatter from '@/common/filters/cd-date-formatter';
  import cdTimeFormatter from '@/common/filters/cd-time-formatter';
  import cdUrlFormatter from '@/common/filters/cd-url-formatter';
  import EventsUtil from './util';

  export default {
    name: 'event-tile',
    props: ['event', 'dojo', 'usersDojos', 'users'],
    computed: {
      isFull() {
        let totalEventCapacity = 0;
        let totalTicketsBooked = 0;
        this.event.sessions.forEach((session) => {
          session.tickets.forEach((ticket) => {
            totalEventCapacity += ticket.quantity;
            totalTicketsBooked += ticket.approvedApplications;
          });
        });
        return totalEventCapacity <= totalTicketsBooked;
      },
      nextStartTime() {
        return EventsUtil.getNextStartTime(this.event);
      },
      isRecurring() {
        return EventsUtil.isRecurring(this.event);
      },
      recurringFrequencyInfo() {
        return EventsUtil.buildRecurringFrequencyInfo(this.event);
      },
      isPastEvent() {
        const now = moment();
        const eventStartTime = moment(this.event.dates[this.event.dates.length - 1].startTime);
        eventStartTime.subtract(eventStartTime.utcOffset(), 'minutes');
        return now.isAfter(eventStartTime);
      },
      formattedStartTime() {
        return this.$options.filters.cdTimeFormatter(this.event.dates[0].startTime);
      },
{'fraction_non_alphanumeric': 0.12754098360655738, 'fraction_numerical': 0.002622950819672131, 'mean_word_length': 2.818523153942428, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 9, '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': '5297523', 'n_tokens_mistral': 884, 'n_tokens_neox': 855, 'n_words': 152}