<commit_before>/**
 * @jsx React.DOM
 */
'use strict';

var React = require('react/addons');
var cx = React.addons.classSet;
var CloneWithProps = React.addons.cloneWithProps;

module.exports = React.createClass({
  propTypes: {
    onSort: React.PropTypes.func,
    horizontal: React.PropTypes.bool,
    /**
      If a sortable item has isDraggable set to false, prevent sorting below the item.
      This is most useful if items are pinned at the bottom until validated.
      Note that anything below an undraggable element can be moved above it.
      This option takes precedence over floatUndraggables if both are set to true.
    */
    sinkUndraggables: React.PropTypes.bool,
    /**
      See sinkUndraggables. This won't allow sorting above undraggable items.
      This defers to sinkUndraggables if both are set to true.
    */
    floatUndraggables: React.PropTypes.bool
  },
  getDefaultProps: function() {
    return {
      onSort: function() {},
      horizontal: false,
      sinkUndraggables: false
    }
  },
  getInitialState: function() {
    this.rerender(this.props.children);

    return {
      isDragging: false,<commit_msg>add display name to component<commit_after>/**
 * @jsx React.DOM
 */
'use strict';

var React = require('react/addons');
var cx = React.addons.classSet;
var CloneWithProps = React.addons.cloneWithProps;

module.exports = React.createClass({
  displayName: 'Sortable',
  propTypes: {
    onSort: React.PropTypes.func,
    horizontal: React.PropTypes.bool,
    /**
      If a sortable item has isDraggable set to false, prevent sorting below the item.
      This is most useful if items are pinned at the bottom until validated.
      Note that anything below an undraggable element can be moved above it.
      This option takes precedence over floatUndraggables if both are set to true.
    */
    sinkUndraggables: React.PropTypes.bool,
    /**
      See sinkUndraggables. This won't allow sorting above undraggable items.
      This defers to sinkUndraggables if both are set to true.
    */
    floatUndraggables: React.PropTypes.bool
  },
  getDefaultProps: function() {
    return {
      onSort: function() {},
      horizontal: false,
      sinkUndraggables: false
    }
  },
  getInitialState: function() {
    this.rerender(this.props.children);

    return {
      isDragging: false,
{'fraction_non_alphanumeric': 0.08877507469056765, 'fraction_numerical': 0.0, 'mean_word_length': 3.0765217391304347, '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': '2296480', 'n_tokens_mistral': 704, 'n_tokens_neox': 693, 'n_words': 225}