You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: reviewable_score.rb
    path of file: ./repos/discourse/app/models
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ReviewableScore < ActiveRecord::Base
  belongs_to :reviewable
  belongs_to :user
  belongs_to :reviewed_by, class_name: "User"
  belongs_to :meta_topic, class_name: "Topic"

  enum status: { pending: 0, agreed: 1, disagreed: 2, ignored: 3 }


    
  def self.calc_user_accuracy_bonus(agreed, disagreed)
    agreed ||= 0
    disagreed ||= 0

    total = (agreed + disagreed).to_f
    return 0.0 if total <= 5
    accuracy_axis = 0.7

    percent_correct = agreed / total
    positive_accuracy = percent_correct >= accuracy_axis

    bottom = positive_accuracy ? accuracy_axis : 0.0
    top = positive_accuracy ? 1.0 : accuracy_axis

    absolute_distance = positive_accuracy ? percent_correct - bottom : top - percent_correct

    axis_distance_multiplier = 1.0 / (top - bottom)
    positivity_multiplier = positive_accuracy ? 1.0 : -1.0

    (
      absolute_distance * axis_distance_multiplier * positivity_multiplier *
        (Math.log(total, 4) * 5.0)
    ).round(2)
  end