<commit_before>/*global Sortable*/
import Ember from 'ember';

const {computed, EnumerableUtils, Logger, on} = Ember;


export default Ember.CollectionView.extend(Ember.TargetActionSupport, {
  /*
    private property, please don't mess with it...
   */
  rubaxaSortable: null,

  disabled: false,

  tagName: 'ul',

  handle: null,

  //from ivy-sortable
  arrayDidChangeAfterElementInserted: function() {
    Ember.run.scheduleOnce('afterRender', this, this._refreshSortable);
  },

  //from ivy-sortable
  arrayWillChangeAfterElementInserted: function() {
  },

  //from ivy-sortable
  destroySortable: Ember.on('willDestroyElement', function() {
    this._contentWillChangeAfterElementInserted();

    Ember.removeBeforeObserver(this, 'content', this, this._contentWillChangeAfterElementInserted);
    this.removeObserver('content', this, this._contentDidChangeAfterElementInserted);

    this.$().sortable('destroy');
  }),


  initRubaXaSortable: on('didInsertElement', function() {
    const element = this.$().get(0);
    const opts = {
      onEnd: (evt) => {<commit_msg>adjusting to Sortable<commit_after>/*global Sortable*/
import Ember from 'ember';

const {computed, EnumerableUtils, Logger, on} = Ember;


export default Ember.CollectionView.extend(Ember.TargetActionSupport, {
  /*
    private property, please don't mess with it...
   */
  rubaxaSortable: null,

  disabled: false,

  tagName: 'ul',

  handle: null,

  //from ivy-sortable
  arrayDidChangeAfterElementInserted: function() {
    Ember.run.scheduleOnce('afterRender', this, this._refreshSortable);
  },

  //from ivy-sortable
  arrayWillChangeAfterElementInserted: function() {
  },

  //from ivy-sortable
  destroySortable: Ember.on('willDestroyElement', function() {
    this._contentWillChangeAfterElementInserted();

    Ember.removeBeforeObserver(this, 'content', this, this._contentWillChangeAfterElementInserted);
    this.removeObserver('content', this, this._contentDidChangeAfterElementInserted);

    this.get('rubaxaSortable').destroy();
  }),


  initRubaXaSortable: on('didInsertElement', function() {
    const element = this.$().get(0);
    const opts = {
      onEnd: (evt) => {
{'fraction_non_alphanumeric': 0.13097426470588236, 'fraction_numerical': 0.0009191176470588235, 'mean_word_length': 4.511392405063291, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2986543', 'n_tokens_mistral': 685, 'n_tokens_neox': 660, 'n_words': 132}