<commit_before>package com.github.kubatatami.judonetworking.callbacks;

import com.github.kubatatami.judonetworking.AsyncResult;
import com.github.kubatatami.judonetworking.CacheInfo;
import com.github.kubatatami.judonetworking.exceptions.JudoException;

import java.lang.ref.WeakReference;

/**
 * Created by Kuba on 19/03/15.
 */
public class DecoratorCallback<T> extends DefaultCallback<T> {

    protected WeakReference<Callback<T>> callback;

    protected WeakReference<MergeCallback<T>> mergeCallback;

    public DecoratorCallback(Callback<T> callback) {
        this.callback = new WeakReference<>(callback);
    }

    public DecoratorCallback(MergeCallback<T> mergeCallback) {
        this.mergeCallback = new WeakReference<>(mergeCallback);
    }

    @Override<commit_msg>decorator callback fix<commit_after>package com.github.kubatatami.judonetworking.callbacks;

import com.github.kubatatami.judonetworking.AsyncResult;
import com.github.kubatatami.judonetworking.CacheInfo;
import com.github.kubatatami.judonetworking.exceptions.JudoException;

import java.lang.ref.WeakReference;

/**
 * Created by Kuba on 19/03/15.
 */
public class DecoratorCallback<T> extends DefaultCallback<T> {

    private WeakReference<Callback<T>> callback;

    private WeakReference<MergeCallback<T>> mergeCallback;

    public DecoratorCallback(Callback<T> callback) {
        this.callback = new WeakReference<>(callback);
    }

    public DecoratorCallback(MergeCallback<T> mergeCallback) {
        this.mergeCallback = new WeakReference<>(mergeCallback);
    }

    @Override
{'fraction_non_alphanumeric': 0.10031746031746032, 'fraction_numerical': 0.007619047619047619, 'mean_word_length': 5.038314176245211, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2148415', 'n_tokens_mistral': 498, 'n_tokens_neox': 465, 'n_words': 79}