<commit_before>package com.leroymerlin.pandroid.app;

import android.app.Fragment;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.leroymerlin.pandroid.PandroidApplication;
import com.leroymerlin.pandroid.app.delegate.PandroidDelegate;
import com.leroymerlin.pandroid.event.EventBusManager;
import com.leroymerlin.pandroid.event.FragmentOpener;
import com.leroymerlin.pandroid.event.OnBackListener;
import com.leroymerlin.pandroid.event.ReceiversProvider;
import com.leroymerlin.pandroid.future.CancellableActionDelegate;
import com.leroymerlin.pandroid.log.LogWrapper;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Inject;

/**
 * Created by florian on 05/11/14.
 * <p/>
 * PandroidActivity is a Activity that simplify the activity cycle of life by introducing onResume(ResumeState) method.
 * This Activity handle support toolbar. You just have to use LinearToolbarLayout as root view or an equivalent view.
 * Back event and fragment back stack changed are treated to.
 * If static field TAG is set PandroidActivity inject Broadcast receiver himself
 */
public class PandroidActivity extends AppCompatActivity implements CancellableActionDelegate.ActionDelegateRegister, ReceiversProvider {

    //tag::PandroidActivityInjection[]
    @Inject
    protected LogWrapper logWrapper;
    @Inject
    protected EventBusManager eventBusManager;

    //end::PandroidActivityInjection[]

    protected PandroidDelegate pandroidDelegate;

    //tag::PandroidActivityInjection[]
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //create PandroidDelegate
        pandroidDelegate = createDelegate();
        pandroidDelegate.onInit(this);

    }

    protected PandroidDelegate createDelegate() {
        PandroidApplication pandroidApplication = PandroidApplication.get(this);
        //initialize Base PandroidDelegate
        return pandroidApplication.createBasePandroidDelegate();
    }
<commit_msg>docs (asciidoc) : remove old asciidoc tag<commit_after>package com.leroymerlin.pandroid.app;

import android.app.Fragment;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.leroymerlin.pandroid.PandroidApplication;
import com.leroymerlin.pandroid.app.delegate.PandroidDelegate;
import com.leroymerlin.pandroid.event.EventBusManager;
import com.leroymerlin.pandroid.event.FragmentOpener;
import com.leroymerlin.pandroid.event.OnBackListener;
import com.leroymerlin.pandroid.event.ReceiversProvider;
import com.leroymerlin.pandroid.future.CancellableActionDelegate;
import com.leroymerlin.pandroid.log.LogWrapper;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Inject;

/**
 * Created by florian on 05/11/14.
 * <p/>
 * PandroidActivity is a Activity that simplify the activity cycle of life by introducing onResume(ResumeState) method.
 * This Activity handle support toolbar. You just have to use LinearToolbarLayout as root view or an equivalent view.
 * Back event and fragment back stack changed are treated to.
 * If static field TAG is set PandroidActivity inject Broadcast receiver himself
 */
public class PandroidActivity extends AppCompatActivity implements CancellableActionDelegate.ActionDelegateRegister, ReceiversProvider {

    //tag::PandroidActivityInjection[]
    @Inject
    protected LogWrapper logWrapper;
    @Inject
    protected EventBusManager eventBusManager;

    //end::PandroidActivityInjection[]

    protected PandroidDelegate pandroidDelegate;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //create PandroidDelegate
        pandroidDelegate = createDelegate();
        pandroidDelegate.onInit(this);

    }

    protected PandroidDelegate createDelegate() {
        PandroidApplication pandroidApplication = PandroidApplication.get(this);
        //initialize Base PandroidDelegate
        return pandroidApplication.createBasePandroidDelegate();
    }

{'fraction_non_alphanumeric': 0.07313469588771239, 'fraction_numerical': 0.003447426742181729, 'mean_word_length': 4.819484240687679, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3024183', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1073, 'n_words': 272}