<commit_before>/**
 * This class stores base URL and some cgi arguments for 
 * accessing web-based sequences in NCBI and Swiss-prot, pubmed articles and locuslinks.
 */

//package org.biojava.bio.seq.db;

import java.net.*;

public class FetchURL
{
	String baseURL;
	String db;//database name
	String rettype;//return type
	String retmode;//return mode 
	
	/**
	 * Constructs a fetchURL object based on the database name 
	 * and specified return format of sequence.
	 */
	public FetchURL(String databaseName, String format) 
	{	
		if (databaseName.trim().equalsIgnoreCase("genbank")
			||databaseName.trim().equalsIgnoreCase("nucleotide"))
		{
			db = "nucleotide";	
		//	rettype = format;
		//	retmode = format;
		}
		if (databaseName.trim().equalsIgnoreCase("genpept")
			||databaseName.trim().equalsIgnoreCase("protein"))
		{
			db = "protein";
			rettype = format;
			retmode = format;
		}
		if (databaseName.trim().equalsIgnoreCase("swiss-prot"))
		{
			db="swiss-prot";
		}
		if (databaseName.trim().equalsIgnoreCase("pubmed"))
		{
			db="pubmed";
			rettype = "abstract";<commit_msg>Fixed package line.<commit_after>/**

 * This class stores base URL and some cgi arguments for 

 * accessing web-based sequences in NCBI and Swiss-prot, pubmed articles and locuslinks.

 */



package org.biojava.bio.seq.db;



import java.net.*;



public class FetchURL
{
	String baseURL;
	String db;//database name
	String rettype;//return type
	String retmode;//return mode 
	
	/**

	 * Constructs a fetchURL object based on the database name 

	 * and specified return format of sequence.

	 */
	public FetchURL(String databaseName, String format) 
	{	
		if (databaseName.trim().equalsIgnoreCase("genbank")
			||databaseName.trim().equalsIgnoreCase("nucleotide"))
		{
			db = "nucleotide";	
		//	rettype = format;
		//	retmode = format;
		}
		if (databaseName.trim().equalsIgnoreCase("genpept")
			||databaseName.trim().equalsIgnoreCase("protein"))
		{
			db = "protein";
			rettype = format;
			retmode = format;
		}
		if (databaseName.trim().equalsIgnoreCase("swiss-prot"))
		{
			db="swiss-prot";
		}
		if (databaseName.trim().equalsIgnoreCase("pubmed"))
		{
			db="pubmed";
			rettype = "abstract";
{'fraction_non_alphanumeric': 0.135, 'fraction_numerical': 0.0, 'mean_word_length': 3.6434599156118144, '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': '3300009', 'n_tokens_mistral': 802, 'n_tokens_neox': 688, 'n_words': 173}