<commit_before>import { registerFragment, extendFragment } from 'meteor/vulcan:core';

extendFragment('UsersAdmin', `
  karma
`);

registerFragment(`
  fragment conversationsListFragment on Conversation {
    _id
    title
    createdAt
    latestActivity
    participantIds
    participants {
      ...UsersMinimumInfo
    }
  }
`);

registerFragment(`
  fragment newConversationFragment on Conversation {
    _id
    title
    participantIds
  }
`);

registerFragment(`
  fragment messageListFragment on Message {
    _id
    user {
      ...UsersMinimumInfo
    }
    contents {
      html
    }
    createdAt
    conversationId
  }
`);

registerFragment(`
  fragment editTitle on Conversation {
    _id
    title
  }
`);

registerFragment(`
  fragment NotificationsList on Notification {
    _id
    userId
    createdAt
    link
    message
    type
    viewed
  }
`);

extendFragment('UsersCurrent', `
  ...UsersMinimumInfo
  voteBanned
  banned
  nullifyVotes
  hideIntercom
  currentFrontpageFilter
  allPostsView
  allPostsFilter
  allPostsShowLowKarma
  allPostsOpenSettings
  lastNotificationsCheck
  subscribedItems
  groups
  bannedUserIds
  moderationStyle
  moderationGuidelines {
    ...RevisionEdit
  }
  markDownPostEditor
  commentSorting
  location
  googleLocation
  mongoLocation
  emailSubscribedToCurated
  unsubscribeFromAll
  emails
  whenConfirmationEmailSent
  noCollapseCommentsFrontpage
  noCollapseCommentsPosts
  karmaChangeNotifierSettings
  karmaChangeLastOpened
  shortformFeedId
  viewUnreviewedComments
  sunshineShowNewUserContent
  # TODO: Remove this after april fools
  blockedGPT2
  recommendationSettings
`);

registerFragment(`
  fragment UserKarmaChanges on User {
    karmaChanges {
      totalChange<commit_msg>Add _id to UserKarmaChanges to avoid store mismatch<commit_after>import { registerFragment, extendFragment } from 'meteor/vulcan:core';

extendFragment('UsersAdmin', `
  karma
`);

registerFragment(`
  fragment conversationsListFragment on Conversation {
    _id
    title
    createdAt
    latestActivity
    participantIds
    participants {
      ...UsersMinimumInfo
    }
  }
`);

registerFragment(`
  fragment newConversationFragment on Conversation {
    _id
    title
    participantIds
  }
`);

registerFragment(`
  fragment messageListFragment on Message {
    _id
    user {
      ...UsersMinimumInfo
    }
    contents {
      html
    }
    createdAt
    conversationId
  }
`);

registerFragment(`
  fragment editTitle on Conversation {
    _id
    title
  }
`);

registerFragment(`
  fragment NotificationsList on Notification {
    _id
    userId
    createdAt
    link
    message
    type
    viewed
  }
`);

extendFragment('UsersCurrent', `
  ...UsersMinimumInfo
  voteBanned
  banned
  nullifyVotes
  hideIntercom
  currentFrontpageFilter
  allPostsView
  allPostsFilter
  allPostsShowLowKarma
  allPostsOpenSettings
  lastNotificationsCheck
  subscribedItems
  groups
  bannedUserIds
  moderationStyle
  moderationGuidelines {
    ...RevisionEdit
  }
  markDownPostEditor
  commentSorting
  location
  googleLocation
  mongoLocation
  emailSubscribedToCurated
  unsubscribeFromAll
  emails
  whenConfirmationEmailSent
  noCollapseCommentsFrontpage
  noCollapseCommentsPosts
  karmaChangeNotifierSettings
  karmaChangeLastOpened
  shortformFeedId
  viewUnreviewedComments
  sunshineShowNewUserContent
  # TODO: Remove this after april fools
  blockedGPT2
  recommendationSettings
`);

registerFragment(`
  fragment UserKarmaChanges on User {
    _id
    karmaChanges {
      totalChange
{'fraction_non_alphanumeric': 0.049410443571027515, 'fraction_numerical': 0.0005614823133071309, 'mean_word_length': 3.4817610062893083, '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': '5001434', 'n_tokens_mistral': 1046, 'n_tokens_neox': 1047, 'n_words': 221}