<commit_before>import React from 'react'
import { compose } from 'redux'
import { prefetch } from 'react-fetcher'
import { connect } from 'react-redux'
import {
  FETCH_INVITATIONS,
  SEND_COMMUNITY_INVITATION,
  fetchCommunity,
  fetchCommunitySettings,
  fetchInvitations,
  sendCommunityInvitation,
  updateInvitationEditor
} from '../../actions'
import { humanDate } from '../../util/text'
import A from '../../components/A'
import Avatar from '../../components/Avatar'
import ScrollListener from '../../components/ScrollListener'
import validator from 'validator'
import { some, get, isEmpty } from 'lodash'
import cx from 'classnames'
import { canInvite } from '../../models/currentUser'
import { INVITED_COMMUNITY_MEMBERS, trackEvent } from '../../util/analytics'
import { parseEmailString } from '../../util/text'

const defaultSubject = name =>
  `Join ${name} on Hylo`

const defaultMessage = name =>
  `${name} is using Hylo, a new kind of social network that's designed to help communities and organizations create things together.\n\n` +
  "We're surrounded by incredible people, skills, and resources. But it can be hard to know whom to connect with, for what, and when. Often the things we need most are closer than we think.\n\n" +
  'Hylo makes it easy to discover the abundant skills, resources, and opportunities in your communities that might otherwise go unnoticed. Together, we can create whatever we can imagine.'

const CommunityInvitations = compose(
  prefetch(({ params: { id }, dispatch }) => Promise.all([
    dispatch(fetchCommunity(id)),
    dispatch(fetchCommunitySettings(id)),
    dispatch(fetchInvitations(id))
  ])),
  connect(({ people, communities, invitationEditor, pending }, { params: { id } }) => ({
    community: communities[id],
    invitationEditor,<commit_msg>remove redundant fetchCommunity<commit_after>import React from 'react'
import { compose } from 'redux'
import { prefetch } from 'react-fetcher'
import { connect } from 'react-redux'
import {
  FETCH_INVITATIONS,
  SEND_COMMUNITY_INVITATION,
  fetchCommunitySettings,
  fetchInvitations,
  sendCommunityInvitation,
  updateInvitationEditor
} from '../../actions'
import { humanDate } from '../../util/text'
import A from '../../components/A'
import Avatar from '../../components/Avatar'
import ScrollListener from '../../components/ScrollListener'
import validator from 'validator'
import { some, get, isEmpty } from 'lodash'
import cx from 'classnames'
import { canInvite } from '../../models/currentUser'
import { INVITED_COMMUNITY_MEMBERS, trackEvent } from '../../util/analytics'
import { parseEmailString } from '../../util/text'

const defaultSubject = name =>
  `Join ${name} on Hylo`

const defaultMessage = name =>
  `${name} is using Hylo, a new kind of social network that's designed to help communities and organizations create things together.\n\n` +
  "We're surrounded by incredible people, skills, and resources. But it can be hard to know whom to connect with, for what, and when. Often the things we need most are closer than we think.\n\n" +
  'Hylo makes it easy to discover the abundant skills, resources, and opportunities in your communities that might otherwise go unnoticed. Together, we can create whatever we can imagine.'

const CommunityInvitations = compose(
  prefetch(({ params: { id }, dispatch }) => Promise.all([
    dispatch(fetchCommunitySettings(id)),
    dispatch(fetchInvitations(id))
  ])),
  connect(({ people, communities, invitationEditor, pending }, { params: { id } }) => ({
    community: communities[id],
    invitationEditor,
{'fraction_non_alphanumeric': 0.11899441340782123, 'fraction_numerical': 0.0, 'mean_word_length': 4.352765321375187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3394090', 'n_tokens_mistral': 987, 'n_tokens_neox': 981, 'n_words': 363}