<commit_before>package com.marcohc.android.clean.architecture.test.story;

import android.support.test.InstrumentationRegistry;
import android.widget.Toast;

import com.marcohc.android.clean.architecture.domain.interactor.impl.IsUserLoggedInUseCase;
import com.marcohc.android.clean.architecture.presentation.R;
import com.marcohc.android.clean.architecture.presentation.view.impl.activity.StartActivity;
import com.marcohc.android.clean.architecture.test.util.Utils;

import org.junit.Before;
import org.junit.Test;

import static android.support.test.espresso.Espresso.onData;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.*;
import static junit.framework.TestCase.assertFalse;
import static junit.framework.TestCase.assertTrue;
import static org.hamcrest.core.IsAnything.anything;

public class UsersListStory {

    private StartActivity mActivity;

    @Before
    public void setUp() throws Exception {
        super.setUp();
        injectInstrumentation(InstrumentationRegistry.getInstrumentation());
        mActivity = getActivity();
    }

    @Test
    public void testTheListIsLoaded() {

        showMessage("testTheListIsLoaded");

        Given.theUserIsNotLoggedIn();

        When.theUserWaitUntilListIsLoaded();

        Then.theListIsLoaded();
    }

    @Test
    public void testCredentialsAreFilledWithData() {

        showMessage("testCredentialsAreFilledWithData");

        Given.theUserIsNotLoggedIn();

        When.theUserWaitUntilListIsLoaded();

        Then.theListIsLoaded();

        Then.credentialsAreFilled();
    }

    public static class Given {<commit_msg>Testing WIP WW<commit_after>package com.marcohc.android.clean.architecture.test.story;

import android.support.test.InstrumentationRegistry;
import android.widget.Toast;

import com.marcohc.android.clean.architecture.domain.interactor.impl.IsUserLoggedInUseCase;
import com.marcohc.android.clean.architecture.presentation.R;
import com.marcohc.android.clean.architecture.presentation.view.impl.activity.StartActivity;
import com.marcohc.android.clean.architecture.test.util.Utils;

import org.junit.Before;
import org.junit.Test;

import static android.support.test.espresso.Espresso.onData;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.*;
import static junit.framework.TestCase.assertFalse;
import static junit.framework.TestCase.assertTrue;
import static org.hamcrest.core.IsAnything.anything;

public class UsersListStory {

    private StartActivity mActivity;

    @Before
    public void setUp() throws Exception {
        super.setUp();
        injectInstrumentation(InstrumentationRegistry.getInstrumentation());
        mActivity = getActivity();
    }

    @Test
    public void testTheListIsLoaded() {

        // OTHER!
        showMessage("testTheListIsLoaded");

        Given.theUserIsNotLoggedIn();

        When.theUserWaitUntilListIsLoaded();

        Then.theListIsLoaded();
    }

    @Test
    public void testCredentialsAreFilledWithData() {

        showMessage("testCredentialsAreFilledWithData");

        Given.theUserIsNotLoggedIn();

        When.theUserWaitUntilListIsLoaded();

        Then.theListIsLoaded();

        Then.credentialsAreFilled();
    }

    public static class Given {
{'fraction_non_alphanumeric': 0.09544038516001133, 'fraction_numerical': 0.0, 'mean_word_length': 4.2481426448737, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2149826', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1022, 'n_words': 155}