package Ġorg . ve up ath db . lib . blast . delt ab last . fields Ċ Ċ import Ġcom . fasterxml . jackson . databind . JsonNode Ċ import Ġcom . fasterxml . jackson . databind . node . Object Node Ċ import Ġorg . ve up ath db . lib . blast . common . Flag Comp Based Stats Ċ import Ġorg . ve up ath db . lib . blast . common . Flag D ust Ċ import Ġorg . ve up ath db . lib . blast . serial . B last Field Ċ import Ġorg . ve up ath db . lib . blast . util . add Ċ import Ġorg . ve up ath db . lib . blast . util . append Ċ import Ġorg . ve up ath db . lib . blast . util . put ĊĊ Ċ internal Ġfun ĠParse Comp Based Stats Delta ( js : ĠObject Node ) Ġ= ĊĠ Ġjs [ Flag Comp Based Stats ]?. let Ġ{ ĠComp Based Stats Delta ( parse Enum ( it )) Ġ} ĊĠĠĠ Ġ?: ĠComp Based Stats Delta () ĊĊ Ċ /** Ċ Ġ* Ġ- comp _ based _ stats Ġ`< String >` Ċ Ġ* Ċ Ġ* ĠUse Ġcomposition - based Ġstatistics : Ċ Ġ* Ġ* Ġ` D ` Ġor Ġ` d `: Ġdefault Ġ( e quivalent Ġto Ġ 1 ) Ċ Ġ* Ġ* Ġ` 0 ` Ġor Ġ` F ` Ġor Ġ` f `: ĠNo Ġcomposition - based Ġstatistics Ċ Ġ* Ġ* Ġ` 1 ` Ġor Ġ` T ` Ġor Ġ` t `: ĠComp osition - based Ġstatistics Ġas Ġin ĠN AR Ġ 2 9 : 2 9 9 4 - 3 0 0 5 , Ċ Ġ* ĠĠĠ 2 0 0 1 Ċ Ġ* Ċ Ġ* ĠDefault Ġ= Ġ` 1 ` Ċ Ġ*/ Ċ @ Jvm Inline Ċ value Ġclass ĠComp Based Stats Delta ( ĊĠ Ġval Ġvalue : ĠComp Based Stats Delta Value Ġ= ĠComp Based Stats Delta Value . Comp Based Stats Ċ ) Ġ: ĠB last Field Ġ{ ĊĠ Ġoverride Ġval Ġis Default ĊĠĠĠ Ġget () Ġ= Ġvalue Ġ== ĠComp Based Stats Delta Value . Comp Based Stats ĊĊĠ Ġoverride Ġval Ġname : ĠString ĊĠĠĠ Ġget () Ġ= ĠFlag Comp Based Stats ĊĊĠ Ġoverride Ġfun Ġappend Json ( js : ĠObject Node ) Ġ= ĊĠĠĠ Ġjs . put ( is Default , ĠFlag Comp Based Stats , Ġvalue . value ) ĊĊĠ Ġoverride Ġfun Ġappend Cli Segment ( cli : ĠStringBuilder ) Ġ= ĊĠĠĠ Ġcli . append ( is Default , ĠFlag Comp Based Stats , Ġvalue . value ) ĊĊĠ Ġoverride Ġfun Ġappend Cli Parts ( cli : ĠMutable List < String >) Ġ= ĊĠĠĠ Ġcli . add ( is Default , ĠFlag Comp Based Stats , Ġvalue . value ) Ċ } ĊĊ Ċ @ Suppress (" NOTH ING _ TO _ INLINE ") Ċ private Ġinline Ġfun Ġparse Enum ( js : ĠJsonNode ): ĠComp Based Stats Delta Value Ġ{ ĊĠ Ġif Ġ( js . is Text ual ) ĊĠĠĠ Ġreturn Ġwhen ( val Ġv Ġ= Ġjs . text Value ()) Ġ{ ĊĠĠĠĠĠ Ġ" D ", Ġ" d " ĠĠĠĠĠ Ġ-> ĠComp Based Stats Delta Value . Comp Based Stats ĊĠĠĠĠĠ Ġ" 0 ", Ġ" F ", Ġ" f " Ġ-> ĠComp Based Stats Delta Value . No Comp Based Stats ĊĠĠĠĠĠ Ġ" 1 ", Ġ" T ", Ġ" t " Ġ-> ĠComp Based Stats Delta Value . Comp Based Stats ĊĠĠĠĠĠ Ġelse ĠĠĠĠĠĠĠĠĠ Ġ-> Ġthrow ĠIllegalArgumentException (" Invalid Ġ$ Flag Comp Based Stats Ġvalue : Ġ$ v ") ĊĠĠĠ Ġ} ĊĊĠ Ġif Ġ( js . is Integral Number ) ĊĠĠĠ Ġreturn Ġwhen ( val Ġv Ġ= Ġjs . intValue ()) Ġ{ ĊĠĠĠĠĠĠ 0 ĠĠĠ Ġ-> ĠComp Based Stats Delta Value . No Comp Based Stats ĊĠĠĠĠĠĠ 1 ĠĠĠ Ġ-> ĠComp Based Stats Delta Value . Comp Based Stats ĊĠĠĠĠĠ Ġelse Ġ-> Ġthrow ĠIllegalArgumentException (" Invalid Ġ$ Flag Comp Based Stats Ġvalue : Ġ$ v ") ĊĠĠĠ Ġ} ĊĊĠ Ġthrow ĠIllegalArgumentException (" Invalid Ġ$ Flag Comp Based Stats Ġvalue : Ġ$ js ") Ċ } ĊĊ Ċ enum Ġclass ĠComp Based Stats Delta Value Ġ{ ĊĠ ĠNo Comp Based Stats , ĊĠ ĠComp Based Stats ; ĊĊĠ Ġinline Ġval Ġvalue Ġget () Ġ= Ġordinal Ċ }