<commit_before>package com.procleus.brime.login;

import android.app.NotificationManager;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.location.Location;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.ServerError;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.HttpHeaderParser;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.procleus.brime.ui.MainActivity;
import com.procleus.brime.R;
import com.procleus.brime.utils.CustomButton;
import com.procleus.brime.utils.CustomEditText;
import com.basgeekball.awesomevalidation.AwesomeValidation;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import static com.basgeekball.awesomevalidation.ValidationStyle.UNDERLABEL;


public class SigninActivity extends AppCompatActivity {
    public static final String PREF = "com.procleus.brime";
    public static final String emailpref = "null";
    public static final String passwordpref = "<PASSWORD>";
    public static final String loggedin = "IsLoggedIn";
    private static final int RC_SIGN_IN = 9001;
    private static final String TAG = "SignInActivity";
    public SharedPreferences session;
    private String msg;
    Location mLastLocation = null;
    String longi, lati;
    ProgressDialog progressDialog;
    int responseOp;
    CustomButton b ;
    CustomEditText etun, etpass;

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

        AwesomeValidation mAwesomeValidation = new AwesomeValidation(UNDERLABEL);
        mAwesomeValidation.setContext(this);  // mandatory for UNDERLABEL style

        setContentView(R.layout.activity_signin);
        etun = (CustomEditText) findViewById(R.id.editText);
        etpass = (CustomEditText) findViewById(R.id.editText2);
        CustomButton stl_btn = (CustomButton) findViewById(R.id.stl_btn);

        stl_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(SigninActivity.this, MainActivity.class);
                startActivity(i);
                finish();
            }
        });

        CustomButton btlog = (CustomButton) findViewById(R.id.log_btn);
        btlog.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(!cvalidate(etun.getText().toString(),etpass.getText().toString())){
                    return  ;
                }
                progressDialog = new ProgressDialog(SigninActivity.this, R.style.Dialog);
                progressDialog.setIndeterminate(true);
                progressDialog.setMessage("Login ...");
                logIn( etun.getText().toString(),etpass.getText().toString());

            }
        });
    }<commit_msg>Removed unused imports and code<commit_after>package com.procleus.brime.login;

import android.app.NotificationManager;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.location.Location;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.ServerError;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.HttpHeaderParser;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.procleus.brime.ui.MainActivity;
import com.procleus.brime.R;
import com.procleus.brime.utils.CustomButton;
import com.procleus.brime.utils.CustomEditText;
import com.basgeekball.awesomevalidation.AwesomeValidation;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import static com.basgeekball.awesomevalidation.ValidationStyle.UNDERLABEL;


public class SigninActivity extends AppCompatActivity {
    public static final String PREF = "com.procleus.brime";
    public static final String emailpref = "null";
    public static final String passwordpref = "<PASSWORD>";
    public static final String loggedin = "IsLoggedIn";
    private static final int RC_SIGN_IN = 9001;
    private static final String TAG = "SignInActivity";
    public SharedPreferences session;
    private String msg;
    Location mLastLocation = null;
    String longi, lati;
    ProgressDialog progressDialog;
    int responseOp;
    CustomButton b ;
    CustomEditText etun, etpass;

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

        setContentView(R.layout.activity_signin);
        etun = (CustomEditText) findViewById(R.id.editText);
        etpass = (CustomEditText) findViewById(R.id.editText2);
        CustomButton stl_btn = (CustomButton) findViewById(R.id.stl_btn);

        stl_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(SigninActivity.this, MainActivity.class);
                startActivity(i);
                finish();
            }
        });

        CustomButton btlog = (CustomButton) findViewById(R.id.log_btn);
        btlog.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(!cvalidate(etun.getText().toString(),etpass.getText().toString())){
                    return  ;
                }
                progressDialog = new ProgressDialog(SigninActivity.this, R.style.Dialog);
                progressDialog.setIndeterminate(true);
                progressDialog.setMessage("Login ...");
                logIn( etun.getText().toString(),etpass.getText().toString());

            }
        });
    }
{'fraction_non_alphanumeric': 0.09523809523809523, 'fraction_numerical': 0.0020768431983385254, 'mean_word_length': 3.479734219269103, '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': '4229011', 'n_tokens_mistral': 1895, 'n_tokens_neox': 1830, 'n_words': 379}