<commit_before><?xml version="1.0"?>
<!-- Everything common to most resource types. -->
<project name="yanel-resource"
 xmlns:artifact="antlib:org.apache.maven.artifact.ant"
>
<!-- the default task seems not to be imported at least with Ant 1.6.5
 default="compile"
 default="install-jar"
-->
  <dirname property="resource.home.dir" file="${ant.file}"/>

  <taskdef resource="net/sf/antcontrib/antlib.xml"/>

  <!-- For example set within build.sh ... -->
  <property name="yanel.home" value="${yanel.source.home}"/>
  <property file="${yanel.home}/src/build/local.build.properties"/>
  <property file="${yanel.home}/src/build/build.properties"/>

  <import file="${resource.home.dir}/src/build/dependencies.xml"/>

  <target name="init" description="Initialize build" depends="dependencies">
    <artifact:remoteRepository id="wyona.remote.repository" url="${maven.url}"/>

    <property file="${resource.home.dir}/src/build/local.build.properties"/>
    <property file="${resource.home.dir}/src/build/build.properties"/>

    <path id="classpath">
      <pathelement path="${maven2.cp}"/>
    </path>
    <property name="resource.build.dir" value="${resource.home.dir}/build"/>
    <property name="resource.classes.dir" value="${resource.build.dir}/classes"/>
    <property name="resource.lib.dir" value="${resource.build.dir}/lib"/>
    <property name="resource.java.dir" value="${resource.home.dir}/src/java"/>
    <property name="resource.resource.xml" value="${resource.home.dir}/resource.xml"/>
    <xmlproperty prefix="resource.resource.xml" file="${resource.resource.xml}"/>    

  </target>

  <target name="eclipse:classpath" description="Update Eclipse's .classpath file" depends="init">
    <artifact:dependencies pathId="Yanel.test.jars.classpath" filesetId="Yanel.test.jars.fileset">
      <remoteRepository refid="wyona.remote.repository"/>
      <dependency groupId="wyona-org-yanel" artifactId="yanel-test" version="${yanel.source.version}"/>
    </artifact:dependencies>
    <echo level="verbose">Yanel test JARs classpath: ${toString:Yanel.test.jars.classpath}</echo>

    <path id="eclipse.classpath">
      <fileset refid="maven2.fileset"/>
      <fileset refid="Yanel.test.jars.fileset"/>
    </path>
    <ant dir="${yanel.home}/tools/eclipse.settings" target="update-classpath"
     inheritAll="false" inheritRefs="false">
      <reference torefid="classpath.ref" refid="eclipse.classpath"/>
      <property name="classpath.dir" value="${resource.home.dir}"/>
    </ant>
  </target><commit_msg>Added support for auxiliary, supposedly resource-related fileset/classpath  referenced through maven2.resource.fileset/maven.resource.cp:  sometimes it seems to be used to distinguish between runtime and non-runtime libraries so YMMV... :( Anyway we need to add it for backward compatibility of some (many?) of the resources' build scripts.<commit_after><?xml version="1.0"?>
<!-- Everything common to most resource types. -->
<project name="yanel-resource"
 xmlns:artifact="antlib:org.apache.maven.artifact.ant"
>
<!-- the default task seems not to be imported at least with Ant 1.6.5
 default="compile"
 default="install-jar"
-->
  <dirname property="resource.home.dir" file="${ant.file}"/>

  <taskdef resource="net/sf/antcontrib/antlib.xml"/>

  <!-- For example set within build.sh ... -->
  <property name="yanel.home" value="${yanel.source.home}"/>
  <property file="${yanel.home}/src/build/local.build.properties"/>
  <property file="${yanel.home}/src/build/build.properties"/>

  <import file="${resource.home.dir}/src/build/dependencies.xml"/>

  <target name="init" description="Initialize build" depends="dependencies">
    <artifact:remoteRepository id="wyona.remote.repository" url="${maven.url}"/>

    <property file="${resource.home.dir}/src/build/local.build.properties"/>
    <property file="${resource.home.dir}/src/build/build.properties"/>

    <path id="classpath">
      <pathelement path="${maven2.cp}"/>
      <pathelement path="${maven2.resource.cp}"/>
    </path>
    <property name="resource.build.dir" value="${resource.home.dir}/build"/>
    <property name="resource.classes.dir" value="${resource.build.dir}/classes"/>
    <property name="resource.lib.dir" value="${resource.build.dir}/lib"/>
    <property name="resource.java.dir" value="${resource.home.dir}/src/java"/>
    <property name="resource.resource.xml" value="${resource.home.dir}/resource.xml"/>
    <xmlproperty prefix="resource.resource.xml" file="${resource.resource.xml}"/>    

  </target>

  <target name="eclipse:classpath" description="Update Eclipse's .classpath file" depends="init">
    <artifact:dependencies pathId="Yanel.test.jars.classpath" filesetId="Yanel.test.jars.fileset">
      <remoteRepository refid="wyona.remote.repository"/>
      <dependency groupId="wyona-org-yanel" artifactId="yanel-test" version="${yanel.source.version}"/>
    </artifact:dependencies>
    <echo level="verbose">Yanel test JARs classpath: ${toString:Yanel.test.jars.classpath}</echo>

    <path id="eclipse.classpath">
      <fileset refid="maven2.fileset"/>
      <fileset refid="maven2.resource.fileset"/>
      <fileset refid="Yanel.test.jars.fileset"/>
    </path>
    <ant dir="${yanel.home}/tools/eclipse.settings" target="update-classpath"
     inheritAll="false" inheritRefs="false">
      <reference torefid="classpath.ref" refid="eclipse.classpath"/>
      <property name="classpath.dir" value="${resource.home.dir}"/>
    </ant>
  </target>
{'fraction_non_alphanumeric': 0.1839985353350421, 'fraction_numerical': 0.0031124130355181254, 'mean_word_length': 4.5801838610827375, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 2, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '2883614', 'n_tokens_mistral': 1682, 'n_tokens_neox': 1631, 'n_words': 292}