<commit_before>function _ComponentFormSelect( id ) {
	var self = new _ComponentAbstractList(id);
	
	self.setState('persistent-items', []);
	self.setState('no-items-item', null);
	
	self.bind = function() { 
		self.attachChangeAction(self.node(), self.identifier());
	};
	self.enable = function() { self.node().disabled = false; };
	self.disable = function() { self.node().disabled = true; };
	self.items = function() { return self.node().options; };
	self.itemIsSelected = function( item ) { return (item.selected ? true : false); };
	self.itemValue = function( item ) { return item.value; };
	self.itemSelect = function( item ) { item.selected = true; };
	self.itemDeselect = function( item ) { item.selected = false; };
	
	self._createItem = function( value, label ) {
		var option = document.createElement('option');
		option.setAttribute('value',value);
		option.appendChild(document.createTextNode(label));
		return option;
	};
	self.setPersistentItems = function( items ) {
		self.setState('persistent-items', items);
	};
	self.setNoItemsItem = function( item ) {
		self.setState('no-items-item', item);
	};
	self.setItems = function( items ) {
		var node = self.node();
		var persistentItems = self.getState('persistent-items');
		var noItemsItem = self.getState('no-items-item');
		
		while( node.childNodes.length ) {
			node.removeChild(node.childNodes[0]);
		}
		
		if( items ) {
			if( items.length > 0 || noItemsItem == null ) {<commit_msg>Add function needed in FormSelect component.<commit_after>function _ComponentFormSelect( id ) {
	var self = new _ComponentAbstractList(id);
	
	self.setState('persistent-items', []);
	self.setState('no-items-item', null);
	
	self.bind = function() { 
		self.attachChangeAction(self.node(), self.identifier());
	};
	self.enable = function() { self.node().disabled = false; };
	self.disable = function() { self.node().disabled = true; };
	self.items = function() { return self.node().options; };
	self.itemIsSelected = function( item ) { return (item.selected ? true : false); };
	self.itemValue = function( item ) { return item.value; };
	self.itemTitle = function( item ) { return item.innerHTML; };
	self.itemSelect = function( item ) { item.selected = true; };
	self.itemDeselect = function( item ) { item.selected = false; };
	
	self._createItem = function( value, label ) {
		var option = document.createElement('option');
		option.setAttribute('value',value);
		option.appendChild(document.createTextNode(label));
		return option;
	};
	self.setPersistentItems = function( items ) {
		self.setState('persistent-items', items);
	};
	self.setNoItemsItem = function( item ) {
		self.setState('no-items-item', item);
	};
	self.setItems = function( items ) {
		var node = self.node();
		var persistentItems = self.getState('persistent-items');
		var noItemsItem = self.getState('no-items-item');
		
		while( node.childNodes.length ) {
			node.removeChild(node.childNodes[0]);
		}
		
		if( items ) {
			if( items.length > 0 || noItemsItem == null ) {
{'fraction_non_alphanumeric': 0.16333333333333333, 'fraction_numerical': 0.0013333333333333333, 'mean_word_length': 4.349376114081997, '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': '6713763', 'n_tokens_mistral': 977, 'n_tokens_neox': 926, 'n_words': 192}