<commit_before>package net.dirtydeeds.discordsoundboard.utils;

import java.awt.Color;

import net.dv8tion.jda.core.entities.Game;

import net.dirtydeeds.discordsoundboard.Icons;
import net.dirtydeeds.discordsoundboard.service.SoundboardBot;
import net.dirtydeeds.discordsoundboard.service.SoundboardDispatcher;

public class Reusables {

  private static final String DONATION_TITLE = "Heya!";
  private static final String DONATION_MSG = "I am hosted on a personally owned computer that is always on and consuming power. Not cheap! If you wanna help out, you can.";
  private static final String DONATION_BUG_TITLE = "Found a bug!";
  private static final String DONATION_BUG = "You can report any bugs you find using the `.bug` command.";
  private static final String DONATION_DONATE_TITLE = "Donate?";
  private static final String DONATION_DONATE = "You can do this through patreon <https://www.patreon.com/asaph>";

  private static final Color DONATION_COLOR = new Color(255, 153, 255);

  public static void sendDonationMessage(SoundboardBot b) {
    StyledEmbedMessage msg = new StyledEmbedMessage(DONATION_TITLE, b);
    msg.setColor(DONATION_COLOR);
    msg.addDescription(DONATION_MSG);
    msg.addContent(DONATION_BUG_TITLE, DONATION_BUG, false);
    msg.addContent(DONATION_DONATE_TITLE, DONATION_DONATE, false);
    b.sendMessageToAllGuilds(msg.getMessage());
  }

  public static void setRandomGame(SoundboardBot b) {
    b.getAPI().getPresence().setGame(
      Game.of(getRandomGameName(b.getDispatcher())));
  }

  private static String getRandomGameName(SoundboardDispatcher dispatcher) {
    return (String) RandomUtils.chooseOne(StringUtils.randomWordPair(),
                                          StringUtils.randomString(
                                            dispatcher.getPhrases()));
  }

}<commit_msg>Contradiction is truth!<commit_after>package net.dirtydeeds.discordsoundboard.utils;

import java.awt.Color;

import net.dv8tion.jda.core.entities.Game;

import net.dirtydeeds.discordsoundboard.Icons;
import net.dirtydeeds.discordsoundboard.service.SoundboardBot;
import net.dirtydeeds.discordsoundboard.service.SoundboardDispatcher;

public class Reusables {

  private static final String DONATION_TITLE = "Heya!";
  private static final String DONATION_MSG = "I am hosted on a personally owned computer that is always on and consuming power. Not cheap! If you wanna help out, you can.";
  private static final String DONATION_BUG_TITLE = "Found a bug!";
  private static final String DONATION_BUG = "You can report any bugs you find using the `.bug` command.";
  private static final String DONATION_DONATE_TITLE = "Donate?";
  private static final String DONATION_DONATE = "You can do this through patreon <https://www.patreon.com/asaph>";

  private static final Color DONATION_COLOR = new Color(255, 153, 255);

  public static void sendDonationMessage(SoundboardBot b) {
    StyledEmbedMessage msg = new StyledEmbedMessage(DONATION_TITLE, b);
    msg.setColor(DONATION_COLOR);
    msg.addDescription(DONATION_MSG);
    msg.addContent(DONATION_BUG_TITLE, DONATION_BUG, false);
    msg.addContent(DONATION_DONATE_TITLE, DONATION_DONATE, false);
    b.sendMessageToAllGuilds(msg.getMessage());
  }

  public static void setRandomGame(SoundboardBot b) {
    Game currentGame = b.getAPI().getPresence().getGame();
    String newName = getRandomGameName(b.getDispatcher());
    while (newName.equals(currentGame.getName())) {
      newName = getRandomGameName(b.getDispatcher());
    }
    b.getAPI().getPresence().setGame(Game.of(newName));
  }

  private static String getRandomGameName(SoundboardDispatcher dispatcher) {
    return (String) RandomUtils.chooseOne(StringUtils.randomWordPair(),
                                          StringUtils.randomString(
                                            dispatcher.getPhrases()));
  }

}
{'fraction_non_alphanumeric': 0.08994845360824742, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 4.154050464807437, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7392234', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1111, 'n_words': 287}