<commit_before>class Ads::Agents::Parts::BannerController < ApplicationController
  include Cms::PartFilter::View

  public
    def index
      @node = @cur_part.parent
      return render nothing: true unless @node

      sort = @node.becomes_with_route.sort_hash
      @random = sort[:random]

      @items = Ads::Banner.site(@cur_site).public(@cur_date).order_by(sort)
      #@items = @items.shuffle if @random
    end
end
<commit_msg>fix ads banner parts<commit_after>class Ads::Agents::Parts::BannerController < ApplicationController
  include Cms::PartFilter::View

  public
    def index
      @node = @cur_part.parent
      return render nothing: true unless @node

      sort = @node.becomes_with_route.sort_hash
      @random = sort[:random]

      @items = Ads::Banner.site(@cur_site).node(@node).public(@cur_date).order_by(sort)
      #@items = @items.shuffle if @random
    end
end

{'fraction_non_alphanumeric': 0.11620111731843576, 'fraction_numerical': 0.0, 'mean_word_length': 3.740740740740741, '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': '3627504', 'n_tokens_mistral': 287, 'n_tokens_neox': 279, 'n_words': 59}