<commit_before><?xml version="1.0"?>
<!--
  Copyright 2002, 2005 The Apache Software Foundation.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  
-->
<!-- ====================================================================== 
     18.11.2005 12:01:30                                                        

     log4js    
     Logging library for JavaScript which is using almost same API than log4j
                   
     <NAME>                                                               
     ====================================================================== -->
<project name="log4js" default="dist" basedir=".">
	<description>
	  Logging library for JavaScript which is using almost same API than log4j
	</description>
	<!-- The build.properties file defines the parth to local jar files -->
	<property file="build.properties" />
	<property environment="env" />

	<property name="version" value="0.1.5" />

	<property name="src.dir" value="src" />
	<property name="src.js.dir" value="${src.dir}/js" />

	<property name="lib.dir" value="lib" />

	<property name="tools.dir" value="tools" />

	<property name="doc.dir" value="docs" />
	<property name="xdoc.dir" value="${src.dir}/xdocs" />
	<!-- FORREST_HOME must be set as an environment variable -->
	<property name="forrest.home" value="${env.FORREST_HOME}" />


	<!-- build properties -->
	<property name="dist.dir" value="build" />
	<property name="dist.docs.dir" value="${dist.dir}/docs" />

	<!-- example properties -->
	<property name="example.src.dir" value="examples" />
	<property name="example.webapp.dir" value="${dist.dir}/webapp" />
	<property name="example.war.name" value="log4js-example.war" />
	<property name="log4j.jar" value="${lib.dir}/log4j.jar" />

	<!-- release properties -->
	<property name="release.dir" value="release" />


    <!-- ================================= 
          target: release              
         ================================= -->
    <target name="release" depends="dist" description="--> create release">
		<echo>generate complete distribution archive: ${release.dir}/log4js-${version}.zip</echo>
    	
    	<mkdir dir="${release.dir}" />
		
    	<zip destfile="${release.dir}/log4js-${version}.zip">
			<fileset dir="${basedir}">
				<include name="${src.dir}/**" />
			</fileset>
			<fileset dir="${basedir}">
				<include name="${example.src.dir}/**" />
			</fileset>			
			<fileset dir="${dist.dir}">
				<include name="lib/**" />
				<include name="docs/**" />
			</fileset>
			<fileset file="${dist.dir}/${example.war.name}" />

			<fileset file="CHANGELOG.txt" />
			<fileset file="INSTALL.txt" />
			<fileset file="LICENSE.txt" />
			<fileset file="NOTICE.txt" />
		</zip>  

    	<tar compression="gzip" destfile="${release.dir}/log4js-${version}.tar.gz" >
			<fileset dir="${basedir}">
				<include name="${src.dir}/**" />
			</fileset>
			<fileset dir="${basedir}">
				<include name="${example.src.dir}/**" />
			</fileset>			
			<fileset dir="${dist.dir}">
				<include name="lib/**" />
				<include name="docs/**" />
			</fileset>
			<fileset file="${dist.dir}/${example.war.name}" />

			<fileset file="CHANGELOG.txt" />
			<fileset file="INSTALL.txt" />
			<fileset file="LICENSE.txt" />
			<fileset file="NOTICE.txt" />
		</tar>     		
    </target>

	<!-- ================================= 
          target: distribute              
         ================================= -->
	<target name="dist" depends="dist.api, dist.doc, dist.example" description="--> generate complete distribution">

	</target>


	<!-- ================================= 
          target: dist.api              
         ================================= -->
	<target name="dist.api" depends="init, compile" description="--> distribution archive for API">

	</target>


	<!-- ================================= 
          target: dist.example              
         ================================= -->
	<target name="dist.example" depends="init, compile" description="--> distribution WAR for example">
		<echo>generate example web archive: ${dist.dir}/${example.war.name}</echo>

		<copy todir="${example.webapp.dir}">
			<fileset dir="${example.src.dir}">
				<exclude name="**/web.xml" />
				<exclude name="**/*.bak" />
			</fileset>
			<fileset dir="${src.dir}">
				<exclude name="**/*.bak" />
			</fileset>
		</copy>

		<!-- additional libraries -->
		<copy todir="${example.webapp.dir}/WEB-INF/lib" file="${log4j.jar}" />

		<war destfile="${dist.dir}/${example.war.name}" basedir="${example.src.dir}" webxml="${example.src.dir}/WEB-INF/web.xml" />
	</target>


	<!-- ================================= 
          target: dist.doc              
         ================================= -->
	<target name="dist.doc" depends="init, doc" description="--> generate documentation arcive">
		<echo>generate documentation archive: ${dist.dir}/log4js-doc-${version}.zip</echo>
		<copy todir="${dist.dir}/docs">
			<fileset dir="${doc.dir}">
				<exclude name="*.bak" />
			</fileset>
		</copy>
		<zip destfile="${dist.dir}/log4js-doc-${version}.zip">
			<fileset dir="${dist.dir}/docs">
			</fileset>
		</zip>
	</target>


	<!-- - - - - - - - - - - - - - - - - - 
          target: compile                      
         - - - - - - - - - - - - - - - - - -->
	<target name="compile" depends="init">
		<mkdir dir="${dist.dir}/lib" />
		<exec executable="perl" output="${dist.dir}/lib/log4js-lib.js">
			<arg line="-Tw ${tools.dir}/jsjam/jsjam.pl --quiet --keep-globals --keep-identifiers ${src.js.dir}/log4js.js" />
		</exec>
	</target>

	<target name="doc.api" description="generate the API doc" depends="init">
		<property name="apidoc.dir" value="${dist.dir}/docs/api" />

		<echo>Gererate JSDoc to ${apidoc.dir}</echo>
		<mkdir dir="${apidoc.dir}" />

		<property name="footer" value="log4js - Logging API for JavaScript" />

		<exec executable="perl">
			<arg line="${tools.dir}/JSDoc/jsdoc.pl -r &quot;${src.dir}/js&quot; -d &quot;${apidoc.dir}&quot; -project-name &quot;${ant.project.name} ${version}&quot; -page-footer &quot;${footer}&quot;" />
		</exec>
	</target>

	<target name="doc" depends="doc.api" description="generate documentation">
	</target>


	<!-- - - - - - - - - - - - - - - - - - 
          target: init                      
         - - - - - - - - - - - - - - - - - -->
	<target name="init">
		<mkdir dir="${tools.dir}" />
		<mkdir dir="${lib.dir}" />
		<mkdir dir="${dist.dir}" />
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: download-dependencies                      
         - - - - - - - - - - - - - - - - - -->	
	<target name="download-dependencies" depends="init">
		<setproxy proxyhost="proxy" proxyport="80" />

		<description>
	          To use this Maven-like freedom with respect to dependency setup,
	          do the following:

	          - run ant as you normally would, but add the following target to the command
	            line:

	            download-dependencies

	          For example:
	             C:>myproject\ant download-dependencies dist
		</description>

		<!-- for "compile" -->
		<get dest="${tools.dir}/jsjam/jsjam.pl" usetimestamp="true" ignoreerrors="true" src="http://www.anvilon.com/software/download/jsjam" />

		<get dest="${lib.dir}/JSUnit.zip" usetimestamp="true" ignoreerrors="true" src="http://mesh.dl.sourceforge.net/sourceforge/jsunit/jsunit2_1.zip" verbose="true" />
		<unzip src="${lib.dir}/JSUnit.zip" dest="${tools.dir}/JSUnit" />

		<!-- for documentation -->
		<get dest="${lib.dir}/JSDoc.tgz" usetimestamp="true" ignoreerrors="true" src="http://mesh.dl.sourceforge.net/sourceforge/jsdoc/JSDoc-1.9.6.1.tgz" verbose="true" />
		<gunzip src="${lib.dir}/JSDoc.tgz" dest="${tools.dir}/JSDoc" />
