[Demonstration 1]

[Buggy Method]
@Test(expected = IllegalArgumentException.class)
public void illegalArgumentsTest() {
    String time = "ItIsCertainlyNotTheTime";
    Timer timer = Timer.of(time);
}

[Buggy Hunk]
Timer timer = Timer.of(time);

[Patch]
Timer.of(time);

[Demonstration 2]

[Buggy Method]
static <T> T of(CheckedSupplier<T> supplier) {
    try {
        return supplier.get();
    } catch (Throwable t) {
        //NOPMD
        throw new RuntimeException(t);
    }
}

[Buggy Hunk]
static <T> T of(CheckedSupplier<T> supplier) {

[Patch]
public static <T> T of(CheckedSupplier<T> supplier) {

[Demonstration 3]

[Buggy Method]
public static float rSquared(ANN ann) {
    float ymean = 0;
    float numOfSamples = 0;
    float sstot = 0;
    float ssres = 0;
    for (float x = -1; x <= 1; x += 0.05) {
        numOfSamples++;
        ymean += getRealValue(x);
    }
    ymean /= numOfSamples;
    for (float x = -1; x <= 1; x += 0.05) {
        sstot += (getRealValue(x) - ymean) * (getRealValue(x) - ymean);
        ssres += (getRealValue(x) - getApproximation(ann, x)) * (getRealValue(x) - getApproximation(ann, x));
    }
    //System.out.println((float)1/ssres);
    return (float) 1 / ssres;
}

[Buggy Hunk]
return (float)1/ssres;

[Patch]
return (float)10000/ssres;