<commit_before>package org.canova.api.formats.output.impl;



import org.canova.api.conf.Configuration;
import org.canova.api.exceptions.CanovaException;
import org.canova.api.formats.output.OutputFormat;
import org.canova.api.records.writer.RecordWriter;
import org.canova.api.records.writer.impl.LineRecordWriter;

import java.io.File;
import java.io.FileNotFoundException;

/**
 * Created by agibsonccc on 1/11/15.
 */
public class SVMLightOutputFormat implements OutputFormat {
    @Override
    public RecordWriter createWriter(Configuration conf) throws CanovaException {
        String outputPath = conf.get(OutputFormat.OUTPUT_PATH,".");
        try {
            return new LineRecordWriter(new File(outputPath));
        } catch (Exception e) {
            throw new CanovaException(e);
        }
    }
}
<commit_msg>updated the returned output record writer to be the correct one - SVMLightRecordWriter<commit_after>package org.canova.api.formats.output.impl;



import org.canova.api.conf.Configuration;
import org.canova.api.exceptions.CanovaException;
import org.canova.api.formats.output.OutputFormat;
import org.canova.api.records.writer.RecordWriter;
import org.canova.api.records.writer.impl.SVMLightRecordWriter;

import java.io.File;
import java.io.FileNotFoundException;

/**
 * Created by agibsonccc on 1/11/15.
 */
public class SVMLightOutputFormat implements OutputFormat {
    @Override
    public RecordWriter createWriter(Configuration conf) throws CanovaException {
        String outputPath = conf.get(OutputFormat.OUTPUT_PATH,".");
        try {
            //return new LineRecordWriter(new File(outputPath));
		return new SVMLightRecordWriter(new File(outputPath));
        } catch (Exception e) {
            throw new CanovaException(e);
        }
    }
}

{'fraction_non_alphanumeric': 0.09832402234636871, 'fraction_numerical': 0.00558659217877095, 'mean_word_length': 3.814516129032258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6038524', 'n_tokens_mistral': 529, 'n_tokens_neox': 515, 'n_words': 109}