<!--
		<get dest="${lib.dir}/apache-forrest.zip" usetimestamp="true" ignoreerrors="true" src="http://www.artfiles.org/apache.org/forrest/apache-forrest-0.7.zip" />
		<unzip src="${lib.dir}/apache-forrest.zip" dest="${tools.dir}/apache-forrest" />
-->
		<copy todir="${ant.home}/lib" file="${env.FORREST_HOME}/lib/core/xml-commons-resolver-1.1.jar" />
<!--
		<get dest="${lib.dir}/velocity.zip" usetimestamp="true" ignoreerrors="true" src="http://www.apache.org/dist/jakarta/velocity/velocity-1.4/velocity-1.4.zip" />
-->
		<!-- for examples -->
		<get dest="${log4j.jar}" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.9.jar" verbose="true" />
	</target>


	<!-- ================================= 
          target: clean              
         ================================= -->
	<target name="clean" description="--> clean the generated files">
		<delete dir="${dist.dir}" />
	</target>


	<!-- ================================= 
          targets for forrest: use site to generate the files        
         ================================= -->
  <import file="${env.FORREST_HOME}/main/forrest.build.xml"/>

	<!-- 'site' is a target imported from forrest.build.xml -->
	<target name="post-build" depends="site, doc.api">
		<mkdir dir="${project.site-dir}/apidocs"/>
		<copy todir="${project.site-dir}/apidocs">
			<fileset dir="${doc.dir}">
				<exclude name="*.bak" />
			</fileset>
		</copy>
	</target>

