<commit_before>CoderController = RouteController.extend({
  template: 'channel',
  waitOn: function () {
    return [
      Meteor.subscribe('CoderChannel', this.params.coderId),
      Meteor.subscribe('SingleUser', this.params.coderId),
      Meteor.subscribe('CoderFollowers', this.params.coderId)
    ];
  },
  onAfterAction: function () {
    var coder = Meteor.users.findOneFromCoderId(this.params.coderId);
    var channel = Channels.findOne();

    if (! _.isEmpty(coder)) {
      Session.set('coder', coder);
      Session.set('chatHost', coder._id);
      Session.set('currentCoder', coder._id);
      Meteor.subscribe(
        'userPresenceWithProfile',
        coder.profile.username,
        coder._id,
        function () {
          Session.set('chatSubsReady', true);
        }
      );

      var seoTitle = channel.title + ' by ' + coder.profile.name + ' | CodersTV';
      SEO.set({
        title: seoTitle,
        rel_author: coder.superchat.url || '',
        meta: {
          description: channel.description
        },
        og: {
          type: 'profile',
          'profile:first_name': coder.superchat.givenName,
          'profile:last_name': coder.superchat.familyName,
          'profile:username': coder.profile.username || coder.profile.name,
          title: seoTitle,
          description: channel.description,
          image: coder.superchat.pic_square
        }
      });
    }
  }
});

VideoController = RouteController.extend({
  template: 'channel',
  waitOn: function () {
    return [
      Meteor.subscribe('CoderChannel', this.params.coderId),
      Meteor.subscribe('SingleUser', this.params.coderId),
      Meteor.subscribe('CoderFollowers', this.params.coderId)
    ];
  },
  onAfterAction: function () {
    var coder = Meteor.users.findOneFromCoderId(this.params.coderId);
    var channel = Channels.findOne();

    if (! _.isEmpty(coder)) {
      Session.set('coder', coder);
      Session.set('currentCoder', coder._id);

      var seoTitle = channel.title + ' by ' + coder.profile.name + ' | CodersTV';
      SEO.set({
        title: seoTitle,
        rel_author: coder.superchat.url || '',
        meta: {
          description: channel.description
        },
        og: {
          type: 'video.other',
          'video:writer': coder.profile.name,
          'video:release_date': (new Date(channel.finishedAt)).toISOString(),
          'video:tags': channel.language,<commit_msg>Get the latest video user has done to populate og tags<commit_after>CoderController = RouteController.extend({
  template: 'channel',
  waitOn: function () {
    return [
      Meteor.subscribe('CoderChannel', this.params.coderId),
      Meteor.subscribe('SingleUser', this.params.coderId),
      Meteor.subscribe('CoderFollowers', this.params.coderId)
    ];
  },
  onAfterAction: function () {
    var coder = Meteor.users.findOneFromCoderId(this.params.coderId);
    var channel = Channels.findOne({}, {sort: {createdAt: -1}});

    if (! _.isEmpty(coder)) {
      Session.set('coder', coder);
      Session.set('chatHost', coder._id);
      Session.set('currentCoder', coder._id);
      Meteor.subscribe(
        'userPresenceWithProfile',
        coder.profile.username,
        coder._id,
        function () {
          Session.set('chatSubsReady', true);
        }
      );

      var seoTitle = channel.title + ' by ' + coder.profile.name + ' | CodersTV';
      SEO.set({
        title: seoTitle,
        rel_author: coder.superchat.url || '',
        meta: {
          description: channel.description
        },
        og: {
          type: 'profile',
          'profile:first_name': coder.superchat.givenName,
          'profile:last_name': coder.superchat.familyName,
          'profile:username': coder.profile.username || coder.profile.name,
          title: seoTitle,
          description: channel.description,
          image: coder.superchat.pic_square
        }
      });
    }
  }
});

VideoController = RouteController.extend({
  template: 'channel',
  waitOn: function () {
    return [
      Meteor.subscribe('CoderChannel', this.params.coderId),
      Meteor.subscribe('SingleUser', this.params.coderId),
      Meteor.subscribe('CoderFollowers', this.params.coderId)
    ];
  },
  onAfterAction: function () {
    var coder = Meteor.users.findOneFromCoderId(this.params.coderId);
    var channel = Channels.findOne(this.params.videoId);

    if (! _.isEmpty(coder)) {
      Session.set('coder', coder);
      Session.set('currentCoder', coder._id);

      var seoTitle = channel.title + ' by ' + coder.profile.name + ' | CodersTV';
      SEO.set({
        title: seoTitle,
        rel_author: coder.superchat.url || '',
        meta: {
          description: channel.description
        },
        og: {
          type: 'video.other',
          'video:writer': coder.profile.name,
          'video:release_date': (new Date(channel.finishedAt)).toISOString(),
          'video:tags': channel.language,
{'fraction_non_alphanumeric': 0.14058408862034238, 'fraction_numerical': 0.0002014098690835851, 'mean_word_length': 2.529495380241649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4605127', 'n_tokens_mistral': 1555, 'n_tokens_neox': 1525, 'n_words': 246}