<commit_before>package com.rmh.rhoffman.cbtvelocity;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.blunderer.materialdesignlibrary.activities.Activity;
import com.blunderer.materialdesignlibrary.handlers.ActionBarDefaultHandler;
import com.blunderer.materialdesignlibrary.handlers.ActionBarHandler;
import com.dexafree.materialList.cards.BasicButtonsCard;
import com.dexafree.materialList.cards.OnButtonPressListener;
import com.dexafree.materialList.cards.SmallImageCard;
import com.dexafree.materialList.model.Card;
import com.dexafree.materialList.view.MaterialListView;


public class ContactUs extends Activity{

	private MaterialListView cardView;

	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);

		cardView = (MaterialListView) findViewById(R.id.card_list);

		setUpAddress();
		setUpPhone();
		setUpEmail();
	}

	@Override
	protected int getContentView(){
		return R.layout.activity_contact_us;
	}

	@Override
	protected ActionBarHandler getActionBarHandler(){
		return new ActionBarDefaultHandler(this);
	}

	private void setUpAddress(){
		SmallImageCard address = new SmallImageCard(this);
		address.setTitle("Mailing Address");
		address.setDescription(R.string.address);
		address.setDrawable(R.mipmap.ic_cbt);
		cardView.add(address);
	}

	private void setUpPhone(){
		BasicButtonsCard phone = new BasicButtonsCard(this);
		phone.setTitle("Phone Number");
		phone.setDescription("(330)-417-6267");
		phone.setLeftButtonText("Call");
		phone.setDividerVisible(true);
		phone.setOnLeftButtonPressedListener(new OnButtonPressListener(){
			@Override
			public void onButtonPressedListener(View view, Card card){
				Toast.makeText(App.getContext(), "Calling...", Toast.LENGTH_SHORT).show();
			}
		});
		cardView.add(phone);
	}

	private void setUpEmail(){
		BasicButtonsCard email = new BasicButtonsCard(this);
		email.setTitle("Email Address");
		email.setDescription("<EMAIL>");
		email.setLeftButtonText("Email");
		email.setDividerVisible(true);
		email.setOnLeftButtonPressedListener(new OnButtonPressListener(){
			@Override
			public void onButtonPressedListener(View view, Card card){
				Toast.makeText(App.getContext(), "Sending...", Toast.LENGTH_SHORT).show();
			}
		});
		cardView.add(email);
	}

}<commit_msg>updated contact us<commit_after>package com.rmh.rhoffman.cbtvelocity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.blunderer.materialdesignlibrary.activities.Activity;
import com.blunderer.materialdesignlibrary.handlers.ActionBarDefaultHandler;
import com.blunderer.materialdesignlibrary.handlers.ActionBarHandler;
import com.dexafree.materialList.cards.BasicButtonsCard;
import com.dexafree.materialList.cards.OnButtonPressListener;
import com.dexafree.materialList.cards.SmallImageCard;
import com.dexafree.materialList.model.Card;
import com.dexafree.materialList.view.MaterialListView;


public class ContactUs extends Activity{

	private MaterialListView cardView;

	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);

		cardView = (MaterialListView) findViewById(R.id.card_list);

		setUpAddress();
		setUpPhone();
		setUpEmail();
	}

	@Override
	protected int getContentView(){
		return R.layout.activity_contact_us;
	}

	@Override
	protected ActionBarHandler getActionBarHandler(){
		return new ActionBarDefaultHandler(this);
	}

	private void setUpAddress(){
		SmallImageCard address = new SmallImageCard(this);
		address.setTitle("Mailing Address");
		address.setDescription(R.string.address);
		address.setDrawable(R.mipmap.ic_cbt);
		cardView.add(address);
	}

	private void setUpPhone(){
		BasicButtonsCard phone = new BasicButtonsCard(this);
		phone.setTitle("Phone Number");
		phone.setDescription("(330)-477-6267");
		phone.setLeftButtonText("Call");
		phone.setDividerVisible(true);
		phone.setOnLeftButtonPressedListener(new OnButtonPressListener(){
			@Override
			public void onButtonPressedListener(View view, Card card){
				Intent call = new Intent(Intent.ACTION_DIAL);
				call.setData(Uri.parse("tel:3304776267"));
				startActivity(call);
			}
		});
		cardView.add(phone);
	}

	private void setUpEmail(){
		BasicButtonsCard email = new BasicButtonsCard(this);
		email.setTitle("Email Address");
		email.setDescription("<EMAIL>");
		email.setLeftButtonText("Email");
		email.setDividerVisible(true);
		email.setOnLeftButtonPressedListener(new OnButtonPressListener(){
			@Override
			public void onButtonPressedListener(View view, Card card){
				Intent email = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", "<EMAIL>", null));
				email.putExtra(Intent.EXTRA_SUBJECT, "Requesting Information");
				startActivity(Intent.createChooser(email, "Send Email"));
			}
		});
		cardView.add(email);
	}

}
{'fraction_non_alphanumeric': 0.11385431544582739, 'fraction_numerical': 0.006121199755152009, 'mean_word_length': 6.145772594752186, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '415855', 'n_tokens_mistral': 1635, 'n_tokens_neox': 1482, 'n_words': 255}