<commit_before>package org.commcare.android.tasks;

import android.content.Context;
import android.util.Log;

import org.commcare.android.database.SqlStorage;
import org.commcare.android.database.UserStorageClosedException;
import org.commcare.android.database.user.models.FormRecord;
import org.commcare.android.database.user.models.User;
import org.commcare.android.models.notifications.NotificationMessageFactory;
import org.commcare.android.models.notifications.NotificationMessageFactory.StockMessages;
import org.commcare.android.tasks.ProcessAndSendTask.ProcessIssues;
import org.commcare.android.tasks.templates.CommCareTask;
import org.commcare.android.util.FileUtil;
import org.commcare.android.util.FormUploadUtil;
import org.commcare.android.util.SessionUnavailableException;
import org.commcare.dalvik.application.CommCareApplication;
import org.commcare.util.CommCarePlatform;
import org.javarosa.core.services.locale.Localization;

import java.io.File;
import java.io.FileNotFoundException;

/**
 * @author ctsims
 *
 */
public abstract class SendTask<R> extends CommCareTask<Void, String, Boolean, R>{
    Context c;
    String url;
    Long[] results;
    
    DataSubmissionListener formSubmissionListener;

    File dumpDirectory;
    
    public static String MALFORMED_FILE_CATEGORY = "malformed-file";
    
    public static final int BULK_SEND_ID = 12335645;
    
     // 5MB less 1KB overhead
    
    public SendTask(Context c, String url, File dumpDirectory) {
        this.c = c;
        this.url = url;
        this.taskId = SendTask.BULK_SEND_ID;
        this.dumpDirectory = dumpDirectory;
    }
    
    protected void onProgressUpdate(String... values) {
        super.onProgressUpdate(values);
    }
    
    
    public void setListeners(DataSubmissionListener submissionListener) {
        this.formSubmissionListener = submissionListener;
    }

    @Override
    protected void onPostExecute(Boolean result) {
        super.onPostExecute(result);
        //These will never get Zero'd otherwise
        c = null;
        url = null;
        results = null;
    }

    @Override
    protected void onCancelled() {<commit_msg>Add a missing @Override<commit_after>package org.commcare.android.tasks;

import android.content.Context;
import android.util.Log;

import org.commcare.android.database.SqlStorage;
import org.commcare.android.database.UserStorageClosedException;
import org.commcare.android.database.user.models.FormRecord;
import org.commcare.android.database.user.models.User;
import org.commcare.android.models.notifications.NotificationMessageFactory;
import org.commcare.android.models.notifications.NotificationMessageFactory.StockMessages;
import org.commcare.android.tasks.ProcessAndSendTask.ProcessIssues;
import org.commcare.android.tasks.templates.CommCareTask;
import org.commcare.android.util.FileUtil;
import org.commcare.android.util.FormUploadUtil;
import org.commcare.android.util.SessionUnavailableException;
import org.commcare.dalvik.application.CommCareApplication;
import org.commcare.util.CommCarePlatform;
import org.javarosa.core.services.locale.Localization;

import java.io.File;
import java.io.FileNotFoundException;

/**
 * @author ctsims
 *
 */
public abstract class SendTask<R> extends CommCareTask<Void, String, Boolean, R>{
    Context c;
    String url;
    Long[] results;
    
    DataSubmissionListener formSubmissionListener;

    File dumpDirectory;
    
    public static String MALFORMED_FILE_CATEGORY = "malformed-file";
    
    public static final int BULK_SEND_ID = 12335645;
    
     // 5MB less 1KB overhead
    
    public SendTask(Context c, String url, File dumpDirectory) {
        this.c = c;
        this.url = url;
        this.taskId = SendTask.BULK_SEND_ID;
        this.dumpDirectory = dumpDirectory;
    }
    
    @Override
    protected void onProgressUpdate(String... values) {
        super.onProgressUpdate(values);
    }
    
    
    public void setListeners(DataSubmissionListener submissionListener) {
        this.formSubmissionListener = submissionListener;
    }

    @Override
    protected void onPostExecute(Boolean result) {
        super.onPostExecute(result);
        //These will never get Zero'd otherwise
        c = null;
        url = null;
        results = null;
    }

    @Override
    protected void onCancelled() {
{'fraction_non_alphanumeric': 0.08743672342383801, 'fraction_numerical': 0.004601932811780948, 'mean_word_length': 3.7404580152671754, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2360467', 'n_tokens_mistral': 1277, 'n_tokens_neox': 1240, 'n_words': 248}