<commit_before>/**
 * Copyright (c) 2008 Washington University in Saint Louis. All Rights Reserved.
 */
package edu.wustl.xipHost.caGrid;

import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import org.nema.dicom.wg23.ObjectLocator;
import org.nema.dicom.wg23.Uuid;

import junit.framework.TestCase;

/**
 * @author <NAME>
 *
 */
public class StoreAimObjectsTest extends TestCase {

	/* (non-Javadoc)
	 * @see junit.framework.TestCase#setUp()
	 */
	protected void setUp() throws Exception {
		super.setUp();
	}

	/* (non-Javadoc)
	 * @see junit.framework.TestCase#tearDown()
	 */
	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	
	//AimStore 1A of the basic flow. All parameters: object locators and grid location are correct.
	public void testStoreAimObjects1A() throws IOException, URISyntaxException {		
		List<ObjectLocator> objLocs = new ArrayList<ObjectLocator>();
		ObjectLocator objLoc = new ObjectLocator();
		Uuid objUUID = new Uuid();
		objUUID.setUuid(UUID.randomUUID().toString());
		objLoc.setUuid(objUUID);
		File file = new File("./test-content/AIM_rv9_Test/0022FollowupA.xml");
		String uri = file.toURI().toURL().toExternalForm();
		objLoc.setUri(uri);
		objLocs.add(objLoc);
		AimStore aimStore = new AimStore(objLocs, null);
		Thread t = new Thread(aimStore);
		t.start();
	}

}<commit_msg>Change the path to AIM object used in StoreAimObjectTest. New path points to Vasari AIM 2.0 XML object.<commit_after>/**
 * Copyright (c) 2008 Washington University in Saint Louis. All Rights Reserved.
 */
package edu.wustl.xipHost.caGrid;

import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import org.nema.dicom.wg23.ObjectLocator;
import org.nema.dicom.wg23.Uuid;

import junit.framework.TestCase;

/**
 * @author <NAME>
 *
 */
public class StoreAimObjectsTest extends TestCase {

	/* (non-Javadoc)
	 * @see junit.framework.TestCase#setUp()
	 */
	protected void setUp() throws Exception {
		super.setUp();
	}

	/* (non-Javadoc)
	 * @see junit.framework.TestCase#tearDown()
	 */
	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	
	//AimStore 1A of the basic flow. All parameters: object locators and grid location are correct.
	public void testStoreAimObjects1A() throws IOException, URISyntaxException {		
		List<ObjectLocator> objLocs = new ArrayList<ObjectLocator>();
		ObjectLocator objLoc = new ObjectLocator();
		Uuid objUUID = new Uuid();
		objUUID.setUuid(UUID.randomUUID().toString());
		objLoc.setUuid(objUUID);
		File file = new File("./test-content/AIM_2/Vasari-TCGA6330140190470283886.xml");
		String uri = file.toURI().toURL().toExternalForm();
		objLoc.setUri(uri);
		objLocs.add(objLoc);
		AimStore aimStore = new AimStore(objLocs, null);
		Thread t = new Thread(aimStore);
		t.start();
	}

}
{'fraction_non_alphanumeric': 0.12743125419181758, 'fraction_numerical': 0.015761234071093227, 'mean_word_length': 4.443430656934306, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1460614', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1023, 'n_words': 239}