<commit_before>﻿using System;
using System.Collections.Generic;

namespace SuperExtensions
{
    public static class IntExtensions
    {
        public static int Pow(this int x, int y) => Math.Pow(x, y).ChangeType<int>();
        public static int PercentageOf(this int part, int total) => (part * 100) / total;

        public static int K(this int value) => value * 1000;
        public static int M(this int value) => value * 1000.Pow(2);
        public static int G(this int value) => value * 1000.Pow(3);
        public static int T(this int value) => value * 1000.Pow(4);

        public static int KiB(this int value) => value * 1024;
        public static int MiB(this int value) => value * 1024.Pow(2);

        public static DateTime January(this int day, int year) => new DateTime(year, 1, day);
        public static DateTime February(this int day, int year) => new DateTime(year, 2, day);
        public static DateTime March(this int day, int year) => new DateTime(year, 3, day);
        public static DateTime April(this int day, int year) => new DateTime(year, 4, day);
        public static DateTime May(this int day, int year) => new DateTime(year, 5, day);
        public static DateTime June(this int day, int year) => new DateTime(year, 6, day);
        public static DateTime July(this int day, int year) => new DateTime(year, 7, day);
        public static DateTime August(this int day, int year) => new DateTime(year, 8, day);
        public static DateTime September(this int day, int year) => new DateTime(year, 9, day);
        public static DateTime October(this int day, int year) => new DateTime(year, 10, day);
        public static DateTime November(this int day, int year) => new DateTime(year, 11, day);
        public static DateTime December(this int day, int year) => new DateTime(year, 12, day);

        public static TimeSpan Ticks(this int ticks) => TimeSpan.FromTicks(ticks);
        public static TimeSpan Milliseconds(this int milliseconds) => TimeSpan.FromMilliseconds(milliseconds);
        public static TimeSpan Seconds(this int seconds) => TimeSpan.FromSeconds(seconds);
        public static TimeSpan Minutes(this int minutes) => TimeSpan.FromMinutes(minutes);
        public static TimeSpan Hours(this int hours) => TimeSpan.FromHours(hours);
        public static TimeSpan Days(this int days) => TimeSpan.FromDays(days);

        public static IEnumerable<int> Range(this int n)
        {
            for (int i = 0; i < n; i++)
                yield return i;
        }
    }
}<commit_msg>Correction made on the Range extension.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace SuperExtensions
{
    public static class IntExtensions
    {
        public static int Pow(this int x, int y) => Math.Pow(x, y).ChangeType<int>();
        public static int PercentageOf(this int part, int total) => (part * 100) / total;

        public static int K(this int value) => value * 1000;
        public static int M(this int value) => value * 1000.Pow(2);
        public static int G(this int value) => value * 1000.Pow(3);
        public static int T(this int value) => value * 1000.Pow(4);

        public static int KiB(this int value) => value * 1024;
        public static int MiB(this int value) => value * 1024.Pow(2);

        public static DateTime January(this int day, int year) => new DateTime(year, 1, day);
        public static DateTime February(this int day, int year) => new DateTime(year, 2, day);
        public static DateTime March(this int day, int year) => new DateTime(year, 3, day);
        public static DateTime April(this int day, int year) => new DateTime(year, 4, day);
        public static DateTime May(this int day, int year) => new DateTime(year, 5, day);
        public static DateTime June(this int day, int year) => new DateTime(year, 6, day);
        public static DateTime July(this int day, int year) => new DateTime(year, 7, day);
        public static DateTime August(this int day, int year) => new DateTime(year, 8, day);
        public static DateTime September(this int day, int year) => new DateTime(year, 9, day);
        public static DateTime October(this int day, int year) => new DateTime(year, 10, day);
        public static DateTime November(this int day, int year) => new DateTime(year, 11, day);
        public static DateTime December(this int day, int year) => new DateTime(year, 12, day);

        public static TimeSpan Ticks(this int ticks) => TimeSpan.FromTicks(ticks);
        public static TimeSpan Milliseconds(this int milliseconds) => TimeSpan.FromMilliseconds(milliseconds);
        public static TimeSpan Seconds(this int seconds) => TimeSpan.FromSeconds(seconds);
        public static TimeSpan Minutes(this int minutes) => TimeSpan.FromMinutes(minutes);
        public static TimeSpan Hours(this int hours) => TimeSpan.FromHours(hours);
        public static TimeSpan Days(this int days) => TimeSpan.FromDays(days);

        public static IEnumerable<int> Range(this int start, int count) => Enumerable.Range(start, count);
    }
}
{'fraction_non_alphanumeric': 0.10532521123992926, 'fraction_numerical': 0.018274710159166832, 'mean_word_length': 3.2845117845117846, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 60, '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': '6857142', 'n_tokens_mistral': 1470, 'n_tokens_neox': 1344, 'n_words': 563}