<commit_before>package nuclibook.models;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import nuclibook.server.Renderable;
import org.joda.time.DateTime;

import java.util.HashMap;

@DatabaseTable(tableName = "booking_sections")
public class BookingSection implements Renderable {

	@DatabaseField(generatedId = true)
	private Integer id;

	@DatabaseField(canBeNull = false, foreign = true, columnName = "booking_id", foreignAutoRefresh = true)
	private Booking booking;

	@DatabaseField
	private long start;

	@DatabaseField
	private long end;

	public BookingSection() {
	}

	public BookingSection(DateTime start, DateTime end) {
		setStart(start);
		setEnd(end);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Booking getBooking() {
		return booking;
	}

	public void setBooking(Booking booking) {
		this.booking = booking;
	}

	/**
	 * Get the booking section start time.
	 *
	 * @return The booking start time.
	 */
	public DateTime getStart() {
		return new DateTime(start);
	}

	/**
	 * Set the booking section start time.
	 *
	 * @param start The booking start time.
	 */
	public void setStart(DateTime start) {
		this.start = start.getMillis();
	}

	/**
	 * Get the booking section end time.
	 *
	 * @return The booking end time.
	 */
	public DateTime getEnd() {
		return new DateTime(end);
	}

	/**
	 * Set the booking section end time.
	 *
	 * @param end The booking end time.
	 */
	public void setEnd(DateTime end) {
		this.end = end.getMillis();
	}

	@Override
	public HashMap<String, String> getHashMap() {
		return new HashMap<String, String>(){{
			put("start", getStart().toString("YYYY-MM-dd HH:mm"));
			put("end", getEnd().toString("YYYY-MM-dd HH:mm"));

			put("start-date", getStart().toString("YYYY-MM-dd"));
			put("end-date", getEnd().toString("YYYY-MM-dd"));

			put("start-time", getStart().toString("HH:mm"));
			put("end-time", getEnd().toString("HH:mm"));
		}};
	}
}
<commit_msg>code reformat<commit_after>package nuclibook.models;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import nuclibook.server.Renderable;
import org.joda.time.DateTime;

import java.util.HashMap;

@DatabaseTable(tableName = "booking_sections")
public class BookingSection implements Renderable {

    @DatabaseField(generatedId = true)
    private Integer id;

    @DatabaseField(canBeNull = false, foreign = true, columnName = "booking_id", foreignAutoRefresh = true)
    private Booking booking;

    @DatabaseField
    private long start;

    @DatabaseField
    private long end;

    public BookingSection() {
    }

    public BookingSection(DateTime start, DateTime end) {
        setStart(start);
        setEnd(end);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Booking getBooking() {
        return booking;
    }

    public void setBooking(Booking booking) {
        this.booking = booking;
    }

    /**
     * Get the booking section start time.
     *
     * @return The booking start time.
     */
    public DateTime getStart() {
        return new DateTime(start);
    }

    /**
     * Set the booking section start time.
     *
     * @param start The booking start time.
     */
    public void setStart(DateTime start) {
        this.start = start.getMillis();
    }

    /**
     * Get the booking section end time.
     *
     * @return The booking end time.
     */
    public DateTime getEnd() {
        return new DateTime(end);
    }

    /**
     * Set the booking section end time.
     *
     * @param end The booking end time.
     */
    public void setEnd(DateTime end) {
        this.end = end.getMillis();
    }

    @Override
    public HashMap<String, String> getHashMap() {
        return new HashMap<String, String>() {{
            put("start", getStart().toString("YYYY-MM-dd HH:mm"));
            put("end", getEnd().toString("YYYY-MM-dd HH:mm"));
            put("start-date", getStart().toString("YYYY-MM-dd"));
            put("end-date", getEnd().toString("YYYY-MM-dd"));
            put("start-time", getStart().toString("HH:mm"));
            put("end-time", getEnd().toString("HH:mm"));
        }};
    }
}

{'fraction_non_alphanumeric': 0.13184772516248838, 'fraction_numerical': 0.002785515320334262, 'mean_word_length': 2.9387568555758685, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2761807', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1325, 'n_words': 335}