au.id.tmm.githubprlanguagedetection.languagedetection.model.DetectedLanguages.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of github-pr-language-detection-lib_2.13 Show documentation
Show all versions of github-pr-language-detection-lib_2.13 Show documentation
github-pr-language-detection-lib
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
}
}