<commit_before>package pl.polidea.imagemanager;

import java.io.File;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.LinkedBlockingQueue;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
import android.graphics.Point;
import android.util.Log;

/**
 * Image manager. Manager provides way to load image resources asynchronously
 * with many options like:
 * <ul>
 * <li>loading from
 * <ul>
 * <li>file system
 * <li>application resources
 * </ul>
 * <li>caching
 * <li>low-quality preview
 * <li>sub-sampling
 * <li>loading rescaled bitmap
 * <li>using strong GC-proof cache
 * </ul>
 * Provides optional logging on different levels which makes it easy to debug
 * your code. Image manager should be interfaced mostly by
 * {@link #getImage(ImageManagerRequest)} or using
 * {@link pl.polidea.imagemanager.ManagedImageView}
 * 
 * 
 * @author karooolek
 * @see #getImage(ImageManagerRequest)
 * @see pl.polidea.imagemanager.ManagedImageView
 */
public final class ImageManager {

    private static final String TAG = ImageManager.class.getSimpleName();

    private static final class LoadedBitmap {
        private final WeakReference<Bitmap> weakBitmap;
        private final Bitmap bitmap;

        LoadedBitmap(final Bitmap bitmap, final boolean strong) {
            this.bitmap = strong ? bitmap : null;
            this.weakBitmap = strong ? new WeakReference<Bitmap>(bitmap) : null;
        }<commit_msg>quick fix pointed by damian<commit_after>package pl.polidea.imagemanager;

import java.io.File;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.LinkedBlockingQueue;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
import android.graphics.Point;
import android.util.Log;

/**
 * Image manager. Manager provides way to load image resources asynchronously
 * with many options like:
 * <ul>
 * <li>loading from
 * <ul>
 * <li>file system
 * <li>application resources
 * </ul>
 * <li>caching
 * <li>low-quality preview
 * <li>sub-sampling
 * <li>loading rescaled bitmap
 * <li>using strong GC-proof cache
 * </ul>
 * Provides optional logging on different levels which makes it easy to debug
 * your code. Image manager should be interfaced mostly by
 * {@link #getImage(ImageManagerRequest)} or using
 * {@link pl.polidea.imagemanager.ManagedImageView}
 * 
 * 
 * @author karooolek
 * @see #getImage(ImageManagerRequest)
 * @see pl.polidea.imagemanager.ManagedImageView
 */
public final class ImageManager {

    private static final String TAG = ImageManager.class.getSimpleName();

    private static final class LoadedBitmap {
        private final WeakReference<Bitmap> weakBitmap;
        private final Bitmap bitmap;

        LoadedBitmap(final Bitmap bitmap, final boolean strong) {
            this.bitmap = strong ? bitmap : null;
            this.weakBitmap = strong ? null : new WeakReference<Bitmap>(bitmap);
        }
{'fraction_non_alphanumeric': 0.09706411024565609, 'fraction_numerical': 0.0, 'mean_word_length': 4.225352112676056, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '1682100', 'n_tokens_mistral': 947, 'n_tokens_neox': 917, 'n_words': 272}