1 /*
2  *  Make.org Core API
3  *  Copyright (C) 2018 Make.org
4  *
5  * This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU Affero General Public License as
7  *  published by the Free Software Foundation, either version 3 of the
8  *  License, or (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU Affero General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Affero General Public License
16  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
17  *
18  */
19 
20 package org.make.core.keyword
21 
22 import eu.timepit.refined.types.numeric.NonNegInt
23 import io.circe.Codec
24 import io.circe.generic.semiauto.deriveCodec
25 import io.circe.refined._
26 import io.swagger.annotations.ApiModelProperty
27 import org.make.core.question.QuestionId
28 
29 import scala.annotation.meta.field
30 
31 final case class Keyword(
32   @(ApiModelProperty @field)(dataType = "string", example = "11111111-2222-3333-4444-555555555555", required = true)
33   questionId: QuestionId,
34   key: String,
35   label: String,
36   score: Float,
37   @(ApiModelProperty @field)(dataType = "int", required = true, allowableValues = "range[0, Infinity]")
38   count: NonNegInt,
39   topKeyword: Boolean
40 )
41 
42 object Keyword {
43   implicit val codec: Codec[Keyword] = deriveCodec
44 }
Line Stmt Id Pos Tree Symbol Tests Code
43 1456 1466 - 1477 ApplyToImplicitArgs io.circe.generic.semiauto.deriveCodec org.make.api.question.questionapitest io.circe.generic.semiauto.deriveCodec[org.make.core.keyword.Keyword]({ val inst$macro$28: io.circe.generic.codec.DerivedAsObjectCodec[org.make.core.keyword.Keyword] = { final class anon$lazy$macro$27 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$27 = { anon$lazy$macro$27.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$1: io.circe.generic.codec.DerivedAsObjectCodec[org.make.core.keyword.Keyword] = codec.this.DerivedAsObjectCodec.deriveCodec[org.make.core.keyword.Keyword, shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.core.keyword.Keyword, (Symbol @@ String("questionId")) :: (Symbol @@ String("key")) :: (Symbol @@ String("label")) :: (Symbol @@ String("score")) :: (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil, org.make.core.question.QuestionId :: String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.core.keyword.Keyword, (Symbol @@ String("questionId")) :: (Symbol @@ String("key")) :: (Symbol @@ String("label")) :: (Symbol @@ String("score")) :: (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil](::.apply[Symbol @@ String("questionId"), (Symbol @@ String("key")) :: (Symbol @@ String("label")) :: (Symbol @@ String("score")) :: (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil.type](scala.Symbol.apply("questionId").asInstanceOf[Symbol @@ String("questionId")], ::.apply[Symbol @@ String("key"), (Symbol @@ String("label")) :: (Symbol @@ String("score")) :: (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil.type](scala.Symbol.apply("key").asInstanceOf[Symbol @@ String("key")], ::.apply[Symbol @@ String("label"), (Symbol @@ String("score")) :: (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil.type](scala.Symbol.apply("label").asInstanceOf[Symbol @@ String("label")], ::.apply[Symbol @@ String("score"), (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil.type](scala.Symbol.apply("score").asInstanceOf[Symbol @@ String("score")], ::.apply[Symbol @@ String("count"), (Symbol @@ String("topKeyword")) :: shapeless.HNil.type](scala.Symbol.apply("count").asInstanceOf[Symbol @@ String("count")], ::.apply[Symbol @@ String("topKeyword"), shapeless.HNil.type](scala.Symbol.apply("topKeyword").asInstanceOf[Symbol @@ String("topKeyword")], HNil))))))), Generic.instance[org.make.core.keyword.Keyword, org.make.core.question.QuestionId :: String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil](((x0$3: org.make.core.keyword.Keyword) => x0$3 match { case (questionId: org.make.core.question.QuestionId, key: String, label: String, score: Float, count: eu.timepit.refined.types.numeric.NonNegInt, topKeyword: Boolean): org.make.core.keyword.Keyword((questionId$macro$20 @ _), (key$macro$21 @ _), (label$macro$22 @ _), (score$macro$23 @ _), (count$macro$24 @ _), (topKeyword$macro$25 @ _)) => ::.apply[org.make.core.question.QuestionId, String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil.type](questionId$macro$20, ::.apply[String, String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil.type](key$macro$21, ::.apply[String, Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil.type](label$macro$22, ::.apply[Float, eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil.type](score$macro$23, ::.apply[eu.timepit.refined.types.numeric.NonNegInt, Boolean :: shapeless.HNil.type](count$macro$24, ::.apply[Boolean, shapeless.HNil.type](topKeyword$macro$25, HNil)))))).asInstanceOf[org.make.core.question.QuestionId :: String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil] }), ((x0$4: org.make.core.question.QuestionId :: String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil) => x0$4 match { case (head: org.make.core.question.QuestionId, tail: String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil): org.make.core.question.QuestionId :: String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil((questionId$macro$14 @ _), (head: String, tail: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil): String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil((key$macro$15 @ _), (head: String, tail: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil): String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil((label$macro$16 @ _), (head: Float, tail: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil): Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil((score$macro$17 @ _), (head: eu.timepit.refined.types.numeric.NonNegInt, tail: Boolean :: shapeless.HNil): eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil((count$macro$18 @ _), (head: Boolean, tail: shapeless.HNil): Boolean :: shapeless.HNil((topKeyword$macro$19 @ _), HNil)))))) => keyword.this.Keyword.apply(questionId$macro$14, key$macro$15, label$macro$16, score$macro$17, count$macro$18, topKeyword$macro$19) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("questionId"), org.make.core.question.QuestionId, (Symbol @@ String("key")) :: (Symbol @@ String("label")) :: (Symbol @@ String("score")) :: (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil, String :: String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("key"), String, (Symbol @@ String("label")) :: (Symbol @@ String("score")) :: (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil, String :: Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("label"), String, (Symbol @@ String("score")) :: (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil, Float :: eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("score"), Float, (Symbol @@ String("count")) :: (Symbol @@ String("topKeyword")) :: shapeless.HNil, eu.timepit.refined.types.numeric.NonNegInt :: Boolean :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("count"), eu.timepit.refined.types.numeric.NonNegInt, (Symbol @@ String("topKeyword")) :: shapeless.HNil, Boolean :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("topKeyword"), Boolean, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("topKeyword")]](scala.Symbol.apply("topKeyword").asInstanceOf[Symbol @@ String("topKeyword")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("topKeyword")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("count")]](scala.Symbol.apply("count").asInstanceOf[Symbol @@ String("count")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("count")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("score")]](scala.Symbol.apply("score").asInstanceOf[Symbol @@ String("score")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("score")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("label")]](scala.Symbol.apply("label").asInstanceOf[Symbol @@ String("label")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("label")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("key")]](scala.Symbol.apply("key").asInstanceOf[Symbol @@ String("key")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("key")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("questionId")]](scala.Symbol.apply("questionId").asInstanceOf[Symbol @@ String("questionId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("questionId")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$27.this.inst$macro$26)).asInstanceOf[io.circe.generic.codec.DerivedAsObjectCodec[org.make.core.keyword.Keyword]]; <stable> <accessor> lazy val inst$macro$26: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericDecoderForquestionId: io.circe.Decoder[org.make.core.question.QuestionId] = question.this.QuestionId.QuestionIdDecoder; private[this] val circeGenericDecoderForlabel: io.circe.Decoder[String] = circe.this.Decoder.decodeString; private[this] val circeGenericDecoderForscore: io.circe.Decoder[Float] = circe.this.Decoder.decodeFloat; private[this] val circeGenericDecoderForcount: io.circe.Decoder[eu.timepit.refined.api.Refined[Int,eu.timepit.refined.numeric.NonNegative]] = io.circe.refined.`package`.refinedDecoder[Int, eu.timepit.refined.numeric.NonNegative, eu.timepit.refined.api.Refined](circe.this.Decoder.decodeInt, boolean.this.Not.notValidate[Int, eu.timepit.refined.numeric.Negative, this.R](numeric.this.Less.lessValidate[Int, shapeless.nat._0](internal.this.WitnessAs.natWitnessAs[Int, shapeless.nat._0](shapeless.this.Witness.witness0, nat.this.ToInt.toInt0, math.this.Numeric.IntIsIntegral), math.this.Numeric.IntIsIntegral)), api.this.RefType.refinedRefType); private[this] val circeGenericDecoderFortopKeyword: io.circe.Decoder[Boolean] = circe.this.Decoder.decodeBoolean; private[this] val circeGenericEncoderForquestionId: io.circe.Encoder[org.make.core.question.QuestionId] = question.this.QuestionId.QuestionIdEncoder; private[this] val circeGenericEncoderForlabel: io.circe.Encoder[String] = circe.this.Encoder.encodeString; private[this] val circeGenericEncoderForscore: io.circe.Encoder[Float] = circe.this.Encoder.encodeFloat; private[this] val circeGenericEncoderForcount: io.circe.Encoder[eu.timepit.refined.api.Refined[Int,eu.timepit.refined.numeric.NonNegative]] = io.circe.refined.`package`.refinedEncoder[Int, eu.timepit.refined.numeric.NonNegative, eu.timepit.refined.api.Refined](circe.this.Encoder.encodeInt, api.this.RefType.refinedRefType); private[this] val circeGenericEncoderFortopKeyword: io.circe.Encoder[Boolean] = circe.this.Encoder.encodeBoolean; final def encodeObject(a: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): io.circe.JsonObject = a match { case (head: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId], tail: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForquestionId @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("key"),String], tail: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForkey @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("label"),String], tail: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForlabel @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("score"),Float], tail: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForscore @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt], tail: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingForcount @ _), (head: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean], tail: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out): shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out((circeGenericHListBindingFortopKeyword @ _), shapeless.HNil)))))) => io.circe.JsonObject.fromIterable(scala.collection.immutable.Vector.apply[(String, io.circe.Json)](scala.Tuple2.apply[String, io.circe.Json]("questionId", $anon.this.circeGenericEncoderForquestionId.apply(circeGenericHListBindingForquestionId)), scala.Tuple2.apply[String, io.circe.Json]("key", $anon.this.circeGenericEncoderForlabel.apply(circeGenericHListBindingForkey)), scala.Tuple2.apply[String, io.circe.Json]("label", $anon.this.circeGenericEncoderForlabel.apply(circeGenericHListBindingForlabel)), scala.Tuple2.apply[String, io.circe.Json]("score", $anon.this.circeGenericEncoderForscore.apply(circeGenericHListBindingForscore)), scala.Tuple2.apply[String, io.circe.Json]("count", $anon.this.circeGenericEncoderForcount.apply(circeGenericHListBindingForcount)), scala.Tuple2.apply[String, io.circe.Json]("topKeyword", $anon.this.circeGenericEncoderFortopKeyword.apply(circeGenericHListBindingFortopKeyword)))) }; final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("questionId"), org.make.core.question.QuestionId, shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionId.tryDecode(c.downField("questionId")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("key"), String, shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlabel.tryDecode(c.downField("key")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("label"), String, shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlabel.tryDecode(c.downField("label")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("score"), Float, shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForscore.tryDecode(c.downField("score")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("count"), eu.timepit.refined.types.numeric.NonNegInt, shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcount.tryDecode(c.downField("count")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("topKeyword"), Boolean, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFortopKeyword.tryDecode(c.downField("topKeyword")), ReprDecoder.hnilResult)(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance); final override def decodeAccumulating(c: io.circe.HCursor): io.circe.Decoder.AccumulatingResult[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("questionId"), org.make.core.question.QuestionId, shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionId.tryDecodeAccumulating(c.downField("questionId")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("key"), String, shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlabel.tryDecodeAccumulating(c.downField("key")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("label"), String, shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlabel.tryDecodeAccumulating(c.downField("label")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("score"), Float, shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForscore.tryDecodeAccumulating(c.downField("score")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("count"), eu.timepit.refined.types.numeric.NonNegInt, shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForcount.tryDecodeAccumulating(c.downField("count")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("topKeyword"), Boolean, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFortopKeyword.tryDecodeAccumulating(c.downField("topKeyword")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance) }; new $anon() }: io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.codec.ReprAsObjectCodec[shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("key"),String] :: shapeless.labelled.FieldType[Symbol @@ String("label"),String] :: shapeless.labelled.FieldType[Symbol @@ String("score"),Float] :: shapeless.labelled.FieldType[Symbol @@ String("count"),eu.timepit.refined.types.numeric.NonNegInt] :: shapeless.labelled.FieldType[Symbol @@ String("topKeyword"),Boolean] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$27().inst$macro$1 }; shapeless.Lazy.apply[io.circe.generic.codec.DerivedAsObjectCodec[org.make.core.keyword.Keyword]](inst$macro$28) })