<commit_before>package com.aaomidi.justskyblock.storage;

import com.aaomidi.justskyblock.engine.objects.SkyblockIsland;
import com.aaomidi.justskyblock.engine.objects.SkyblockPlayer;
import org.bukkit.util.Vector;

import java.util.UUID;

/**
 * @author aaomidi
 */
//TODO: Finish the damned javadocs :P
public abstract class DataStorageInterface {
    /**
     * Gets the skyblock player.
     *
     * @param playerName Name of player.
     * @return SkyblockPlayer object.
     */
    public abstract SkyblockPlayer getSkyblockPlayer(String playerName);

    /**
     * Gets the skyblock island.
     *
     * @param uuid Unique ID of player.
     * @return SkyblockPlayer object.
     */
    public abstract SkyblockPlayer getSkyblockPlayer(UUID uuid);

    /**
     * Gets the skyblock island.
     *
     * @param playerName Name of player.
     * @return SkyblockIsland object.
     */
    public abstract SkyblockIsland getSkyblockIsland(String playerName);

    /**
     * Gets the skyblock island.
     *
     * @param uuid Unique ID of player.
     * @return SkyblockIsland object.
     */
    public abstract SkyblockIsland getSkyblockIsland(UUID uuid);

    public abstract boolean createSkyblockPlayer(String playerName);

    public abstract boolean createSkyblockPlayer(UUID uuid);

    public abstract boolean createSkyblockIsland(String playerName, String serverName, Vector min, Vector max);

    public abstract boolean createSkyblockIsland(UUID uuid, String serverName, Vector min, Vector max);

    public abstract boolean updateSkyblockPlayer(SkyblockPlayer skyblockPlayer);

    public abstract boolean updateSkyblockIsland(SkyblockIsland skyblockIsland);

}<commit_msg>Method to get the last purged island.<commit_after>package com.aaomidi.justskyblock.storage;

import com.aaomidi.justskyblock.engine.objects.SkyblockIsland;
import com.aaomidi.justskyblock.engine.objects.SkyblockPlayer;
import org.bukkit.util.Vector;

import java.util.UUID;

/**
 * @author aaomidi
 */
//TODO: Finish the damned javadocs :P
public abstract class DataStorageInterface {
    /**
     * Gets the skyblock player.
     *
     * @param playerName Name of player.
     * @return SkyblockPlayer object.
     */
    public abstract SkyblockPlayer getSkyblockPlayer(String playerName);

    /**
     * Gets the skyblock island.
     *
     * @param uuid Unique ID of player.
     * @return SkyblockPlayer object.
     */
    public abstract SkyblockPlayer getSkyblockPlayer(UUID uuid);

    /**
     * Gets the skyblock island.
     *
     * @param playerName Name of player.
     * @return SkyblockIsland object.
     */
    public abstract SkyblockIsland getSkyblockIsland(String playerName);

    /**
     * Gets the skyblock island.
     *
     * @param uuid Unique ID of player.
     * @return SkyblockIsland object.
     */
    public abstract SkyblockIsland getSkyblockIsland(UUID uuid);

    /**
     * Gets the last skyblock island that was purged.
     *
     * @return Last skyblock island that was purged. If none exists the method will return null.
     */
    public abstract SkyblockIsland getLastPurgedIsland();

    public abstract boolean createSkyblockPlayer(String playerName);

    public abstract boolean createSkyblockPlayer(UUID uuid);

    public abstract boolean createSkyblockIsland(String playerName, String serverName, Vector min, Vector max);

    public abstract boolean createSkyblockIsland(UUID uuid, String serverName, Vector min, Vector max);

    public abstract boolean updateSkyblockPlayer(SkyblockPlayer skyblockPlayer);

    public abstract boolean updateSkyblockIsland(SkyblockIsland skyblockIsland);

}
{'fraction_non_alphanumeric': 0.0762270359199342, 'fraction_numerical': 0.0, 'mean_word_length': 3.4271844660194173, 'pattern_counts': {'":': 0, '<': 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': '7152368', 'n_tokens_mistral': 1043, 'n_tokens_neox': 1003, 'n_words': 301}