<commit_before>/** @jsx React.DOM */
"use strict";
var React = require("react");
var PropTypes = React.PropTypes;
var Row = require("react-bootstrap/Row");
var Col = require("react-bootstrap/Col");
var Input = require("react-bootstrap/Input");

module.exports = React.createClass({
  displayName: "ApplicationTaskPreferences",
  propTypes: {
    tasks: PropTypes.arrayOf(PropTypes.string).isRequired,
    onChange: PropTypes.func.isRequired,
  },
  emptyTaskKey: "_empty_task_key_",
  getFormData: function () {
    return this.refs.input.getValue() === this.emptyTaskKey ? null : this.refs.input.getValue();
  },
  isValid: function () {
    return true;
  },
  render: function () {
    var options = [(<option key={this.emptyTaskKey} value={this.emptyTaskKey}>(Aucune)</option>)].concat(
      this.props.tasks.map(function (optionEntry, optionIndex) {
        return (<option key={optionIndex} value={optionIndex}>{optionEntry}</option>);
      })
    );
    return (
      <Row>
        <Input type="select" ref="input" onChange={this.props.onChange}
        wrapperClassName="col-md-6">
          {options}
        </Input>
      </Row>
    );
  }
});<commit_msg>Fixed #19 fixed a bug where applications where ordered badly<commit_after>/** @jsx React.DOM */
"use strict";
var React = require("react");
var PropTypes = React.PropTypes;
var Row = require("react-bootstrap/Row");
var Col = require("react-bootstrap/Col");
var Input = require("react-bootstrap/Input");

module.exports = React.createClass({
  displayName: "ApplicationTaskPreferences",
  propTypes: {
    tasks: PropTypes.arrayOf(PropTypes.string).isRequired,
    onChange: PropTypes.func.isRequired,
  },
  emptyTaskKey: "_empty_task_key_",
  getFormData: function () {
    return this.refs.input.getValue() === this.emptyTaskKey ? null : this.refs.input.getValue();
  },
  isValid: function () {
    return true;
  },
  render: function () {
    var options = [(<option key={this.emptyTaskKey} value={this.emptyTaskKey}>(Aucune)</option>)].concat(
      this.props.tasks.map(function (optionEntry, optionIndex) {
        return (<option key={optionIndex} value={optionEntry}>{optionEntry}</option>);
      })
    );
    return (
      <Row>
        <Input type="select" ref="input" onChange={this.props.onChange}
        wrapperClassName="col-md-6">
          {options}
        </Input>
      </Row>
    );
  }
});
{'fraction_non_alphanumeric': 0.16226415094339622, 'fraction_numerical': 0.0016771488469601676, 'mean_word_length': 3.6784313725490194, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '3015548', 'n_tokens_mistral': 728, 'n_tokens_neox': 728, 'n_words': 141}