<commit_before>/* jshint forin:false */
/**
 * Virtual List.V2 View Class
 * @class View.List.V2.Virtual
 * @author <NAME>, <NAME>
 * @description
 * 		1-receive a list of infos, a range and a count
 * 		2-reset all vars
 * 		3-calculate number of ranges
 * 		4-create ranges Els wrappers in memory
 * 		5-create a array with the size of the count and set undefined for missing infos
 * 		6-update range el with data
 * 		7-render current viewport
 */
define(function(require, exports, module) {

	var _log = __debug('view-core-listV2-virtual').defineLevel('debug');

	var Virtual = new Class({

		/**
		 * used to set a complete list, can't set a range after
		 * @param {Array} list
		 * @return {void}
		 */
		_setList: function(list) {
			_log.debug('_setList', list);

			this._makeVirtual(list, 1, list.length);
		},

		/**
		 * Set a list and make it virtual
		 * @param {Array} list
		 * @param {Integer} range
		 * @param {Integer} count
		 * @return {void}
		 */
		setVirtualList: function(list, range, count) {
			_log.debug('setVirtualList', list.length, range, count);

			//temporary fix for incomplete lists
			var self = this;
			setTimeout(function() {<commit_msg>remove debug mode<commit_after>/* jshint forin:false */
/**
 * Virtual List.V2 View Class
 * @class View.List.V2.Virtual
 * @author <NAME>, <NAME>
 * @description
 * 		1-receive a list of infos, a range and a count
 * 		2-reset all vars
 * 		3-calculate number of ranges
 * 		4-create ranges Els wrappers in memory
 * 		5-create a array with the size of the count and set undefined for missing infos
 * 		6-update range el with data
 * 		7-render current viewport
 */
define(function(require, exports, module) {

	var _log = __debug('view-core-listV2-virtual').defineLevel();

	var Virtual = new Class({

		/**
		 * used to set a complete list, can't set a range after
		 * @param {Array} list
		 * @return {void}
		 */
		_setList: function(list) {
			_log.debug('_setList', list);

			this._makeVirtual(list, 1, list.length);
		},

		/**
		 * Set a list and make it virtual
		 * @param {Array} list
		 * @param {Integer} range
		 * @param {Integer} count
		 * @return {void}
		 */
		setVirtualList: function(list, range, count) {
			_log.debug('setVirtualList', list.length, range, count);

			//temporary fix for incomplete lists
			var self = this;
			setTimeout(function() {
{'fraction_non_alphanumeric': 0.1254768969902501, 'fraction_numerical': 0.009325985587113183, 'mean_word_length': 3.162257495590829, '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': '5777808', 'n_tokens_mistral': 857, 'n_tokens_neox': 750, 'n_words': 256}