<commit_before><commit_msg>新增日期工具类<commit_after>package com.taro.calendar.lib.utils;

/**
 * Created by taro on 2017/6/4.
 */

public class DateUtils {
    private static int[] dayMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

    public static int getNumDayOfMonth(int year, int month) {
        if (month < 0 || month > 11) {
            return 0;
        }
        int i = dayMonth[(month - 1)];
        if ((isBigYear(year)) && (month == 2)) {
            i++;
        }
        return i;
    }

    public static boolean isBigYear(int year) {
        if (year % 400 == 0) {
            return true;
        }
        return (year % 4 == 0) && (year % 100 != 0);
    }

}

{'fraction_non_alphanumeric': 0.14970930232558138, 'fraction_numerical': 0.06686046511627906, 'mean_word_length': 1.8122448979591836, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1918969', 'n_tokens_mistral': 279, 'n_tokens_neox': 234, 'n_words': 69}