<commit_before>define([
	"dojo/_base/declare", "dojo/request",
	"dojo/store/Memory", "dojo/store/util/QueryResults",
	"dojo/when", "dojo/_base/lang", "dojo/Stateful"
], function(declare, request,
			Memory, QueryResults,
			when, lang, Stateful){
	return declare([Memory, Stateful], {
		baseQuery: {},
		apiServer: window.App.dataServiceURL,
		idProperty: "feature_id",
		state: null,

		onSetState: function(attr, oldVal, state){
			//console.log("ProteinFamiliesMemoryStore setState: ", state);
			if(state && state.genome_ids && state.genome_ids.length > 0){
				this.genome_ids = state.genome_ids || [];
			}
		},
		constructor: function(options){
			this._loaded = false;
			this.genome_ids = [];
			if(options.apiServer){
				this.apiServer = options.apiServer;
			}
			this.watch('state', lang.hitch(this, 'onSetState'));
		},

		query: function(query, opts){
			query = query || {};
			if(this._loaded){
				return this.inherited(arguments);
			}
			else{
				var _self = this;
				var results;<commit_msg>set the id attribute of the pfs store for selection.  use text tabs for the inner tabs on protein families<commit_after>define([
	"dojo/_base/declare", "dojo/request",
	"dojo/store/Memory", "dojo/store/util/QueryResults",
	"dojo/when", "dojo/_base/lang", "dojo/Stateful"
], function(declare, request,
			Memory, QueryResults,
			when, lang, Stateful){
	return declare([Memory, Stateful], {
		baseQuery: {},
		apiServer: window.App.dataServiceURL,
		idProperty: "family_id",
		state: null,

		onSetState: function(attr, oldVal, state){
			//console.log("ProteinFamiliesMemoryStore setState: ", state);
			if(state && state.genome_ids && state.genome_ids.length > 0){
				this.genome_ids = state.genome_ids || [];
			}
		},
		constructor: function(options){
			this._loaded = false;
			this.genome_ids = [];
			if(options.apiServer){
				this.apiServer = options.apiServer;
			}
			this.watch('state', lang.hitch(this, 'onSetState'));
		},

		query: function(query, opts){
			query = query || {};
			if(this._loaded){
				return this.inherited(arguments);
			}
			else{
				var _self = this;
				var results;
{'fraction_non_alphanumeric': 0.1570754716981132, 'fraction_numerical': 0.0009433962264150943, 'mean_word_length': 3.9788732394366195, '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': '7052132', 'n_tokens_mistral': 839, 'n_tokens_neox': 707, 'n_words': 144}