<commit_before>package lila.plan

import org.joda.time.DateTime

case class PayPalIpnKey(value: String) extends AnyVal

case class CustomerId(value: String) extends AnyVal
case class ChargeId(value: String) extends AnyVal

case class Source(value: String) extends AnyVal

sealed abstract class Freq(val renew: Boolean)
object Freq {
  case object Monthly extends Freq(renew = true)
  case object Onetime extends Freq(renew = true)
}

case class Usd(value: BigDecimal) extends AnyVal with Ordered[Usd] {
  def compare(other: Usd) = value compare other.value
  def cents = Cents((value * 100).toInt)
  def toFloat = value.toFloat
  override def toString = s"$$$value"
}
object Usd {<commit_msg>fix plan bug with one-time sub<commit_after>package lila.plan

import org.joda.time.DateTime

case class PayPalIpnKey(value: String) extends AnyVal

case class CustomerId(value: String) extends AnyVal
case class ChargeId(value: String) extends AnyVal

case class Source(value: String) extends AnyVal

sealed abstract class Freq(val renew: Boolean)
object Freq {
  case object Monthly extends Freq(renew = true)
  case object Onetime extends Freq(renew = false)
}

case class Usd(value: BigDecimal) extends AnyVal with Ordered[Usd] {
  def compare(other: Usd) = value compare other.value
  def cents = Cents((value * 100).toInt)
  def toFloat = value.toFloat
  override def toString = s"$$$value"
}
object Usd {
{'fraction_non_alphanumeric': 0.08345221112696148, 'fraction_numerical': 0.0042796005706134095, 'mean_word_length': 5.126637554585153, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5265867', 'n_tokens_mistral': 446, 'n_tokens_neox': 431, 'n_words': 155}