<commit_before>ActiveAdmin.register Movie do


  scope :all do
    Movie.all
  end

  scope :current do
    Movie.where("expire >= ?", Time.now)
  end

  scope :no_youtube do
    Movie.where(youtube_id: nil)
  end

  scope :missing_score do
    Movie.where('imdb_rating = null OR rotten_critics_score = null OR rotten_audience_score = null')
  end

  permit_params :expire,
                :imdb_rating,
                :rating,
                :summary,
                :title,
                :year,
                :rotten_critics_score,
                :rotten_audience_score,
                :plays,
                :youtube

  index do
    column :title do |movie|
      link_to movie.title, admin_movie_path(movie)
    end
    column :image do |movie|
      image_tag movie.image_url, style: 'max-width: 100px;'
    end
    column :simple_score
    column :created_at
    column :expire<commit_msg>* Active admin tweaks<commit_after>ActiveAdmin.register Movie do


  scope :all do
    Movie.all
  end

  scope :current do
    Movie.where("expire >= ?", Time.now)
  end

  scope :no_youtube do
    Movie.where(youtube_id: nil)
  end

  scope :missing_score do
    Movie.where("imdb_rating = null OR rotten_critics_score = null OR rotten_audience_score = null AND expire >= ?", Time.now)
  end

  permit_params :expire,
                :imdb_rating,
                :rating,
                :summary,
                :title,
                :year,
                :rotten_critics_score,
                :rotten_audience_score,
                :plays,
                :youtube

  index do
    column :title do |movie|
      link_to movie.title, admin_movie_path(movie)
    end
    column :image do |movie|
      image_tag movie.image_url, style: 'max-width: 100px;'
    end
    column :simple_score
    column :created_at
    column :expire
{'fraction_non_alphanumeric': 0.08026030368763558, 'fraction_numerical': 0.0032537960954446853, 'mean_word_length': 1.9378980891719746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2802449', 'n_tokens_mistral': 610, 'n_tokens_neox': 558, 'n_words': 143}