<commit_before>package org.arachb.owlbuilder;

import java.util.Set;

import org.apache.log4j.Logger;
import org.arachb.arachadmin.AbstractConnection;
import org.arachb.arachadmin.ClaimBean;
import org.arachb.arachadmin.DBConnection;
import org.arachb.arachadmin.ParticipantBean;
import org.arachb.owlbuilder.lib.Participant;
import org.junit.Before;
import org.junit.Test;
import org.semanticweb.owlapi.model.OWLObject;

public class TestParticipant {

    private static Logger log = Logger.getLogger(TestParticipant.class);

    private AbstractConnection testConnection;

    private final int TESTCLAIMID = 1;
    private ClaimBean testClaim;
    
    private Set<ParticipantBean> beanSet;
	private Owlbuilder builder;
	
	@Before
	public void setUp() throws Exception {
		if (DBConnection.testConnection()){
			log.info("Testing with live connection");
			testConnection = DBConnection.getTestConnection();
		}
		else{
			log.info("Testing with mock connection");
			testConnection = DBConnection.getMockConnection();
		}
    	builder = new Owlbuilder();
    	testClaim = testConnection.getClaim(TESTCLAIMID);
		beanSet = testConnection.getParticipants(testClaim);
    	
	}

	@Test
	public void testParticipant() throws Exception{
		for (ParticipantBean pb : beanSet){
			Participant p = new Participant(pb);
		}
	}

	@Test
	public void testGenerateOWL() throws Exception {
		for (ParticipantBean pb : beanSet){
			pb.loadElements(testConnection);
			pb.traverseElements();
			Participant p = new Participant(pb);
			OWLObject o = p.generateOWL(builder);
			//assertNotNull(o);
		}
	}

}
<commit_msg>change call for updating elements<commit_after>package org.arachb.owlbuilder;

import java.util.Set;

import org.apache.log4j.Logger;
import org.arachb.arachadmin.AbstractConnection;
import org.arachb.arachadmin.ClaimBean;
import org.arachb.arachadmin.DBConnection;
import org.arachb.arachadmin.ParticipantBean;
import org.arachb.owlbuilder.lib.Participant;
import org.junit.Before;
import org.junit.Test;
import org.semanticweb.owlapi.model.OWLObject;

public class TestParticipant {

    private static Logger log = Logger.getLogger(TestParticipant.class);

    private AbstractConnection testConnection;

    private final int TESTCLAIMID = 1;
    private ClaimBean testClaim;
    
    private Set<ParticipantBean> beanSet;
	private Owlbuilder builder;
	
	@Before
	public void setUp() throws Exception {
		if (DBConnection.testConnection()){
			log.info("Testing with live connection");
			testConnection = DBConnection.getTestConnection();
		}
		else{
			log.info("Testing with mock connection");
			testConnection = DBConnection.getMockConnection();
		}
    	builder = new Owlbuilder();
    	testClaim = testConnection.getClaim(TESTCLAIMID);
		beanSet = testConnection.getParticipants(testClaim);
    	
	}

	@Test
	public void testParticipant() throws Exception{
		for (ParticipantBean pb : beanSet){
			Participant p = new Participant(pb);
		}
	}

	@Test
	public void testGenerateOWL() throws Exception {
		for (ParticipantBean pb : beanSet){
			pb.loadElements(testConnection);
			pb.resolveElements(testConnection);
			Participant p = new Participant(pb);
			OWLObject o = p.generateOWL(builder);
			//assertNotNull(o);
		}
	}

}

{'fraction_non_alphanumeric': 0.09682392846130126, 'fraction_numerical': 0.0012334258402713536, 'mean_word_length': 4.602763385146805, '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': '5997429', 'n_tokens_mistral': 1097, 'n_tokens_neox': 986, 'n_words': 222}