<commit_before>export default Ember.View.extend({

  didInsertElement : function () {
    // real dumb way of making sure the content types are there
    this.$().one('mouseenter', this.makeDraggable.bind(this));
  },

  makeDraggable: function () {
    this.$('dd').draggable({
      helper: function (event) {

        var helper = $('<div class="wh-form-control-clone">'),
            icon = $('<span>').appendTo(helper);

        helper.data('id', $(this).data('id'));

        icon.addClass($(this).find('a').attr('class')).text($(this).text());

        return helper;

      },
      appendTo: 'body',
      connectToSortable: Ember.$('form .ui-sortable'),
      revert: true,
      revertDuration: 0
    });
  }

});<commit_msg>dragged clone should match width of formbuilder<commit_after>export default Ember.View.extend({

  didInsertElement : function () {
    // real dumb way of making sure the content types are there
    this.$().one('mouseenter', this.makeDraggable.bind(this));
  },

  makeDraggable: function () {
    this.$('dd').draggable({
      helper: function (event) {

        var helper = $('<div class="wh-form-control-clone">'),
            icon = $('<span>').appendTo(helper);

        helper.width(Ember.$('.wh-content-edit').width());

        helper.data('id', $(this).data('id'));

        icon.addClass($(this).find('a').attr('class')).text($(this).text());

        return helper;

      },
      appendTo: 'body',
      connectToSortable: Ember.$('form .ui-sortable'),
      revert: true,
      revertDuration: 0
    });
  }

});
{'fraction_non_alphanumeric': 0.19157088122605365, 'fraction_numerical': 0.001277139208173691, 'mean_word_length': 2.8312958435207825, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '773394', 'n_tokens_mistral': 490, 'n_tokens_neox': 474, 'n_words': 95}