<commit_before>/**
 * Copyright (c) 2015, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 */

'use strict';
var FixedDataTableRowDragDropConfig = {
  type: 'column',
  exchangeItemPosition: null,
  drop: {
    target: {
      drop: function (props, monitor, component) {
        var item = monitor.getItem();
        if (props.onDrop) {
          props.onDrop(item, props);
        }
      },

      hover: function (props, monitor, component) {
        var item = monitor.getItem();
        if (item.index !== props.index) {
          props.onDragDrop(item, props);
        }
      }
    },

    collect: function (connect, monitor) {
      return {
        connectDropTarget: connect.dropTarget(),
        isOver: monitor.isOver()
      };
    }
  },

  drag: {
    source: {<commit_msg>Validate that the function exists before execute.<commit_after>/**
 * Copyright (c) 2015, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 */

'use strict';
var FixedDataTableRowDragDropConfig = {
  type: 'column',
  exchangeItemPosition: null,
  drop: {
    target: {
      drop: function (props, monitor, component) {
        var item = monitor.getItem();
        return props.onDrop && props.onDrop(item, props);
      },

      hover: function (props, monitor, component) {
        var item = monitor.getItem();
        if (item.index !== props.index) {
          return props.onDragDrop && props.onDragDrop(item, props);
        }
      }
    },

    collect: function (connect, monitor) {
      return {
        connectDropTarget: connect.dropTarget(),
        isOver: monitor.isOver()
      };
    }
  },

  drag: {
    source: {
{'fraction_non_alphanumeric': 0.11078998073217726, 'fraction_numerical': 0.0038535645472061657, 'mean_word_length': 2.4790619765494135, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2542354', 'n_tokens_mistral': 597, 'n_tokens_neox': 581, 'n_words': 196}