<commit_before>import React, { PropTypes } from 'react'
import Spec from '../components/Spec'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'

const SpecList = props => {
  const renderSpecs = specs => {

    if (specs && specs.length) {
      return (
        <li><Spec spec={specs[0]} /></li>
      )
    }

    return
  }

  return (
    <ul>
      {renderSpecs(props.specs)}
    </ul>
  )
<commit_msg>allow multiple specs<commit_after>import React, { PropTypes } from 'react'
import Spec from '../components/Spec'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'

const SpecList = props => {
  return (
    <ul>
      {props.specs.map( spec => {
        return <li><Spec spec={spec} /></li>
      })}
    </ul>
  )

{'fraction_non_alphanumeric': 0.15433673469387754, 'fraction_numerical': 0.0012755102040816326, 'mean_word_length': 2.702830188679245, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '3713842', 'n_tokens_mistral': 266, 'n_tokens_neox': 258, 'n_words': 66}