<commit_before># -*- coding: utf-8 -*-
# PolandHolidays
Date.class_eval do

  def self.poland_holidays(year = Date.today.year)
    const = const_feasts(year)
    movable = self.movable_feasts(year)
    const.merge!(movable)
  end

  def self.const_feasts(year = Date.today.year)
    holidays={
      "Nowy Rok" => Date.new(year, 1, 1),
      "Święto Pracy" => Date.new(year, 5, 1),
      "Święto Narodowe Trzeciego Maja" => Date.new(year, 5, 3),
      "Wniebowzięcie Najświętszej <NAME>" => Date.new(year, 8, 15),
      "Wszystkich Świętych" => Date.new(year, 11, 1),
      "Narodowe Święto Niepodległości" => Date.new(year, 11, 11),
      "Pierwszy Dzień Świąt Bożego Narodzenia" => Date.new(year, 12, 25),
      "Drugi Dzień Świąt Bożego Narodzenia" => Date.new(year, 12, 26)
    }
  end

  def self.movable_feasts(year = Date.today.year)
    a = year%19
    b, c = year/100, year%100
    d, e = b/4, b%4
    f = (b+8)/25
    g = (b-f+1)/3
    h = (19*a+b-d-g+15)%30
    i, k = c/4, c%4
    l = (32+2*e+2*i-h-k)%7<commit_msg>comments<commit_after># -*- coding: utf-8 -*-
# PolandHolidays
Date.class_eval do

  def self.poland_holidays(year = Date.today.year)
    const = const_feasts(year)
    movable = self.movable_feasts(year)
    const.merge!(movable)
  end

  def self.const_feasts(year = Date.today.year)
    #święta stałe
    holidays={
      "Nowy Rok" => Date.new(year, 1, 1),
      "Święto Pracy" => Date.new(year, 5, 1),
      "Święto Narodowe Trzeciego Maja" => Date.new(year, 5, 3),
      "Wniebowzięcie Najświętszej <NAME>" => Date.new(year, 8, 15),
      "Wszystkich Świętych" => Date.new(year, 11, 1),
      "Narodowe Święto Niepodległości" => Date.new(year, 11, 11),
      "Pierwszy Dzień Świąt Bożego Narodzenia" => Date.new(year, 12, 25),
      "Drugi Dzień Świąt Bożego Narodzenia" => Date.new(year, 12, 26)
    }
  end

  def self.movable_feasts(year = Date.today.year)
    #święta ruchome
    a = year%19
    b, c = year/100, year%100
    d, e = b/4, b%4
    f = (b+8)/25
    g = (b-f+1)/3
    h = (19*a+b-d-g+15)%30
    i, k = c/4, c%4
    l = (32+2*e+2*i-h-k)%7
{'fraction_non_alphanumeric': 0.16770483948251078, 'fraction_numerical': 0.05079060852898898, 'mean_word_length': 2.8171846435100547, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '79200', 'n_tokens_mistral': 995, 'n_tokens_neox': 956, 'n_words': 193}