<commit_before>package com.redpois0n.gscrot;

import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.List;

public abstract class ImageProcessor {
	
	private static final List<ImageProcessor> UPLOADERS = new ArrayList<ImageProcessor>();
	
	public static final List<ImageProcessor> getAllProcessors() {
		return UPLOADERS;
	}

	public static final void addProcessor(ImageProcessor a) {
		UPLOADERS.add(a);
	}
	
	/**
	 * Remove global action
	 * @param a
	 */
	public static final void removeProcessor(ImageProcessor a) {
		UPLOADERS.remove(a);
	}
	
	private final String name;
	
	public ImageProcessor(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}

	/**
	 * Called when an image is taken before passed to uploader
	 * @param g
	 */
	public abstract void process(Graphics2D g);
}<commit_msg>ImageProcessor has icon<commit_after>package com.redpois0n.gscrot;

import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.List;

import javax.swing.ImageIcon;

public abstract class ImageProcessor {
	
	private static final List<ImageProcessor> UPLOADERS = new ArrayList<ImageProcessor>();
	
	public static final List<ImageProcessor> getAllProcessors() {
		return UPLOADERS;
	}

	public static final void addProcessor(ImageProcessor a) {
		UPLOADERS.add(a);
	}
	
	/**
	 * Remove global action
	 * @param a
	 */
	public static final void removeProcessor(ImageProcessor a) {
		UPLOADERS.remove(a);
	}
	
	private final String name;
	private final ImageIcon icon;
	
	public ImageProcessor(String name, ImageIcon icon) {
		this.name = name;
		this.icon = icon;
	}
	
	public String getName() {
		return name;
	}
	
	public ImageIcon getIcon() {
		return icon;
	}

	/**
	 * Called when an image is taken before passed to uploader
	 * @param g
	 */
	public abstract void process(Graphics2D g);
}
{'fraction_non_alphanumeric': 0.09351351351351352, 'fraction_numerical': 0.003243243243243243, 'mean_word_length': 4.085164835164835, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '518629', 'n_tokens_mistral': 611, 'n_tokens_neox': 569, 'n_words': 169}