<commit_before>package alfredo.util;

import alfredo.paint.Graphic;
import alfredo.paint.ImageGraphic;
import alfredo.paint.NullGraphic;
import java.io.IOException;
import javax.imageio.ImageIO;

public class Resources {
    public static final Graphic getImage(String path) {
        try {
            return new ImageGraphic(ImageIO.read(Resources.class.getResource(path)));
        }
        catch (IOException e) {
            System.err.println("Failed to load image resource (" + path + "): " + e.getLocalizedMessage());
            return new NullGraphic();
        }
    }
}<commit_msg>Make Resources catch all exceptions<commit_after>package alfredo.util;

import alfredo.paint.Graphic;
import alfredo.paint.ImageGraphic;
import alfredo.paint.NullGraphic;
import javax.imageio.ImageIO;

public class Resources {
    public static final Graphic getImage(String path) {
        try {
            return new ImageGraphic(ImageIO.read(Resources.class.getResource(path)));
        }
        catch (Exception e) {
            System.err.println("Failed to load image resource (" + path + "): " + e.getLocalizedMessage());
            return new NullGraphic();
        }
    }
}
{'fraction_non_alphanumeric': 0.10423728813559321, 'fraction_numerical': 0.0, 'mean_word_length': 3.030716723549488, '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': '102805', 'n_tokens_mistral': 343, 'n_tokens_neox': 341, 'n_words': 78}