<commit_before>package at.ngmpps.fjsstt.factory;

import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import at.ngmpps.fjsstt.model.MyBean;
import at.ngmpps.fjsstt.model.ProblemSet;
import at.ngmpps.fjsstt.model.SolutionSet;

public class ModelFactory {
	private static final Map<Integer, Float> myMap;

	static {
		Map<Integer, Float> aMap = new HashMap<>();
		aMap.put(1, 1.1f);
		aMap.put(2, 1.2f);
		myMap = Collections.unmodifiableMap(aMap);
	}

	private static final List<String> myList;

	static {
		List<String> aList = new ArrayList<>();
		aList.add("entry1");
		aList.add("entry2");
		myList = Collections.unmodifiableList(aList);
	}

	public static MyBean createBean(String uri) {
		final MyBean myBean = new MyBean(URI.create(uri), "mybean", "mydata", myList, myMap);
		return myBean;
	}

	public static ProblemSet createDummyProblemSet() {
	    return new ProblemSet("dummyFJS", "dummyTransport", "dummyProp=xyz");
    }
	public static ProblemSet createSrfgProblemSet() {
		final ProblemSet ps = new ProblemSet("15 28\n" +
				"6 2 2 3 5 5 2 14 4 15 5 3 19 5 20 6 21 8 3 22 4 23 3 24 6 3 25 5 26 4 28 6 3 19 5 20 6 21 8 0 45 1\n" +
				"6 3 19 5 20 6 21 8 3 25 5 26 4 28 6 3 19 5 20 6 21 8 2 14 4 15 5 3 22 4 23 3 24 6 2 2 3 5 5 0 35 2\n" +
				"6 2 14 4 15 5 3 25 5 26 4 28 6 3 19 5 20 6 21 8 3 19 5 20 6 21 8 2 2 3 5 5 3 22 4 23 3 24 6 0 40 3\n" +
				"6 2 14 4 15 5 3 19 5 20 6 21 8 2 2 3 5 5 3 19 5 20 6 21 8 3 25 5 26 4 28 6 3 22 4 23 3 24 6 0 50 2\n" +
				"6 3 19 5 20 6 21 8 2 2 3 5 5 3 25 5 26 4 28 6 2 14 4 15 5 3 19 5 20 6 21 8 3 22 4 23 3 24 6 0 45 3\n" +
				"7 5 12 3 13 4 22 6 23 4 24 5 3 25 6 26 5 28 4 2 27 3 5 4 2 1 2 6 3 2 3 6 4 7 3 7 7 8 8 9 6 2 14 5 15 4 0 50 1\n" +
				"7 2 1 2 6 3 5 12 3 13 4 22 6 23 4 24 5 3 25 6 26 5 28 4 2 27 3 5 4 2 3 6 4 7 3 7 7 8 8 9 6 2 14 5 15 4 0 55 2\n" +
				"7 2 14 5 15 4 2 3 6 4 7 2 1 2 6 3 2 27 3 5 4 5 12 3 13 4 22 6 23 4 24 5 3 25 6 26 5 28 4 3 7 7 8 8 9 6 0 55 1\n" +
				"7 2 14 5 15 4 2 3 6 4 7 2 1 2 6 3 3 25 6 26 5 28 4 5 12 3 13 4 22 6 23 4 24 5 2 27 3 5 4 3 7 7 8 8 9 6 0 50 3\n" +
				"7 2 27 3 5 4 3 25 6 26 5 28 4 5 12 3 13 4 22 6 23 4 24 5 2 1 2 6 3 2 3 6 4 7 3 7 7 8 8 9 6 2 14 5 15 4 0 50 1\n" +<commit_msg>added factory create method for problemset<commit_after>package at.ngmpps.fjsstt.factory;

import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import at.ngmpps.fjsstt.model.MyBean;
import at.ngmpps.fjsstt.model.ProblemSet;
import at.ngmpps.fjsstt.model.SolutionSet;

public class ModelFactory {
	private static final Map<Integer, Float> myMap;

	static {
		Map<Integer, Float> aMap = new HashMap<>();
		aMap.put(1, 1.1f);
		aMap.put(2, 1.2f);
		myMap = Collections.unmodifiableMap(aMap);
	}

	private static final List<String> myList;

	static {
		List<String> aList = new ArrayList<>();
		aList.add("entry1");
		aList.add("entry2");
		myList = Collections.unmodifiableList(aList);
	}

	public static MyBean createBean(String uri) {
		final MyBean myBean = new MyBean(URI.create(uri), "mybean", "mydata", myList, myMap);
		return myBean;
	}

	public static ProblemSet createDummyProblemSet() {
	    return new ProblemSet("dummyFJS", "dummyTransport", "dummyProp=xyz");
    }

	public static ProblemSet createProblemSet(String fjs, String transport, String properties) {
		return new ProblemSet(fjs, transport, properties);
	}

	public static ProblemSet createSrfgProblemSet() {
		final ProblemSet ps = new ProblemSet("15 28\n" +
				"6 2 2 3 5 5 2 14 4 15 5 3 19 5 20 6 21 8 3 22 4 23 3 24 6 3 25 5 26 4 28 6 3 19 5 20 6 21 8 0 45 1\n" +
				"6 3 19 5 20 6 21 8 3 25 5 26 4 28 6 3 19 5 20 6 21 8 2 14 4 15 5 3 22 4 23 3 24 6 2 2 3 5 5 0 35 2\n" +
				"6 2 14 4 15 5 3 25 5 26 4 28 6 3 19 5 20 6 21 8 3 19 5 20 6 21 8 2 2 3 5 5 3 22 4 23 3 24 6 0 40 3\n" +
				"6 2 14 4 15 5 3 19 5 20 6 21 8 2 2 3 5 5 3 19 5 20 6 21 8 3 25 5 26 4 28 6 3 22 4 23 3 24 6 0 50 2\n" +
				"6 3 19 5 20 6 21 8 2 2 3 5 5 3 25 5 26 4 28 6 2 14 4 15 5 3 19 5 20 6 21 8 3 22 4 23 3 24 6 0 45 3\n" +
				"7 5 12 3 13 4 22 6 23 4 24 5 3 25 6 26 5 28 4 2 27 3 5 4 2 1 2 6 3 2 3 6 4 7 3 7 7 8 8 9 6 2 14 5 15 4 0 50 1\n" +
				"7 2 1 2 6 3 5 12 3 13 4 22 6 23 4 24 5 3 25 6 26 5 28 4 2 27 3 5 4 2 3 6 4 7 3 7 7 8 8 9 6 2 14 5 15 4 0 55 2\n" +
				"7 2 14 5 15 4 2 3 6 4 7 2 1 2 6 3 2 27 3 5 4 5 12 3 13 4 22 6 23 4 24 5 3 25 6 26 5 28 4 3 7 7 8 8 9 6 0 55 1\n" +
				"7 2 14 5 15 4 2 3 6 4 7 2 1 2 6 3 3 25 6 26 5 28 4 5 12 3 13 4 22 6 23 4 24 5 2 27 3 5 4 3 7 7 8 8 9 6 0 50 3\n" +
				"7 2 27 3 5 4 3 25 6 26 5 28 4 5 12 3 13 4 22 6 23 4 24 5 2 1 2 6 3 2 3 6 4 7 3 7 7 8 8 9 6 2 14 5 15 4 0 50 1\n" +
{'fraction_non_alphanumeric': 0.08125131219819441, 'fraction_numerical': 0.2527818601721604, 'mean_word_length': 2.30374479889043, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1689722', 'n_tokens_mistral': 3179, 'n_tokens_neox': 1892, 'n_words': 1109}