<commit_before>package generator;

import static generator.Utils.*
import static generator.Config.*

class EventGenerator {
	static generateMessage() {
		def numOfWords = rand.nextInt(30) + 2;
		def stringMessageLine = ""

		for (def n = 0; n < numOfWords; n++) {
			def wordSize = rand.nextInt(10) + 3;
			stringMessageLine += generateName(wordSize, "", wordSize);
			stringMessageLine += " ";
		}

		return stringMessageLine
	}

	static generateMessages(verb, messagesCount) {
		def result = []

		for (int i = 1; i < messagesCount; i++) {
			result += "logger.$verb(\"Time for log - $verb ${generateMessage()}\");"
		}
<commit_msg>base 0<commit_after>package generator;

import static generator.Utils.*
import static generator.Config.*

class EventGenerator {
	static generateMessage() {
		def numOfWords = rand.nextInt(30) + 2;
		def stringMessageLine = ""

		for (def n = 0; n < numOfWords; n++) {
			def wordSize = rand.nextInt(10) + 3;
			stringMessageLine += generateName(wordSize, "", wordSize);
			stringMessageLine += " ";
		}

		return stringMessageLine
	}

	static generateMessages(verb, messagesCount) {
		def result = []

		for (int i = 0; i < messagesCount; i++) {
			result += "logger.$verb(\"Time for log - $verb ${generateMessage()}\");"
		}

{'fraction_non_alphanumeric': 0.14432989690721648, 'fraction_numerical': 0.013481363996827915, 'mean_word_length': 3.9296875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '521581', 'n_tokens_mistral': 451, 'n_tokens_neox': 393, 'n_words': 107}