<commit_before>var CategoryDropdown = React.createClass({
  render: function(){

  var categories = this.props.categories.map(function(category){
    return <option value={category.id}> {category.name} </option>
  });

    return (
   <div className="category_dropdown">
     <select ref="category" name="issue[category]" type="select" >
       {categories}
     </select>
   </div>
      )
  }
})<commit_msg>can create an issue using categories. however it only assigns it to the last of the categories that was selected<commit_after>var CategoryDropdown = React.createClass({
  render: function(){

  var categories = this.props.categories.map(function(category){
    return <input ref="category" type="checkbox" name="issue[category]" value={category.id}> {category.name} <br/></input>
  });

    return (
   <div className="category_dropdown">
      {categories}
   </div>
      )
  }
})
{'fraction_non_alphanumeric': 0.1447811447811448, 'fraction_numerical': 0.0, 'mean_word_length': 3.983240223463687, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '6963420', 'n_tokens_mistral': 259, 'n_tokens_neox': 251, 'n_words': 63}