<commit_before>package com.laxture.lib.util;

import android.util.SparseArray;

import com.laxture.lib.java8.Optional;

import org.json.JSONArray;
import org.json.JSONObject;

import java.io.File;
import java.util.Collection;
import java.util.Date;
import java.util.Map;

public final class Checker {

    private Checker() {}

    //********************* Empty Object Validation ***************************

    public static boolean isZero(Number n) {
        return n == null || n.intValue() == 0;
    }

    public static <T extends Number> boolean isZero(Optional<T> n) {
        return n.isPresent() && isZero(n.get());
    }

    public static boolean isPositive(Integer integer) {
        return integer != 0 && integer > 0;
    }

    public static boolean isEmpty(CharSequence text) {
        return text == null || text.length() <= 0 || "null".equals(text);
    }

    public static boolean isEmpty(Optional<? extends CharSequence> text) {
        return !text.isPresent() || isEmpty(text.get());
    }

    public static boolean isEmpty(Object[] array) {
        return array == null || array.length == 0;
    }

    public static boolean isExistedFile(File file) {
        return file != null && file.exists();
    }

    public static boolean isEmpty(byte[] array) {
        return array == null || array.length == 0;
    }

    public static boolean isEmpty(int[] array) {
        return array == null || array.length == 0;
    }
<commit_msg>Fix checker<commit_after>package com.laxture.lib.util;

import android.util.SparseArray;

import com.laxture.lib.java8.Optional;

import org.json.JSONArray;
import org.json.JSONObject;

import java.io.File;
import java.util.Collection;
import java.util.Date;
import java.util.Map;

public final class Checker {

    private Checker() {}

    //********************* Empty Object Validation ***************************

    public static boolean isZero(Number n) {
        return n == null || n.intValue() == 0;
    }

    public static <T extends Number> boolean isZero(Optional<T> n) {
        return n.isPresent() && isZero(n.get());
    }

    public static boolean isPositive(Integer integer) {
        return integer != 0 && integer > 0;
    }

    public static boolean isEmpty(CharSequence text) {
        return text == null || text.length() <= 0 || "null".equals(text);
    }

    public static boolean isEmpty(Optional<? extends CharSequence> text) {
        return text == null || !text.isPresent() || isEmpty(text.get());
    }

    public static boolean isEmpty(Object[] array) {
        return array == null || array.length == 0;
    }

    public static boolean isExistedFile(File file) {
        return file != null && file.exists();
    }

    public static boolean isEmpty(byte[] array) {
        return array == null || array.length == 0;
    }

    public static boolean isEmpty(int[] array) {
        return array == null || array.length == 0;
    }

{'fraction_non_alphanumeric': 0.15505464480874318, 'fraction_numerical': 0.00546448087431694, 'mean_word_length': 2.979619565217391, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3825774', 'n_tokens_mistral': 867, 'n_tokens_neox': 820, 'n_words': 239}