<commit_before>package project.android.imageprocessing;

import android.content.Context;
import android.opengl.GLSurfaceView;

/**
 * Fast image processing view extension of GLSurfaceView.  This class is required for all fast image processing
 * activities that use this framework.  With the help of the {@link FastImageProcessingPipeline}, this class provides
 * the OpenGL context required for image processing.  Set of the framework is as follows:
 * <p>
 * Add FastImageProcessingView to activity layout. <p>
 * Add FastImageProcessingPipeline to FastImageProcessingView <p>
 * Create a input point and attach filter chains to the input and attach endpoints to the filter chains using addTarget. <p>
 * <code>	image = new ImageResourceInput(view, this, R.drawable.picture); <p>
 *			filter = new GreyScaleFilter(); <p>
 *			screen = new ScreenEndpoint(pipeline); <p>
 *			image.addTarget(filter); <p>
 *			filter.addTarget(screen); <p>
 * </code><p>
 * Pass the input point into the FastImageProcessingPipeline as the root renderer and start the pipeline. <p>
 * <code>	
		pipeline.addRootRenderer(image); <p>
		pipeline.startRendering(); <p>
 * </code><p>
 * @author <NAME>
 */
public class FastImageProcessingView extends GLSurfaceView {
	
	/**
	 * Creates a new view which can be used for fast image processing.
	 * @param context The activity context that this view belongs to.
	 */
	public FastImageProcessingView(Context context) {
		super(context);	<commit_msg>Added extra constructor so it can be used in xml layouts<commit_after>package project.android.imageprocessing;

import android.content.Context;
import android.opengl.GLSurfaceView;
import android.util.AttributeSet;

/**
 * Fast image processing view extension of GLSurfaceView.  This class is required for all fast image processing
 * activities that use this framework.  With the help of the {@link FastImageProcessingPipeline}, this class provides
 * the OpenGL context required for image processing.  Set of the framework is as follows:
 * <p>
 * Add FastImageProcessingView to activity layout. <p>
 * Add FastImageProcessingPipeline to FastImageProcessingView <p>
 * Create a input point and attach filter chains to the input and attach endpoints to the filter chains using addTarget. <p>
 * <code>	image = new ImageResourceInput(view, this, R.drawable.picture); <p>
 *			filter = new GreyScaleFilter(); <p>
 *			screen = new ScreenEndpoint(pipeline); <p>
 *			image.addTarget(filter); <p>
 *			filter.addTarget(screen); <p>
 * </code><p>
 * Pass the input point into the FastImageProcessingPipeline as the root renderer and start the pipeline. <p>
 * <code>	
		pipeline.addRootRenderer(image); <p>
		pipeline.startRendering(); <p>
 * </code><p>
 * @author <NAME>
 */
public class FastImageProcessingView extends GLSurfaceView {
	
	/**
	 * Creates a new view which can be used for fast image processing.
	 * @param context The activity context that this view belongs to.
	 */
	public FastImageProcessingView(Context context) {
		this(context, null);	
		setDebugFlags(GLSurfaceView.DEBUG_CHECK_GL_ERROR | GLSurfaceView.DEBUG_LOG_GL_CALLS);
        setEGLContextClientVersion(2);
	}
	
	/**
	 * Creates a new view which can be used for fast image processing.
	 * @param context The activity context that this view belongs to.
	 * @param attr The activity attribute set.
	 */
	public FastImageProcessingView(Context context, AttributeSet attr) {
		super(context, attr);	
{'fraction_non_alphanumeric': 0.08861127251597908, 'fraction_numerical': 0.0002905287623474724, 'mean_word_length': 4.580226904376013, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '538998', 'n_tokens_mistral': 967, 'n_tokens_neox': 932, 'n_words': 369}