<commit_before>package pl.mmorpg.prototype.server.database.seeders;

import java.util.Collection;

import pl.mmorpg.prototype.server.database.HibernateUtil;

public abstract class TableSeeder
{
	private Collection<Object> recordsToSeed;

	public TableSeeder()
	{
		recordsToSeed = getRecords();
	}

	public void seed()
	{
		HibernateUtil.makeOperation((session) ->
		{
			for (Object record : recordsToSeed)
				session.save(record);
		});
	}

	public abstract Collection<Object> getRecords();
}<commit_msg>Database seed command bug fix<commit_after>package pl.mmorpg.prototype.server.database.seeders;

import java.util.Collection;

import pl.mmorpg.prototype.server.database.HibernateUtil;

public abstract class TableSeeder
{

	public void seed()
	{
		Collection<Object> recordsToSeed = getRecords();
		HibernateUtil.makeOperation((session) ->
		{
			for (Object record : recordsToSeed)
				session.save(record);
		});
	}

	public abstract Collection<Object> getRecords();
}
{'fraction_non_alphanumeric': 0.11156601842374617, 'fraction_numerical': 0.0, 'mean_word_length': 5.037037037037037, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '1893145', 'n_tokens_mistral': 331, 'n_tokens_neox': 302, 'n_words': 60}