<commit_before>package org.ieatta.test.tasks;

import android.support.test.runner.AndroidJUnit4;

import org.ieatta.database.models.DBRecipe;
import org.ieatta.tasks.EventDetailTask;
import org.ieatta.tasks.OrderedRecipesTask;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import bolts.Continuation;
import bolts.Task;
import io.realm.RealmResults;

@RunWith(AndroidJUnit4.class)
public class OrderedRecipesTaskTest {
    private static final int TASK_COMPLETION_TIMEOUT = 20000;
    private OrderedRecipesTask task = new OrderedRecipesTask();
    private String restaurantUUID = "1CE562A4-A978-4B75-9B7B-2F3CF9F42A04"; // The Flying Falafel
    private String eventUUID = "07B2D33C-F11D-404B-9D78-016D16BEE9FE";
    private String teamUUID = "197C0BEF-B432-47B8-988B-99406643623A";// <NAME>

    @Test
    public void testOrderedRecipes() throws InterruptedException {
        final CountDownLatch completionLatch = new CountDownLatch(1);
        task.executeTask(restaurantUUID,eventUUID,teamUUID).onSuccess(new Continuation<Void, Void>() {
            @Override
            public Void then(Task<Void> task) throws Exception {
                OrderedRecipesTask _task = OrderedRecipesTaskTest.this.task;
                RealmResults<DBRecipe> recipes = _task.recipes;
                return null;
            }
        }).continueWith(new Continuation<Void, Void>() {
            @Override
            public Void then(Task<Void> task) throws Exception {
                Exception error = task.getError();
                completionLatch.countDown();
                return null;
            }
        });
        completionLatch.await(TASK_COMPLETION_TIMEOUT, TimeUnit.MILLISECONDS);
    }
}<commit_msg>IEATTA<commit_after>package org.ieatta.test.tasks;

import android.support.test.runner.AndroidJUnit4;

import org.ieatta.database.models.DBRecipe;
import org.ieatta.tasks.EventDetailTask;
import org.ieatta.tasks.OrderedRecipesTask;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import bolts.Continuation;
import bolts.Task;
import io.realm.RealmResults;

@RunWith(AndroidJUnit4.class)
public class OrderedRecipesTaskTest {
    private static final int TASK_COMPLETION_TIMEOUT = 20000;
    private OrderedRecipesTask task = new OrderedRecipesTask();
    private String restaurantUUID = "1CE562A4-A978-4B75-9B7B-2F3CF9F42A04"; // The Flying Falafel
    private String eventUUID = "07B2D33C-F11D-404B-9D78-016D16BEE9FE"; // White Truffies
    private String teamUUID = "197C0BEF-B432-47B8-988B-99406643623A";// <NAME>

    @Test
    public void testOrderedRecipes() throws InterruptedException {
        final CountDownLatch completionLatch = new CountDownLatch(1);
        task.executeTask(restaurantUUID,eventUUID,teamUUID).onSuccess(new Continuation<Void, Void>() {
            @Override
            public Void then(Task<Void> task) throws Exception {
                OrderedRecipesTask _task = OrderedRecipesTaskTest.this.task;
                RealmResults<DBRecipe> recipes = _task.recipes;
                return null;
            }
        }).continueWith(new Continuation<Void, Void>() {
            @Override
            public Void then(Task<Void> task) throws Exception {
                Exception error = task.getError();
                completionLatch.countDown();
                return null;
            }
        });
        completionLatch.await(TASK_COMPLETION_TIMEOUT, TimeUnit.MILLISECONDS);
    }
}
{'fraction_non_alphanumeric': 0.09133683919180736, 'fraction_numerical': 0.03930251868253529, 'mean_word_length': 3.202325581395349, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3958580', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1126, 'n_words': 206}