<commit_before>﻿namespace Flepper.QueryBuilder
{
    /// <summary>
    /// Where Extensions
    /// </summary>
    public static class WhereFilterExtensions
    {
        /// <summary>
        /// Add Equal to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators EqualTo<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().EqualTo(value);

        /// <summary>
        /// Add Greater Than to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators GreaterThan<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().GreaterThan(value);

        /// <summary>
        /// Add Less Than to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators LessThan<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().LessThan(value);

        /// <summary>
        /// Add Greater Than Or Equal to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators GreaterThanOrEqualTo<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().GreaterThanOrEqualTo(value);

        /// <summary>
        /// Add Less Than Or Equal to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators LessThanOrEqualTo<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().LessThanOrEqualTo(value);

        /// <summary>
        /// Add Not Equal to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators NotEqualTo<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().NotEqualTo(value);

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="whereFilter"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static IComparisonOperators Contains<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().Contains(value);

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="whereFilter"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static IComparisonOperators StartsWith<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().StartsWith(value);

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="whereFilter"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static IComparisonOperators EndsWith<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().EndsWith(value);

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T1"></typeparam>
        /// <typeparam name="T2"></typeparam>
        /// <param name="whereFilter"></param>
        /// <param name="from"></param>
        /// <param name="to"></param>
        /// <returns></returns>
        public static IComparisonOperators Between<T1, T2>(this IWhereFilter whereFilter, T1 from, T2 to)
            => whereFilter.To<ComparisonOperators>().Between(from, to);

    }
}<commit_msg>Add Where Between<commit_after>﻿namespace Flepper.QueryBuilder
{
    /// <summary>
    /// Where Extensions
    /// </summary>
    public static class WhereFilterExtensions
    {
        /// <summary>
        /// Add Equal to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators EqualTo<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().EqualTo(value);

        /// <summary>
        /// Add Greater Than to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators GreaterThan<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().GreaterThan(value);

        /// <summary>
        /// Add Less Than to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators LessThan<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().LessThan(value);

        /// <summary>
        /// Add Greater Than Or Equal to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators GreaterThanOrEqualTo<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().GreaterThanOrEqualTo(value);

        /// <summary>
        /// Add Less Than Or Equal to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators LessThanOrEqualTo<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().LessThanOrEqualTo(value);

        /// <summary>
        /// Add Not Equal to query
        /// </summary>
        /// <param name="whereFilter">Where Filter instance</param>
        /// <param name="value">Value to filter</param>
        /// <returns></returns>
        public static IComparisonOperators NotEqualTo<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().NotEqualTo(value);

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="whereFilter"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static IComparisonOperators Contains<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().Contains(value);

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="whereFilter"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static IComparisonOperators StartsWith<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().StartsWith(value);

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="whereFilter"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static IComparisonOperators EndsWith<T>(this IWhereFilter whereFilter, T value)
            => whereFilter.To<ComparisonOperators>().EndsWith(value);

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="TFrom"></typeparam>
        /// <typeparam name="TTo"></typeparam>
        /// <param name="whereFilter"></param>
        /// <param name="from"></param>
        /// <param name="to"></param>
        /// <returns></returns>
        public static IComparisonOperators Between<TFrom, TTo>(this IWhereFilter whereFilter, TFrom from, TTo to)
            => whereFilter.To<ComparisonOperators>().Between(from, to);

    }
}
{'fraction_non_alphanumeric': 0.15985215985215986, 'fraction_numerical': 0.000693000693000693, 'mean_word_length': 2.1659963436928704, 'pattern_counts': {'":': 0, '<': 231, '<?xml version=': 0, '>': 251, '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': '6540475', 'n_tokens_mistral': 2255, 'n_tokens_neox': 2217, 'n_words': 488}