<commit_before><?php
namespace Sender;

use DateTime;

/**
* this class for Validation functions
*/

class Validation
{
    /*
    * Check is String type
    */
    public static function isString($value)
    {
        return is_string($value);
    }
    /*
    * Check is integer type
    */
    public static function isInteger($value)
    {
        return is_int($value);
    }
    /*
    * Check is Numeric type
    */
    public static function isNumeric($value)
    {
        return is_numeric($value);
    }
    //Check validate date time format
    public static function isValidDateFirstFormat($date, $format = 'Y-m-d h:i:s')
    {
        $date = trim($date);
        $d    = DateTime::createFromFormat($format, $date);
        return $d && $d->format($format) == $date;
    }
    public static function isValidDateSecondFormat($date, $format = 'Y/m/d h:i:s')
    {
        $date = trim($date);
        $d    = DateTime::createFromFormat($format, $date);
        return $d && $d->format($format) == $date;
    }
    //Test Unix Timestamp
    public static function isValidTimeStamp($timestamp)
    {
        $timestamp = trim($timestamp);
        if (is_int($timestamp)) {
            if (strtotime("-1 minutes") <= $timestamp) {
                return true;
            }
        } else {
            return false;
        }
    }
    //build minutes to datetime string
    public static function getDateTime($minutes)
    {
        $value   = trim($minutes);
        $minutes = "+".$value."minutes";
        return date("Y/m/d h:i:s", strtotime($minutes));
    }
    //Check afterminutes limits
    public static function isVaildAfterMinutes($afterMinutes)
    {
        $value  = array('options' => array('min_range' => 10,'max_range' => 20000));
        $result = filter_var($afterMinutes, FILTER_VALIDATE_INT, $value);
        return (bool) $result;
    }
}<commit_msg>My first commit<commit_after><?php
namespace Sender;

use DateTime;

/**
* this class for Validation functions
*/

class Validation
{
    /*
    * Check is String type
    */
    public static function isString($value)
    {
        return is_string($value);
    }
    /*
    * Check is integer type
    */
    public static function isInteger($value)
    {
        return is_int($value);
    }
    /*
    * Check is Numeric type
    */
    public static function isNumeric($value)
    {
        return is_numeric($value);
    }
    //Check validate date time format
    public static function isValidDateFirstFormat($date, $format = 'Y-m-d h:i:s')
    {
        $date = trim($date);
        $d    = DateTime::createFromFormat($format, $date);
        return $d && $d->format($format) == $date;
    }
    public static function isValidDateSecondFormat($date, $format = 'Y/m/d h:i:s')
    {
        $date = trim($date);
        $d    = DateTime::createFromFormat($format, $date);
        return $d && $d->format($format) == $date;
    }
    //Test Unix Timestamp
    public static function isValidTimeStamp($timestamp)
    {
        $timestamp = trim($timestamp);
        if (is_int($timestamp)) {
            if (strtotime("-1 minutes") <= $timestamp) {
                return true;
            }
        } else {
            return false;
        }
    }
    //build minutes to datetime string
    public static function getDateTime($minutes)
    {
        $value   = trim($minutes);
        $minutes = "+".$value."minutes";
        return date("Y/m/d h:i:s", strtotime($minutes));
    }
    //Check afterminutes limits
    public static function isVaildAfterMinutes($afterMinutes)
    {
        $value  = array('options' => array('min_range' => 10,'max_range' => 20000));
        $result = filter_var($afterMinutes, FILTER_VALIDATE_INT, $value);
        return (bool) $result;
    }

}
{'fraction_non_alphanumeric': 0.1368337311058075, 'fraction_numerical': 0.0042429063908777515, 'mean_word_length': 2.240549828178694, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1429850', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1124, 'n_words': 272}