<commit_before>module ByStar
  module ByFortnight
    def by_fortnight(time=nil, options={})
      options.symbolize_keys!
      time ||= Time.zone.now.beginning_of_day
      send("by_fortnight_#{time_klass(time)}", time, options)
    end

    private

    def by_fortnight_Time_or_Date(time, options={})
      # We want to get the current fortnight and so...
      # We need to find the current week number and take one from it,
      # so that we are correctly offset from the start of the year.
      # The first fortnight of the year should of course start on the 1st January,
      # and not the beginning of that week.<commit_msg>Assign time in method definition for by_fortnight, not in method body<commit_after>module ByStar
  module ByFortnight
    def by_fortnight(time=Time.zone.now.beginning_of_day, options={})
      options.symbolize_keys!
      send("by_fortnight_#{time_klass(time)}", time, options)
    end

    private

    def by_fortnight_Time_or_Date(time, options={})
      # We want to get the current fortnight and so...
      # We need to find the current week number and take one from it,
      # so that we are correctly offset from the start of the year.
      # The first fortnight of the year should of course start on the 1st January,
      # and not the beginning of that week.
{'fraction_non_alphanumeric': 0.07028265851795264, 'fraction_numerical': 0.0015278838808250573, 'mean_word_length': 3.198717948717949, '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': '7528515', 'n_tokens_mistral': 380, 'n_tokens_neox': 375, 'n_words': 153}