<commit_before>package com.javanetworking;

import java.net.HttpURLConnection;
import java.util.List;


/**
 {@link ImageURLRequestOperation} is a {@link HTTPURLRequestOperation} subclass for downloading images.
 
 By default {@link ImageURLRequestOperation} accepts the following MIME content types:
 
 - `image/tiff`
 - `image/jpeg`
 - `image/gif`
 - `image/png`
 - `image/ico`
 - `image/x-icon` 
 - `image/bmp`
 - `image/x-bmp`
 - `image/x-xbitmap`
 - `image/x-win-bitmap`
 */
public class ImageURLRequestOperation extends HTTPURLRequestOperation {

	/**
	 A static constructor method that creates and returns a {@link ImageURLRequestOperation} instance.
	 */
	public static ImageURLRequestOperation operationWithHttpURLConnection(URLRequest request, HTTPCompletion completion) {
		return new ImageURLRequestOperation(request, completion);
	}
	
	/**
	 Instantiate this class and sets the {@link HttpURLConnection}, and the {@link ImageCompletion} interface.
	 
	 This is the preferred constructor.
	 
	 @param urlConnection An open {@link HttpURLConnection} to be used for HTTP network access.
	 @param completion A {@link ImageCompletion} instance that handles the completion interface methods.
	 */
	public ImageURLRequestOperation(URLRequest request, HTTPCompletion completion) {
		super(request, null);
		
		this.setCompletion(completion);
	}
	
	/**
	 Get acceptable content types list for current connection. Default values for {@link ImageURLRequestOperation} is:
	 
	 - `image/tiff`
	 - `image/jpeg`
 	 - `image/gif`
 	 - `image/png`
 	 - `image/ico`
 	 - `image/x-icon` 
 	 - `image/bmp`<commit_msg>Changed method name<commit_after>package com.javanetworking;

import java.net.HttpURLConnection;
import java.util.List;


/**
 {@link ImageURLRequestOperation} is a {@link HTTPURLRequestOperation} subclass for downloading images.
 
 By default {@link ImageURLRequestOperation} accepts the following MIME content types:
 
 - `image/tiff`
 - `image/jpeg`
 - `image/gif`
 - `image/png`
 - `image/ico`
 - `image/x-icon` 
 - `image/bmp`
 - `image/x-bmp`
 - `image/x-xbitmap`
 - `image/x-win-bitmap`
 */
public class ImageURLRequestOperation extends HTTPURLRequestOperation {

	/**
	 A static constructor method that creates and returns a {@link ImageURLRequestOperation} instance.
	 */
	public static ImageURLRequestOperation operationWithURLRequest(URLRequest request, HTTPCompletion completion) {
		return new ImageURLRequestOperation(request, completion);
	}
	
	/**
	 Instantiate this class and sets the {@link HttpURLConnection}, and the {@link ImageCompletion} interface.
	 
	 This is the preferred constructor.
	 
	 @param urlConnection An open {@link HttpURLConnection} to be used for HTTP network access.
	 @param completion A {@link ImageCompletion} instance that handles the completion interface methods.
	 */
	public ImageURLRequestOperation(URLRequest request, HTTPCompletion completion) {
		super(request, null);
		
		this.setCompletion(completion);
	}
	
	/**
	 Get acceptable content types list for current connection. Default values for {@link ImageURLRequestOperation} is:
	 
	 - `image/tiff`
	 - `image/jpeg`
 	 - `image/gif`
 	 - `image/png`
 	 - `image/ico`
 	 - `image/x-icon` 
 	 - `image/bmp`
{'fraction_non_alphanumeric': 0.10251630941286113, 'fraction_numerical': 0.0, 'mean_word_length': 4.152, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3317110', 'n_tokens_mistral': 966, 'n_tokens_neox': 879, 'n_words': 273}