<commit_before>package com.ironz.binaryprefs.exception;

/**
 * Handles errors for implementing custom behaviour
 */
public interface ExceptionHandler {
    /**
     * Calls while exception are coming (file IO, etc)
     *
     * @param e exception
     */
    void handle(Exception e);

    /**
     * Just ignores any exception
     */
    ExceptionHandler IGNORE = new ExceptionHandler() {
        @Override
        public void handle(Exception ignored) {

        }
    };

    ExceptionHandler PRINT = new ExceptionHandler() {
        @Override
        public void handle(Exception e) {
            e.printStackTrace();
        }
    };
}<commit_msg>added javadoc for print exception handler<commit_after>package com.ironz.binaryprefs.exception;

/**
 * Handles errors for implementing custom behaviour
 */
public interface ExceptionHandler {
    /**
     * Calls while exception are coming (file IO, etc)
     *
     * @param e exception
     */
    void handle(Exception e);

    /**
     * Just ignores any exception
     */
    ExceptionHandler IGNORE = new ExceptionHandler() {
        @Override
        public void handle(Exception ignored) {

        }
    };

    /**
     * Prints stacktrace in logcat
     */
    ExceptionHandler PRINT = new ExceptionHandler() {
        @Override
        public void handle(Exception e) {
            e.printStackTrace();
        }
    };
}
{'fraction_non_alphanumeric': 0.09359251259899208, 'fraction_numerical': 0.0, 'mean_word_length': 2.1807780320366135, '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': '3318452', 'n_tokens_mistral': 365, 'n_tokens_neox': 351, 'n_words': 105}