<commit_before>﻿namespace BullsAndCows.Utils
{
    public static class ValidNumberChecker
    {
        private static bool CheckIfNumberConsistsOfDifferentDigits(string number)
        {
            for (int i = 0; i < number.Length; i++)
            {
                for (int j = i + 1; j < number.Length; j++)
                {
                    if (number[i] == number[j])
                    {
                        return false;
                    }
                }
            }

            return true;
        }

        public static bool IsValidBullsAndCowsNumber(string number)
        {
            bool isValid = number.Length == 4 &&
                number[0] != '0' &&
                CheckIfNumberConsistsOfDifferentDigits(number);
<commit_msg>Valid Number Checker fixed<commit_after>﻿namespace BullsAndCows.Utils
{
    public class ValidNumberChecker
    {
        public static bool IsValidBullsAndCowsNumber(string number)
        {
            bool isValid = number.Length == 4 && number[0] != '0';

{'fraction_non_alphanumeric': 0.08649173955296405, 'fraction_numerical': 0.007774538386783284, 'mean_word_length': 1.5121951219512195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5102778', 'n_tokens_mistral': 283, 'n_tokens_neox': 263, 'n_words': 64}