<commit_before>﻿namespace Exercism.leap
{
  public class Year
  {
    public static bool IsLeap(int year)
    {
      return (year % 400 == 0) || ((year % 100 != 0) && (year % 4 == 0));
    }
  }
}<commit_msg>:lemon: C# Leap - DivisibleBy and NotDivisibleBy methods for sake of readability<commit_after>﻿namespace Exercism.leap
{
  public static class Year
  {
    public static bool IsLeap(int year)
    {
      return year.DivisibleBy(400) || 
             (year.NotDivisibleBy(100) && year.DivisibleBy(4));
    }

    private static bool NotDivisibleBy(this int value, int divisor)
    {
      return !value.DivisibleBy(divisor);
    }

    private static bool DivisibleBy(this int value, int divisor)
    {
      return value%divisor == 0;
    }
  }
}
{'fraction_non_alphanumeric': 0.1152317880794702, 'fraction_numerical': 0.02384105960264901, 'mean_word_length': 2.78, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7177853', 'n_tokens_mistral': 270, 'n_tokens_neox': 246, 'n_words': 66}