<commit_before>package com.demonwav.mcdev.creator;

import com.demonwav.mcdev.platform.Type;
import com.demonwav.mcdev.platform.bukkit.BukkitSettings;
import com.demonwav.mcdev.platform.bungeecord.BungeeCordSettings;
import com.demonwav.mcdev.platform.sponge.SpongeSettings;

import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.ui.IdeBorderFactory;
import org.jetbrains.annotations.NotNull;

import java.awt.Desktop;
import java.io.IOException;
import java.net.URISyntaxException;

import javax.swing.JComponent;
import javax.swing.JEditorPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.event.HyperlinkEvent;

public class ProjectChooserWizardStep extends ModuleWizardStep {

    private final MinecraftProjectCreator creator;

    private JPanel chooserPanel;
    private JPanel panel;
    private JPanel infoPanel;

    private JRadioButton bukkitRadioButton;
    private JRadioButton spigotRadioButton;
    private JRadioButton bungeecordRadioButton;
    private JEditorPane infoPane;
    private JRadioButton spongeRadioButton;
    private JRadioButton paperRadioButton;

    private Type type = Type.BUKKIT;

    private static final String bukkitInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"http://bukkit.org/\">Bukkit</a> plugin, for use " +
            "on CraftBukkit, Spigot, and Paper servers.</font></html>";
    private static final String spigotInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"https://www.spigotmc.org/\">Spigot</a> plugin, for use " +
            "on Spigot and Paper servers.</font></html>";
    private static final String paperInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"https://paper.readthedocs.io/en/paper-1.9/\">Paper</a> plugin, for use " +
            "on Paper servers.</font></html>";
    private static final String bungeeCordInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"https://www.spigotmc.org/wiki/bungeecord/\"> BungeeCord</a> plugin, for use " +
            "on BungeeCord servers.</font></html>";
    private static final String spongeInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"https://www.spongepowered.org/\"> Sponge</a> plugin, for use " +
            "on Sponge servers.</font></html>";

    public ProjectChooserWizardStep(@NotNull MinecraftProjectCreator creator) {
        super();
        this.creator = creator;
    }

    @Override
    public JComponent getComponent() {
        chooserPanel.setBorder(IdeBorderFactory.createBorder());
        infoPanel.setBorder(IdeBorderFactory.createBorder());

        // HTML parsing and hyperlink support
        infoPane.setContentType("text/html");
        infoPane.addHyperlinkListener(e -> {
            if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                if (Desktop.isDesktopSupported()) {
                    try {
                        Desktop.getDesktop().browse(e.getURL().toURI());
                    } catch (URISyntaxException | IOException e1) {
                        e1.printStackTrace();
                    }
                }
            }
        });
        // Set initial text
        infoPane.setText(bukkitInfo);

        // Set type
        bukkitRadioButton.addChangeListener(e -> {
            if (type != Type.BUKKIT) {
                type = Type.BUKKIT;
                infoPane.setText(bukkitInfo);
                creator.setType(type);
                creator.setSettings(new BukkitSettings());
            }
        });
        spigotRadioButton.addChangeListener(e -> {
            if (type != Type.SPIGOT) {
                type = Type.SPIGOT;
                infoPane.setText(spigotInfo);
                creator.setType(type);
                creator.setSettings(new BukkitSettings());
            }
        });
        paperRadioButton.addChangeListener(e -> {
            if (type != Type.PAPER) {
                type = Type.PAPER;
                infoPane.setText(paperInfo);
                creator.setType(type);
                creator.setSettings(new BukkitSettings());
            }
        });

        spongeRadioButton.addChangeListener(e -> {
            if (type != Type.SPONGE) {
                type = Type.SPONGE;
                infoPane.setText(spongeInfo);
                creator.setType(type);
                creator.setSettings(new SpongeSettings());
            }
        });
        bungeecordRadioButton.addChangeListener(e -> {
            if (type != Type.BUNGEECORD) {
                type = Type.BUNGEECORD;
                infoPane.setText(bungeeCordInfo);
                creator.setType(type);
                creator.setSettings(new BungeeCordSettings());
            }
        });
        return panel;
    }

    @Override
    public void updateDataModel() {}
}
<commit_msg>Change Paper URL<commit_after>package com.demonwav.mcdev.creator;

