<commit_before>package com.melodies.bandup;

import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;
import android.widget.DatePicker;
import android.widget.Toast;

import java.util.Calendar;

import static android.R.attr.minDate;
import static com.facebook.FacebookSdk.getApplicationContext;

public class DatePickerFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener {
    Integer mYear = null, mMonth = null, mDay = null;

    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        final Calendar c = Calendar.getInstance();
        if (mYear == null) mYear = c.get(Calendar.YEAR);
        if (mMonth == null) mMonth = c.get(Calendar.MONTH);
        if (mDay == null) mDay = c.get(Calendar.DAY_OF_MONTH);
        c.set(Calendar.HOUR, 0);
        c.set(Calendar.MINUTE, 0);
        c.set(Calendar.SECOND, 0);
        c.set(Calendar.MILLISECOND, 0);

        DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),
                AlertDialog.THEME_HOLO_DARK, this, mYear, mMonth, mDay);

        // Get the DatePicker of the DatePickerDialog
        DatePicker datePicker = datePickerDialog.getDatePicker();

        // Set the boundaries for the DatePicker
        final Calendar maxDate = Calendar.getInstance();
        maxDate.set(Calendar.YEAR, c.get(Calendar.YEAR)-14);

        // Max age is 99. Then we need to subtract 100 and then add one day.<commit_msg>Adding a message to the DatePicker<commit_after>package com.melodies.bandup;

import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;
import android.widget.DatePicker;
import android.widget.Toast;

import java.util.Calendar;

import static android.R.attr.minDate;
import static com.facebook.FacebookSdk.getApplicationContext;

public class DatePickerFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener {
    Integer mYear = null, mMonth = null, mDay = null;

    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        final Calendar c = Calendar.getInstance();
        if (mYear == null) mYear = c.get(Calendar.YEAR);
        if (mMonth == null) mMonth = c.get(Calendar.MONTH);
        if (mDay == null) mDay = c.get(Calendar.DAY_OF_MONTH);
        c.set(Calendar.HOUR, 0);
        c.set(Calendar.MINUTE, 0);
        c.set(Calendar.SECOND, 0);
        c.set(Calendar.MILLISECOND, 0);

        DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),
                AlertDialog.THEME_HOLO_DARK, this, mYear, mMonth, mDay);
        datePickerDialog.setMessage(getString(R.string.register_dob_hint));

        // Get the DatePicker of the DatePickerDialog
        DatePicker datePicker = datePickerDialog.getDatePicker();

        // Set the boundaries for the DatePicker
        final Calendar maxDate = Calendar.getInstance();
        maxDate.set(Calendar.YEAR, c.get(Calendar.YEAR)-14);

        // Max age is 99. Then we need to subtract 100 and then add one day.
{'fraction_non_alphanumeric': 0.09725292074518471, 'fraction_numerical': 0.006946637196084623, 'mean_word_length': 3.4745762711864407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '676536', 'n_tokens_mistral': 953, 'n_tokens_neox': 903, 'n_words': 235}