<commit_before>import com.github.phf.jb.Bench;
import com.github.phf.jb.Bee;

/**
 * Proper format (annotations, parameter lists, etc.) for benchmark methods.
 */
public class BasicUsage {
    /**
     * Incorrect: Must be static.
     */
    @Bench
    public void one(Bee b) {
        System.out.println("one");
    }

    /**
     * Incorrect: Missing annotation.
     */
    public static void two(Bee b) {
        System.out.println("two");
    }

    /**
     * Correct: Annotation and proper parameter list.
     */
    @Bench
    public static void three(Bee b) {
        System.out.println("three");
    }

    /**
     * Incorrect: Exactly one parameter of type Bee.
     */
    @Bench
    public static void four(Bee b, int x) {
        System.out.println("four");
    }

    /**
     * Incorrect: Exactly one parameter of type Bee.
     */
    @Bench
    public static void five(int x) {
        System.out.println("five");
    }

    /**
     * Incorrect: No return type.
     */
    @Bench
    public static Bee six(Bee b) {
        System.out.println("six");
        return null;
    }
}<commit_msg>Example of an exception.<commit_after>import com.github.phf.jb.Bench;
import com.github.phf.jb.Bee;

/**
 * Proper format (annotations, parameter lists, etc.) for benchmark methods.
 */
public class BasicUsage {
    /**
     * Incorrect: Must be static.
     */
    @Bench
    public void one(Bee b) {
        System.out.println("one");
    }

    /**
     * Incorrect: Missing annotation.
     */
    public static void two(Bee b) {
        System.out.println("two");
    }

    /**
     * Correct: Annotation and proper parameter list.
     */
    @Bench
    public static void three(Bee b) {
        System.out.println("three");
    }

    /**
     * Incorrect: Exactly one parameter of type Bee.
     */
    @Bench
    public static void four(Bee b, int x) {
        System.out.println("four");
    }

    /**
     * Incorrect: Exactly one parameter of type Bee.
     */
    @Bench
    public static void five(int x) {
        System.out.println("five");
    }

    /**
     * Incorrect: No return type.
     */
    @Bench
    public static Bee six(Bee b) {
        System.out.println("six");
        return null;
    }

    /**
     * Problematic: Throws an exception.
     */
    @Bench
    public static void seven(Bee b) {
        System.out.println("seven");
        String x = null;
        x.toString();
    }

}
{'fraction_non_alphanumeric': 0.13254000820681167, 'fraction_numerical': 0.0, 'mean_word_length': 1.868235294117647, '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': '6133779', 'n_tokens_mistral': 796, 'n_tokens_neox': 775, 'n_words': 200}