<commit_before>package org.stepic.droid.ui.activities

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.webkit.WebView
import android.webkit.WebViewClient
import org.stepic.droid.R
import org.stepic.droid.base.FragmentActivityBase
import org.stepic.droid.util.AppConstants
import kotlinx.android.synthetic.main.activity_social_auth.*
import kotlinx.android.synthetic.main.panel_custom_action_bar.*
import kotlinx.android.synthetic.main.progress_bar_on_empty_screen.*


class SocialAuthActivity  : FragmentActivityBase() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_social_auth)
        overridePendingTransition(R.anim.slide_in_from_bottom, R.anim.no_transition)


        loadProgressbar.visibility = View.VISIBLE
        socialAuthWebView.webViewClient = object : WebViewClient() {
            override fun shouldOverrideUrlLoading(view: WebView?, url: String?): Boolean {
                if (url != null) {
                    val uri = Uri.parse(url)
                    if (url.startsWith(AppConstants.APP_SCHEME)) {
                        this@SocialAuthActivity.setResult(RESULT_OK, Intent().setData(uri))
                        this@SocialAuthActivity.finish()

                    } else if (uri.getQueryParameter(AppConstants.QUERY_ERROR) == AppConstants.ERROR_SOCIAL_AUTH_WITH_EXISTING_EMAIL
                            && uri.getQueryParameter(AppConstants.KEY_EMAIL_BUNDLE) != null) {

                        this@SocialAuthActivity.setResult(RESULT_CANCELED, Intent().setData(uri))
                        this@SocialAuthActivity.finish()
                    }
                }
                return false
            }

            override fun onPageFinished(view: WebView?, url: String?) {
                socialAuthWebView.visibility = View.VISIBLE
                loadProgressbar.visibility = View.GONE
            }
        }
        socialAuthWebView.settings.javaScriptEnabled = true

        if (savedInstanceState == null) {
            val authUrl = intent.data.toString()
            socialAuthWebView.loadUrl(authUrl)
        } else {
            socialAuthWebView.restoreState(savedInstanceState)
        }

        actionbarCloseButtonLayout.setOnClickListener { finish() }
    }
<commit_msg>fix renaming problem (SocialAuthActivity.kt)<commit_after>package org.stepic.droid.ui.activities

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.webkit.WebView
import android.webkit.WebViewClient
import kotlinx.android.synthetic.main.activity_social_auth.*
import kotlinx.android.synthetic.main.panel_custom_action_bar.*
import kotlinx.android.synthetic.main.progress_bar_on_empty_screen.*
import org.stepic.droid.R
import org.stepic.droid.base.FragmentActivityBase
import org.stepic.droid.util.AppConstants


class SocialAuthActivity  : FragmentActivityBase() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_social_auth)
        overridePendingTransition(R.anim.slide_in_from_bottom, R.anim.no_transition)


        loadProgressbarOnEmptyScreen.visibility = View.VISIBLE
        socialAuthWebView.webViewClient = object : WebViewClient() {
            override fun shouldOverrideUrlLoading(view: WebView?, url: String?): Boolean {
                if (url != null) {
                    val uri = Uri.parse(url)
                    if (url.startsWith(AppConstants.APP_SCHEME)) {
                        this@SocialAuthActivity.setResult(RESULT_OK, Intent().setData(uri))
                        this@SocialAuthActivity.finish()

                    } else if (uri.getQueryParameter(AppConstants.QUERY_ERROR) == AppConstants.ERROR_SOCIAL_AUTH_WITH_EXISTING_EMAIL
                            && uri.getQueryParameter(AppConstants.KEY_EMAIL_BUNDLE) != null) {

                        this@SocialAuthActivity.setResult(RESULT_CANCELED, Intent().setData(uri))
                        this@SocialAuthActivity.finish()
                    }
                }
                return false
            }

            override fun onPageFinished(view: WebView?, url: String?) {
                socialAuthWebView.visibility = View.VISIBLE
                loadProgressbarOnEmptyScreen.visibility = View.GONE
            }
        }
        socialAuthWebView.settings.javaScriptEnabled = true

        if (savedInstanceState == null) {
            val authUrl = intent.data.toString()
            socialAuthWebView.loadUrl(authUrl)
        } else {
            socialAuthWebView.restoreState(savedInstanceState)
        }

        actionbarCloseButtonLayout.setOnClickListener { finish() }
    }

{'fraction_non_alphanumeric': 0.08276573787409701, 'fraction_numerical': 0.0, 'mean_word_length': 2.539810080350621, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '6988590', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1267, 'n_words': 191}