<commit_before>import React from 'react';
import classNames from 'classnames';

import ArrayItemComponent from 'ArrayItem/ArrayItem';
import Samples from 'Samples/Samples';
import Defaults from 'Defaults/Defaults';

import {
  containsExpandableCollapsibleElement
} from 'elements/expandableCollapsibleElement';

import './array.styl';

class ArrayComponent extends React.Component {
  static propTypes = {
    data: React.PropTypes.object,
  }

  getClassNames() {
    return classNames({
      'attributeArray': true,
      'containsExpandableCollapsibleElements': containsExpandableCollapsibleElement(this.props.data.content),
    });
  }

  renderSamples() {
    const attributes = this.props.data.attributes;
    let samples = null;

    if (attributes) {
      samples = attributes.samples;
    }

    if (!samples) {
      return false;
    }

    return (
      <div className="attributeArraySamplesContainer"><commit_msg>Fix lint errors.<commit_after>import React from 'react';
import classNames from 'classnames';

import ArrayItemComponent from 'ArrayItem/ArrayItem';
import Samples from 'Samples/Samples';
import Defaults from 'Defaults/Defaults';

import {
  containsExpandableCollapsibleElement,
} from 'elements/expandableCollapsibleElement';

import './array.styl';

class ArrayComponent extends React.Component {
  static propTypes = {
    data: React.PropTypes.object,
  }

  getClassNames() {
    return classNames({
      'attributeArray': true,
      'containsExpandableCollapsibleElements': containsExpandableCollapsibleElement(this.props.data.content),
    });
  }

  renderSamples() {
    const attributes = this.props.data.attributes;
    let samples = null;

    if (attributes) {
      samples = attributes.samples;
    }

    if (!samples) {
      return false;
    }

    return (
      <div className="attributeArraySamplesContainer">
{'fraction_non_alphanumeric': 0.10085836909871244, 'fraction_numerical': 0.0, 'mean_word_length': 4.013440860215054, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4075291', 'n_tokens_mistral': 534, 'n_tokens_neox': 503, 'n_words': 119}