<commit_before>import moment from 'moment';

import { Posts } from '../../api/collections';

const seedPosts = () => {
  const post = Posts.findOne();

  if (!post) {
    for (let i = 0; i < 50; i++) {
      Posts.insert({
        userId: 'QBgyG7MsqswQmvm7J',
        username: 'evancorl',
        createdAt: moment().utc().toDate(),
        message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ' +
                 'tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ' +
                 'quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo.',
        media: {
          type: 'Video',
          source: 'YouTube',
          thumbnail: '/images/feeds.jpg',
          url: 'https://www.meteor.com/',
        },
        likeCount: 14,
        commentCount: 3,
      });

      Posts.insert({
        userId: 'QBgyG7MsqswQmvm7J',
        username: 'evancorl',
        createdAt: moment().utc().toDate(),
        message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ' +
                 'tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ' +
                 'quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo.',
        media: {
          type: 'Photo',
          thumbnail: '/images/feeds-2.jpg',
          url: 'https://www.meteor.com/',
        },
        likeCount: 14,
        commentCount: 3,
      });
    }
  }
};

export default seedPosts;<commit_msg>Restructure fields in post seed data<commit_after>import moment from 'moment';

import { Posts } from '../../api/collections';

const seedPosts = () => {
  const post = Posts.findOne();

  if (!post) {
    for (let i = 0; i < 50; i++) {
      Posts.insert({
        userId: 'QBgyG7MsqswQmvm7J',
        username: 'evancorl',
        avatar: '/images/avatar.jpg',
        createdAt: moment().utc().toDate(),
        type: 'Video',
        title: 'This is a sample title',
        message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ' +
                 'tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ' +
                 'quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo.',
        media: {
          source: 'YouTube',
          thumbnail: '/images/feeds.jpg',
          url: 'https://www.meteor.com/',
        },
        likeCount: 14,
        commentCount: 3,
      });

      Posts.insert({
        userId: 'QBgyG7MsqswQmvm7J',
        username: 'evancorl',
        avatar: '/images/avatar.jpg',
        createdAt: moment().utc().toDate(),
        type: 'Photo',
        message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ' +
                 'tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ' +
                 'quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo.',
        media: {
          thumbnail: '/images/feeds-2.jpg',
          url: 'https://www.meteor.com/',
        },
        likeCount: 14,
        commentCount: 3,
      });
    }
  }
};

export default seedPosts;
{'fraction_non_alphanumeric': 0.12476250791640278, 'fraction_numerical': 0.008866371120962635, 'mean_word_length': 1.9971537001897532, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6255935', 'n_tokens_mistral': 1063, 'n_tokens_neox': 1016, 'n_words': 284}