<commit_before>import moment from 'moment';

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

const seedPosts = () => {
  const postCount = Posts.find().count();

  if (postCount === 0) {
    for (let i = 0; i < 50; i++) {
      Posts.insert({
        createdAt: moment().utc().toDate(),
        userId: 'QBgyG7MsqswQmvm7J',
        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: 'Facebook',
          thumb: '/images/feeds.jpg',
          url: 'https://www.meteor.com/',
        },
        totalViews: 30,
        totalLikes: 14,
        totalShares: 3,
        totalComments: 3,
      });

      Posts.insert({
        createdAt: moment().utc().toDate(),
        userId: 'QBgyG7MsqswQmvm7J',
        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',
          source: 'Instagram',
          thumb: '/images/feeds-2.jpg',
          url: 'https://www.meteor.com/',
        },
        totalViews: 30,
        totalLikes: 14,
        totalShares: 3,
        totalComments: 3,
      });
    }
  }
};

export default seedPosts;
<commit_msg>Reformat posts in 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',
        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;

{'fraction_non_alphanumeric': 0.12331838565022421, 'fraction_numerical': 0.011210762331838564, 'mean_word_length': 1.962998102466793, '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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4213662', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1003, 'n_words': 281}