<commit_before>/**
 *                    BioJava development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the individual
 * authors.  These should be listed in @author doc comments.
 *
 * For more information on the BioJava project and its aims,
 * or to join the biojava-l mailing list, visit the home page
 * at:
 *
 *      http://www.biojava.org/
 *
 * Created on Oct 12, 2011
 * Created by <NAME>
 *
 * @since 3.0.2
 */
package org.biojava.bio.structure.scop;

import java.io.InputStream;
import java.net.URL;
import java.util.List;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;


import org.biojava.bio.structure.align.client.JFatCatClient;
import org.biojava.bio.structure.align.util.HTTPConnectionTools;
import org.biojava.bio.structure.domain.AssignmentXMLSerializer;
import org.biojava.bio.structure.domain.SerializableCache;
import org.biojava.bio.structure.scop.server.ScopDomains;


/** An extension of the RemoteScopInstallation that caches some of the data locally.
 * 
 * @author <NAME>
 *
 */
public class CachedRemoteScopInstallation extends SerializableCache<String,ScopDomain> implements ScopDatabase {

	private static String CACHE_FILE_NAME = "remotescopinstallation.ser";
	
	RemoteScopInstallation proxy ;
	
	SerializableCache<Integer,ScopDescription> scopDescriptionCache ;
	
	public CachedRemoteScopInstallation() {
		this(true);
		
		

	}
	
	public CachedRemoteScopInstallation(boolean useCache) {

		super(CACHE_FILE_NAME);
<commit_msg>just some small cleanup<commit_after>/**
 *                    BioJava development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the individual
 * authors.  These should be listed in @author doc comments.
 *
 * For more information on the BioJava project and its aims,
 * or to join the biojava-l mailing list, visit the home page
 * at:
 *
 *      http://www.biojava.org/
 *
 * Created on Oct 12, 2011
 * Created by <NAME>
 *
 * @since 3.0.2
 */
package org.biojava.bio.structure.scop;

import java.io.InputStream;
import java.net.URL;
import java.util.List;

import org.biojava.bio.structure.align.client.JFatCatClient;
import org.biojava.bio.structure.align.util.HTTPConnectionTools;
import org.biojava.bio.structure.domain.SerializableCache;
import org.biojava.bio.structure.scop.server.ScopDomains;


/** An extension of the RemoteScopInstallation that caches some of the data locally.
 * 
 * @author <NAME>
 *
 */
public class CachedRemoteScopInstallation extends SerializableCache<String,ScopDomain> implements ScopDatabase {

	private static String CACHE_FILE_NAME = "remotescopinstallation.ser";
	
	RemoteScopInstallation proxy ;
	
	SerializableCache<Integer,ScopDescription> scopDescriptionCache ;
	
	public CachedRemoteScopInstallation() {
		this(true);
		
		

	}
	
	public CachedRemoteScopInstallation(boolean useCache) {

		super(CACHE_FILE_NAME);

{'fraction_non_alphanumeric': 0.08818289786223278, 'fraction_numerical': 0.005344418052256532, 'mean_word_length': 3.9690265486725664, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6546314', 'n_tokens_mistral': 1049, 'n_tokens_neox': 988, 'n_words': 297}