<commit_before>import React, { Component } from 'react';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';

import { Category, Language, Country, Role, Date, Collection } from 'src/components/common';

import './CollectionOverview.css';

class CollectionOverview extends Component {
  render() {
    const { collection, hasHeader = false } = this.props;
    
    // If collection data it hasn't loaded yet don't attempt to draw anything
    if (!collection)
      return null;

    return (
      <div className='CollectionOverview'>
        {hasHeader && (
          <h4>
            <Collection.Link collection={collection} />
          </h4>
        )}
        <p>{collection.summary}</p>
        <ul className='info-sheet'>
          { !collection.casefile && (
            <li>
              <span className="key">
                <FormattedMessage id="collection.category" defaultMessage="Category"/>
              </span>
              <span className="value">
                <Category collection={collection} />
              </span>
            </li>
          )}
          { collection.creator && (
            <li>
              <span className="key">
                <FormattedMessage id="collection.creator" defaultMessage="Manager"/>
              </span>
              <span className="value">
                <Role.Label role={collection.creator} />
              </span>
            </li>
          )}
          { collection.languages && !!collection.languages.length && (
            <li>
              <span className="key">
                <FormattedMessage id="collection.languages" defaultMessage="Language"/>
              </span>
              <span className="value">
                <Language.List codes={collection.languages} />
              </span>
            </li>
          )}
          { collection.countries && !!collection.countries.length && (
            <li>
              <span className="key">
                <FormattedMessage id="collection.countries" defaultMessage="Country"/>
              </span>
              <span className="value">
                <Country.List codes={collection.countries} />
              </span>
            </li>
          )}
          <li>
            <span className="key">
              <FormattedMessage id="collection.updated_at" defaultMessage="Last updated"/>
            </span>
            <span className="value">
              <Date value={collection.updated_at} />
            </span>
          </li>
        </ul>
      </div>
    );
  }
}
<commit_msg>Hide collection languages<commit_after>import React, { Component } from 'react';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';

import { Category, Language, Country, Role, Date, Collection } from 'src/components/common';

import './CollectionOverview.css';

class CollectionOverview extends Component {
  render() {
    const { collection, hasHeader = false } = this.props;
    
    // If collection data it hasn't loaded yet don't attempt to draw anything
    if (!collection)
      return null;

    return (
      <div className='CollectionOverview'>
        {hasHeader && (
          <h4>
            <Collection.Link collection={collection} />
          </h4>
        )}
        <p>{collection.summary}</p>
        <ul className='info-sheet'>
          { !collection.casefile && (
            <li>
              <span className="key">
                <FormattedMessage id="collection.category" defaultMessage="Category"/>
              </span>
              <span className="value">
                <Category collection={collection} />
              </span>
            </li>
          )}
          { collection.creator && (
            <li>
              <span className="key">
                <FormattedMessage id="collection.creator" defaultMessage="Manager"/>
              </span>
              <span className="value">
                <Role.Label role={collection.creator} />
              </span>
            </li>
          )}
          {/*
          { collection.languages && !!collection.languages.length && (
            <li>
              <span className="key">
                <FormattedMessage id="collection.languages" defaultMessage="Language"/>
              </span>
              <span className="value">
                <Language.List codes={collection.languages} />
              </span>
            </li>
          )}
          */}
          { collection.countries && !!collection.countries.length && (
            <li>
              <span className="key">
                <FormattedMessage id="collection.countries" defaultMessage="Country"/>
              </span>
              <span className="value">
                <Country.List codes={collection.countries} />
              </span>
            </li>
          )}
          <li>
            <span className="key">
              <FormattedMessage id="collection.updated_at" defaultMessage="Last updated"/>
            </span>
            <span className="value">
              <Date value={collection.updated_at} />
            </span>
          </li>
        </ul>
      </div>
    );
  }
}

{'fraction_non_alphanumeric': 0.13189355958349402, 'fraction_numerical': 0.0007713073659853452, 'mean_word_length': 1.5818815331010454, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '2363163', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1254, 'n_words': 272}