<commit_before>package org.simpleflatmapper.test.beans;

import java.util.Date;
import java.util.concurrent.atomic.AtomicLong;

public class DbObject {

	public static String[] HEADERS = new String[] { "id", "name", "email", "creationTime", "typeOrdinal", "typeName"};
	private static AtomicLong random = new AtomicLong(10000);
	public static DbObject newInstance() {
		DbObject object = new DbObject();
		return newInstance(object);
	}

	public static <T extends DbObject> T newInstance(T object) {
		object.setId(random.incrementAndGet());
		object.setName("name" + Long.toHexString(object.getId()));
		object.setEmail("email" + Long.toHexString(object.getId()));
		object.setCreationTime(new Date((System.currentTimeMillis() / 1000) * 1000));
		object.setTypeName(Type.values()[(int)(Math.abs(object.getId()) % 4l)]);
		object.setTypeOrdinal(Type.values()[(int)(Math.abs(object.getId()) % 4l)]);
		return object;
	}

	public enum
	Type {
		type1, type2, type3, type4;
		
		public static Type shortForm(String str) {
			switch (str) {
				case "t1":
					return type1;
				case "t2":
					return type2;
				case "t3":
					return type3;
				case "t4":
					return type4;
			}
			return null;
		}

	}
	private long id;
	private String name;
	private String email;
	private Date creationTime;
	
	private Type typeOrdinal;
	private Type typeName;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}<commit_msg>remove switch on string<commit_after>package org.simpleflatmapper.test.beans;

import java.util.Date;
import java.util.concurrent.atomic.AtomicLong;

public class DbObject {

	public static String[] HEADERS = new String[] { "id", "name", "email", "creationTime", "typeOrdinal", "typeName"};
	private static AtomicLong random = new AtomicLong(10000);
	public static DbObject newInstance() {
		DbObject object = new DbObject();
		return newInstance(object);
	}

	public static <T extends DbObject> T newInstance(T object) {
		object.setId(random.incrementAndGet());
		object.setName("name" + Long.toHexString(object.getId()));
		object.setEmail("email" + Long.toHexString(object.getId()));
		object.setCreationTime(new Date((System.currentTimeMillis() / 1000) * 1000));
		object.setTypeName(Type.values()[(int)(Math.abs(object.getId()) % 4l)]);
		object.setTypeOrdinal(Type.values()[(int)(Math.abs(object.getId()) % 4l)]);
		return object;
	}

	public enum
	Type {
		type1, type2, type3, type4;
		
		public static Type shortForm(String str) {
			if ( "t1".equals(str)) {
				return type1;
			}
			if ( "t2".equals(str)) {
				return type2;
			}
			if ( "t3".equals(str)) {
				return type3;
			}
			if ( "t4".equals(str)) {
				return type4;
			}
			return null;
		}

	}
	private long id;
	private String name;
	private String email;
	private Date creationTime;
	
	private Type typeOrdinal;
	private Type typeName;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
{'fraction_non_alphanumeric': 0.14106476771787047, 'fraction_numerical': 0.018311291963377416, 'mean_word_length': 4.139372822299651, 'pattern_counts': {'":': 4, '<': 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': '2144084', 'n_tokens_mistral': 1140, 'n_tokens_neox': 988, 'n_words': 243}