<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<xsl:output
		method="xml"
		encoding="UTF-8" />
		
	<xsl:template match="//@PESCXMLVersion">
		<xsl:attribute name="PESCXMLVersion">4.0.0</xsl:attribute>
	</xsl:template>
	
	<!-- 
		Remove any 0000-00-00 dates generated by 3.3.4 data providers for empty xsd:date elements
	 -->
	<xsl:template match="//AddressInfo/AddrValidDt[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//Award/AwardBeginDt[. = '0000-00-00'] | //Award/AwardEndDt[. = '0000-00-00'] | //Award/LoanStatDt[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//CollectionCosts/CollectionCostsDate[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//Default/DefAvertRqDt[. = '0000-00-00'] | //Default/DefAvertRqCureDt[. = '0000-00-00'] | //Default/ClaimFilDt[. = '0000-00-00'] | //Default/ClaimPdDt[. = '0000-00-00'] | //Default/EligibilityReinstatementDate[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//DefermentForbearance/DefermentForbearanceBeginDate[. = '0000-00-00'] | //DefermentForbearance/DefermentForbearanceEndDate[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//Disbursement/SchedDisbDt[. = '0000-00-00'] | //Disbursement/ActualDisbDt[. = '0000-00-00'] | //Disbursement/DisbStatDt[. = '0000-00-00'] | //Disbursement/CancellationDate[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//LateFees/LateFeesDate[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//LastPmt/PaymentDt[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//LoanTransfer/TransferDt[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//OtherFees/OtherFeesDate[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//Phone//PhoneValidDt[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//Reference/DtOfBirth[. = '0000-00-00'] | //Borrower/DtOfBirth[. = '0000-00-00'] | //Student/DtOfBirth[. = '0000-00-00'] | //Student/GradDt[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//Repayment/NextDueDt[. = '0000-00-00'] | //Repayment/AcctBalDt[. = '0000-00-00'] | //Repayment/PmtBeginDt[. = '0000-00-00']"><xsl:copy /></xsl:template>
	<xsl:template match="//ServicingFees/ServicingFeesDate[. = '0000-00-00']"><xsl:copy /></xsl:template>
	 
	<xsl:template match="//Award/GuarDt">
		<LoanDt><xsl:if test=". != '0000-00-00'"><xsl:value-of select="."/></xsl:if></LoanDt>
	</xsl:template>
	
	<xsl:template match="//Contacts/Email">
		<xsl:copy><EmailAddress><xsl:value-of select="."/></EmailAddress></xsl:copy>
	</xsl:template>
	
	<xsl:template match="//Award[Student/SSNum = Borrower/SSNum]/AwardType[. = 'FFELPLUS']">
		<AwardType>FFELGB</AwardType><commit_msg>Fixed 0000-00-00 issue (elements with 0000-00-00 now removed completely instead of just emptied)<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<xsl:output
		method="xml"
		encoding="UTF-8" />
		
	<xsl:template match="//@PESCXMLVersion">
		<xsl:attribute name="PESCXMLVersion">4.0.0</xsl:attribute>
	</xsl:template>
	
	<!-- 
		Remove any 0000-00-00 dates generated by 3.3.4 data providers for empty xsd:date elements
	 -->
	<xsl:template match="//AddressInfo/AddrValidDt[. = '0000-00-00']"/>
	<xsl:template match="//Award/AwardBeginDt[. = '0000-00-00'] | //Award/AwardEndDt[. = '0000-00-00'] | //Award/LoanStatDt[. = '0000-00-00']"/>
	<xsl:template match="//CollectionCosts/CollectionCostsDate[. = '0000-00-00']"/>
	<xsl:template match="//Default/DefAvertRqDt[. = '0000-00-00'] | //Default/DefAvertRqCureDt[. = '0000-00-00'] | //Default/ClaimFilDt[. = '0000-00-00'] | //Default/ClaimPdDt[. = '0000-00-00'] | //Default/EligibilityReinstatementDate[. = '0000-00-00']"/>
	<xsl:template match="//DefermentForbearance/DefermentForbearanceBeginDate[. = '0000-00-00'] | //DefermentForbearance/DefermentForbearanceEndDate[. = '0000-00-00']"/>
	<xsl:template match="//Disbursement/SchedDisbDt[. = '0000-00-00'] | //Disbursement/ActualDisbDt[. = '0000-00-00'] | //Disbursement/DisbStatDt[. = '0000-00-00'] | //Disbursement/CancellationDate[. = '0000-00-00']"/>
	<xsl:template match="//LateFees/LateFeesDate[. = '0000-00-00']"/>
	<!-- PaymentDt is required... xsl:template match="//LastPmt/PaymentDt[. = '0000-00-00']"><xsl:copy /></xsl:template -->
	<xsl:template match="//LoanTransfer/TransferDt[. = '0000-00-00']"/>
	<xsl:template match="//OtherFees/OtherFeesDate[. = '0000-00-00']"/>
	<xsl:template match="//Phone//PhoneValidDt[. = '0000-00-00']"/>
	<xsl:template match="//Reference/DtOfBirth[. = '0000-00-00'] | //Borrower/DtOfBirth[. = '0000-00-00'] | //Student/DtOfBirth[. = '0000-00-00'] | //Student/GradDt[. = '0000-00-00']"/>
	<xsl:template match="//Repayment/NextDueDt[. = '0000-00-00'] | //Repayment/AcctBalDt[. = '0000-00-00'] | //Repayment/PmtBeginDt[. = '0000-00-00']"/>
	<xsl:template match="//ServicingFees/ServicingFeesDate[. = '0000-00-00']"/>
	 
	<xsl:template match="//Award/GuarDt"><xsl:if test=". != '0000-00-00'">
		<LoanDt><xsl:value-of select="."/></LoanDt>
	</xsl:if></xsl:template>
	
	<xsl:template match="//Contacts/Email">
		<xsl:copy><EmailAddress><xsl:value-of select="."/></EmailAddress></xsl:copy>
	</xsl:template>
	
	<xsl:template match="//Award[Student/SSNum = Borrower/SSNum]/AwardType[. = 'FFELPLUS']">
		<AwardType>FFELGB</AwardType>
{'fraction_non_alphanumeric': 0.24524886877828053, 'fraction_numerical': 0.0988235294117647, 'mean_word_length': 4.598784194528875, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 2, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '374932', 'n_tokens_mistral': 2708, 'n_tokens_neox': 2209, 'n_words': 261}