<commit_before>window.usergrid = window.usergrid || {};
usergrid.console = usergrid.console || {};
usergrid.console.ui = usergrid.console.ui || { };
usergrid.console.ui.collections = usergrid.console.ui.collections || { };

(function() {
	// This code block *WILL* load before the document is complete

	var entity_list_item = {
		options: {
		},
		
		_create: function() {
			
			var self = this;
			var o = self.options;
			var el = self.element;
			
			var entity_id = el.dataset('entity-id');
			var entity_type = el.dataset('entity-type');
			var entity = usergrid.console.getQueryResultEntity(entity_id);
			if (!entity) return;
			o.entity = entity;
			o.path = el.dataset('collection-path');
			
			o.header = self.getHeader();
			o.collections = self.getCollections();
			o.contents = self.getContents();
			o.metadata = self.getMetadata();
			o.json = self.getJson();
			
			o.header.appendTo(el);
			o.collections.appendTo(el);
			o.contents.appendTo(el);
			o.metadata.appendTo(el);
			o.json.appendTo(el);
			
			o.header.find(".button").button();

			var contents_button = o.header.find(".query-result-header-toggle-contents");
			contents_button.click(function() {    
				if (o.contents.css('display') == 'none') {
                    o.contents.show();
                    o.json.hide();
                } else {
                    o.contents.hide();
                }                
				return false;
			});
			
			var json_button = o.header.find(".query-result-header-toggle-json");
			json_button.click(function() {
                if (o.json.css('display') == 'none') {
                    o.json.show();
                    o.contents.hide();
                } else {
                    o.json.hide();
                }                
				return false;
			});
			
			var collections_button = o.header.find(".query-result-header-toggle-collections");
			collections_button.click(function() {
				o.collections.toggle();<commit_msg>updated collections toggle button in collections<commit_after>window.usergrid = window.usergrid || {};
usergrid.console = usergrid.console || {};
usergrid.console.ui = usergrid.console.ui || { };
usergrid.console.ui.collections = usergrid.console.ui.collections || { };

(function() {
	// This code block *WILL* load before the document is complete

	var entity_list_item = {
		options: {
		},
		
		_create: function() {
			
			var self = this;
			var o = self.options;
			var el = self.element;
			
			var entity_id = el.dataset('entity-id');
			var entity_type = el.dataset('entity-type');
			var entity = usergrid.console.getQueryResultEntity(entity_id);
			if (!entity) return;
			o.entity = entity;
			o.path = el.dataset('collection-path');
			
			o.header = self.getHeader();
			o.collections = self.getCollections();
			o.contents = self.getContents();
			o.metadata = self.getMetadata();
			o.json = self.getJson();
			
			o.header.appendTo(el);
			o.collections.appendTo(el);
			o.contents.appendTo(el);
			o.metadata.appendTo(el);
			o.json.appendTo(el);
			
			o.header.find(".button").button();

			var contents_button = o.header.find(".query-result-header-toggle-contents");
			contents_button.click(function() {    
				if (o.contents.css('display') == 'none') {
                    o.contents.show();
                    o.json.hide();
                    o.collections.hide();
                } else {
                    o.contents.hide();
                }                
				return false;
			});
			
			var json_button = o.header.find(".query-result-header-toggle-json");
			json_button.click(function() {
                if (o.json.css('display') == 'none') {
                    o.json.show();
                    o.contents.hide();
                    o.collections.hide();
                } else {
                    o.json.hide();
                }                
				return false;
			});
			
			var collections_button = o.header.find(".query-result-header-toggle-collections");
			collections_button.click(function() {
                if (o.collections.css('display') == 'none') {
                    o.collections.show();
                    o.contents.hide();
                    o.json.hide();
                } else {
                    o.collections.hide();
                }
{'fraction_non_alphanumeric': 0.15025785278949835, 'fraction_numerical': 0.0, 'mean_word_length': 1.9755927475592747, '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': '4664220', 'n_tokens_mistral': 1465, 'n_tokens_neox': 1242, 'n_words': 205}