<commit_before>package net.coobird.paint.filter;

import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ConvolveOp;
import java.awt.image.Kernel;

public class RepeatableMatrixFilter extends MatrixImageFilter
{
	protected int repeat;
	
	public RepeatableMatrixFilter(int width, int height, float[] matrix)
	{
		this(width, height, 1, matrix);
	}
	
	public RepeatableMatrixFilter(int width, int height, int repeat, float[] matrix)
	{
		super(width, height, matrix);
		this.repeat = repeat;		
	}

	/* (non-Javadoc)
	 * @see net.coobird.paint.filter.MatrixImageFilter#processImage(java.awt.image.BufferedImage)
	 */
	@Override
	public BufferedImage processImage(BufferedImage img)
	{
		BufferedImageOp op = new ConvolveOp(new Kernel(width, height, matrix));
		
		BufferedImage outImg = null;
		
		for (int i = 0; i < repeat; i++)
		{
			outImg = new BufferedImage(
					img.getWidth(),
					img.getHeight(),
					img.getType()
			);

			outImg = op.filter(img, outImg);
			
			img = outImg;
		}
				
		return outImg;
	}
}
<commit_msg>Big fix in constructor. (Missed passing a repeat.)<commit_after>package net.coobird.paint.filter;

import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ConvolveOp;
import java.awt.image.Kernel;

public class RepeatableMatrixFilter extends MatrixImageFilter
{
	protected int repeat;
	
	public RepeatableMatrixFilter(
			int width,
			int height,
			float[] matrix
	)
	{
		this("RepeatableMatrixFilter", width, height, 1, matrix);
	}

	public RepeatableMatrixFilter(
			String name,
			int width,
			int height,
			float[] matrix
	)
	{
		this(name, width, height, 1, matrix);
	}
	
	public RepeatableMatrixFilter(
			int width,
			int height,
			int repeat,
			float[] matrix
	)
	{
		this("RepeatableMatrixFilter", width, height, repeat, matrix);
	}

	public RepeatableMatrixFilter(
			String name,
			int width,
			int height,
			int repeat,
			float[] matrix
	)
	{
		super(name, width, height, matrix);
		this.repeat = repeat;		
	}

	/* (non-Javadoc)
	 * @see net.coobird.paint.filter.MatrixImageFilter#processImage(java.awt.image.BufferedImage)
	 */
	@Override
	public BufferedImage processImage(BufferedImage img)
	{
		BufferedImageOp op = new ConvolveOp(new Kernel(width, height, matrix));
		
		BufferedImage outImg = null;
		
		for (int i = 0; i < repeat; i++)
		{
			outImg = new BufferedImage(
					img.getWidth(),
					img.getHeight(),
					img.getType()
			);

			outImg = op.filter(img, outImg);
			
			img = outImg;
		}
				
		return outImg;
	}
}

{'fraction_non_alphanumeric': 0.10843819393042191, 'fraction_numerical': 0.001850481125092524, 'mean_word_length': 2.963343108504399, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6611142', 'n_tokens_mistral': 1058, 'n_tokens_neox': 885, 'n_words': 205}