<commit_before>package com.blocklaunch.blwarps.commands.executors;

import java.util.ArrayList;
import java.util.List;

import org.spongepowered.api.service.pagination.PaginationService;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.Texts;
import org.spongepowered.api.text.format.TextColors;
import org.spongepowered.api.util.command.CommandException;
import org.spongepowered.api.util.command.CommandResult;
import org.spongepowered.api.util.command.CommandSource;
import org.spongepowered.api.util.command.args.CommandContext;
import org.spongepowered.api.util.command.spec.CommandExecutor;

import com.blocklaunch.blwarps.BLWarps;
import com.blocklaunch.blwarps.Constants;
import com.blocklaunch.blwarps.Warp;

public class ListWarpsExecutor implements CommandExecutor {

    private BLWarps plugin;

    public ListWarpsExecutor(BLWarps plugin) {
        this.plugin = plugin;
    }

    /**
     * Gets the currently loaded warps, paginates them into pages of size WARPS_PER_PAGE, and sends
     * the warp names in a message to the player
     * 
     * @param source
     * @param args
     * @return
     * @throws CommandException
     */
    @Override
    public CommandResult execute(CommandSource source, CommandContext args) throws CommandException {

        if (plugin.getWarpManager().getPayload().isEmpty()) {
            source.sendMessage(Constants.NO_WARPS_MSG);
            return CommandResult.success();
        }

        List<Text> warpNames = new ArrayList<Text>();
        
        System.out.println(plugin.getWarpManager().getPayload());
        
        for (Object o : plugin.getWarpManager().getPayload()) {
            System.out.println(o);
            System.out.println(o.getClass());
            Warp w = (Warp) o;
            System.out.println(o);
            System.out.println(o.getClass());
            if(plugin.getUtil().hasPermission(source, w)) {
                warpNames.add(plugin.getUtil().generateWarpText(w));
            }
        }

        PaginationService paginationService = plugin.getGame().getServiceManager().provide(PaginationService.class).get();
        paginationService.builder().contents(warpNames).title(Texts.of(TextColors.BLUE, "Warps")).paddingString("-").sendTo(source);

        return CommandResult.success();
    }

}<commit_msg>Remove stuff that should not have been comitted<commit_after>package com.blocklaunch.blwarps.commands.executors;

import java.util.ArrayList;
import java.util.List;

import org.spongepowered.api.service.pagination.PaginationService;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.Texts;
import org.spongepowered.api.text.format.TextColors;
import org.spongepowered.api.util.command.CommandException;
import org.spongepowered.api.util.command.CommandResult;
import org.spongepowered.api.util.command.CommandSource;
import org.spongepowered.api.util.command.args.CommandContext;
import org.spongepowered.api.util.command.spec.CommandExecutor;

import com.blocklaunch.blwarps.BLWarps;
import com.blocklaunch.blwarps.Constants;
import com.blocklaunch.blwarps.Warp;

public class ListWarpsExecutor implements CommandExecutor {

    private BLWarps plugin;

    public ListWarpsExecutor(BLWarps plugin) {
        this.plugin = plugin;
    }

    /**
     * Gets the currently loaded warps, paginates them into pages of size WARPS_PER_PAGE, and sends
     * the warp names in a message to the player
     * 
     * @param source
     * @param args
     * @return
     * @throws CommandException
     */
    @Override
    public CommandResult execute(CommandSource source, CommandContext args) throws CommandException {

        if (plugin.getWarpManager().getPayload().isEmpty()) {
            source.sendMessage(Constants.NO_WARPS_MSG);
            return CommandResult.success();
        }

        List<Text> warpNames = new ArrayList<Text>();
        
        for (Warp w : plugin.getWarpManager().getPayload()) {
            if(plugin.getUtil().hasPermission(source, w)) {
                warpNames.add(plugin.getUtil().generateWarpText(w));
            }
        }

        PaginationService paginationService = plugin.getGame().getServiceManager().provide(PaginationService.class).get();
        paginationService.builder().contents(warpNames).title(Texts.of(TextColors.BLUE, "Warps")).paddingString("-").sendTo(source);

        return CommandResult.success();
    }

}
{'fraction_non_alphanumeric': 0.10902934537246049, 'fraction_numerical': 0.0, 'mean_word_length': 3.4177467597208375, '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': '7593021', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1264, 'n_words': 226}