<commit_before>package gov.nih.nci.cagrid.introduce;

import gov.nih.nci.cagrid.introduce.steps.AddImportedMethodStep;
import gov.nih.nci.cagrid.introduce.steps.AddSimpleMethodStep;
import gov.nih.nci.cagrid.introduce.steps.CreateSkeletonStep;
import gov.nih.nci.cagrid.introduce.steps.RemoveSkeletonStep;

import java.util.Vector;

import junit.framework.TestResult;
import junit.framework.TestSuite;
import junit.textui.TestRunner;

import com.atomicobject.haste.framework.Story;

public class SyncToolsSimpleImportTest extends Story {
	private TestCaseInfo tci1;

	private TestCaseInfo tci3;
	
	public SyncToolsSimpleImportTest(){
		this.setName("IntroduceCodegenSimpleImportSystemTest");
	}

	protected Vector steps() {
		this.tci1 = new TestCaseInfo1();
		this.tci3 = new TestCaseInfo3();
		Vector steps = new Vector();

		try {
			steps.add(new CreateSkeletonStep(tci1, true));
			steps.add(new CreateSkeletonStep(tci3, true));

			steps.add(new AddSimpleMethodStep(tci3, "newMethod", true));
			steps.add(new AddImportedMethodStep(tci1, tci3, "newMethod",
					true,true));
			steps.add(new RemoveSkeletonStep(tci3));
		} catch (Exception e) {
			e.printStackTrace();
			fail();
		}
		return steps;
	}

	public String getDescription() {
		return "Testing the Introduce code generation tools";
	}

	protected void storyTearDown() throws Throwable {
		RemoveSkeletonStep step1 = new RemoveSkeletonStep(tci1);
		step1.runStep();
		RemoveSkeletonStep step2 = new RemoveSkeletonStep(tci3);
		step2.runStep();
	}

	// used to make sure that if we are going to use a junit testsuite to test
	// this
	// that the test suite will not error out looking for a single test......
	public void testDummy() throws Throwable {
	}

	/**
	 * Convenience method for running all the Steps in this Story.
	 */
	public static void main(String args[]) {<commit_msg>*** empty log message ***<commit_after>package gov.nih.nci.cagrid.introduce;

import gov.nih.nci.cagrid.introduce.steps.AddImportedMethodStep;
import gov.nih.nci.cagrid.introduce.steps.AddSimpleMethodStep;
import gov.nih.nci.cagrid.introduce.steps.CreateSkeletonStep;
import gov.nih.nci.cagrid.introduce.steps.RemoveSkeletonStep;

import java.util.Vector;

import junit.framework.TestResult;
import junit.framework.TestSuite;
import junit.textui.TestRunner;

import com.atomicobject.haste.framework.Story;

public class SyncToolsSimpleImportTest extends Story {
	private TestCaseInfo tci1;

	private TestCaseInfo tci3;
	
	public SyncToolsSimpleImportTest(){
		this.setName("IntroduceCodegenSimpleImportSystemTest");
	}

	protected Vector steps() {
		this.tci1 = new TestCaseInfo1();
		this.tci3 = new TestCaseInfo3();
		Vector steps = new Vector();

		try {
			steps.add(new CreateSkeletonStep(tci1, true));
			steps.add(new CreateSkeletonStep(tci3, true));

			steps.add(new AddSimpleMethodStep(tci3, "newMethod", true));
			steps.add(new AddImportedMethodStep(tci1, tci3, "newMethod",
					true,true));
		} catch (Exception e) {
			e.printStackTrace();
			fail();
		}
		return steps;
	}

	public String getDescription() {
		return "Testing the Introduce code generation tools";
	}

	protected void storyTearDown() throws Throwable {
		RemoveSkeletonStep step1 = new RemoveSkeletonStep(tci1);
		step1.runStep();
		RemoveSkeletonStep step2 = new RemoveSkeletonStep(tci3);
		step2.runStep();
	}

	// used to make sure that if we are going to use a junit testsuite to test
	// this
	// that the test suite will not error out looking for a single test......
	public void testDummy() throws Throwable {
	}

	/**
	 * Convenience method for running all the Steps in this Story.
	 */
	public static void main(String args[]) {
{'fraction_non_alphanumeric': 0.10632497273718648, 'fraction_numerical': 0.009541984732824428, 'mean_word_length': 4.635944700460829, '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': '5533872', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1196, 'n_words': 296}