<commit_before>/*******************************************************************************
 * Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
 *******************************************************************************/
package com.b2international.snowowl.test.commons;

import static com.google.common.base.Preconditions.checkNotNull;

import java.io.File;

import org.junit.rules.ExternalResource;

import com.b2international.commons.ConsoleProgressMonitor;
import com.b2international.commons.platform.PlatformUtil;
import com.b2international.snowowl.snomed.common.ContentSubType;
import com.b2international.snowowl.snomed.importer.rf2.util.ImportUtil;

/**
 * JUnit test rule to import SNOMED CT content during automated tests.
 * 
 * @since 3.6
 */
public class SnomedContentRule extends ExternalResource {

	private File importArchive;
	private String languageRefSetId;
	private ContentSubType contentType;
	
	public SnomedContentRule(String importArchivePath, String languageRefSetId, ContentSubType contentType) {
		this.contentType = checkNotNull(contentType, "contentType");
		this.importArchive = new File(PlatformUtil.toAbsolutePathBundleEntry(SnomedContentRule.class, importArchivePath));
		this.languageRefSetId = checkNotNull(languageRefSetId, "languageRefSetId");
	}

	@Override
	protected void before() throws Throwable {
		new ImportUtil().doImport("<EMAIL>", languageRefSetId, contentType, importArchive, new ConsoleProgressMonitor());
	}
	
}
<commit_msg>Added missing parameter.<commit_after>/*******************************************************************************
 * Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
 *******************************************************************************/
package com.b2international.snowowl.test.commons;

import static com.google.common.base.Preconditions.checkNotNull;

import java.io.File;

import org.junit.rules.ExternalResource;

import com.b2international.commons.ConsoleProgressMonitor;
import com.b2international.commons.platform.PlatformUtil;
import com.b2international.snowowl.snomed.common.ContentSubType;
import com.b2international.snowowl.snomed.importer.rf2.util.ImportUtil;

/**
 * JUnit test rule to import SNOMED CT content during automated tests.
 * 
 * @since 3.6
 */
public class SnomedContentRule extends ExternalResource {

	private File importArchive;
	private String languageRefSetId;
	private ContentSubType contentType;
	
	public SnomedContentRule(String importArchivePath, String languageRefSetId, ContentSubType contentType) {
		this.contentType = checkNotNull(contentType, "contentType");
		this.importArchive = new File(PlatformUtil.toAbsolutePathBundleEntry(SnomedContentRule.class, importArchivePath));
		this.languageRefSetId = checkNotNull(languageRefSetId, "languageRefSetId");
	}

	@Override
	protected void before() throws Throwable {
		
		
		new ImportUtil().doImport("<EMAIL>", languageRefSetId, contentType, "MAIN", importArchive, new ConsoleProgressMonitor());
	}
	
}

{'fraction_non_alphanumeric': 0.18743768693918245, 'fraction_numerical': 0.011964107676969093, 'mean_word_length': 7.06970509383378, 'pattern_counts': {'":': 0, '<': 5, '<?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': '989342', 'n_tokens_mistral': 858, 'n_tokens_neox': 772, 'n_words': 167}