<commit_before><!--===========================================================================
  This is the build file for the Pentaho Agile BI Project
  
  This build file will use the subfloor.xml file as the default build
  process and should only override the tasks that need to differ from
  the common build file.
  
  See subfloor.xml for more details
============================================================================-->
<project name="Agile BI" basedir="." default="jar" 
	xmlns:ivy="antlib:org.apache.ivy.ant" >
	
	<description>
	  This build file is used to create the Agile BI project
		and works with the subfloor.xml file.
	</description>

	<!-- Import the common_build.xml file which contains all the default tasks -->	
	<import file="build-res/subfloor-pkg.xml"/>

	<property name="platform.dist.dir"
	            value="../bi-platform-assembly/dist"
	            description="Location of platform assembly zip" />

	<property name="platform.unzip.dir"
	            value="${bin.dir}/platform-unzip"
	            description="Location of platform assembly zip" />
	
	<target name="dist" depends="resolve,jar,package" description="Builds and packages the application" />
	
	<target name="clean-dist">
		<delete dir="${dist.dir}" />
		<delete dir="${stage.dir}" />
		<delete dir="${platform.unzip.dir}" />
	</target>

    <!--
      AS STATED ABOVE, THE ONLY TASKS THAT SHOULD EXIST IN THIS BUILD FILE ARE
      THE TASKS THAT NEED TO DIFFER FROM THE DEFAULT IMPLEMENTATION OF THE TASKS
      FOUND IN subfloor.xml.
    --> 
	
  <target name="assemble.init">
    <mkdir dir="${stage.dir}" />
  </target>
	
  <target name="assemble.copy-libs" depends="assemble-embedded-server">
    <copy todir="${stage.dir}/libext/agile-bi">
      <!-- <fileset dir="${lib.dir}" /> -->
      <fileset file="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar" />
    </copy>
  </target>
	
	  <target name="assemble" depends="assemble.init,assemble.copy-libs">
	    <copy todir="${approot.stage.dir}" overwrite="true">
	      <fileset dir="${package.resdir}" />
	    </copy>
	    <chmod perm="a+x" dir="${stage.dir}" includes="**/*.sh" />
	  </target>
	
	<target name="assemble-embedded-server">
		<!-- Step 1: Unzip a platform zip into staging dir -->
		<mkdir dir="${platform.unzip.dir}"/>
		<unzip dest="${platform.unzip.dir}">
			<fileset dir="${platform.dist.dir}">
			        <include name="biserver-ce-*.zip"/>
		    </fileset>
		</unzip>
		<!-- Step 2: Move / Remove platform as necessary -->

		<mkdir dir="${stage.dir}/agile-bi/platform/webapps"/>
		<move file="${platform.unzip.dir}/biserver-ce/tomcat/webapps/pentaho" todir="${stage.dir}/agile-bi/platform/webapps"/>
		<move file="${platform.unzip.dir}/biserver-ce/pentaho-solutions" todir="${stage.dir}/agile-bi/platform"/>
		<delete>
			<fileset dir="${stage.dir}/agile-bi/platform/webapps/pentaho/WEB-INF/lib">
				<include name="pentaho-reporting-engine-classic-extensions-kettle-*.jar"/>
			</fileset>
		</delete>
		
		<!-- Step 3: Overlay any specific files (web.xml, etc) -->
	</target>
	
</project><commit_msg>added target that builds a final assembly of kettle with agile bi<commit_after><!--===========================================================================
  This is the build file for the Pentaho Agile BI Project
  
  This build file will use the subfloor.xml file as the default build
  process and should only override the tasks that need to differ from
  the common build file.
  
  See subfloor.xml for more details