import com.demonwav.mcdev.platform.Type;
import com.demonwav.mcdev.platform.bukkit.BukkitSettings;
import com.demonwav.mcdev.platform.bungeecord.BungeeCordSettings;
import com.demonwav.mcdev.platform.sponge.SpongeSettings;

import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.ui.IdeBorderFactory;
import org.jetbrains.annotations.NotNull;

import java.awt.Desktop;
import java.io.IOException;
import java.net.URISyntaxException;

import javax.swing.JComponent;
import javax.swing.JEditorPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.event.HyperlinkEvent;

public class ProjectChooserWizardStep extends ModuleWizardStep {

    private final MinecraftProjectCreator creator;

    private JPanel chooserPanel;
    private JPanel panel;
    private JPanel infoPanel;

    private JRadioButton bukkitRadioButton;
    private JRadioButton spigotRadioButton;
    private JRadioButton bungeecordRadioButton;
    private JEditorPane infoPane;
    private JRadioButton spongeRadioButton;
    private JRadioButton paperRadioButton;

    private Type type = Type.BUKKIT;

    private static final String bukkitInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"http://bukkit.org/\">Bukkit</a> plugin, for use " +
            "on CraftBukkit, Spigot, and Paper servers.</font></html>";
    private static final String spigotInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"https://www.spigotmc.org/\">Spigot</a> plugin, for use " +
            "on Spigot and Paper servers.</font></html>";
    private static final String paperInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"https://paper.emc.gs\">Paper</a> plugin, for use " +
            "on Paper servers.</font></html>";
    private static final String bungeeCordInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"https://www.spigotmc.org/wiki/bungeecord/\"> BungeeCord</a> plugin, for use " +
            "on BungeeCord servers.</font></html>";
    private static final String spongeInfo = "<html><font size=\"4\">Create a standard " +
            "<a href=\"https://www.spongepowered.org/\"> Sponge</a> plugin, for use " +
            "on Sponge servers.</font></html>";

    public ProjectChooserWizardStep(@NotNull MinecraftProjectCreator creator) {
        super();
        this.creator = creator;
    }

    @Override
    public JComponent getComponent() {
        chooserPanel.setBorder(IdeBorderFactory.createBorder());
        infoPanel.setBorder(IdeBorderFactory.createBorder());

        // HTML parsing and hyperlink support
        infoPane.setContentType("text/html");
        infoPane.addHyperlinkListener(e -> {
            if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                if (Desktop.isDesktopSupported()) {
                    try {
                        Desktop.getDesktop().browse(e.getURL().toURI());
                    } catch (URISyntaxException | IOException e1) {
                        e1.printStackTrace();
                    }
                }
            }
        });
        // Set initial text
        infoPane.setText(bukkitInfo);

        // Set type
        bukkitRadioButton.addChangeListener(e -> {
            if (type != Type.BUKKIT) {
                type = Type.BUKKIT;
                infoPane.setText(bukkitInfo);
                creator.setType(type);
                creator.setSettings(new BukkitSettings());
            }
        });
        spigotRadioButton.addChangeListener(e -> {
            if (type != Type.SPIGOT) {
                type = Type.SPIGOT;
                infoPane.setText(spigotInfo);
                creator.setType(type);
                creator.setSettings(new BukkitSettings());
            }
        });
        paperRadioButton.addChangeListener(e -> {
            if (type != Type.PAPER) {
                type = Type.PAPER;
                infoPane.setText(paperInfo);
                creator.setType(type);
                creator.setSettings(new BukkitSettings());
            }
        });

        spongeRadioButton.addChangeListener(e -> {
            if (type != Type.SPONGE) {
                type = Type.SPONGE;
                infoPane.setText(spongeInfo);
                creator.setType(type);
                creator.setSettings(new SpongeSettings());
            }
        });
        bungeecordRadioButton.addChangeListener(e -> {
            if (type != Type.BUNGEECORD) {
                type = Type.BUNGEECORD;
                infoPane.setText(bungeeCordInfo);
                creator.setType(type);
                creator.setSettings(new BungeeCordSettings());
            }
        });
        return panel;
    }

    @Override
    public void updateDataModel() {}
}

{'fraction_non_alphanumeric': 0.11586051743532058, 'fraction_numerical': 0.001636159116474077, 'mean_word_length': 2.193990855649902, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 75, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, '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': '2274313', 'n_tokens_mistral': 2849, 'n_tokens_neox': 2744, 'n_words': 518}