<commit_before>package co.timecrypt.android

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.Toast
import co.timecrypt.android.v2.api.TimecryptMessage
import kotlinx.android.synthetic.main.activity_message.*

/**
 * The activity responsible for creating Timecrypt messages.
 */
class MessageActivity : AppCompatActivity(), View.OnClickListener {

    // val TAG: String = MainActivity::class.java.simpleName
    //
    // val mRetrofit: Retrofit = Retrofit.Builder()
    //         .baseUrl("https://timecrypt-angrybyte.rhcloud.com/v2/")
    //         .addConverterFactory(MoshiConverterFactory.create())
    //         .build()
    // val mTimecryptApi: TimecryptRestApi = mRetrofit.create(TimecryptRestApi::class.java)

    private var message: TimecryptMessage? = null
    private var swipeAdapter: SwipeAdapter? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_message)

        message = TimecryptMessage("")
        swipeAdapter = SwipeAdapter(supportFragmentManager, message!!)
        viewPager.adapter = swipeAdapter
        viewPager.setPageTransformer(false, FadePageTransformer())

        buttonCreate.setOnClickListener(this)
        listOf(tabText, tabViews, tabDestructDate, tabDelivery).forEachIndexed {
            i, view ->
            view.setOnClickListener {
                viewPager.setCurrentItem(i, true)
            }
        }
    }

    override fun onDestroy() {
        super.onDestroy()
        swipeAdapter?.cleanup()
    }

    override fun onClick(view: View) {
        when (view.id) {
            buttonCreate.id -> Toast.makeText(this, "Message is ${swipeAdapter?.message}", Toast.LENGTH_LONG).show()
        }
    }

}
<commit_msg>Reversing the fade drawing order<commit_after>package co.timecrypt.android

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.Toast
import co.timecrypt.android.v2.api.TimecryptMessage
import kotlinx.android.synthetic.main.activity_message.*

/**
 * The activity responsible for creating Timecrypt messages.
 */
class MessageActivity : AppCompatActivity(), View.OnClickListener {

    // val TAG: String = MainActivity::class.java.simpleName
    //
    // val mRetrofit: Retrofit = Retrofit.Builder()
    //         .baseUrl("https://timecrypt-angrybyte.rhcloud.com/v2/")
    //         .addConverterFactory(MoshiConverterFactory.create())
    //         .build()
    // val mTimecryptApi: TimecryptRestApi = mRetrofit.create(TimecryptRestApi::class.java)

    private var message: TimecryptMessage? = null
    private var swipeAdapter: SwipeAdapter? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_message)

        message = TimecryptMessage("")
        swipeAdapter = SwipeAdapter(supportFragmentManager, message!!)
        viewPager.adapter = swipeAdapter
        viewPager.setPageTransformer(true, FadePageTransformer())

        buttonCreate.setOnClickListener(this)
        listOf(tabText, tabViews, tabDestructDate, tabDelivery).forEachIndexed {
            i, view ->
            view.setOnClickListener {
                viewPager.setCurrentItem(i, true)
            }
        }
    }

    override fun onDestroy() {
        super.onDestroy()
        swipeAdapter?.cleanup()
    }

    override fun onClick(view: View) {
        when (view.id) {
            buttonCreate.id -> Toast.makeText(this, "Message is ${swipeAdapter?.message}", Toast.LENGTH_LONG).show()
        }
    }

}

{'fraction_non_alphanumeric': 0.10469508904479223, 'fraction_numerical': 0.0016189962223421479, 'mean_word_length': 2.9562433297758806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '6125976', 'n_tokens_mistral': 1083, 'n_tokens_neox': 1026, 'n_words': 188}