<commit_before>package com.hello.hegberg.warondemand;

import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;

public class MyProducts extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_products);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
    }
    //initialize buttons
    Button view = (Button) findViewById(R.id.View);
    Button add = (Button) findViewById(R.id.Add);
    Button edit = (Button) findViewById(R.id.Edit);
    Button delete = (Button) findViewById(R.id.Delete);
    Button pendingBids = (Button) findViewById(R.id.pendingBids);
    Button loanedProducts = (Button) findViewById(R.id.loanedProducts);
    Button recentReturns = (Button) findViewById(R.id.recentReturns);
    Button back = (Button) findViewById(R.id.back);

    //when view is clicked go to list of your products, where you can click a specific product
    view.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'view' is clicked.
            startActivity(new Intent(MainActivity.this, <InsertClass>.class));
        }
    };

    // when add is clicked go to screen to add
    add.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'add' is clicked.
            startActivity(new Intent(MainActivity.this, <InsertClass>.class));
        }
    };
    // when edit is clicked, go to a list of your products, where you can edit a specific product
    edit.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'edit' is clicked.
            startActivity(new Intent(MainActivity.this, <InsertClass>.class));
        }
    };

    // when edit is clicked, go to a list of your products, where you can delete a specific product
    delete.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'delete' is clicked.
            startActivity(new Intent(MainActivity.this, <InsertClass>.class));
        }
    };
    //when pendingBids is clicked, go to list of pending bids.
    pendingBids.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'pending bids' is clicked.
            startActivity(new Intent(MainActivity.this, <InsertClass>.class));
        }
    };

    // when loaned products is clicked, go to list of loaned products
    loanedProducts.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'loaned products' is clicked.
            startActivity(new Intent(MainActivity.this, <InsertClass>.class));
        }
    };
    //when recentReturns is clicked go to list of recent returns.
    recentReturns.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'recent returns' is clicked.
            startActivity(new Intent(MainActivity.this, <InsertClass>.class));
        }
    };

    //when back is clicked go back to account controller
    back.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            startActivity(new Intent(MainActivity.this, AccountController.class));
        }
    };
}<commit_msg>fixed issue with buttons in MyProducts<commit_after>package com.hello.hegberg.warondemand;

import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;

public class MyProducts extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_products);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
    }
    //initialize buttons
    Button view = (Button) findViewById(R.id.View);
    Button add = (Button) findViewById(R.id.Add);
    Button edit = (Button) findViewById(R.id.Edit);
    Button delete = (Button) findViewById(R.id.Delete);
    Button pendingBids = (Button) findViewById(R.id.pendingBids);
    Button loanedProducts = (Button) findViewById(R.id.loanedProducts);
    Button recentReturns = (Button) findViewById(R.id.recentReturns);
    Button back = (Button) findViewById(R.id.back);

    //when view is clicked go to list of your products, where you can click a specific product
    view.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'view' is clicked.
            startActivity(new Intent(MyProducts.this, <InsertClass>.class));
        }
    };

    // when add is clicked go to screen to add
    add.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'add' is clicked.
            startActivity(new Intent(MyProducts.this, <InsertClass>.class));
        }
    };
    // when edit is clicked, go to a list of your products, where you can edit a specific product
    edit.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'edit' is clicked.
            startActivity(new Intent(MyProducts.this, <InsertClass>.class));
        }
    };

    // when edit is clicked, go to a list of your products, where you can delete a specific product
    delete.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'delete' is clicked.
            startActivity(new Intent(MyProducts.this, <InsertClass>.class));
        }
    };
    //when pendingBids is clicked, go to list of pending bids.
    pendingBids.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'pending bids' is clicked.
            startActivity(new Intent(MyProducts.this, <InsertClass>.class));
        }
    };

    // when loaned products is clicked, go to list of loaned products
    loanedProducts.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'loaned products' is clicked.
            startActivity(new Intent(MyProducts.this, <InsertClass>.class));
        }
    };
    //when recentReturns is clicked go to list of recent returns.
    recentReturns.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //TODO: insert class to go to when 'recent returns' is clicked.
            startActivity(new Intent(MyProducts.this, <InsertClass>.class));
        }
    };

    //when back is clicked go back to account controller
    back.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            startActivity(new Intent(MyProducts.this, AccountController.class));
        }
    };
}
{'fraction_non_alphanumeric': 0.09511921108475846, 'fraction_numerical': 0.0004993134440144801, 'mean_word_length': 2.807984790874525, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '7662461', 'n_tokens_mistral': 2158, 'n_tokens_neox': 2067, 'n_words': 653}