<commit_before>package org.intermine.dataconversion;

/*
 * Copyright (C) 2002-2004 FlyMine
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  See the LICENSE file for more
 * information or http://www.gnu.org/copyleft/lesser.html.
 *
 */

import junit.framework.TestCase;

import java.io.StringReader;
import java.util.*;

import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.OntClass;

import org.intermine.objectstore.ObjectStoreWriter;
import org.intermine.objectstore.ObjectStoreWriterFactory;
import org.intermine.objectstore.intermine.ObjectStoreWriterInterMineImpl;
import org.intermine.ontology.OntologyUtil;
import org.intermine.ontology.SubclassRestriction;
import org.intermine.xml.full.Attribute;
import org.intermine.xml.full.Item;
import org.intermine.xml.full.Reference;
import org.intermine.xml.full.ReferenceList;
import org.intermine.xml.full.ItemHelper;

public class DataTranslatorTest extends TestCase
{
    private String srcNs = "http://www.intermine.org/source#";
    private String nullNs = "http://www.intermine.org/null#";
    private String tgtNs = "http://www.intermine.org/target#";
    private DataTranslator translator;
    private ObjectStoreWriter writer;
    protected Map itemMap;

    public void setUp() throws Exception {
        itemMap = new HashMap();
    }

    public void testTranslateItems() throws Exception {
        Item src1 = new Item();
        src1.setIdentifier("1");
        src1.setClassName(srcNs + "LtdCompany");
        Item src2 = new Item();
        src2.setIdentifier("2");
        src2.setClassName(srcNs + "Address");
        Item src3 = new Item();
        src3.setIdentifier("3");
        src3.setClassName(srcNs + "Department");
<commit_msg>remove unused ObjectStoreWriter<commit_after>package org.intermine.dataconversion;

/*
 * Copyright (C) 2002-2004 FlyMine
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  See the LICENSE file for more
 * information or http://www.gnu.org/copyleft/lesser.html.
 *
 */

import junit.framework.TestCase;

import java.io.StringReader;
import java.util.*;

import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.OntClass;

import org.intermine.ontology.OntologyUtil;
import org.intermine.ontology.SubclassRestriction;
import org.intermine.xml.full.Attribute;
import org.intermine.xml.full.Item;
import org.intermine.xml.full.Reference;
import org.intermine.xml.full.ReferenceList;
import org.intermine.xml.full.ItemHelper;

public class DataTranslatorTest extends TestCase
{
    private String srcNs = "http://www.intermine.org/source#";
    private String nullNs = "http://www.intermine.org/null#";
    private String tgtNs = "http://www.intermine.org/target#";
    private DataTranslator translator;
    protected Map itemMap;

    public void setUp() throws Exception {
        itemMap = new HashMap();
    }

    public void testTranslateItems() throws Exception {
        Item src1 = new Item();
        src1.setIdentifier("1");
        src1.setClassName(srcNs + "LtdCompany");
        Item src2 = new Item();
        src2.setIdentifier("2");
        src2.setClassName(srcNs + "Address");
        Item src3 = new Item();
        src3.setIdentifier("3");
        src3.setClassName(srcNs + "Department");

{'fraction_non_alphanumeric': 0.11086226203807391, 'fraction_numerical': 0.011198208286674132, 'mean_word_length': 3.789544235924933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 10}, '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': '1220427', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1082, 'n_words': 257}