<commit_before>package net.yasme.android.ui;

import android.app.Fragment;
import android.app.ListFragment;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Log;
import android.util.SparseBooleanArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;

import net.yasme.android.R;
import net.yasme.android.asyncTasks.CreateChatTask;
import net.yasme.android.asyncTasks.GetAllUsersTask;
import net.yasme.android.connection.UserTask;
import net.yasme.android.entities.User;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by bene on 22.06.14.
 */
public class InviteToChatFragment extends Fragment implements View.OnClickListener {

    private AbstractYasmeActivity activity;
    private List<User> users;
    private ListView chatPartners;
    private Button startChat;
    private ArrayAdapter<String> adapter;

    public InviteToChatFragment() { }


    public AbstractYasmeActivity getAbstractYasmeActivity() {
        return activity;
    }


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

        // TODO Remove that temporary stuff
        Drawable d;
        try {
            d = UserTask.getInstance().getProfilePicture(8);
        } catch (Exception e) {
            e.printStackTrace();
        }

        activity = (AbstractYasmeActivity) getActivity();
        findViewsById();
        new GetAllUsersTask(activity.getApplicationContext(), this).execute(Long.toString(activity.getUserId()), activity.getAccessToken());
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_invite_to_chat, container, false);
        return rootView;<commit_msg>Remove irrelevant call to get profile picture<commit_after>package net.yasme.android.ui;

import android.app.Fragment;
import android.app.ListFragment;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Log;
import android.util.SparseBooleanArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;

import net.yasme.android.R;
import net.yasme.android.asyncTasks.CreateChatTask;
import net.yasme.android.asyncTasks.GetAllUsersTask;
import net.yasme.android.connection.UserTask;
import net.yasme.android.entities.User;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by bene on 22.06.14.
 */
public class InviteToChatFragment extends Fragment implements View.OnClickListener {

    private AbstractYasmeActivity activity;
    private List<User> users;
    private ListView chatPartners;
    private Button startChat;
    private ArrayAdapter<String> adapter;

    public InviteToChatFragment() { }


    public AbstractYasmeActivity getAbstractYasmeActivity() {
        return activity;
    }


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

        activity = (AbstractYasmeActivity) getActivity();
        findViewsById();
        new GetAllUsersTask(activity.getApplicationContext(), this).execute(Long.toString(activity.getUserId()), activity.getAccessToken());
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_invite_to_chat, container, false);
        return rootView;
{'fraction_non_alphanumeric': 0.08881494753007423, 'fraction_numerical': 0.0033273611466598414, 'mean_word_length': 4.016688061617458, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6440317', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1048, 'n_words': 235}