<commit_before><?xml version="1.0" encoding="UTF-8"?>

<project name="scala-plugin" default="build">
  
  <description>
    I build the Scala Eclipse plugin from a pre-existing Scala distribution
  </description>
  
  <property name="properties.file" value="${basedir}/build.properties"/>
  <property file="${properties.file}"/>
  
  <property name="scala.dir" value="${basedir}/../scala"/>
  <property name="scala.dist.dir" value="${scala.dir}/dists/latest"/>
  <property name="scala.lib.dir" value="${basedir}/../scala-library"/>
  <property name="ant.lib.dir" value="${scala.dir}/lib/ant"/>

  <property name="eclipse.dir" value="${basedir}/eclipse-lib"/>
  <property name="build.dir" value="${basedir}/build"/>
  <property name="dist.dir" value="${basedir}/dist"/>
  
  <property name="update-site.url" value="http://www.scala-lang.org/downloads/distrib/files/nightly/scala.update/"/>
  
<!-- ===========================================================================
INITIALISE BUILD
============================================================================ -->
  
  <target name="init">
    
    <fail message="Folder '${scala.dist.dir}' does not contain a suitable Scala distribution">
      <condition><not><and>
        <available file="${scala.dist.dir}/lib/scala-compiler.jar"/>
      </and></not></condition>
    </fail>
    
    <taskdef
      resource="net/sf/antcontrib/antlib.xml"
      classpath="${ant.lib.dir}/ant-contrib.jar"
    />

    <path id="scala.classpath">
      <pathelement location="${scala.dist.dir}/lib/scala-compiler.jar"/>
      <pathelement location="${scala.dist.dir}/lib/scala-library.jar"/>
    </path>
    
    <taskdef
      name="scalac"
      classname="scala.tools.ant.Scalac"
      classpathref="scala.classpath"
    />
    
    <path id="eclipse.classpath">
      <fileset dir="${eclipse.dir}/">
        <include name="**/*.jar"/>
      </fileset>
    </path>
    
    <tstamp prefix="time">
      <format property="human" pattern="d MMMM yyyy, HH:mm:ss"/>
      <format property="short" pattern="yyyyMMddHHmmss"/>
    </tstamp>

    <!-- Versions of compiler and library we're including -->
    <property resource="compiler.properties" classpathref="scala.classpath"/>
    <property name="compiler.version.number" value="${version.number}"/>
    <property resource="library.properties" classpathref="scala.classpath"/>
    <property name="library.version.number" value="${version.number}"/>

    <!-- Finding out plugin SVN revision -->
    <exec executable="svn" outputproperty="svn.out">
      <arg line=" info ${basedir}"/>
    </exec>
      <propertyregex
        property="svn.number" input="${svn.out}" select="\1"
        regexp="Revision: ([0-9]+)"
        defaultValue="0"/>
    <property name="init.avail" value="yes"/>
    <!-- Generating version number -->
    <property file="${basedir}/build.number"/>
    <property
      name="plugin.version.number"
      value="${version.major}.${version.minor}.${version.patch}.r${svn.number}-b${time.short}"/>

    <!-- And print-out what we are building -->
    <echo level="info" message="Built ${time.human} from revision ${svn.number} with Java ${java.vm.version}"/>
    <echo level="info" message="Scala plugin version   is '${plugin.version.number}'"/>
    <echo level="info" message="Scala library version  is '${library.version.number}'"/>
    <echo level="info" message="Scala compiler version is '${compiler.version.number}'"/>
    
    <property name="feature.name" value="ch.epfl.lamp.sdt_${plugin.version.number}"/>
    <property name="plugin.name" value="ch.epfl.lamp.sdt.core_${plugin.version.number}"/>
    
  </target>
  
<!-- ===========================================================================
TARGETS SUPPORTING DEVELOPMENT WITHIN ECLIPSE
============================================================================ -->

  <target name="devel.prep">
    <ant dir="${scala.dir}" antfile="build.xml" target="plugin.quick" inheritall="false"/>
    <ant dir="${scala.lib.dir}" antfile="build.xml" target="build" inheritall="false"/>
  </target>
  
  <target name="devel.clean">
    <ant dir="${scala.dir}" antfile="build.xml" target="all.clean" inheritall="false"/>
    <ant dir="${scala.lib.dir}" antfile="build.xml" target="clean" inheritall="false"/>
    <antcall target="clean"/>
  </target>
  
  <target name="devel.dist" depends="devel.clean">
    <ant dir="${scala.dir}" antfile="build.xml" target="dist" inheritall="false"/><commit_msg>removed plugin.quick target, now use dist.done for building devel.prep<commit_after><?xml version="1.0" encoding="UTF-8"?>

