<commit_before>package uk.ac.ebi.phenotype.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;

import javax.xml.bind.JAXBException;
import java.io.IOException;


/**
 * @since 2015/10/08
 * @author ilinca
 *
 */

@RunWith(SpringJUnit4ClassRunner.class)
@TestPropertySource("file:${user.home}/configfiles/${profile:dev}/test.properties")
@ContextConfiguration(loader=AnnotationConfigContextLoader.class)
public class UniprotServiceTest {

	// Only wire up the Uniprot service for this test suite
	@Configuration
	@ComponentScan(
		basePackages = {"uk.ac.ebi.phenotype.service"},
		useDefaultFilters = false,
		includeFilters = { @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = {UniprotService.class})
		})
	static class ContextConfiguration {

		@Bean
		public static PropertySourcesPlaceholderConfigurer propertyConfigurer() {
			return new PropertySourcesPlaceholderConfigurer();
		}

	}


	@Autowired
    UniprotService uniprotService;

    @Test
    public void testCheckTypeParameterString() {

        UniprotDTO dto = new UniprotDTO();
		try {

			dto = uniprotService.readXml("http://www.uniprot.org/uniprot/P26367.xml" , dto);

	        assert(dto.getFunction() != null);
	        assert(dto.getGoCell() != null && dto.getGoCell().size() >= 2);
	        assert(dto.getGoMolecularFunction() != null && dto.getGoMolecularFunction().size() >= 1);
	        assert(dto.getGoProcess() != null && dto.getGoProcess().size() >= 2);

		} catch (JAXBException | IOException e) {
			e.printStackTrace();
		}
    }
}<commit_msg>Fixed UniprotServiceTest. Changed URL from http to https.<commit_after>package uk.ac.ebi.phenotype.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;

import javax.xml.bind.JAXBException;
import java.io.IOException;


/**
 * @since 2015/10/08
 * @author ilinca
 *
 */

@RunWith(SpringJUnit4ClassRunner.class)
@TestPropertySource("file:${user.home}/configfiles/${profile:dev}/test.properties")
@ContextConfiguration(loader=AnnotationConfigContextLoader.class)
public class UniprotServiceTest {

	// Only wire up the Uniprot service for this test suite
	@Configuration
	@ComponentScan(
		basePackages = {"uk.ac.ebi.phenotype.service"},
		useDefaultFilters = false,
		includeFilters = { @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = {UniprotService.class})
		})
	static class ContextConfiguration {

		@Bean
		public static PropertySourcesPlaceholderConfigurer propertyConfigurer() {
			return new PropertySourcesPlaceholderConfigurer();
		}

	}


	@Autowired
    UniprotService uniprotService;

    @Test
    public void testCheckTypeParameterString() {

        UniprotDTO dto = new UniprotDTO();
		try {

			dto = uniprotService.readXml("https://www.uniprot.org/uniprot/P26367.xml" , dto);

	        assert(dto.getFunction() != null);
	        assert(dto.getGoCell() != null && dto.getGoCell().size() >= 2);
	        assert(dto.getGoMolecularFunction() != null && dto.getGoMolecularFunction().size() >= 1);
	        assert(dto.getGoProcess() != null && dto.getGoProcess().size() >= 2);

		} catch (JAXBException | IOException e) {
			e.printStackTrace();
		}
    }
}
{'fraction_non_alphanumeric': 0.1163260723108017, 'fraction_numerical': 0.008533572872220974, 'mean_word_length': 5.203342618384401, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '7322105', 'n_tokens_mistral': 1374, 'n_tokens_neox': 1294, 'n_words': 219}