<commit_before>'use strict';

import React, { Component, PropTypes } from 'react/addons';

export default class Accordion extends Component {

  constructor(props) {
    super(props);
    this.state = { selectedItem: props.selectedItem || 0 };
  }

  renderItems() {
    return this.props.children.map((item, index) => {
      return React.addons.cloneWithProps(item, {
        key: index,
        expanded: this.state.selectedItem === index
      });
    });
  }

  render() {
    return (
      <div className="react-sanfona" role="tablist"><commit_msg>Remove addons from import<commit_after>'use strict';

import React, { Component, PropTypes } from 'react';

export default class Accordion extends Component {

  constructor(props) {
    super(props);
    this.state = { selectedItem: props.selectedItem || 0 };
  }

  renderItems() {
    return this.props.children.map((item, index) => {
      return React.addons.cloneWithProps(item, {
        key: index,
        expanded: this.state.selectedItem === index
      });
    });
  }

  render() {
    return (
      <div className="react-sanfona" role="tablist">
{'fraction_non_alphanumeric': 0.13721973094170403, 'fraction_numerical': 0.0017937219730941704, 'mean_word_length': 3.1180811808118083, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6153241', 'n_tokens_mistral': 335, 'n_tokens_neox': 332, 'n_words': 74}