<commit_before>package hu.bme.mit.trainbenchmark.generator.rdf.test;

import java.util.Arrays;

import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Parameterized.Parameters;

import hu.bme.mit.trainbenchmark.generator.ModelGenerator;
import hu.bme.mit.trainbenchmark.generator.ScalableGeneratorFactory;
import hu.bme.mit.trainbenchmark.generator.config.GeneratorConfigBase;
import hu.bme.mit.trainbenchmark.generator.rdf.RdfSerializer;
import hu.bme.mit.trainbenchmark.generator.rdf.config.RdfGeneratorConfig;
import hu.bme.mit.trainbenchmark.generator.rdf.config.RdfGeneratorConfigBuilder;
import hu.bme.mit.trainbenchmark.generator.tests.GeneratorTest;
import hu.bme.mit.trainbenchmark.rdf.RdfFormat;

@RunWith(Parameterized.class)
public class RdfGeneratorTest extends GeneratorTest {

	@Parameters(name="inferred={0}")
	public static Iterable<? extends Object> data() {
		return Arrays.asList(false, true);
	}

	@Parameter
	public boolean inferred;

	@Override
	public void generate(final GeneratorConfigBase gcb) throws Exception {
		final RdfGeneratorConfig gc = new RdfGeneratorConfigBuilder().setConfigBase(gcb).setInferred(inferred)
				.setFormat(RdfFormat.TURTLE).createConfig();
		final RdfSerializer serializer = new RdfSerializer(gc);
		final ModelGenerator generator = ScalableGeneratorFactory.createGenerator(serializer, gc);
		generator.generateModel();
	}

}
<commit_msg>Fixed RDF Generator<commit_after>package hu.bme.mit.trainbenchmark.generator.rdf.test;

import java.util.List;

import com.google.common.collect.ImmutableList;

import hu.bme.mit.trainbenchmark.generator.ModelGenerator;
import hu.bme.mit.trainbenchmark.generator.ScalableGeneratorFactory;
import hu.bme.mit.trainbenchmark.generator.config.GeneratorConfigBase;
import hu.bme.mit.trainbenchmark.generator.rdf.RdfSerializer;
import hu.bme.mit.trainbenchmark.generator.rdf.config.RdfGeneratorConfig;
import hu.bme.mit.trainbenchmark.generator.rdf.config.RdfGeneratorConfigBuilder;
import hu.bme.mit.trainbenchmark.generator.tests.GeneratorTest;
import hu.bme.mit.trainbenchmark.rdf.RdfFormat;

public class RdfGeneratorTest extends GeneratorTest {

	@Override
	public void generate(final GeneratorConfigBase gcb) throws Exception {
		final RdfGeneratorConfigBuilder builder = new RdfGeneratorConfigBuilder().setConfigBase(gcb)
				.setFormat(RdfFormat.TURTLE);

		final List<Boolean> inferredConfigs = ImmutableList.of(true, false);
		for (Boolean inferredConfig : inferredConfigs) {
			final RdfGeneratorConfig gc = builder.setInferred(inferredConfig).createConfig();
			final RdfSerializer serializer = new RdfSerializer(gc);
			final ModelGenerator generator = ScalableGeneratorFactory.createGenerator(serializer, gc);
			generator.generateModel();
		}
	}

}

{'fraction_non_alphanumeric': 0.09743228983468168, 'fraction_numerical': 0.00035174111853675694, 'mean_word_length': 6.665768194070081, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5457564', 'n_tokens_mistral': 919, 'n_tokens_neox': 872, 'n_words': 140}