<commit_before>package ${packageName}.ui.activity${dotSubpackage};

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import ${packageName}.presentation.view${dotSubpackage}.${viewName};
import ${packageName}.presentation.presenter${dotSubpackage}.${presenterName};

import ${superClassFqcn};

<#if packageName??>
import ${packageName}.R;
</#if>

import com.arellomobile.mvp.presenter.InjectPresenter;
<#if createProvidesMethod>
import com.arellomobile.mvp.presenter.ProvidePresenter;
</#if>

public class ${className} extends ${superClassName} implements ${viewName} {
    public static final String TAG = "${className}";
	@InjectPresenter
	${presenterName} m${presenterName};

    <#if createProvidesMethod>
    @ProvidePresenter
    ${presenterName} provide() {
        //TODO provide your ${presenterName} here;
        return null;
    }
    </#if>

	<#if includeFactory>
    public static Intent getIntent(final Context context) {
        Intent intent = new Intent(context, ${className}.class);

        return intent;
    }
	</#if>

	<#if includeLayout>

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.${activityName});<commit_msg>[feature] Java templates: return default constructor in provide method<commit_after>package ${packageName}.ui.activity${dotSubpackage};

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import ${packageName}.presentation.view${dotSubpackage}.${viewName};
import ${packageName}.presentation.presenter${dotSubpackage}.${presenterName};

import ${superClassFqcn};

<#if packageName??>
import ${packageName}.R;
</#if>

import com.arellomobile.mvp.presenter.InjectPresenter;
<#if createProvidesMethod>
import com.arellomobile.mvp.presenter.ProvidePresenter;
</#if>

public class ${className} extends ${superClassName} implements ${viewName} {
    public static final String TAG = "${className}";
	@InjectPresenter
	${presenterName} m${presenterName};

    <#if createProvidesMethod>
    @ProvidePresenter
    ${presenterName} providePresenter() {
        return new ${presenterName}();
    }
    </#if>

	<#if includeFactory>
    public static Intent getIntent(final Context context) {
        Intent intent = new Intent(context, ${className}.class);

        return intent;
    }
	</#if>

	<#if includeLayout>

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.${activityName});
{'fraction_non_alphanumeric': 0.13296832225263983, 'fraction_numerical': 0.0, 'mean_word_length': 5.254278728606357, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4445952', 'n_tokens_mistral': 779, 'n_tokens_neox': 755, 'n_words': 163}