</project>
<commit_msg>initial version of jsl - JavaScript Lint Source: http://www.javascriptlint.com<commit_after><?xml version="1.0"?>
<!--
  Copyright 2002, 2005 The Apache Software Foundation.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  
-->
<!-- ====================================================================== 
     18.11.2005 12:01:30                                                        

     log4js    
     Logging library for JavaScript which is using almost same API than log4j
                   
     <NAME>                                                               
     ====================================================================== -->
<project name="log4js" default="dist" basedir=".">
	<description>
	  Logging library for JavaScript which is using almost same API than log4j
	</description>
	<!-- The build.properties file defines the parth to local jar files -->
	<property file="build.properties" />
	<property environment="env" />

	<property name="version" value="0.1.5" />

	<property name="src.dir" value="${basedir}/src" />
	<property name="src.js.dir" value="${src.dir}/js" />

	<property name="lib.dir" value="lib" />

	<property name="tools.dir" value="${basedir}/tools" />

	<property name="doc.dir" value="${basedir}/docs" />
	<property name="xdoc.dir" value="${src.dir}/xdocs" />
	<!-- FORREST_HOME must be set as an environment variable -->
	<property name="forrest.home" value="${env.FORREST_HOME}" />


	<!-- build properties -->
	<property name="dist.dir" value="build" />
	<property name="dist.docs.dir" value="${dist.dir}/docs" />

	<!-- example properties -->
	<property name="example.src.dir" value="examples" />
	<property name="example.webapp.dir" value="${dist.dir}/webapp" />
	<property name="example.war.name" value="log4js-example.war" />
	<property name="log4j.jar" value="${lib.dir}/log4j.jar" />

	<!-- release properties -->
	<property name="release.dir" value="release" />


	<!-- ================================= 
          target: release              
         ================================= -->
	<target name="release" depends="dist" description="--> create release">
		<echo>generate complete distribution archive: ${release.dir}/log4js-${version}.zip</echo>

		<mkdir dir="${release.dir}" />

		<zip destfile="${release.dir}/log4js-${version}.zip">
			<fileset dir="${basedir}">
				<include name="${src.dir}/**" />
			</fileset>
			<fileset dir="${basedir}">
				<include name="${example.src.dir}/**" />
			</fileset>
			<fileset dir="${dist.dir}">
				<include name="lib/**" />
				<include name="docs/**" />
			</fileset>
			<fileset file="${dist.dir}/${example.war.name}" />

			<fileset file="CHANGELOG.txt" />
			<fileset file="INSTALL.txt" />
			<fileset file="LICENSE.txt" />
			<fileset file="NOTICE.txt" />
		</zip>
		<!--
    	<tar compression="gzip" destfile="${release.dir}/log4js-${version}.tar.gz" >
			<fileset dir="${basedir}">
				<include name="${src.dir}/**" />
			</fileset>
			<fileset dir="${basedir}">
				<include name="${example.src.dir}/**" />
			</fileset>			
			<fileset dir="${dist.dir}">
				<include name="lib/**" />
				<include name="docs/**" />
			</fileset>
			<fileset file="${dist.dir}/${example.war.name}" />

			<fileset file="CHANGELOG.txt" />
			<fileset file="INSTALL.txt" />
			<fileset file="LICENSE.txt" />
			<fileset file="NOTICE.txt" />
		</tar>     		