============================================================================-->
<project name="Agile BI" basedir="." default="jar" 
	xmlns:ivy="antlib:org.apache.ivy.ant" >
	
	<description>
	  This build file is used to create the Agile BI project
		and works with the subfloor.xml file.
	</description>

	<!-- Import the common_build.xml file which contains all the default tasks -->	
	<import file="build-res/subfloor-pkg.xml"/>

	<property name="platform.dist.dir"
	            value="../bi-platform-assembly/dist"
	            description="Location of platform assembly zip" />

	<property name="platform.unzip.dir"
	            value="${bin.dir}/platform-unzip"
	            description="Location of platform assembly zip" />
	
	<property name="kettle.dist.dir"
				value="../Kettle 3.2.3 Agile BI"
    			description="Location of kettle spoon zip" />
	
	<property name="pdiwithagilebi"
				value="pdi-ce-agile-bi" 
				description="Name of the pdi distribution with agile bi"/>
	
	<target name="dist" depends="resolve,jar,package" description="Builds and packages the application" />
	
	<target name="clean-dist">
		<delete dir="${dist.dir}" />
		<delete dir="${stage.dir}" />
		<delete dir="${platform.unzip.dir}" />
	</target>

    <!--
      AS STATED ABOVE, THE ONLY TASKS THAT SHOULD EXIST IN THIS BUILD FILE ARE
      THE TASKS THAT NEED TO DIFFER FROM THE DEFAULT IMPLEMENTATION OF THE TASKS
      FOUND IN subfloor.xml.
    --> 
	
  <target name="assemble.init">
    <mkdir dir="${stage.dir}" />
  </target>
	
  <target name="assemble.copy-libs" depends="assemble-embedded-server">
    <copy todir="${stage.dir}/libext/agile-bi">
      <!-- <fileset dir="${lib.dir}" /> -->
      <fileset file="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar" />
    </copy>
  </target>
	
	  <target name="assemble" depends="assemble.init,assemble.copy-libs">
	    <copy todir="${approot.stage.dir}" overwrite="true">
	      <fileset dir="${package.resdir}" />
	    </copy>
	    <chmod perm="a+x" dir="${stage.dir}" includes="**/*.sh" />
	  </target>
	
	<target name="assemble-embedded-server">
		<!-- Step 1: Unzip a platform zip into staging dir -->
		<mkdir dir="${platform.unzip.dir}"/>
		<unzip dest="${platform.unzip.dir}">
			<fileset dir="${platform.dist.dir}">
			        <include name="biserver-ce-*.zip"/>
		    </fileset>
		</unzip>
		<!-- Step 2: Move / Remove platform as necessary -->

		<mkdir dir="${stage.dir}/agile-bi/platform/webapps"/>
		<move file="${platform.unzip.dir}/biserver-ce/tomcat/webapps/pentaho" todir="${stage.dir}/agile-bi/platform/webapps"/>
		<move file="${platform.unzip.dir}/biserver-ce/pentaho-solutions" todir="${stage.dir}/agile-bi/platform"/>
		<delete>
			<fileset dir="${stage.dir}/agile-bi/platform/webapps/pentaho/WEB-INF/lib">
				<include name="pentaho-reporting-engine-classic-extensions-kettle-*.jar"/>
			</fileset>
		</delete>
		
		<!-- Step 3: Overlay any specific files (web.xml, etc) -->
	</target>
	
	<!-- this target builds a kettle release that includes the agile bi plugin -->
	<target name="kettle-w-plugin-dist">
		<unzip dest="${bin.dir}/kettle-dist">
			<fileset dir="${kettle.dist.dir}">
				<include name="pdi-ce-*.zip"/>
			</fileset>
		</unzip>
		<unzip dest="${bin.dir}/kettle-dist/plugins/spoon/agile-bi">
			<fileset dir="${dist.dir}">
				<include name="${package.basename}.zip"/>
			</fileset>
		</unzip>
		<zip destfile="${dist}" name="${pdiwithagilebi}.zip">
			<zipfileset dir="${bin.dir}/kettle-dist" />
		</zip>
	</target>
</project>
{'fraction_non_alphanumeric': 0.209927464087612, 'fraction_numerical': 0.0012800455127293415, 'mean_word_length': 3.5105837075048107, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '1809200', 'n_tokens_mistral': 2393, 'n_tokens_neox': 2157, 'n_words': 525}