<commit_before>package com.gamingmesh.jobs.container;

import org.bukkit.util.Vector;

public class BlockProtection {

    private static long pre = (int) (System.currentTimeMillis() / 10000000000L) * 10000000000L;

    private int id;
    private Integer time;
    private Integer recorded;
    private DBAction action;
    private Boolean paid;
    private int x = 0;
    private int y = 0;
    private int z = 0;

    public BlockProtection(Vector pos) {
	this(DBAction.INSERT, pos);
    }

    @Deprecated
    public BlockProtection(DBAction action, Vector pos) {
	this(action, pos.getBlockX(), pos.getBlockY(), pos.getBlockZ());
    }

    public BlockProtection(DBAction action, int x, int y, int z) {
	this.action = action;
	if (action == DBAction.NONE)
	    action = null;
	this.x = x;
	this.y = y;
	this.z = z;
    }

    public long getTime() {
	return deconvert(time);
    }

    private static int convert(long time) {
	return time == -1L ? -1 : (int) ((time - pre) / 1000L);
    }

    private static long deconvert(Integer time) {
	return time == null ? -1L : ((time.longValue() * 1000L) + pre);
    }

    public void setTime(long time) {
	this.time = time == -1 ? null : convert(time);
	this.recorded = convert(System.currentTimeMillis());
    }

    public DBAction getAction() {
	return action == null ? DBAction.NONE : action;
    }

    public void setAction(DBAction action) {
	if (action == DBAction.NONE)
	    action = null;
	this.action = action;
    }

    public long getRecorded() {
	return deconvert(recorded);
    }

    public boolean isPaid() {
	return paid == null || paid.booleanValue();
    }

    public void setPaid(boolean paid) {
	this.paid = !paid ? paid : null;
    }

    public void setRecorded(long recorded) {
	this.recorded = convert(recorded);
    }

    public int getId() {
	return id;
    }

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

    @Deprecated
    public Vector getPos() {
	return new Vector(x, y, z);
    }

    @Deprecated
    public void setPos(Vector pos) {
	x = pos.getBlockX();
	y = pos.getBlockY();
	z = pos.getBlockZ();
    }

    public void setPos(int x, int y, int z) {
	this.x = x;
	this.y = y;
	this.z = z;
    }

    public int getX() {
	return x;
    }

    public int getY() {
	return y;
    }

    public int getZ() {
	return z;
    }
}
<commit_msg>Using primitives instead to save memory<commit_after>package com.gamingmesh.jobs.container;

import org.bukkit.util.Vector;

public class BlockProtection {

    private static long pre = (int) (System.currentTimeMillis() / 10000000000L) * 10000000000L;

    private int id;
    private int time  = -1;
    private int recorded = -1;
    private DBAction action;
    private boolean paid = false;
    private int x = 0;
    private int y = 0;
    private int z = 0;

    public BlockProtection(Vector pos) {
	this(DBAction.INSERT, pos);
    }

    @Deprecated
    public BlockProtection(DBAction action, Vector pos) {
	this(action, pos.getBlockX(), pos.getBlockY(), pos.getBlockZ());
    }

    public BlockProtection(DBAction action, int x, int y, int z) {
	this.action = action;
	if (action == DBAction.NONE)
	    action = null;
	this.x = x;
	this.y = y;
	this.z = z;
    }

    public long getTime() {
	return deconvert(time);
    }

    private static int convert(long time) {
	return time == -1L ? -1 : (int) ((time - pre) / 1000L);
    }

    private static long deconvert(int time) {
	return (time * 1000L) + pre;
    }

    public void setTime(long time) {
	this.time = time == -1 ? -1 : convert(time);
	this.recorded = convert(System.currentTimeMillis());
    }

    public DBAction getAction() {
	return action == null ? DBAction.NONE : action;
    }

    public void setAction(DBAction action) {
	if (action == DBAction.NONE)
	    action = null;
	this.action = action;
    }

    public long getRecorded() {
	return deconvert(recorded);
    }

    public boolean isPaid() {
	return paid;
    }

    public void setPaid(boolean paid) {
	this.paid = paid;
    }

    public void setRecorded(long recorded) {
	this.recorded = convert(recorded);
    }

    public int getId() {
	return id;
    }

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

    @Deprecated
    public Vector getPos() {
	return new Vector(x, y, z);
    }

    @Deprecated
    public void setPos(Vector pos) {
	x = pos.getBlockX();
	y = pos.getBlockY();
	z = pos.getBlockZ();
    }

    public void setPos(int x, int y, int z) {
	this.x = x;
	this.y = y;
	this.z = z;
    }

    public int getX() {
	return x;
    }

    public int getY() {
	return y;
    }

    public int getZ() {
	return z;
    }
}

{'fraction_non_alphanumeric': 0.11757425742574257, 'fraction_numerical': 0.015676567656765675, 'mean_word_length': 2.221926910299003, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '2014463', 'n_tokens_mistral': 1734, 'n_tokens_neox': 1575, 'n_words': 451}