<commit_before>package gov.nih.nci.cabig.caaers.dao;

import gov.nih.nci.cabig.caaers.JdbcDaoTestCase;

import java.util.List;
import java.util.ArrayList;

/**
 * @author <NAME>
 * @author <NAME>
 */
// @CaaersUseCases({ })
public class MedDRADaoTest extends JdbcDaoTestCase<MedDRADao>{

    public void testInsertLowLevelTerms() throws Exception {
    	//id,meddra_code,meddra_term,meddra_pt_id
    	String[] lowLevelTerm = {"122","122","322","122"};
    	List<String[]> llts = new ArrayList<String[]>();
    	llts.add(lowLevelTerm);
    	int[] result = getDao().insertLowLevelTerms(llts, 0);
    	assertEquals("Wrong Result Set", 1, result[0]);
        
    }
    
    public void testInsertPreferredTerms() throws Exception {
    	//id,meddra_code,meddra_term,meddra_soc_id
    	String[] preferredTerm = {"122","122","322","122"};
    	List<String[]> pts = new ArrayList<String[]>();
    	pts.add(preferredTerm);
    	int[] result = getDao().insertPreferredTerms(pts, 0);
    	assertEquals("Wrong Result Set", 1, result[0]);
        
    }
    
    public void testInsertHighLevelTerms() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] highLevelTerm = {"122","122","322"};
    	List<String[]> hlts = new ArrayList<String[]>();
    	hlts.add(highLevelTerm);
    	int[] result = getDao().insertHighLevelTerms(hlts, 0);
    	assertEquals("Wrong Result Set", 1, result[0]);
        
    }
    
    public void testInsertHighLevelGroupTerms() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] hlgt = {"122","122","322"};
    	List<String[]> hlgts = new ArrayList<String[]>();
    	hlgts.add(hlgt);
    	int[] result = getDao().insertHighLevelGroupTerms(hlgts, 0);
    	assertEquals("Wrong Result Set", 1, result[0]);
        
    }
    
    public void testInsertSystemOrganClasses() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] soc = {"122","122","322"};
    	List<String[]> socs = new ArrayList<String[]>();
    	socs.add(soc);
    	int[] result = getDao().insertSystemOrganClasses(socs, 0);
    	assertEquals("Wrong Result Set", 1, result[0]);
        
    }
    
    public void testInsertHLTxPT() throws Exception {
    	//id,meddra_hlt_id ,meddra_pt_id
    	String[] hltpt = {"122","122","322"};
    	List<String[]> hltpts = new ArrayList<String[]>();
    	hltpts.add(hltpt);
    	int[] result = getDao().insertHLTxPT(hltpts, 0);
    	assertEquals("Wrong Result Set", 1, result[0]);
        
    }
    
    public void testInsertHLGTxHLT() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] hlgthlt = {"122","122","322"};
    	List<String[]> hlgtlts = new ArrayList<String[]>();
    	hlgtlts.add(hlgthlt);
    	int[] result = getDao().insertHLGTxHLT(hlgtlts, 0);
    	assertEquals("Wrong Result Set", 1, result[0]);
        
    }
    public void testInsertSOCxHLGT() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] sochlgt = {"122","122","322"};
    	List<String[]> sochlgts = new ArrayList<String[]>();
    	sochlgts.add(sochlgt);
    	int[] result = getDao().insertSOCxHLGT(sochlgts, 0);
    	assertEquals("Wrong Result Set", 1, result[0]);
        
    }
}<commit_msg>MedDRA test cases refined - oracle has a different success code<commit_after>package gov.nih.nci.cabig.caaers.dao;

import gov.nih.nci.cabig.caaers.JdbcDaoTestCase;

import java.util.List;
import java.util.ArrayList;

/**
 * @author <NAME>
 * @author <NAME>
 */
// @CaaersUseCases({ })
public class MedDRADaoTest extends JdbcDaoTestCase<MedDRADao>{

    public void testInsertLowLevelTerms() throws Exception {
    	//id,meddra_code,meddra_term,meddra_pt_id
    	String[] lowLevelTerm = {"122","122","322","122"};
    	List<String[]> llts = new ArrayList<String[]>();
    	llts.add(lowLevelTerm);
    	getDao().insertLowLevelTerms(llts, 0);
        
    }
    
    public void testInsertPreferredTerms() throws Exception {
    	//id,meddra_code,meddra_term,meddra_soc_id
    	String[] preferredTerm = {"122","122","322","122"};
    	List<String[]> pts = new ArrayList<String[]>();
    	pts.add(preferredTerm);
    	getDao().insertPreferredTerms(pts, 0);
        
    }
    
    public void testInsertHighLevelTerms() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] highLevelTerm = {"122","122","322"};
    	List<String[]> hlts = new ArrayList<String[]>();
    	hlts.add(highLevelTerm);
    	getDao().insertHighLevelTerms(hlts, 0);
        
    }
    
    public void testInsertHighLevelGroupTerms() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] hlgt = {"122","122","322"};
    	List<String[]> hlgts = new ArrayList<String[]>();
    	hlgts.add(hlgt);
    	getDao().insertHighLevelGroupTerms(hlgts, 0);
        
    }
    
    public void testInsertSystemOrganClasses() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] soc = {"122","122","322"};
    	List<String[]> socs = new ArrayList<String[]>();
    	socs.add(soc);
    	getDao().insertSystemOrganClasses(socs, 0);
        
    }
    
    public void testInsertHLTxPT() throws Exception {
    	//id,meddra_hlt_id ,meddra_pt_id
    	String[] hltpt = {"122","122","322"};
    	List<String[]> hltpts = new ArrayList<String[]>();
    	hltpts.add(hltpt);
    	getDao().insertHLTxPT(hltpts, 0);
        
    }
    
    public void testInsertHLGTxHLT() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] hlgthlt = {"122","122","322"};
    	List<String[]> hlgtlts = new ArrayList<String[]>();
    	hlgtlts.add(hlgthlt);
    	getDao().insertHLGTxHLT(hlgtlts, 0);
        
    }
    public void testInsertSOCxHLGT() throws Exception {
    	//id,meddra_code,meddra_term
    	String[] sochlgt = {"122","122","322"};
    	List<String[]> sochlgts = new ArrayList<String[]>();
    	sochlgts.add(sochlgt);
    	getDao().insertSOCxHLGT(sochlgts, 0);
        
    }
}
{'fraction_non_alphanumeric': 0.15793976728268308, 'fraction_numerical': 0.03216974674880219, 'mean_word_length': 3.3881381381381384, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '4232641', 'n_tokens_mistral': 2233, 'n_tokens_neox': 2069, 'n_words': 359}