<commit_before>define(['backbone', './SelectComponent','./SelectPosition'],
	function(Backbone, SelectComponent, SelectPosition) {
		/**
		 * @class MoveComponent
		 * @private
		 * */
		return _.extend({},SelectComponent, SelectPosition,{

			init: function(o){
				SelectComponent.init.apply(this, arguments);
				_.bindAll(this,'initSorter','rollback','selectingPosition','itemLeft', 'onEndMove');
				this.opt	= o;
				this.hoverClass	= this.pfx + 'hover-move';
				this.badgeClass	= this.pfx + 'badge-yellow';
				this.noSelClass	= this.pfx + 'no-select';
			},

			enable: function(){
				this.$el.css('cursor','move');
				this.$el.on('mousedown', this.initSorter);
				this.startSelectComponent();
				//Avoid strange moving behavior
				this.$el.addClass(this.noSelClass);
			},

			/**
			 * Delegate sorting
			 * @param	{Event} e
			 * */
			initSorter: function(e){
				var el = $(e.target).get('model');
				if(!el.get('draggable'))
					return;
				if(this.sorter)
					this.sorter.startSort(e.target);
				this.stopSelectComponent(e);
				this.$el.off('mousedown', this.initSorter);
			},

			/**
			 * Callback after sorting
			 */
			onEndMove: function(){
				this.enable();
			},

			/**
			 * Hover command. Helps to avoid selecting not movable elements, eg. wrapper
			 * @param {Object}	e
			 * @private
			 */
			onHover: function(e) {
				e.stopPropagation();<commit_msg>Typo fix<commit_after>define(['backbone', './SelectComponent','./SelectPosition'],
	function(Backbone, SelectComponent, SelectPosition) {
		/**
		 * @class MoveComponent
		 * @private
		 * */
		return _.extend({},SelectComponent, SelectPosition,{

			init: function(o){
				SelectComponent.init.apply(this, arguments);
				_.bindAll(this,'initSorter','rollback','selectingPosition','itemLeft', 'onEndMove');
				this.opt	= o;
				this.hoverClass	= this.pfx + 'hover-move';
				this.badgeClass	= this.pfx + 'badge-yellow';
				this.noSelClass	= this.pfx + 'no-select';
			},

			enable: function(){
				this.$el.css('cursor','move');
				this.$el.on('mousedown', this.initSorter);
				this.startSelectComponent();
				//Avoid strange moving behavior
				this.$el.addClass(this.noSelClass);
			},

			/**
			 * Delegate sorting
			 * @param	{Event} e
			 * */
			initSorter: function(e){
				var el = $(e.target).data('model');
				if(!el.get('draggable'))
					return;
				if(this.sorter)
					this.sorter.startSort(e.target);
				this.stopSelectComponent(e);
				this.$el.off('mousedown', this.initSorter);
			},

			/**
			 * Callback after sorting
			 */
			onEndMove: function(){
				this.enable();
			},

			/**
			 * Hover command. Helps to avoid selecting not movable elements, eg. wrapper
			 * @param {Object}	e
			 * @private
			 */
			onHover: function(e) {
				e.stopPropagation();
{'fraction_non_alphanumeric': 0.1714490674318508, 'fraction_numerical': 0.0, 'mean_word_length': 3.1379821958456975, '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': '2212926', 'n_tokens_mistral': 1169, 'n_tokens_neox': 900, 'n_words': 160}