<commit_before>package me.menext.menext;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;

import java.util.HashMap;
import java.util.List;

public class AddPartyFragment extends Fragment {
    MainActivity activity;
    private View view;
    EditText partyId;
    EditText partyName;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);

        view = inflater.inflate(R.layout.add_party_fragment, container, false);

        partyId = (EditText)view.findViewById(R.id.join_party_partyId);
        partyName = (EditText)view.findViewById(R.id.add_party_partyName);

        Button joinButton = (Button)view.findViewById(R.id.join_party_join);
        Button createButton = (Button)view.findViewById(R.id.add_party_join);


        // For Creating New Parties
        createButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(!partyName.getText().equals("")) {
                    activity.showCreatePopup(partyName.getText().toString());
                }
            }
        });

        // For Joining Existing Parties
        joinButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(!partyId.getText().equals("")) {
                    activity.showJoinPopup(Integer.valueOf(partyId.getText().toString()));
                }
            }
        });
        Button qrButton = (Button)view.findViewById(R.id.join_party_scan);

        qrButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                activity.startQr();
            }
        });


        return view;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        activity = (MainActivity) getActivity();
    }
}<commit_msg>Modified the Add Party Fragment<commit_after>package me.menext.menext;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;

import java.util.HashMap;
import java.util.List;

public class AddPartyFragment extends Fragment {
    MainActivity activity;
    private View view;
    EditText partyId;
    EditText partyName;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);

        view = inflater.inflate(R.layout.add_party_fragment, container, false);

        partyId = (EditText)view.findViewById(R.id.join_party_partyId);
        partyName = (EditText)view.findViewById(R.id.add_party_partyName);

        Button joinButton = (Button)view.findViewById(R.id.join_party_join);
        Button createButton = (Button)view.findViewById(R.id.add_party_join);


        // For Creating New Parties
        createButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(!partyName.getText().toString().equals("")) {
                    activity.showCreatePopup(partyName.getText().toString());
                }
            }
        });

        // For Joining Existing Parties
        joinButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(!partyId.getText().toString().equals("")) {
                    activity.showJoinPopup(Integer.valueOf(partyId.getText().toString()));
                }
            }
        });
        Button qrButton = (Button)view.findViewById(R.id.join_party_scan);

        qrButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                activity.startQr();
            }
        });


        return view;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        activity = (MainActivity) getActivity();
    }
}
{'fraction_non_alphanumeric': 0.10027526543452615, 'fraction_numerical': 0.0007864726700747149, 'mean_word_length': 2.8684410646387835, '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': '6613648', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1299, 'n_words': 254}