-->
	</target>

	<!-- ================================= 
          target: distribute              
         ================================= -->
	<target name="dist" depends="dist.api, dist.doc, dist.example" description="--> generate complete distribution">

	</target>


	<!-- ================================= 
          target: dist.api              
         ================================= -->
	<target name="dist.api" depends="init, compile" description="--> distribution archive for API">

	</target>


	<!-- ================================= 
          target: dist.example              
         ================================= -->
	<target name="dist.example" depends="init, compile" description="--> distribution WAR for example">
		<echo>generate example web archive: ${dist.dir}/${example.war.name}</echo>

		<copy todir="${example.webapp.dir}">
			<fileset dir="${example.src.dir}">
				<exclude name="**/web.xml" />
				<exclude name="**/*.bak" />
			</fileset>
			<fileset dir="${src.dir}">
				<exclude name="**/*.bak" />
			</fileset>
		</copy>

		<!-- additional libraries -->
		<copy todir="${example.webapp.dir}/WEB-INF/lib" file="${log4j.jar}" />

		<war destfile="${dist.dir}/${example.war.name}" basedir="${example.src.dir}" webxml="${example.src.dir}/WEB-INF/web.xml" />
	</target>


	<!-- ================================= 
          target: dist.doc              
         ================================= -->
	<target name="dist.doc" depends="init, doc" description="--> generate documentation arcive">
		<echo>generate documentation archive: ${dist.dir}/log4js-doc-${version}.zip</echo>
		<!--
		<copy todir="${dist.dir}/docs">
			<fileset dir="${doc.dir}">
				<exclude name="*.bak" />
			</fileset>
		</copy>
		-->
		<zip destfile="${dist.dir}/log4js-doc-${version}.zip">
			<fileset dir="${dist.dir}/docs">
			</fileset>
		</zip>
	</target>


	<!-- - - - - - - - - - - - - - - - - - 
          target: compile                      
         - - - - - - - - - - - - - - - - - -->
	<target name="compile" depends="init, jslint">
		<mkdir dir="${dist.dir}/lib" />
		<exec executable="perl" output="${dist.dir}/lib/log4js-lib.js">
			<arg line="-Tw ${tools.dir}/jsjam/jsjam.pl --quiet --keep-globals --keep-identifiers ${src.js.dir}/log4js.js" />
		</exec>
	</target>

    <!-- ================================= 
          target: doc.api              
         ================================= -->
	<target name="doc.api" description="generate the API doc" depends="init">
		<property name="apidoc.dir" value="${dist.dir}/docs/api" />

		<echo>Gererate JSDoc to ${apidoc.dir}</echo>
		<mkdir dir="${apidoc.dir}" />

		<property name="footer" value="log4js - Logging API for JavaScript" />

		<exec executable="perl">
			<arg line="${tools.dir}/JSDoc/jsdoc.pl -r &quot;${src.dir}/js&quot; -d &quot;${apidoc.dir}&quot; -project-name &quot;${ant.project.name} ${version}&quot; -page-footer &quot;${footer}&quot;" />
		</exec>
	</target>
	
	
    <!-- ================================= 
          target: jslint              
         ================================= -->
    <target name="jslint" depends="init" description="--> verify syntax of JavaScripts">
        <exec executable="${tools.dir}/jsl/jsl.exe" failonerror="true">
        	<arg  line="conf ${tools.dir}/jsl/jsl.conf process ${src.js.dir}/*.js" />
        </exec>
    </target>

	<target name="doc" depends="doc.api" description="generate documentation">
	</target>


	<!-- - - - - - - - - - - - - - - - - - 
          target: init                      
         - - - - - - - - - - - - - - - - - -->
	<target name="init">
		<mkdir dir="${tools.dir}" />
		<mkdir dir="${lib.dir}" />
		<mkdir dir="${dist.dir}" />
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
          target: download-dependencies                      
         - - - - - - - - - - - - - - - - - -->
	<target name="download-dependencies" depends="init">
		<setproxy proxyhost="proxy" proxyport="80" />

		<description>
	          To use this Maven-like freedom with respect to dependency setup,
	          do the following:

	          - run ant as you normally would, but add the following target to the command
	            line:

	            download-dependencies

	          For example:
	             C:>myproject\ant download-dependencies dist
		</description>

		<!-- for "compile" -->
		<get dest="${tools.dir}/jsjam/jsjam.pl" usetimestamp="true" ignoreerrors="true" src="http://www.anvilon.com/software/download/jsjam" />

		<get dest="${lib.dir}/JSUnit.zip" usetimestamp="true" ignoreerrors="true" src="http://mesh.dl.sourceforge.net/sourceforge/jsunit/jsunit2_1.zip" verbose="true" />
		<unzip src="${lib.dir}/JSUnit.zip" dest="${tools.dir}/JSUnit" />

		<!-- for documentation -->
		<get dest="${lib.dir}/JSDoc.tgz" usetimestamp="true" ignoreerrors="true" src="http://mesh.dl.sourceforge.net/sourceforge/jsdoc/JSDoc-1.9.6.1.tgz" verbose="true" />
		<gunzip src="${lib.dir}/JSDoc.tgz" dest="${tools.dir}/JSDoc" />
