<commit_before>package buildr.ipojo.cli;

import java.io.File;
import java.io.FileInputStream;
import org.apache.felix.ipojo.manipulator.Pojoization;

public class Main
{
  public static void main( final String[] args )
  {
    if( 4 != args.length )
    {
      System.err.println("Usage: <input_file_name> <output_file_name> <metadata_file_name> <print_trace_messages?>");
      System.exit( 42 );
    }
    final String inputFilename = args[0];
    final String outputFilename = args[1];
    final String metadataFilename = args[2];
    final boolean printTraceMessage = args[3].equals( "true" );
    boolean inError;

    try
    {
      final Pojoization pojoizer = new Pojoization();
      pojoizer.setUseLocalXSD();
      pojoizer.pojoization( new File( inputFilename ),
                            new File( outputFilename ),
                            new FileInputStream( metadataFilename ) );
      if( printTraceMessage )
      {
        for( final Object message : pojoizer.getWarnings() )
        {
          System.out.println( "Pojoizer Warning: " + message );
        }
      }

      inError = pojoizer.getWarnings().size() != 0;
      for( final Object message : pojoizer.getWarnings() )
      {
        System.err.println( "Pojoizer Error: " + message );
      }
    }
    catch( final Exception e )
    {
      e.printStackTrace( System.err );
      inError = true;
    }

    System.exit( inError ? 1 : 0 );
  }
}
<commit_msg>Fix bug where warnings were being printed as errors<commit_after>package buildr.ipojo.cli;

import java.io.File;
import java.io.FileInputStream;
import org.apache.felix.ipojo.manipulator.Pojoization;

public class Main
{
  public static void main( final String[] args )
  {
    if( 4 != args.length )
    {
      System.err.println("Usage: <input_file_name> <output_file_name> <metadata_file_name> <print_trace_messages?>");
      System.exit( 42 );
    }
    final String inputFilename = args[0];
    final String outputFilename = args[1];
    final String metadataFilename = args[2];
    final boolean printTraceMessage = args[3].equals( "true" );
    boolean inError;

    try
    {
      final Pojoization pojoizer = new Pojoization();
      pojoizer.setUseLocalXSD();
      pojoizer.pojoization( new File( inputFilename ),
                            new File( outputFilename ),
                            new FileInputStream( metadataFilename ) );
      if( printTraceMessage )
      {
        for( final Object message : pojoizer.getWarnings() )
        {
          System.out.println( "Pojoizer Warning: " + message );
        }
      }

      inError = pojoizer.getErrors().size() != 0;
      for( final Object message : pojoizer.getErrors() )
      {
        System.err.println( "Pojoizer Error: " + message );
      }
    }
    catch( final Exception e )
    {
      e.printStackTrace( System.err );
      inError = true;
    }

    System.exit( inError ? 1 : 0 );
  }
}

{'fraction_non_alphanumeric': 0.11118690313778991, 'fraction_numerical': 0.0068212824010914054, 'mean_word_length': 2.375143843498274, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4257993', 'n_tokens_mistral': 893, 'n_tokens_neox': 876, 'n_words': 206}