<commit_before>package com.example.vladimirsinicyn.thermostat;

import java.io.Serializable;

public class Time implements Serializable, TimeInterface {

    private int minutes;
    private int hours;

    public Time() {

    }

    public Time(int minutes) {

        parseTime(minutes);
    }

    @Override
    public boolean checkMidnight() {

        return minutes == 0 && hours == 0;
    }

    @Override
    public void incrementTime() {

        int temp = toMinutes();
        temp++;

        parseTime(temp);
    }

    private int toMinutes() {

        return minutes + hours * 60;
    }

    private void parseTime(int minutes) {

        this.hours = minutes / 60;
        this.minutes = minutes % 60;
    }

    @Override
    public String toString() {

        return hours + ":" + minutes;
    }
}<commit_msg>Time updated<commit_after>package sinitsynPackage;

import java.io.Serializable;

public class Time implements Serializable,  TimeInterface{

    private final int minutesInDay = 60 * 24;
    private int minutes;
    private int hours;

    public Time(int minutes) {

        parseTime(minutes);
    }

    @Override
    public boolean checkMidnight() {

        return minutes == 0 && hours == 0;
    }

    @Override
    public void incrementTime() {

        int temp = toMinutes();
        temp++;

        parseTime(temp);
    }

    private int toMinutes() {

        return minutes + hours * 60;
    }

    private void parseTime(int minutes) {

        minutes = minutes % minutesInDay;
        this.hours = minutes / 60;
        this.minutes = minutes % 60;
    }

    @Override
    public String toString() {

        return hours + ":" + minutes;
    }
}
{'fraction_non_alphanumeric': 0.0972877358490566, 'fraction_numerical': 0.01179245283018868, 'mean_word_length': 2.1309963099630997, 'pattern_counts': {'":': 2, '<': 3, '<?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': '7589933', 'n_tokens_mistral': 523, 'n_tokens_neox': 465, 'n_words': 136}