<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project default="writeSchemaSqlToFile"
	     name="DdlUtils"
	     basedir=".">
  <!-- Allow values set at the commandline or in the environment to override the defaults -->
  <property environment="env"/>
  <!-- Load the jdbc properties as specified by the jdbc.properties.file variable-->
  <property file="${jdbc.properties.file}"/>
  <!-- Load the build properties -->
  <property file="build.properties"/>

  <!-- These properties can be overriden on the commandline using -D --> 
  <property name="schemafiles" value="testmodel.xml"/>
  <property name="catalogpattern" value=""/>
  <property name="schemapattern" value=""/>
  <property name="sqloutputfile" value="schema.sql"/>
  <property name="platform" value=""/>
  <property name="alterdatabase" value="true"/>
  
  <!-- The classpath used for running the tasks -->
  <path id="project-classpath">
    <fileset dir="${lib.dir}">
        <include name="**/*.jar"/>
        <include name="**/*.zip"/>
    </fileset>
    <pathelement path="${build.java.dir}"/>
  </path>

  <taskdef classname="org.apache.ddlutils.task.DdlToDatabaseTask"
           name="ddlToDatabase"
           classpathref="project-classpath"/>
  <taskdef classname="org.apache.ddlutils.task.DatabaseToDdlTask"
           name="databaseToDdl"
           classpathref="project-classpath"/>
	
  <target name="writeSchemaToDb">
    <ddlToDatabase validatexml="false" 
                   usedelimitedsqlidentifiers="false"
                   catalogpattern="${catalogpattern}"
                   schemapattern="${schemapattern}"
                   databasetype="${platform}" >
      <database driverclassname="${datasource.driverClassName}"
                url="${datasource.url}"
                username="${datasource.username}"
                password="${datasource.password}"/> 
      <fileset dir=".">
        <include name="${schemafiles}"/> <commit_msg>Added db-creation target to the sample build file<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project default="writeSchemaSqlToFile"
	     name="DdlUtils"
	     basedir=".">
  <!-- Allow values set at the commandline or in the environment to override the defaults -->
  <property environment="env"/>
  <!-- Load the jdbc properties as specified by the jdbc.properties.file variable-->
  <property file="${jdbc.properties.file}"/>
  <!-- Load the build properties -->
  <property file="build.properties"/>

  <!-- These properties can be overriden on the commandline using -D --> 
  <property name="schemafiles" value="testmodel.xml"/>
  <property name="catalogpattern" value=""/>
  <property name="schemapattern" value=""/>
  <property name="sqloutputfile" value="schema.sql"/>
  <property name="platform" value=""/>
  <property name="alterdatabase" value="true"/>
  
  <!-- The classpath used for running the tasks -->
  <path id="project-classpath">
    <fileset dir="${lib.dir}">
        <include name="**/*.jar"/>
        <include name="**/*.zip"/>
    </fileset>
    <pathelement path="${build.java.dir}"/>
  </path>

  <taskdef classname="org.apache.ddlutils.task.DdlToDatabaseTask"
           name="ddlToDatabase"
           classpathref="project-classpath"/>
  <taskdef classname="org.apache.ddlutils.task.DatabaseToDdlTask"
           name="databaseToDdl"
           classpathref="project-classpath"/>
	
  <target name="createDb">
    <ddlToDatabase usedelimitedsqlidentifiers="false"
                   catalogpattern="${catalogpattern}"
                   schemapattern="${schemapattern}"
                   databasetype="${platform}" >
      <database driverclassname="${datasource.driverClassName}"
                url="${datasource.url}"
                username="${datasource.username}"
                password="${<PASSWORD>}"/> 
      <createdatabase failonerror="false"/> 
    </ddlToDatabase> 
  </target>

  <target name="writeSchemaToDb">
    <ddlToDatabase validatexml="false" 
                   usedelimitedsqlidentifiers="false"
                   catalogpattern="${catalogpattern}"
                   schemapattern="${schemapattern}"
                   databasetype="${platform}" >
      <database driverclassname="${datasource.driverClassName}"
                url="${datasource.url}"
                username="${datasource.username}"
                password="${<PASSWORD>}"/> 
      <fileset dir=".">
        <include name="${schemafiles}"/> 
{'fraction_non_alphanumeric': 0.15701357466063348, 'fraction_numerical': 0.0013574660633484162, 'mean_word_length': 2.965022421524664, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 2, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6225648', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1172, 'n_words': 249}