<commit_before>package io.dummymaker.generate;

import java.time.LocalDateTime;

import static java.util.concurrent.ThreadLocalRandom.current;

/**
 * Generates LocalDateTime from 1970 to 3000 Year with nanoseconds precision
 *
 * @author GoodforGod
 * @since 26.05.2017
 */
public class LocalDateTimeGenerator implements IGenerator<LocalDateTime> {

    @Override
    public LocalDateTime generate() {
        int year        = current().nextInt(1970, 3000);
        int month       = current().nextInt(1, 12);
        int dayOfMonth  = current().nextInt(1, 31);
        int hour        = current().nextInt(1, 24);
        int minute      = current().nextInt(1, 60);
        int second      = current().nextInt(1, 60);
        int nanoOfSecond = current().nextInt(1, 999999999);

        return LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
    }
}<commit_msg>- LocalDateTime Gen February Day (fix)<commit_after>package io.dummymaker.generate;

import java.time.LocalDateTime;

import static java.util.concurrent.ThreadLocalRandom.current;

/**
 * Generates LocalDateTime from 1970 to 3000 Year with nanoseconds precision
 *
 * @author GoodforGod
 * @since 26.05.2017
 */
public class LocalDateTimeGenerator implements IGenerator<LocalDateTime> {

    @Override
    public LocalDateTime generate() {
        int year        = current().nextInt(1970, 3000);
        int month       = current().nextInt(1, 12);
        int dayOfMonth  = (month == 2)
                ? current().nextInt(1,27)
                : current().nextInt(1, 31);
        int hour        = current().nextInt(1, 24);
        int minute      = current().nextInt(1, 60);
        int second      = current().nextInt(1, 60);
        int nanoOfSecond = current().nextInt(1, 999999999);

        return LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
    }
}
{'fraction_non_alphanumeric': 0.11611876988335101, 'fraction_numerical': 0.05408271474019088, 'mean_word_length': 2.8987603305785123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '5395607', 'n_tokens_mistral': 619, 'n_tokens_neox': 523, 'n_words': 140}