<commit_before>'use strict';

var React = require('react');
var ReactDOM = require('react-dom');
var createReactClass = require('create-react-class');
var Reorder = require('../../../src');

var ListItem = createReactClass({
  render: function () {
    return React.createElement('div', {
      className: 'inner',
      style: {
        color: this.props.item.color
      }
    }, this.props.sharedProps ? this.props.sharedProps.prefix : undefined, this.props.item.name);
  }
});

var Main = createReactClass({
  callback: function (event, item, index, newIndex, list) {
    this.setState({arr: list});
  },
  itemClicked: function (event, item) {
    this.setState({
      clickedItem: item === this.state.clickedItem ? undefined : item
    });
  },
  itemClicked2: function (event, item) {
    this.setState({clickedItem2: item});
  },
  disableToggled: function () {
    this.setState({disableReorder: !this.state.disableReorder});
  },
  prefixChanged: function (event) {
    var target = event.currentTarget;
    this.setState({prefix: target.value});<commit_msg>Fix example import path<commit_after>'use strict';

var React = require('react');
var ReactDOM = require('react-dom');
var createReactClass = require('create-react-class');
var Reorder = require('../../../index');

var ListItem = createReactClass({
  render: function () {
    return React.createElement('div', {
      className: 'inner',
      style: {
        color: this.props.item.color
      }
    }, this.props.sharedProps ? this.props.sharedProps.prefix : undefined, this.props.item.name);
  }
});

var Main = createReactClass({
  callback: function (event, item, index, newIndex, list) {
    this.setState({arr: list});
  },
  itemClicked: function (event, item) {
    this.setState({
      clickedItem: item === this.state.clickedItem ? undefined : item
    });
  },
  itemClicked2: function (event, item) {
    this.setState({clickedItem2: item});
  },
  disableToggled: function () {
    this.setState({disableReorder: !this.state.disableReorder});
  },
  prefixChanged: function (event) {
    var target = event.currentTarget;
    this.setState({prefix: target.value});
{'fraction_non_alphanumeric': 0.15906976744186047, 'fraction_numerical': 0.0018604651162790699, 'mean_word_length': 3.6760869565217393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3709157', 'n_tokens_mistral': 644, 'n_tokens_neox': 661, 'n_words': 142}