<commit_before>class UnapprovedProject < Project
  default_scope { where(finished: true).where(approved: false) }

  rails_admin do
    parent FinishedProject

    list do
      field :title, :string
      field :authors, :string
      field :description, :string
      field :category_name, :string
      field :county, :string
      field :screenshots
      field :approved, :boolean
      field :finished, :boolean
    end

    create do
      field :title, :string
      field :description, :string
      field :technical_description, :string
      field :system_requirements, :string
      field :source_url, :string
      field :homepage, :string

      field :approved, :boolean
      field :finished, :boolean

      field :category do
        nested_form false
      end

      field :contestants do
        nested_form false
      end

      field :screenshots do
        nested_form false
      end
    end

    edit do
      field :title, :string
      field :description, :string
      field :technical_description, :string
      field :system_requirements, :string
      field :source_url, :string
      field :homepage, :string
      field :github_username

      field :approved, :boolean
      field :finished, :boolean

      field :category do
        nested_form false
      end

      field :contestants do
        nested_form false
      end

      field :screenshots do<commit_msg>Remove redundant code<commit_after>class UnapprovedProject < Project
  default_scope { where(finished: true).where(approved: false) }

  rails_admin do
    parent FinishedProject

    list do
      field :title, :string
      field :authors, :string
      field :description, :string
      field :category_name, :string
      field :county, :string
      field :screenshots
      field :approved, :boolean
      field :finished, :boolean
    end

    edit do
      field :title, :string
      field :description, :string
      field :technical_description, :string
      field :system_requirements, :string
      field :source_url, :string
      field :homepage, :string
      field :github_username

      field :approved, :boolean
      field :finished, :boolean

      field :category do
        nested_form false
      end

      field :contestants do
        nested_form false
      end

      field :screenshots do
{'fraction_non_alphanumeric': 0.06583476764199656, 'fraction_numerical': 0.0, 'mean_word_length': 2.394160583941606, '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': '4017973', 'n_tokens_mistral': 655, 'n_tokens_neox': 612, 'n_words': 206}