<commit_before>package com.jmlb0003.jokes.gradlejokesproject;

public final class Joker {

    private Joker() {
    }

    public static String getJoke() {
        return "This is totally a funny joke";<commit_msg>Add more jokes to show and make the returned joke random<commit_after>package com.jmlb0003.jokes.gradlejokesproject;

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

public final class Joker {

    private List<String> jokes;

    public Joker() {
        jokes = new ArrayList<>();
        jokes.add("This is totally a funny joke");
        jokes.add("This is another joke");
        jokes.add("This is a joke about animals");
        jokes.add("This is a joke about films");
        jokes.add("This is a bad joke");
    }

    public String getJoke() {
        if (jokes != null) {
            return jokes.get(new Random().nextInt(jokes.size()));
        }
        return null;
{'fraction_non_alphanumeric': 0.10822510822510822, 'fraction_numerical': 0.008658008658008658, 'mean_word_length': 2.7601626016260163, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3836346', 'n_tokens_mistral': 277, 'n_tokens_neox': 269, 'n_words': 86}