<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="DMDirc" default="default" basedir=".">
	<description>Builds, tests, and runs the project DMDirc.</description>
	<import file="nbproject/build-impl.xml"/>    
	<target name="checkstyle" depends=" 
					checkstyle-all, 
					checkstyle-actions,
					checkstyle-core,
					checkstyle-commandparser,
					checkstyle-config,
					checkstyle-logger,
					checkstyle-parser,
					checkstyle-plugins,
					checkstyle-ui,
					remove-xml-files, move-index" /> 
	<target name="allreports" depends=" 
					findbugs, 
					cpd, 
					pmd,
					checkstyle" /> 
	<target name="mostreports" depends=" 
					cpd,
					pmd,
					checkstyle" /> 
	
	<target name="checkstyle-plugins">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle-all-4.3.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/plugins/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-plugins.xml"/>
			
		</checkstyle>
		<xslt in="reports/report-plugins.xml" out="reports/report-plugins.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-actions">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/actions/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-actions.xml"/>
			
		</checkstyle>
		<xslt in="reports/report-actions.xml" out="reports/report-actions.html" style="checkstyle/checkstyle.xsl"/>
	</target>            
	
	<target name="checkstyle-ui">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/ui/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-ui.xml"/>
		</checkstyle>
		
		<xslt in="reports/report-ui.xml" out="reports/report-ui.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-parser">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/parser/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-parser.xml"/>
		</checkstyle>
		<xslt in="reports/report-parser.xml" out="reports/report-parser.html" style="checkstyle/checkstyle.xsl"/>
		
	</target>
	
	<target name="checkstyle-logger">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/logger/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-logger.xml"/>
		</checkstyle>
		<xslt in="reports/report-logger.xml" out="reports/report-logger.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	
	<target name="checkstyle-config">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/config/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-config.xml"/>
		</checkstyle>
		<xslt in="reports/report-config.xml" out="reports/report-config.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-commandparser">
		
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/commandparser/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-commandparser.xml"/>
		</checkstyle>
		<xslt in="reports/report-commandparser.xml" out="reports/report-commandparser.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-core">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/" includes="*.java"/>
			<formatter type="xml" tofile="reports/report-core.xml"/>
		</checkstyle>
		<xslt in="reports/report-core.xml" out="reports/report-core.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-all">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			
			<fileset dir="src/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-all.xml"/>
		</checkstyle>
		<xslt in="reports/report-all.xml" out="reports/report-all.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="remove-xml-files">
		<delete>
			<fileset dir="reports/" includes="*.xml"/>
		</delete>
		
	</target>
	<target name="move-index">
		<!-- <copy file="checkstyle/index.html" tofile="reports/index.html"/> -->
		<copy file="checkstyle/sorttable.js" tofile="reports/sorttable.js"/>
	</target>
	
	<target name="pmd">
		<taskdef name="pmd" classpath="pmd-3.9.jar" 
						 classname="net.sourceforge.pmd.ant.PMDTask" />
		<pmd shortFilenames="true">
			
			<ruleset>checkstyle/pmd_checks.xml</ruleset>
			<formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
			<fileset dir="src/com/" includes="**/*.java" />
		</pmd><commit_msg>Checkstyle's global report doesn't include MiG layout<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="DMDirc" default="default" basedir=".">
	<description>Builds, tests, and runs the project DMDirc.</description>
	<import file="nbproject/build-impl.xml"/>    
	<target name="checkstyle" depends=" 
					checkstyle-all, 
					checkstyle-actions,
					checkstyle-core,
					checkstyle-commandparser,
					checkstyle-config,
					checkstyle-logger,
					checkstyle-parser,
					checkstyle-plugins,
					checkstyle-ui,
					remove-xml-files, move-index" /> 
	<target name="allreports" depends=" 
					findbugs, 
					cpd, 
					pmd,
					checkstyle" /> 
	<target name="mostreports" depends=" 
					cpd,
					pmd,
					checkstyle" /> 
	
	<target name="checkstyle-plugins">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle-all-4.3.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/plugins/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-plugins.xml"/>
			
		</checkstyle>
		<xslt in="reports/report-plugins.xml" out="reports/report-plugins.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-actions">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/actions/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-actions.xml"/>
			
		</checkstyle>
		<xslt in="reports/report-actions.xml" out="reports/report-actions.html" style="checkstyle/checkstyle.xsl"/>
	</target>            
	
	<target name="checkstyle-ui">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/ui/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-ui.xml"/>
		</checkstyle>
		
		<xslt in="reports/report-ui.xml" out="reports/report-ui.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-parser">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/parser/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-parser.xml"/>
		</checkstyle>
		<xslt in="reports/report-parser.xml" out="reports/report-parser.html" style="checkstyle/checkstyle.xsl"/>
		
	</target>
	
	<target name="checkstyle-logger">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/logger/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-logger.xml"/>
		</checkstyle>
		<xslt in="reports/report-logger.xml" out="reports/report-logger.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	
	<target name="checkstyle-config">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/config/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-config.xml"/>
		</checkstyle>
		<xslt in="reports/report-config.xml" out="reports/report-config.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-commandparser">
		
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/commandparser/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-commandparser.xml"/>
		</checkstyle>
		<xslt in="reports/report-commandparser.xml" out="reports/report-commandparser.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-core">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			<fileset dir="src/com/dmdirc/" includes="*.java"/>
			<formatter type="xml" tofile="reports/report-core.xml"/>
		</checkstyle>
		<xslt in="reports/report-core.xml" out="reports/report-core.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="checkstyle-all">
		<taskdef resource="checkstyletask.properties"
						 classpath="checkstyle.jar"/>
		<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
								failOnViolation="false">
			
			<fileset dir="src/com/dmdirc/" includes="**/*.java"/>
			<formatter type="xml" tofile="reports/report-all.xml"/>
		</checkstyle>
		<xslt in="reports/report-all.xml" out="reports/report-all.html" style="checkstyle/checkstyle.xsl"/>
	</target>
	
	<target name="remove-xml-files">
		<delete>
			<fileset dir="reports/" includes="*.xml"/>
		</delete>
		
	</target>
	<target name="move-index">
		<!-- <copy file="checkstyle/index.html" tofile="reports/index.html"/> -->
		<copy file="checkstyle/sorttable.js" tofile="reports/sorttable.js"/>
	</target>
	
	<target name="pmd">
		<taskdef name="pmd" classpath="pmd-3.9.jar" 
						 classname="net.sourceforge.pmd.ant.PMDTask" />
		<pmd shortFilenames="true">
			
			<ruleset>checkstyle/pmd_checks.xml</ruleset>
			<formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
			<fileset dir="src/com/" includes="**/*.java" />
		</pmd>
{'fraction_non_alphanumeric': 0.17173494177766607, 'fraction_numerical': 0.0011728239926279635, 'mean_word_length': 4.43872437357631, 'pattern_counts': {'":': 0, '<': 199, '<?xml version=': 2, '>': 199, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 88}, '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': '4500287', 'n_tokens_mistral': 4675, 'n_tokens_neox': 3847, 'n_words': 537}