<commit_before>/***********************************************************************
 * our group created this class (info) and the following methods in main
 * getEventClickFlag()/setEventClickFlag()/getEname()
 * getElocation()/getObjectEvent()/addEventToList(WeekViewEvent event)/
 * removeEventFromList(WeekViewEvent event)
 * our group created the XML layout info and all interaction between info and main class
 * the info class creates the user input form
 * it calls the date and time pickers captures the user input
 * and creates an WeekViewEvent and passes it to an array list
 * List<WeekViewEvent> mEventList = new ArrayList<>() in the MainActivity
 * MainActivy calls the methods in the library to display the calendar
 * ************************************************************************
 * The display is handled by alamkanak weekview library
 * Created by <NAME> on 7/21/2014.
 * Website: http://alamkanak.github.io/
 *************************************************************************/

package com.alamkanak.weekview.sample;

import android.app.AlertDialog;
import android.app.AlarmManager;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.NotificationCompat;
import android.support.v7.app.ActionBarActivity;
import android.text.format.DateFormat;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TimePicker;
import android.widget.Toast;


import com.alamkanak.weekview.WeekViewEvent;

import java.util.Calendar;


public class Info extends ActionBarActivity implements AdapterView.OnItemSelectedListener {
    public int myYear;
    public int startMonth;
    public int startDay;
    public int startHour;
    public int startMinute;
    public int endHour;
    public int endMinute;
    public int flag;
    public int amPm;
    public String evenName;
    public String evenLocation;
    public int color;
    public int repeatW = 0;
    public int repeatM = 0;
    public int repeatY = 0;
    public long reminderms;
    public NotificationManager notificationManager;




    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_info);

        //this is to edit an event not to add
        if(MainActivity.getEventClickFlag() != 0){
            EditText eD = (EditText) findViewById(R.id.editText);
            eD.setText(MainActivity.getEname());
            EditText eD1 = (EditText) findViewById(R.id.editText2);
            eD1.setText(MainActivity.getElocation());
            MainActivity.removeEventFromList(MainActivity.getObjectEvent());
            MainActivity.setEventClickFlag();<commit_msg>trying to merge jonathan's code with scrollview info<commit_after>/***********************************************************************
 * our group created this class (info) and the following methods in main
 * getEventClickFlag()/setEventClickFlag()/getEname()
 * getElocation()/getObjectEvent()/addEventToList(WeekViewEvent event)/
 * removeEventFromList(WeekViewEvent event)
 * our group created the XML layout info and all interaction between info and main class
 * the info class creates the user input form
 * it calls the date and time pickers captures the user input
 * and creates an WeekViewEvent and passes it to an array list
 * List<WeekViewEvent> mEventList = new ArrayList<>() in the MainActivity
 * MainActivy calls the methods in the library to display the calendar
 * ************************************************************************
 * The display is handled by alamkanak weekview library
 * Created by <NAME> on 7/21/2014.
 * Website: http://alamkanak.github.io/
 *************************************************************************/

package com.alamkanak.weekview.sample;

import android.app.AlertDialog;
import android.app.AlarmManager;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.NotificationCompat;
import android.support.v7.app.ActionBarActivity;
import android.text.format.DateFormat;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TimePicker;
import android.widget.Toast;


import com.alamkanak.weekview.WeekViewEvent;

import java.util.Calendar;


public class Info extends ActionBarActivity implements AdapterView.OnItemSelectedListener {
    public int myYear;
    public int startMonth;
    public int startDay;
    public int startHour;
    public int startMinute;
    public int endHour;
    public int endMinute;
    public int flag;
    public int amPm;
    public String evenName;
    public String evenLocation;
    public int color;
    public int repeatW = 0;
    public int repeatM = 0;
    public int repeatY = 0;
    public long reminderms;
    public NotificationManager notificationManager;




    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_info);

        //this is to edit an event not to add
        if(MainActivity.getEventClickFlag() != 0){
            EditText eD = (EditText) findViewById(R.id.editText);
            eD.setText(MainActivity.getEname());
            EditText eD1 = (EditText) findViewById(R.id.editText2);
            eD1.setText(MainActivity.getElocation());
            MainActivity.removeEventFromList(MainActivity.getObjectEvent());
            MainActivity.setEventClickFlag();


{'fraction_non_alphanumeric': 0.14267413931144915, 'fraction_numerical': 0.00544435548438751, 'mean_word_length': 4.527433628318584, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4330653', 'n_tokens_mistral': 1664, 'n_tokens_neox': 1587, 'n_words': 480}