<commit_before>package group5.trackerexpress;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.Locale;
import java.util.UUID;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.location.Location;
import android.os.Bundle;
import android.text.Editable;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.PopupMenu;
import android.widget.TextView;
import android.widget.Toast;

import com.google.android.gms.maps.model.LatLng;

/**
 * The Class EditClaimActivity.
 */
/**
 * @author <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
 * @version Part 4
 *
 */
public class EditClaimActivity extends EditableActivity implements DatePickerFragment.TheListener{
	
	final String myFormat = "EEEE MMMM dd, yyyy"; //In which you need put here
	final SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);
	
	/** The Claim name. */
	private EditText ClaimName;
	
	/** The Claim title. */
	private EditText ClaimTitle;
	
	/** The Start date year. */
	private Button StartDateYear;
	
	/** The End date year. */
	private Button EndDateYear;
	
	/** The Description. */
	private EditText Description; 
	
	EditText DesName;
    EditText DesRea;
	
	/** The Tag name. */
	private EditText TagName;
	
	private Location location;
	
	/** The des list view. */
	private ListView desListView;
	
	/** The tag list view. */
	private ListView tagListView;
	
	/** The value. */
	private Editable value;
	
	/** The tags of claim. */
	final private HashSet<Tag> tagsOfClaim = new HashSet<Tag>();
	
	/** The check correctness. */
	private Boolean checkCorrectness;
	private Boolean comingFromMap = false;

	/** The Destination. */
	private ArrayList<Destination> destination;
	
	/** The adapter2. */
	private ArrayAdapter<String> adapter2;
	
	private ArrayAdapter<Tag> adapter;
	
	/** The new destination. */
	private final int newDestination = 1;
	
	/** The edit destination. */
	private final int editDestination = 2;
	
	private int clicked_destination = -1;
	
	/** The do nothing. */
	private final int doNothing = 5;
	
	private Date startDate; 
	
	private Date endDate;
	
	/** The my calendar. */
	private Calendar myCalendar;
	
	private Calendar myCalendar2;
	
	/**
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_edit_claim);
		
		/**Initialize the dummy destination 2d array which will 
		be used to store destination and reason of travel for both edit claim and create new claim.*/
		
		destination = new ArrayList<Destination>();
		
		final Claim newclaim = new Claim("");
		
		/**
		 *  Assign each EditText to a variable.
		 */
		
		myCalendar = Calendar.getInstance();
		myCalendar2 = Calendar.getInstance();
		
		ClaimName = (EditText) findViewById(R.id.editClaimName);	
		limitLength(ClaimName, 20);
		ClaimName.requestFocus();
		
		ClaimTitle = (EditText) findViewById(R.id.editClaimTitle);
		limitLength(ClaimTitle, 20);
		
<<<<<<< HEAD
=======
		StartDateYear = (Button) findViewById(R.id.editClaimStartDateYear);

		EndDateYear = (Button) findViewById(R.id.editClaimEndDateYear);

>>>>>>> 414745fa09f80138444fcdaca05c525dfd376fe2<commit_msg>may have pushed terrible<commit_after>package group5.trackerexpress;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.Locale;
import java.util.UUID;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.location.Location;
import android.os.Bundle;
import android.text.Editable;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.PopupMenu;
import android.widget.TextView;
import android.widget.Toast;

import com.google.android.gms.maps.model.LatLng;

/**
 * The Class EditClaimActivity.
 */
/**
 * @author <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
 * @version Part 4
 *
 */
public class EditClaimActivity extends EditableActivity implements DatePickerFragment.TheListener{
	
	final String myFormat = "EEEE MMMM dd, yyyy"; //In which you need put here
	final SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);
	
	/** The Claim name. */
	private EditText ClaimName;
	
	/** The Claim title. */
	private EditText ClaimTitle;
	
	/** The Start date year. */
	private Button StartDateYear;
	
	/** The End date year. */
	private Button EndDateYear;
	
	/** The Description. */
	private EditText Description; 
	
	EditText DesName;
    EditText DesRea;
	
	/** The Tag name. */
	private EditText TagName;
	
	private Location location;
	
	/** The des list view. */
	private ListView desListView;
	
	/** The tag list view. */
	private ListView tagListView;
	
	/** The value. */
	private Editable value;
	
	/** The tags of claim. */
	final private HashSet<Tag> tagsOfClaim = new HashSet<Tag>();
	
	/** The check correctness. */
	private Boolean checkCorrectness;
	private Boolean comingFromMap = false;

	/** The Destination. */
	private ArrayList<Destination> destination;
	
	/** The adapter2. */
	private ArrayAdapter<String> adapter2;
	
	private ArrayAdapter<Tag> adapter;
	
	/** The new destination. */
	private final int newDestination = 1;
	
	/** The edit destination. */
	private final int editDestination = 2;
	
	private int clicked_destination = -1;
	
	/** The do nothing. */
	private final int doNothing = 5;
	
	private Date startDate; 
	
	private Date endDate;
	
	/** The my calendar. */
	private Calendar myCalendar;
	
	private Calendar myCalendar2;
	
	/**
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_edit_claim);
		
		/**Initialize the dummy destination 2d array which will 
		be used to store destination and reason of travel for both edit claim and create new claim.*/
		
		destination = new ArrayList<Destination>();
		
		final Claim newclaim = new Claim("");
		
		/**
		 *  Assign each EditText to a variable.
		 */
		
		myCalendar = Calendar.getInstance();
		myCalendar2 = Calendar.getInstance();
		
		ClaimName = (EditText) findViewById(R.id.editClaimName);	
		limitLength(ClaimName, 20);
		ClaimName.requestFocus();
		
		ClaimTitle = (EditText) findViewById(R.id.editClaimTitle);
		limitLength(ClaimTitle, 20);
		

		StartDateYear = (Button) findViewById(R.id.editClaimStartDateYear);

		EndDateYear = (Button) findViewById(R.id.editClaimEndDateYear);

{'fraction_non_alphanumeric': 0.10951270088128565, 'fraction_numerical': 0.007128045619491965, 'mean_word_length': 4.292866941015089, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, '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': '2013857', 'n_tokens_mistral': 2451, 'n_tokens_neox': 2182, 'n_words': 634}