<commit_before>/*
 * SuperCSV is Copyright 2007, <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License. You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language governing permissions and limitations under the
 * License.
 */
package org.test.supercsv.speedtests;

import java.io.FileReader;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.supercsv.cellprocessor.ift.CellProcessor;
import org.supercsv.io.AbstractCsvWriter_v110;
import org.supercsv.io.CsvListReader;
import org.supercsv.io.CsvListWriter;
import org.supercsv.io.ICsvListWriter;
import org.supercsv.prefs.CsvPreference;
import org.supercsv.util.NullWriter;
import org.timespread.TimeSpread;
import org.timespread.TimedCodeBlock;
import org.timespread.reporter.Reporter;
import org.timespread.reporter.ReporterConfiguration;

/**
 * Measure the escaping of strings before they are written to the file
 * 
 * @author <NAME>
 */
public class CsvEscapeSpeedTest {
/**
 * implementation of the v1.10 writer
 * 
 * @author <NAME>
 */
class ListWriter_v110 extends AbstractCsvWriter_v110 implements ICsvListWriter {
public ListWriter_v110(final Writer writer, final CsvPreference prefs) {
	super(writer, prefs);
}

@Override
public void write(final List<? extends Object> content) throws IOException {
	super.write(content);
}

public void write(final List<? extends Object> content, final CellProcessor... processors) throws IOException {
	throw new RuntimeException("not yet implemented");
}

@Override
public void write(final Object... content) throws IOException {
	super.write(content);
}

@Override
public void write(final String... content) throws IOException {<commit_msg>stupid cleanup to stop static analysis tool from complaining<commit_after>/*
 * SuperCSV is Copyright 2007, <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License. You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language governing permissions and limitations under the
 * License.
 */
package org.test.supercsv.speedtests;

import java.io.FileReader;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.supercsv.cellprocessor.ift.CellProcessor;
import org.supercsv.io.AbstractCsvWriter_v110;
import org.supercsv.io.CsvListReader;
import org.supercsv.io.CsvListWriter;
import org.supercsv.io.ICsvListWriter;
import org.supercsv.prefs.CsvPreference;
import org.supercsv.util.NullWriter;
import org.timespread.TimeSpread;
import org.timespread.TimedCodeBlock;
import org.timespread.reporter.Reporter;
import org.timespread.reporter.ReporterConfiguration;

/**
 * Measure the escaping of strings before they are written to the file
 * 
 * @author <NAME>
 */
public class CsvEscapeSpeedTest {
/**
 * implementation of the v1.10 writer
 * 
 * @author Kasper <NAME>
 */
static class ListWriter_v110 extends AbstractCsvWriter_v110 implements ICsvListWriter {
public ListWriter_v110(final Writer writer, final CsvPreference prefs) {
	super(writer, prefs);
}

@Override
public void write(final List<? extends Object> content) throws IOException {
	super.write(content);
}

public void write(final List<? extends Object> content, final CellProcessor... processors) throws IOException {
	throw new RuntimeException("not yet implemented");
}

@Override
public void write(final Object... content) throws IOException {
	super.write(content);
}

@Override
public void write(final String... content) throws IOException {
{'fraction_non_alphanumeric': 0.088093599449415, 'fraction_numerical': 0.010552879100711171, 'mean_word_length': 5.237482117310443, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1217217', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1202, 'n_words': 426}