<commit_before>/*
 * Copyright 2015 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.cmput301.cs.project.activities;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.CalendarView;
import com.cmput301.cs.project.R;
import com.cmput301.cs.project.utils.Utils;

/**
 * Activity for picking a date. This activity is used whenvever a date needs to be picked in the app.<p>
 * If an activity relies on both a start date and an end date the calendar will restrict choices to the user so
 *  that an end date can't come before a start date and vice versa.
 *
 *  Returns the date as a result in an intent as KEY_DATE
 *
 *  @author rozsa
 */
public class CalendarActivity extends Activity {
    public static final String KEY_DATE = "date";
    public static final String KEY_MIN_DATE = "min_date";
    public static final String KEY_MAX_DATE = "max_date";

    public static final class Builder {
        private final Intent mIntent;

        public Builder(Context context) {
            mIntent = new Intent(context, CalendarActivity.class);
        }
<commit_msg>added some javadoc to CalendarActivity<commit_after>/*
 * Copyright 2015 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.cmput301.cs.project.activities;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.CalendarView;
import com.cmput301.cs.project.R;
import com.cmput301.cs.project.utils.Utils;

/**
 * Activity for picking a date. This activity is used whenever a date needs to be picked in the app.<p>
 * If an activity relies on both a start date and an end date the calendar will restrict choices to the user so
 *  that an end date can't come before a start date and vice versa.
 *
 *  Returns the date as a result in an intent as KEY_DATE <p>
 *  
 *  this activity is linked to in:
 *  <ul>
 *  <li>{@link com.cmput301.cs.project.activities.EditClaimActivity EditClaimActivity}
 *  <li>{@link com.cmput301.cs.project.activities.EditExpenseActivity EditExpenseActivity}
 *  </ul>
 *
 *  @author rozsa
 *  @author jbenson
 */
public class CalendarActivity extends Activity {
    public static final String KEY_DATE = "date";
    public static final String KEY_MIN_DATE = "min_date";
    public static final String KEY_MAX_DATE = "max_date";

    public static final class Builder {
        private final Intent mIntent;

        public Builder(Context context) {
            mIntent = new Intent(context, CalendarActivity.class);
        }

{'fraction_non_alphanumeric': 0.07661181548421904, 'fraction_numerical': 0.010790396547073105, 'mean_word_length': 3.6877370417193425, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2890399', 'n_tokens_mistral': 1030, 'n_tokens_neox': 988, 'n_words': 433}