All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.id.tmm.githubprlanguagedetection.languagedetection.model.DetectedLanguages.scala Maven / Gradle / Ivy

The newest version!
package au.id.tmm.githubprlanguagedetection.languagedetection.model

import au.id.tmm.collections.NonEmptyArraySeq

final case class DetectedLanguages(
  all: NonEmptyArraySeq[DetectedLanguages.LanguageFraction],
  mainProgrammingLanguage: Language,
)

object DetectedLanguages {
  final case class LanguageFraction(
    language: Language,
    fraction: Fraction,
  )

  object LanguageFraction {
    implicit val ordering: Ordering[LanguageFraction] = Ordering.by[LanguageFraction, Fraction](_.fraction).reverse
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy