<commit_before>package agilec.ikeaswipe;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;


/**

 */
public class ArButtonFragment extends Fragment {

    private Button ArButton;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_ar_button, container, false);
        ArButton = (Button) view.findViewById(R.id.Ar_button_all);
        ArButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i("ArButtonClick", "Pushed it!");
                Intent ArIntent = new Intent(getActivity(), ArViewFindAll.class);
                startActivity(ArIntent);
            }
        });<commit_msg>Added comments to the AR fragment class<commit_after>package agilec.ikeaswipe;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;


/**
 * @user @ingelhag @antonosterblad
 * Simple layout to start a new AR activity when clicking on a button.
 * TODO design
 */
public class ArButtonFragment extends Fragment {

    private Button ArButton;

    /**
     * @user @ingelhag @antonosterblad
     * Create a view with fragment_ar_button.
     * Sets onClickListener on the button.
     * @param inflater
     * @param container
     * @param savedInstanceState
     * @return view
     */
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_ar_button, container, false);
        ArButton = (Button) view.findViewById(R.id.Ar_button_all);
        ArButton.setOnClickListener(new View.OnClickListener() {
            /**
             * @user @ingelhag @antonosterblad
             * Start activity ArViewFindAll.
             * @param v
             */
            // TODO refactor class names to define differences between activities and fragments.
            @Override
            public void onClick(View v) {
                Log.i("ArButtonClick", "Pushed it!");
                Intent ArIntent = new Intent(getActivity(), ArViewFindAll.class);
                startActivity(ArIntent);
            }
        });
{'fraction_non_alphanumeric': 0.09010287335934729, 'fraction_numerical': 0.000709471443774388, 'mean_word_length': 2.8315217391304346, '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': '3020039', 'n_tokens_mistral': 772, 'n_tokens_neox': 733, 'n_words': 202}