<commit_before>package com.airhacks.problematic;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

/**
 *
 * @author <EMAIL>
 */
@RequestScoped
@Path("tests")
public class TestResource {

    @Inject
    Brittle brittle;

    @Inject
    Slow slow;

    @GET
    @Path("slow/{iterations}")
    public String slow(@PathParam("iterations") int iterations) {
        String lastValue = null;
        for (int i = 0; i < iterations; i++) {
            lastValue = this.slow.tooSlow();
        }
        return lastValue;
    }

    @GET
    @Path("brittle/{iterations}")
    public String brittle(@PathParam("iterations") int iterations) {
        for (int i = 0; i < iterations; i++) {
            try {
                this.brittle.test(true);
            } catch (Throwable t) {
                System.out.println(" Message: " + t.getMessage());
                System.out.println("-");
            }
        }
        return "+";
    }

    @DELETE
    public void reset() {
        this.brittle.reset();
        this.slow.reset();
    }

}<commit_msg>resetting of brittle / slow split<commit_after>package com.airhacks.problematic;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

/**
 *
 * @author <EMAIL>
 */
@RequestScoped
@Path("tests")
public class TestResource {

    @Inject
    Brittle brittle;

    @Inject
    Slow slow;

    @GET
    @Path("slow/{iterations}")
    public String slow(@PathParam("iterations") int iterations) {
        String lastValue = null;
        for (int i = 0; i < iterations; i++) {
            lastValue = this.slow.tooSlow();
        }
        return lastValue;
    }

    @GET
    @Path("brittle/{iterations}")
    public String brittle(@PathParam("iterations") int iterations) {
        for (int i = 0; i < iterations; i++) {
            try {
                this.brittle.test(true);
            } catch (Throwable t) {
                System.out.println(" Message: " + t.getMessage());
                System.out.println("-");
            }
        }
        return "+";
    }

    @DELETE
    @Path("brittle")
    public void resetBrittle() {
        this.brittle.reset();
    }

    @DELETE
    @Path("slow")
    public void resetSlow() {
        this.slow.reset();
    }

}
{'fraction_non_alphanumeric': 0.14004024144869215, 'fraction_numerical': 0.0016096579476861167, 'mean_word_length': 2.1075, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4740448', 'n_tokens_mistral': 795, 'n_tokens_neox': 766, 'n_words': 166}