<commit_before>class HomeController < ApplicationController
  layout 'base'
  before_action :random_promo
  
  def random_promo
    featuredReleases = $redis.lrange("featuredReleases", 0, $redis.llen("releases")-1)
    featuredArtists  = $redis.lrange("featuredArtists", 0, $redis.llen("artists")-1)
    @small_releases  = Release.where("cat IN (?)", featuredReleases)
                              .order('random()').to_a.slice(0,3)                          
    @small_artists   = Artist.where("name IN (?)", featuredArtists)
                             .order('random()').to_a.slice(0,3)
    pds = Podcast.pluck(:id)
    @podcast = Podcast.find(16)#pds.sample)
    @context = ""
    @news = New.where("published = true").order("date").last(2);
  end
end
<commit_msg>use the podcast sample<commit_after>class HomeController < ApplicationController
  layout 'base'
  before_action :random_promo
  
  def random_promo
    featuredReleases = $redis.lrange("featuredReleases", 0, $redis.llen("releases")-1)
    featuredArtists  = $redis.lrange("featuredArtists", 0, $redis.llen("artists")-1)
    @small_releases  = Release.where("cat IN (?)", featuredReleases)
                              .order('random()').to_a.slice(0,3)                          
    @small_artists   = Artist.where("name IN (?)", featuredArtists)
                             .order('random()').to_a.slice(0,3)
    pds = Podcast.pluck(:id)
    @podcast = Podcast.find(pds.sample)
    @context = ""
    @news = New.where("published = true").order("date").last(2);
  end
end

{'fraction_non_alphanumeric': 0.15275080906148866, 'fraction_numerical': 0.012944983818770227, 'mean_word_length': 2.7892156862745097, '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': '4872093', 'n_tokens_mistral': 520, 'n_tokens_neox': 510, 'n_words': 77}