<commit_before>class Api::ProjectsController < Api::ApplicationController
  def show
    @project = Project.platform(params[:platform]).where('lower(name) = ?', params[:name].downcase).includes(:versions, :github_repository).first
    raise ActiveRecord::RecordNotFound if @project.nil?
    render json: @project.as_json(only: [:name, :platform, :description, :homepage, :repository_url,  :normalized_licenses], include: {versions: {only: [:number, :published_at]} })
  end

  def list
    names = Array(params[:names])
    @projects = Project.platform(params[:platform]).where(name: names).includes(:versions, :github_repository)
    render json: @projects
  end

  def searchcode
    render json: Project.where('updated_at > ?', 1.day.ago).pluck(:repository_url).compact.reject(&:blank?)
  end
end<commit_msg>Remove unused api endpoint<commit_after>class Api::ProjectsController < Api::ApplicationController
  def show
    @project = Project.platform(params[:platform]).where('lower(name) = ?', params[:name].downcase).includes(:versions, :github_repository).first
    raise ActiveRecord::RecordNotFound if @project.nil?
    render json: @project.as_json(only: [:name, :platform, :description, :homepage, :repository_url,  :normalized_licenses], include: {versions: {only: [:number, :published_at]} })
  end

  def searchcode
    render json: Project.where('updated_at > ?', 1.day.ago).pluck(:repository_url).compact.reject(&:blank?)
  end
end
{'fraction_non_alphanumeric': 0.1508650519031142, 'fraction_numerical': 0.001384083044982699, 'mean_word_length': 6.23, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4320941', 'n_tokens_mistral': 427, 'n_tokens_neox': 423, 'n_words': 86}