<!--
		<get dest="${lib.dir}/apache-forrest.zip" usetimestamp="true" ignoreerrors="true" src="http://www.artfiles.org/apache.org/forrest/apache-forrest-0.7.zip" />
		<unzip src="${lib.dir}/apache-forrest.zip" dest="${tools.dir}/apache-forrest" />
-->
		<copy todir="${ant.home}/lib" file="${env.FORREST_HOME}/lib/core/xml-commons-resolver-1.1.jar" />
<!--
		<get dest="${lib.dir}/velocity.zip" usetimestamp="true" ignoreerrors="true" src="http://www.apache.org/dist/jakarta/velocity/velocity-1.4/velocity-1.4.zip" />
-->
		<!-- for examples -->
		<get dest="${log4j.jar}" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.9.jar" verbose="true" />
	</target>


	<!-- ================================= 
          target: clean              
         ================================= -->
	<target name="clean" description="--> clean the generated files">
		<delete dir="${dist.dir}" />
	</target>


	<!-- ================================= 
          target for forrest: use site to generate the files        
         ================================= -->
	<target name="forrest-site" description="Generates static HTML documentation">
		<ant antfile="${env.FORREST_HOME}/main/forrest.build.xml" target="site" />

		<mkdir dir="${project.site-dir}/apidocs" />
		<copy todir="${project.site-dir}/apidocs">
			<fileset dir="${doc.dir}">
				<exclude name="*.bak" />
			</fileset>
		</copy>
	</target>


	<!--
	<import file="${env.FORREST_HOME}/main/forrest.build.xml" />
-->
	<!-- 'site' is a target imported from forrest.build.xml -->
	<!--	<target name="post-build" depends="site, doc.api">
		<mkdir dir="${project.site-dir}/apidocs" />
		<copy todir="${project.site-dir}/apidocs">
			<fileset dir="${doc.dir}">
				<exclude name="*.bak" />
			</fileset>
		</copy>
	</target>
-->
</project>

{'fraction_non_alphanumeric': 0.2578875171467764, 'fraction_numerical': 0.006760728982951205, 'mean_word_length': 2.83703007518797, 'pattern_counts': {'":': 0, '<': 359, '<?xml version=': 2, '>': 374, 'https://': 0, 'lorem ipsum': 0, 'www.': 11, 'xml': 15}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 48, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2420003', 'n_tokens_mistral': 6869, 'n_tokens_neox': 6163, 'n_words': 1212}