<commit_before>package  org.kuali.kra.s2s.performancesite;



import static org.kuali.coeus.sys.framework.service.KcServiceLocator.getService;

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

import org.apache.xmlbeans.XmlObject;
import org.kuali.coeus.common.framework.org.Organization;
import org.kuali.coeus.common.framework.rolodex.Rolodex;
import org.kuali.coeus.common.framework.unit.Unit;
import org.kuali.coeus.propdev.impl.core.DevelopmentProposal;
import org.kuali.coeus.propdev.impl.core.ProposalDevelopmentDocument;
import org.kuali.coeus.propdev.impl.location.CongressionalDistrict;
import org.kuali.coeus.propdev.impl.location.ProposalSite;
import org.kuali.kra.s2s.generator.S2STestBase;
import org.kuali.kra.s2s.generator.impl.RRPersonalDataV1_0Generator;
import org.kuali.kra.s2s.generator.impl.RRPersonalDataV1_1Generator;
import org.kuali.kra.s2s.performancesite.PerformanceSiteV2_0Generator;
import org.kuali.rice.krad.data.DataObjectService;

public class PerformanceSiteV2_0GeneratorTest extends S2STestBase<PerformanceSiteV2_0Generator> {

	@Override
	protected void prepareData(ProposalDevelopmentDocument document)
			throws Exception {
	    
		List<ProposalSite> proposalSites = new ArrayList<ProposalSite>();
	    List<CongressionalDistrict> congressionalDistricts = new ArrayList<CongressionalDistrict>();
	    Rolodex rolodex =new Rolodex();
        rolodex.setRolodexId(1);
        rolodex.setAddressLine1("addressLine1");
        rolodex.setAddressLine2("addressLine2");
        rolodex.setAddressLine3("addressLine3");
        rolodex.setOwnedByUnit("000001");
        rolodex.setOrganization("University");
        rolodex.setSponsorAddressFlag(Boolean.FALSE);
        rolodex.setCreateUser("admin");
        rolodex.setCity("Camebridge");
        rolodex.setCounty(null);
        rolodex.setCountryCode("USA");
        rolodex.setPostalCode("02039-4307");
        rolodex.setState("MA");
	    int siteNumber =0;
	    Organization organization = new Organization();
        organization.setOrganizationName("University");
        organization.setOrganizationId("000001");
        organization.setContactAddressId(1);
        organization.setRolodex(rolodex);
			   
	    ProposalSite performingOrganization = new ProposalSite();
	    performingOrganization.setLocationTypeCode(2);
	    performingOrganization.setOrganization(organization);
	    performingOrganization.setProposalNumber(document.getDevelopmentProposal().getProposalNumber());
	    performingOrganization.setSiteNumber(++siteNumber);
	    performingOrganization.setLocationName(organization.getOrganizationName());
	   
	    CongressionalDistrict congressionalDistrict = 	new CongressionalDistrict();
	    congressionalDistrict.setCongressionalDistrictId((long) 001111111);
	    congressionalDistrict.setCongressionalDistrict("MA-008");
	    congressionalDistrict.setProposalNumber(document.getDevelopmentProposal().getProposalNumber());
	    congressionalDistrict.setSiteNumber(++siteNumber);
	    congressionalDistricts.add(congressionalDistrict);
	    performingOrganization.setCongressionalDistricts(congressionalDistricts);
	    getService(DataObjectService.class).save(performingOrganization);
	    proposalSites.add(performingOrganization);
	    document.getDevelopmentProposal().setProposalSites(proposalSites);
   
	}

	@Override
	protected Class<PerformanceSiteV2_0Generator> getFormGeneratorClass() {
		return PerformanceSiteV2_0Generator.class;
	}

}<commit_msg>KCINFR-979 : Fix compile problem with renamed property<commit_after>package  org.kuali.kra.s2s.performancesite;



import static org.kuali.coeus.sys.framework.service.KcServiceLocator.getService;

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

import org.apache.xmlbeans.XmlObject;
import org.kuali.coeus.common.framework.org.Organization;
import org.kuali.coeus.common.framework.rolodex.Rolodex;
import org.kuali.coeus.common.framework.unit.Unit;
import org.kuali.coeus.propdev.impl.core.DevelopmentProposal;
import org.kuali.coeus.propdev.impl.core.ProposalDevelopmentDocument;
import org.kuali.coeus.propdev.impl.location.CongressionalDistrict;
import org.kuali.coeus.propdev.impl.location.ProposalSite;
import org.kuali.kra.s2s.generator.S2STestBase;
import org.kuali.kra.s2s.generator.impl.RRPersonalDataV1_0Generator;
import org.kuali.kra.s2s.generator.impl.RRPersonalDataV1_1Generator;
import org.kuali.kra.s2s.performancesite.PerformanceSiteV2_0Generator;
import org.kuali.rice.krad.data.DataObjectService;

public class PerformanceSiteV2_0GeneratorTest extends S2STestBase<PerformanceSiteV2_0Generator> {

	@Override
	protected void prepareData(ProposalDevelopmentDocument document)
			throws Exception {
	    
		List<ProposalSite> proposalSites = new ArrayList<ProposalSite>();
	    List<CongressionalDistrict> congressionalDistricts = new ArrayList<CongressionalDistrict>();
	    Rolodex rolodex =new Rolodex();
        rolodex.setRolodexId(1);
        rolodex.setAddressLine1("addressLine1");
        rolodex.setAddressLine2("addressLine2");
        rolodex.setAddressLine3("addressLine3");
        rolodex.setOwnedByUnit("000001");
        rolodex.setOrganization("University");
        rolodex.setSponsorAddressFlag(Boolean.FALSE);
        rolodex.setCreateUser("admin");
        rolodex.setCity("Camebridge");
        rolodex.setCounty(null);
        rolodex.setCountryCode("USA");
        rolodex.setPostalCode("02039-4307");
        rolodex.setState("MA");
	    int siteNumber =0;
	    Organization organization = new Organization();
        organization.setOrganizationName("University");
        organization.setOrganizationId("000001");
        organization.setContactAddressId(1);
        organization.setRolodex(rolodex);
			   
	    ProposalSite performingOrganization = new ProposalSite();
	    performingOrganization.setLocationTypeCode(2);
	    performingOrganization.setOrganization(organization);
	    performingOrganization.setProposalNumber(document.getDevelopmentProposal().getProposalNumber());
	    performingOrganization.setSiteNumber(++siteNumber);
	    performingOrganization.setLocationName(organization.getOrganizationName());
	   
	    CongressionalDistrict congressionalDistrict = 	new CongressionalDistrict();
	    congressionalDistrict.setId((long) 001111111);
	    congressionalDistrict.setCongressionalDistrict("MA-008");
	    congressionalDistrict.setProposalNumber(document.getDevelopmentProposal().getProposalNumber());
	    congressionalDistrict.setSiteNumber(++siteNumber);
	    congressionalDistricts.add(congressionalDistrict);
	    performingOrganization.setCongressionalDistricts(congressionalDistricts);
	    getService(DataObjectService.class).save(performingOrganization);
	    proposalSites.add(performingOrganization);
	    document.getDevelopmentProposal().setProposalSites(proposalSites);
   
	}

	@Override
	protected Class<PerformanceSiteV2_0Generator> getFormGeneratorClass() {
		return PerformanceSiteV2_0Generator.class;
	}

}
{'fraction_non_alphanumeric': 0.09763734699686877, 'fraction_numerical': 0.01864503273555366, 'mean_word_length': 5.4884579870729455, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4235262', 'n_tokens_mistral': 2339, 'n_tokens_neox': 2070, 'n_words': 234}