<commit_before>React = require 'react'
_ = require 'underscore'
classnames = require 'classnames'

{AnswersTable} = require './answers-table'
ArbitraryHtmlAndMath = require '../html'
FormatsListing = require './formats-listing'

FormatsListing = React.createClass
  propTypes:
    formats: React.PropTypes.arrayOf(React.PropTypes.string).isRequired


  render: ->
    <div className="formats-listing">
      <div className='header'>Formats:</div>
      {for format in @props.formats
        <span key={format}>{format}</span>}
    </div>


module.exports = FormatsListing<commit_msg>Use format index as key<commit_after>React = require 'react'
_ = require 'underscore'
classnames = require 'classnames'

{AnswersTable} = require './answers-table'
ArbitraryHtmlAndMath = require '../html'
FormatsListing = require './formats-listing'

FormatsListing = React.createClass
  propTypes:
    formats: React.PropTypes.arrayOf(React.PropTypes.string).isRequired

  render: ->
    <div className="formats-listing">
      <div className='header'>Formats:</div>
      {for format, i in @props.formats
        <span key={i}>{format}</span>}
    </div>


module.exports = FormatsListing
{'fraction_non_alphanumeric': 0.13725490196078433, 'fraction_numerical': 0.0, 'mean_word_length': 4.26457399103139, 'pattern_counts': {'":': 0, '<': 15, '<?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': '6950728', 'n_tokens_mistral': 376, 'n_tokens_neox': 366, 'n_words': 76}