<commit_before>package agency.tango.materialintro;

import agency.tango.materialintroscreen.MaterialIntroActivity;
import agency.tango.materialintroscreen.SlideFragmentBuilder;
import android.Manifest;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.Toast;

public class IntroActivity extends MaterialIntroActivity
{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        enableLastSlideAlphaExitTransition(true);

        addSlide(new SlideFragmentBuilder()
                .primaryColor(color(android.R.color.holo_red_light))
                .secondaryColor(color(android.R.color.holo_green_light))
                .image(agency.tango.materialintroscreen.R.drawable.ic_next)
                .title("title 1")
                .description("Description 1")
                .messageButtonText("lol")
                .messageButtonClickListener(new View.OnClickListener()
                {
                    @Override
                    public void onClick(View v)
                    {
                        Toast.makeText(getApplicationContext(), "I really love android", Toast.LENGTH_SHORT).show();
                    }
                })
                .build());

        addSlide(new SlideFragmentBuilder()
                .primaryColor(color(android.R.color.holo_blue_dark))
                .secondaryColor(color(android.R.color.holo_blue_bright))
                .title("title 2")
                .description("Description 2")
                .build());

        addSlide(new SlideFragmentBuilder()
                .primaryColor(color(android.R.color.holo_green_dark))
                .secondaryColor(color(android.R.color.holo_green_light))
                .possiblePermissions(new String[]{Manifest.permission.CALL_PHONE, Manifest.permission.READ_SMS})
                .neededPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION})
                .image(agency.tango.materialintroscreen.R.drawable.ic_next)
                .messageButtonText("Android")
                .messageButtonClickListener(new View.OnClickListener()
                {
                    @Override
                    public void onClick(View v)
                    {
                        Toast.makeText(getApplicationContext(), "Hate eating apples.", Toast.LENGTH_SHORT).show();
                    }
                })
                .title("title 3")
                .description("Description 3")
                .build());


        addSlide(new SlideFragmentBuilder()
                .primaryColor(color(android.R.color.holo_blue_dark))
                .secondaryColor(color(android.R.color.holo_blue_bright))
                .title("title 4")
                .description("Description 4")
                .build());
    }

    public int color(int res)
    {
        return ContextCompat.getColor(this, res);
    }

}
<commit_msg>Initial commit<commit_after>package agency.tango.materialintro;

import agency.tango.materialintroscreen.MaterialIntroActivity;
import agency.tango.materialintroscreen.SlideFragmentBuilder;
import android.Manifest;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.Toast;

public class IntroActivity extends MaterialIntroActivity
{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        enableLastSlideAlphaExitTransition(true);

        addSlide(new SlideFragmentBuilder()
                .primaryColor(color(android.R.color.holo_red_light))
                .secondaryColor(color(android.R.color.holo_green_light))
                .image(agency.tango.materialintroscreen.R.drawable.ic_next)
                .title("title 1")
                .description("Description 1")
                .messageButtonText("lol")
                .messageButtonClickListener(new View.OnClickListener()
                {
                    @Override
                    public void onClick(View v)
                    {
                        Toast.makeText(getApplicationContext(), "I really love android", Toast.LENGTH_SHORT).show();
                    }
                })
                .build());

        addSlide(new SlideFragmentBuilder()
                .primaryColor(color(android.R.color.holo_blue_dark))
                .secondaryColor(color(android.R.color.holo_blue_bright))
                .title("title 2")
                .description("Description 2")
                .build());

        addSlide(new SlideFragmentBuilder()
                .primaryColor(color(android.R.color.holo_green_dark))
                .secondaryColor(color(android.R.color.holo_green_light))
                .possiblePermissions(new String[]{Manifest.permission.CALL_PHONE, Manifest.permission.READ_SMS})
                .neededPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION})
                .image(agency.tango.materialintroscreen.R.drawable.ic_next)
                .messageButtonText("Android")
                .messageButtonClickListener(new View.OnClickListener()
                {
                    @Override
                    public void onClick(View v)
                    {
                        Toast.makeText(getApplicationContext(), "Hate eating apples.", Toast.LENGTH_SHORT).show();
                    }
                })
                .title("title 3")
                .description("Description 3")
                .build());


        addSlide(new SlideFragmentBuilder()
                .primaryColor(color(android.R.color.holo_blue_dark))
                .secondaryColor(color(android.R.color.holo_blue_bright))
                .title("title 4")
                .description("Description 4")
                .build());
    }

    public int color(int res)
    {
        return ContextCompat.getColor(this, res);
    }

}

{'fraction_non_alphanumeric': 0.09691912708600771, 'fraction_numerical': 0.002888318356867779, 'mean_word_length': 1.9865836128413992, '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': '7486678', 'n_tokens_mistral': 1671, 'n_tokens_neox': 1529, 'n_words': 221}