<commit_before>import React from 'react';
import { _ } from 'meteor/underscore';
import { Link } from 'react-router';
import { FormattedMessage, FormattedDate, intlShape, injectIntl } from 'react-intl';

class ProfileSearchResult extends React.Component {
  render() {
    const { profile } = this.props;
    const { formatMessage, locale } = this.props.intl;

    const interests = (profile.interests) ? profile.interests.map((interest, index, array) => {
      let seperator = ', ';
      if (index === array.length - 1) {
        seperator = '';
      } else if (index === array.length - 2) {
        if (array.length > 2) {
          seperator = ', and ';
        } else {
          seperator = ' and ';
        }
      }
      return (
        <span key={interest}>
          {
            formatMessage({
              id: `interest.${interest}`,
              defaultMessage: interest,
              description: `Interests option: ${interest}`,
            })
          }
          {seperator}
        </span>
      );
    }) : false;

    let orgTypes = (
      profile.orgTypes &&
      _.contains(profile.profileType, 'Organization')<commit_msg>Use new Interests component in ProfileSearchResult.jsx.<commit_after>import React from 'react';
import { _ } from 'meteor/underscore';
import { Link } from 'react-router';
import { FormattedMessage, FormattedDate, intlShape, injectIntl } from 'react-intl';

// Components
import Interests from '../components/Interests.jsx';

class ProfileSearchResult extends React.Component {
  render() {
    const { profile } = this.props;
    const { formatMessage, locale } = this.props.intl;

    const interests = (profile.interests) ?
      <Interests interests={profile.interests} />
      : false;

    let orgTypes = (
      profile.orgTypes &&
      _.contains(profile.profileType, 'Organization')
{'fraction_non_alphanumeric': 0.12871822606814495, 'fraction_numerical': 0.0016224986479177934, 'mean_word_length': 2.510436432637571, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '1552353', 'n_tokens_mistral': 536, 'n_tokens_neox': 522, 'n_words': 126}