<project name="scala-plugin" default="build">
  
  <description>
    I build the Scala Eclipse plugin from a pre-existing Scala distribution
  </description>
  
  <property name="properties.file" value="${basedir}/build.properties"/>
  <property file="${properties.file}"/>
  
  <property name="scala.dir" value="${basedir}/../scala"/>
  <property name="scala.dist.dir" value="${scala.dir}/dists/latest"/>
  <property name="scala.lib.dir" value="${basedir}/../scala-library"/>
  <property name="ant.lib.dir" value="${scala.dir}/lib/ant"/>

  <property name="eclipse.dir" value="${basedir}/eclipse-lib"/>
  <property name="build.dir" value="${basedir}/build"/>
  <property name="dist.dir" value="${basedir}/dist"/>
  
  <property name="update-site.url" value="http://www.scala-lang.org/downloads/distrib/files/nightly/scala.update/"/>
  
<!-- ===========================================================================
INITIALISE BUILD
============================================================================ -->
  
  <target name="init">
    
    <fail message="Folder '${scala.dist.dir}' does not contain a suitable Scala distribution">
      <condition><not><and>
        <available file="${scala.dist.dir}/lib/scala-compiler.jar"/>
      </and></not></condition>
    </fail>
    
    <taskdef
      resource="net/sf/antcontrib/antlib.xml"
      classpath="${ant.lib.dir}/ant-contrib.jar"
    />

    <path id="scala.classpath">
      <pathelement location="${scala.dist.dir}/lib/scala-compiler.jar"/>
      <pathelement location="${scala.dist.dir}/lib/scala-library.jar"/>
    </path>
    
    <taskdef
      name="scalac"
      classname="scala.tools.ant.Scalac"
      classpathref="scala.classpath"
    />
    
    <path id="eclipse.classpath">
      <fileset dir="${eclipse.dir}/">
        <include name="**/*.jar"/>
      </fileset>
    </path>
    
    <tstamp prefix="time">
      <format property="human" pattern="d MMMM yyyy, HH:mm:ss"/>
      <format property="short" pattern="yyyyMMddHHmmss"/>
    </tstamp>

    <!-- Versions of compiler and library we're including -->
    <property resource="compiler.properties" classpathref="scala.classpath"/>
    <property name="compiler.version.number" value="${version.number}"/>
    <property resource="library.properties" classpathref="scala.classpath"/>
    <property name="library.version.number" value="${version.number}"/>

    <!-- Finding out plugin SVN revision -->
    <exec executable="svn" outputproperty="svn.out">
      <arg line=" info ${basedir}"/>
    </exec>
      <propertyregex
        property="svn.number" input="${svn.out}" select="\1"
        regexp="Revision: ([0-9]+)"
        defaultValue="0"/>
    <property name="init.avail" value="yes"/>
    <!-- Generating version number -->
    <property file="${basedir}/build.number"/>
    <property
      name="plugin.version.number"
      value="${version.major}.${version.minor}.${version.patch}.r${svn.number}-b${time.short}"/>

    <!-- And print-out what we are building -->
    <echo level="info" message="Built ${time.human} from revision ${svn.number} with Java ${java.vm.version}"/>
    <echo level="info" message="Scala plugin version   is '${plugin.version.number}'"/>
    <echo level="info" message="Scala library version  is '${library.version.number}'"/>
    <echo level="info" message="Scala compiler version is '${compiler.version.number}'"/>
    
    <property name="feature.name" value="ch.epfl.lamp.sdt_${plugin.version.number}"/>
    <property name="plugin.name" value="ch.epfl.lamp.sdt.core_${plugin.version.number}"/>
    
  </target>
  
<!-- ===========================================================================
TARGETS SUPPORTING DEVELOPMENT WITHIN ECLIPSE
============================================================================ -->

  <target name="devel.prep">
    <ant dir="${scala.dir}" antfile="build.xml" target="dist.done" inheritall="false"/>
    <ant dir="${scala.lib.dir}" antfile="build.xml" target="build" inheritall="false"/>
  </target>
  
  <target name="devel.clean">
    <ant dir="${scala.dir}" antfile="build.xml" target="all.clean" inheritall="false"/>
    <ant dir="${scala.lib.dir}" antfile="build.xml" target="clean" inheritall="false"/>
    <antcall target="clean"/>
  </target>
  
  <target name="devel.dist" depends="devel.clean">
    <ant dir="${scala.dir}" antfile="build.xml" target="dist" inheritall="false"/>
{'fraction_non_alphanumeric': 0.25255669186305024, 'fraction_numerical': 0.0015562472209871053, 'mean_word_length': 3.9983333333333335, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 2, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3035395', 'n_tokens_mistral': 2756, 'n_tokens_neox': 2621, 'n_words': 479}