parameters: (score, created_at, peak=1000, nominal_timestamp=60 * 24 * 60 * 60)
return_statement: return score * decay_value
docstring: Creates a decaying (over time) version of the provided `score`. The returned
      value is score * a multiplier determined by `peak` and `nominal_timestamp`.
  
      Args:
          score: (number) The base score to modify
          created_at: (timestamp) The timestamp the score is attributed to
          peak?: (number) The peak multipler possible
  
      Returns:
          A SQLAlchemy expression representing decayed score (score * multipler)
          where multipler is represented by:
          peak ^ 1 - min(time_ago / nominal_timestamp, 1)
docstring_summary: Creates a decaying (over time) version of the provided `score`. The returned
      value is score * a multiplier determined by `peak` and `nominal_timestamp`.
docstring_tokens: Creates a decaying ( over time ) version of the provided score . The returned value is score * a multiplier determined by peak and nominal_timestamp .
function: def decayed_score(score, created_at, peak=1000, nominal_timestamp=60 * 24 * 60 * 60):
      """
      Creates a decaying (over time) version of the provided `score`. The returned
      value is score * a multiplier determined by `peak` and `nominal_timestamp`.
  
      Args:
          score: (number) The base score to modify
          created_at: (timestamp) The timestamp the score is attributed to
          peak?: (number) The peak multipler possible
  
      Returns:
          A SQLAlchemy expression representing decayed score (score * multipler)
          where multipler is represented by:
          peak ^ 1 - min(time_ago / nominal_timestamp, 1)
      """
      decay_exponent = 1 - func.least(
          seconds_ago(created_at) / nominal_timestamp, 1
      )  # goes from 1 -> 0
      decay_value = func.pow(peak, decay_exponent) / peak  # decay slope value
      return score * decay_value
function_tokens: def decayed_score ( score , created_at , peak = 1000 , nominal_timestamp = 60 * 24 * 60 * 60 ) : decay_exponent = 1 - func . least ( seconds_ago ( created_at ) / nominal_timestamp , 1 ) # goes from 1 -> 0 decay_value = func . pow ( peak , decay_exponent ) / peak # decay slope value return score * decay_value