<commit_before><project name="SpockExample" basedir="." default="test" xmlns:artifact="urn:maven-artifact-ant">
  <property name="src.dir" location="src/test/groovy" />
  <property name="build.dir" location="ant/build" />
  <property name="lib.dir" location="ant/lib" />  
  <property name="maven.ant.tasks.url" value="http://www.apache.org/dist/maven/binaries/maven-ant-tasks-2.1.1.jar" />
  <property name="maven.ant.tasks.jar" value="${lib.dir}${file.separator}maven-ant-tasks-2.1.1.jar" />
  <available property="maven.ant.tasks.jar.exists" file="${maven.ant.tasks.jar}" />
          
  <target name="bootstrap.maven.tasks" unless="maven.ant.tasks.jar.exists">
    <mkdir dir="${lib.dir}" />
    <get
      src="${maven.ant.tasks.url}"
      dest="${maven.ant.tasks.jar}" />
  </target>

  <target name="init.maven.tasks" depends="bootstrap.maven.tasks">
    <typedef 
      resource="org/apache/maven/artifact/ant/antlib.xml" 
      uri="urn:maven-artifact-ant" 
      classpath="${maven.ant.tasks.jar}" /> 
  </target>
  
  <target name="resolve.dependencies" depends="init.maven.tasks">   
    <artifact:dependencies pathId="classpath.spock">
<!-- Mandatory dependencies for using Spock -->
      <dependency
        groupId="org.spockframework"
        artifactId="spock-core"
        version="0.5-groovy-1.6-SNAPSHOT" />
<!-- Optional dependencies for using Spock -->
      <!-- enables mocking of classes (in addition to interfaces) -->
      <dependency 
        groupId="cglib"
        artifactId="cglib-nodep"
        version="2.2" />
      <!-- enables mocking of classes without default constructor (together with CGLIB) -->
      <dependency
        groupId="org.objenesis"
        artifactId="objenesis"
        version="1.2" />
      <!-- only required if Spock's Ant selector is used, which finds specifications to be run regardless of their name -->
      <dependency
        groupId="asm"
        artifactId="asm"
        version="2.2.3" />
      <!-- only necessary if Hamcrest matchers are used -->
      <dependency
          groupId="org.hamcrest"
          artifactId="hamcrest-core"
          version="1.2" />
<!-- Dependencies used by examples in this project (not required for using Spock) -->
      <dependency
        groupId="com.h2database"
        artifactId="h2"
        version="1.2.130" />
      <remoteRepository
        id="maven-central"
        url="http://repo1.maven.org/maven2/" />
<!-- Only required if a snapshot version of Spock is used -->
      <remoteRepository
        id="spock-snapshots"
        url="http://m2repo.spockframework.org/snapshots/" />
    </artifact:dependencies>
  </target>
  
  <target name="init.groovy.tasks" depends="resolve.dependencies">
    <taskdef
      name="groovyc"
      classname="org.codehaus.groovy.ant.Groovyc"
      classpathref="classpath.spock" />  
  </target>

  <target name="init" depends="init.groovy.tasks">
    <tstamp />
    <mkdir dir="${build.dir}" /> 
  </target> 

  <target name="compile" depends="init">
    <groovyc
      srcdir="${src.dir}"
     destdir="${build.dir}"<commit_msg>ant build for spock-example now correctly copies resource files to output folder<commit_after><project name="SpockExample" basedir="." default="test" xmlns:artifact="urn:maven-artifact-ant">
  <property name="src.dir" location="src/test/groovy" />
  <property name="resource.dir" location="src/test/resources" />
  <property name="build.dir" location="ant/build" />
  <property name="lib.dir" location="ant/lib" />  
  <property name="maven.ant.tasks.url" value="http://www.apache.org/dist/maven/binaries/maven-ant-tasks-2.1.1.jar" />
  <property name="maven.ant.tasks.jar" value="${lib.dir}${file.separator}maven-ant-tasks-2.1.1.jar" />
  <available property="maven.ant.tasks.jar.exists" file="${maven.ant.tasks.jar}" />
          
  <target name="bootstrap.maven.tasks" unless="maven.ant.tasks.jar.exists">
    <mkdir dir="${lib.dir}" />
    <get
      src="${maven.ant.tasks.url}"
      dest="${maven.ant.tasks.jar}" />
  </target>

  <target name="init.maven.tasks" depends="bootstrap.maven.tasks">
    <typedef 
      resource="org/apache/maven/artifact/ant/antlib.xml" 
      uri="urn:maven-artifact-ant" 
      classpath="${maven.ant.tasks.jar}" /> 
  </target>
  
  <target name="resolve.dependencies" depends="init.maven.tasks">   
    <artifact:dependencies pathId="classpath.spock">
<!-- Mandatory dependencies for using Spock -->
      <dependency
        groupId="org.spockframework"
        artifactId="spock-core"
        version="0.5-groovy-1.6-SNAPSHOT" />
<!-- Optional dependencies for using Spock -->
      <!-- enables mocking of classes (in addition to interfaces) -->
      <dependency 
        groupId="cglib"
        artifactId="cglib-nodep"
        version="2.2" />
      <!-- enables mocking of classes without default constructor (together with CGLIB) -->
      <dependency
        groupId="org.objenesis"
        artifactId="objenesis"
        version="1.2" />
      <!-- only required if Spock's Ant selector is used, which finds specifications to be run regardless of their name -->
      <dependency
        groupId="asm"
        artifactId="asm"
        version="2.2.3" />
      <!-- only necessary if Hamcrest matchers are used -->
      <dependency
          groupId="org.hamcrest"
          artifactId="hamcrest-core"
          version="1.2" />
<!-- Dependencies used by examples in this project (not required for using Spock) -->
      <dependency
        groupId="com.h2database"
        artifactId="h2"
        version="1.2.130" />
      <remoteRepository
        id="maven-central"
        url="http://repo1.maven.org/maven2/" />
<!-- Only required if a snapshot version of Spock is used -->
      <remoteRepository
        id="spock-snapshots"
        url="http://m2repo.spockframework.org/snapshots/" />
    </artifact:dependencies>
  </target>
  
  <target name="init.groovy.tasks" depends="resolve.dependencies">
    <taskdef
      name="groovyc"
      classname="org.codehaus.groovy.ant.Groovyc"
      classpathref="classpath.spock" />  
  </target>

  <target name="init" depends="init.groovy.tasks">
    <tstamp />
    <mkdir dir="${build.dir}" /> 
  </target> 

  <target name="copy.resources" depends="init">
    <copy todir="${build.dir}">
      <fileset dir="${resource.dir}" />
    </copy>
  </target>

  <target name="compile" depends="copy.resources">
    <groovyc
      srcdir="${src.dir}"
     destdir="${build.dir}"
{'fraction_non_alphanumeric': 0.1660213721542512, 'fraction_numerical': 0.008982499612823292, 'mean_word_length': 2.864751645721125, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '6165626', 'n_tokens_mistral': 2121, 'n_tokens_neox': 1949, 'n_words': 368}