<commit_before>package net.alhazmy13.gota;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.view.WindowManager;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Alhazmy13 on 11/25/15.
 * Gota
 */
public class GotaActivity extends Activity {

   // private Activity mContext;
    final private int REQUEST_CODE_ASK_PERMISSIONS = 1;
    private List<String> mPermissionsList;
    private ArrayList<String> permissions;
    private Map<String, Integer> perms = new HashMap<String, Integer>();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
      //  mContext=(Activity)Gota.context;
        permissions = getIntent().getStringArrayListExtra("permissions");
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
        init();
        checkPermissions();



    }

    private void init() {
        mPermissionsList=new ArrayList<>();

        for(int i=0;i<permissions.size();i++){
            perms.put(permissions.get(i), PackageManager.PERMISSION_GRANTED);
        }
        for(int i=0;i<permissions.size();i++){
            addPermission(mPermissionsList, permissions.get(i));<commit_msg>Fix unFinished Activity<commit_after>package net.alhazmy13.gota;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.view.WindowManager;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Alhazmy13 on 11/25/15.
 * Gota
 */
public class GotaActivity extends Activity {

   // private Activity mContext; 
    final private int REQUEST_CODE_ASK_PERMISSIONS = 1;
    private List<String> mPermissionsList;
    private ArrayList<String> permissions;
    private Map<String, Integer> perms = new HashMap<String, Integer>();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
      //  mContext=(Activity)Gota.context;
        permissions = getIntent().getStringArrayListExtra("permissions");
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
        init();
        checkPermissions();



    }

    private void init() {
        mPermissionsList=new ArrayList<>();

        for(int i=0;i<permissions.size();i++){
            perms.put(permissions.get(i), PackageManager.PERMISSION_GRANTED);
        }
        for(int i=0;i<permissions.size();i++){
            addPermission(mPermissionsList, permissions.get(i));
{'fraction_non_alphanumeric': 0.11450649806814191, 'fraction_numerical': 0.009834913944502985, 'mean_word_length': 3.8435374149659864, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 13, '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': '1690048', 'n_tokens_mistral': 848, 'n_tokens_neox': 820, 'n_words': 163}