| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
63
|
27182
|
2516
-
2516
|
Select
|
scalacache.CacheConfig.defaultCacheConfig
|
org.make.api.question.questionservicetest
|
scalacache.this.CacheConfig.defaultCacheConfig
|
|
63
|
24924
|
2506
-
2534
|
ApplyToImplicitArgs
|
scalacache.guava.GuavaCache.apply
|
org.make.api.question.questionservicetest
|
scalacache.guava.GuavaCache.apply[Option[org.make.core.question.Question]](scalacache.this.CacheConfig.defaultCacheConfig)
|
|
66
|
22752
|
2629
-
2676
|
Apply
|
org.make.api.question.PersistentQuestionService.getByIds
|
|
DefaultQuestionServiceComponent.this.persistentQuestionService.getByIds(questionIds)
|
|
70
|
26423
|
2803
-
2878
|
Apply
|
org.make.api.question.PersistentQuestionService.getByQuestionIdValueOrSlug
|
|
DefaultQuestionServiceComponent.this.persistentQuestionService.getByQuestionIdValueOrSlug(questionIdValueOrSlug)
|
|
74
|
24159
|
2975
-
3020
|
Apply
|
org.make.api.question.PersistentQuestionService.getById
|
|
DefaultQuestionServiceComponent.this.persistentQuestionService.getById(questionId)
|
|
91
|
22977
|
3446
-
3637
|
Apply
|
scala.concurrent.Future.failed
|
|
scala.concurrent.Future.failed[Nothing](org.make.core.ValidationFailedError.apply(scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("unknown", "mandatory", scala.Some.apply[String]("operationId must be provided to question search")))))
|
|
92
|
24935
|
3473
-
3625
|
Apply
|
org.make.core.ValidationFailedError.apply
|
|
org.make.core.ValidationFailedError.apply(scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("unknown", "mandatory", scala.Some.apply[String]("operationId must be provided to question search"))))
|
|
93
|
26272
|
3510
-
3611
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[org.make.core.ValidationError](org.make.core.ValidationError.apply("unknown", "mandatory", scala.Some.apply[String]("operationId must be provided to question search")))
|
|
93
|
22281
|
3514
-
3610
|
Apply
|
org.make.core.ValidationError.apply
|
|
org.make.core.ValidationError.apply("unknown", "mandatory", scala.Some.apply[String]("operationId must be provided to question search"))
|
|
93
|
26806
|
3541
-
3552
|
Literal
|
<nosymbol>
|
|
"mandatory"
|
|
93
|
23049
|
3530
-
3539
|
Literal
|
<nosymbol>
|
|
"unknown"
|
|
93
|
24843
|
3554
-
3609
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[String]("operationId must be provided to question search")
|
|
99
|
24310
|
3725
-
3937
|
Apply
|
org.make.api.question.SearchQuestionRequest.apply
|
|
SearchQuestionRequest.apply(x$4, x$3, x$1, x$2, x$5, x$6, x$7, x$8, x$9)
|
|
99
|
25165
|
3725
-
3725
|
Select
|
org.make.api.question.SearchQuestionRequest.apply$default$7
|
|
SearchQuestionRequest.apply$default$7
|
|
99
|
26734
|
3725
-
3725
|
Select
|
org.make.api.question.SearchQuestionRequest.apply$default$9
|
|
SearchQuestionRequest.apply$default$9
|
|
99
|
24853
|
3725
-
3725
|
Select
|
org.make.api.question.SearchQuestionRequest.apply$default$1
|
|
SearchQuestionRequest.apply$default$1
|
|
99
|
26282
|
3725
-
3725
|
Select
|
org.make.api.question.SearchQuestionRequest.apply$default$6
|
|
SearchQuestionRequest.apply$default$6
|
|
99
|
22911
|
3725
-
3725
|
Select
|
org.make.api.question.SearchQuestionRequest.apply$default$8
|
|
SearchQuestionRequest.apply$default$8
|
|
99
|
22591
|
3725
-
3725
|
Select
|
org.make.api.question.SearchQuestionRequest.apply$default$5
|
|
SearchQuestionRequest.apply$default$5
|
|
100
|
26723
|
3774
-
3787
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.reference.Country](country)
|
|
101
|
24386
|
3816
-
3830
|
Apply
|
scala.Some.apply
|
|
scala.Some.apply[org.make.core.reference.Language](language)
|
|
102
|
23185
|
3904
-
3920
|
Apply
|
scala.collection.SeqFactory.Delegate.apply
|
|
scala.`package`.Seq.apply[org.make.core.operation.OperationId](operationId)
|
|
102
|
26817
|
3868
-
3921
|
Apply
|
scala.Option.map
|
|
maybeOperationId.map[Seq[org.make.core.operation.OperationId]](((operationId: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](operationId)))
|
|
105
|
23197
|
3969
-
3981
|
Select
|
scala.collection.IterableOps.headOption
|
|
x$1.headOption
|
|
105
|
24787
|
3666
-
3982
|
ApplyToImplicitArgs
|
scala.concurrent.Future.map
|
|
DefaultQuestionServiceComponent.this.persistentQuestionService.find({
<artifact> val x$1: Some[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Country](country);
<artifact> val x$2: Some[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = scala.Some.apply[org.make.core.reference.Language](language);
<artifact> val x$3: Option[Seq[org.make.core.operation.OperationId]] @scala.reflect.internal.annotations.uncheckedBounds = maybeOperationId.map[Seq[org.make.core.operation.OperationId]](((operationId: org.make.core.operation.OperationId) => scala.`package`.Seq.apply[org.make.core.operation.OperationId](operationId)));
<artifact> val x$4: Option[Seq[org.make.core.question.QuestionId]] @scala.reflect.internal.annotations.uncheckedBounds = SearchQuestionRequest.apply$default$1;
<artifact> val x$5: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = SearchQuestionRequest.apply$default$5;
<artifact> val x$6: Option[org.make.core.technical.Pagination.Offset] @scala.reflect.internal.annotations.uncheckedBounds = SearchQuestionRequest.apply$default$6;
<artifact> val x$7: Option[org.make.core.technical.Pagination.End] @scala.reflect.internal.annotations.uncheckedBounds = SearchQuestionRequest.apply$default$7;
<artifact> val x$8: Option[String] @scala.reflect.internal.annotations.uncheckedBounds = SearchQuestionRequest.apply$default$8;
<artifact> val x$9: Option[org.make.core.Order] @scala.reflect.internal.annotations.uncheckedBounds = SearchQuestionRequest.apply$default$9;
SearchQuestionRequest.apply(x$4, x$3, x$1, x$2, x$5, x$6, x$7, x$8, x$9)
}).map[Option[org.make.core.question.Question]](((x$1: Seq[org.make.core.question.Question]) => x$1.headOption))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
105
|
26877
|
3968
-
3968
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
111
|
22436
|
4096
-
4135
|
Apply
|
org.make.api.question.PersistentQuestionService.find
|
|
DefaultQuestionServiceComponent.this.persistentQuestionService.find(request)
|
|
115
|
26206
|
4229
-
4269
|
Apply
|
org.make.api.question.PersistentQuestionService.count
|
|
DefaultQuestionServiceComponent.this.persistentQuestionService.count(request)
|
|
126
|
24319
|
4599
-
4955
|
Apply
|
org.make.api.question.PersistentQuestionService.persist
|
|
DefaultQuestionServiceComponent.this.persistentQuestionService.persist(org.make.core.question.Question.apply(DefaultQuestionServiceComponent.this.idGenerator.nextQuestionId(), slug, countries, defaultLanguage, languages, questions, shortTitles, scala.None))
|
|
127
|
26665
|
4642
-
4947
|
Apply
|
org.make.core.question.Question.apply
|
|
org.make.core.question.Question.apply(DefaultQuestionServiceComponent.this.idGenerator.nextQuestionId(), slug, countries, defaultLanguage, languages, questions, shortTitles, scala.None)
|
|
128
|
25086
|
4675
-
4703
|
Apply
|
org.make.core.technical.IdGenerator.nextQuestionId
|
|
DefaultQuestionServiceComponent.this.idGenerator.nextQuestionId()
|
|
135
|
22746
|
4933
-
4937
|
Select
|
scala.None
|
|
scala.None
|
|
148
|
26219
|
5225
-
5492
|
Apply
|
org.make.api.personality.QuestionPersonalityService.find
|
org.make.api.question.questionservicetest
|
DefaultQuestionServiceComponent.this.questionPersonalityService.find(offset, end, scala.None, scala.None, scala.None, scala.Some.apply[org.make.core.question.QuestionId](questionId), personalityRoleId)
|
|
151
|
28156
|
5329
-
5333
|
Select
|
scala.None
|
org.make.api.question.questionservicetest
|
scala.None
|
|
152
|
26802
|
5355
-
5359
|
Select
|
scala.None
|
org.make.api.question.questionservicetest
|
scala.None
|
|
153
|
24629
|
5382
-
5386
|
Select
|
scala.None
|
org.make.api.question.questionservicetest
|
scala.None
|
|
154
|
22367
|
5413
-
5429
|
Apply
|
scala.Some.apply
|
org.make.api.question.questionservicetest
|
scala.Some.apply[org.make.core.question.QuestionId](questionId)
|
|
158
|
24930
|
5522
-
5530
|
Apply
|
scala.Predef.identity
|
|
scala.Predef.identity[Seq[org.make.core.personality.Personality]](x)
|
|
159
|
22675
|
5550
-
5551
|
Literal
|
<nosymbol>
|
org.make.api.question.questionservicetest
|
1
|
|
160
|
24329
|
5580
-
5626
|
Apply
|
org.make.api.user.UserService.getPersonality
|
|
DefaultQuestionServiceComponent.this.userService.getPersonality(personality.userId)
|
|
160
|
26718
|
5607
-
5625
|
Select
|
org.make.core.personality.Personality.userId
|
|
personality.userId
|
|
162
|
24780
|
5654
-
5654
|
Apply
|
org.make.api.question.DefaultQuestionServiceComponent.DefaultQuestionService.$anonfun.<init>
|
org.make.api.question.questionservicetest
|
new $anonfun()
|
|
164
|
27115
|
5697
-
6056
|
Apply
|
org.make.api.question.QuestionPersonalityResponse.apply
|
|
QuestionPersonalityResponse.apply(user.userId, user.firstName, user.lastName, user.profile.flatMap[String](((x$2: org.make.core.profile.Profile) => x$2.politicalParty)), user.profile.flatMap[String](((x$3: org.make.core.profile.Profile) => x$3.avatarUrl)), user.profile.flatMap[String](((x$4: org.make.core.profile.Profile) => x$4.gender.map[String](((x$5: org.make.core.profile.Gender) => x$5.value)))))
|
|
165
|
28085
|
5749
-
5760
|
Select
|
org.make.core.user.User.userId
|
|
user.userId
|
|
166
|
26811
|
5788
-
5802
|
Select
|
org.make.core.user.User.firstName
|
|
user.firstName
|
|
167
|
24559
|
5829
-
5842
|
Select
|
org.make.core.user.User.lastName
|
|
user.lastName
|
|
168
|
26232
|
5875
-
5913
|
Apply
|
scala.Option.flatMap
|
|
user.profile.flatMap[String](((x$2: org.make.core.profile.Profile) => x$2.politicalParty))
|
|
168
|
22585
|
5896
-
5912
|
Select
|
org.make.core.profile.Profile.politicalParty
|
|
x$2.politicalParty
|
|
169
|
23807
|
5962
-
5973
|
Select
|
org.make.core.profile.Profile.avatarUrl
|
|
x$3.avatarUrl
|
|
169
|
22687
|
5941
-
5974
|
Apply
|
scala.Option.flatMap
|
|
user.profile.flatMap[String](((x$3: org.make.core.profile.Profile) => x$3.avatarUrl))
|
|
170
|
26654
|
6033
-
6040
|
Select
|
org.make.core.profile.Gender.value
|
|
x$5.value
|
|
170
|
27931
|
5999
-
6042
|
Apply
|
scala.Option.flatMap
|
|
user.profile.flatMap[String](((x$4: org.make.core.profile.Profile) => x$4.gender.map[String](((x$5: org.make.core.profile.Gender) => x$5.value))))
|
|
170
|
24475
|
6020
-
6041
|
Apply
|
scala.Option.map
|
|
x$4.gender.map[String](((x$5: org.make.core.profile.Gender) => x$5.value))
|
|
173
|
26362
|
6083
-
6083
|
Select
|
org.make.api.technical.ActorSystemComponent.actorSystem
|
org.make.api.question.questionservicetest
|
DefaultQuestionServiceComponent.this.actorSystem
|
|
173
|
23821
|
6083
-
6083
|
ApplyToImplicitArgs
|
akka.stream.Materializer.matFromSystem
|
org.make.api.question.questionservicetest
|
stream.this.Materializer.matFromSystem(DefaultQuestionServiceComponent.this.actorSystem)
|
|
173
|
22989
|
5191
-
6122
|
ApplyToImplicitArgs
|
akka.stream.scaladsl.Source.runWith
|
org.make.api.question.questionservicetest
|
akka.stream.scaladsl.Source.future[Seq[org.make.core.personality.Personality]](DefaultQuestionServiceComponent.this.questionPersonalityService.find(offset, end, scala.None, scala.None, scala.None, scala.Some.apply[org.make.core.question.QuestionId](questionId), personalityRoleId)).mapConcat[org.make.core.personality.Personality](((x: Seq[org.make.core.personality.Personality]) => scala.Predef.identity[Seq[org.make.core.personality.Personality]](x))).mapAsync[Option[org.make.core.user.User]](1)(((personality: org.make.core.personality.Personality) => DefaultQuestionServiceComponent.this.userService.getPersonality(personality.userId))).collect[org.make.api.question.QuestionPersonalityResponse](({
@SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[Option[org.make.core.user.User],org.make.api.question.QuestionPersonalityResponse] with java.io.Serializable {
def <init>(): <$anon: Option[org.make.core.user.User] => org.make.api.question.QuestionPersonalityResponse> = {
$anonfun.super.<init>();
()
};
final override def applyOrElse[A1 <: Option[org.make.core.user.User], B1 >: org.make.api.question.QuestionPersonalityResponse](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[Option[org.make.core.user.User]]: Option[org.make.core.user.User]): Option[org.make.core.user.User] @unchecked) match {
case (value: org.make.core.user.User): Some[org.make.core.user.User]((user @ _)) => QuestionPersonalityResponse.apply(user.userId, user.firstName, user.lastName, user.profile.flatMap[String](((x$2: org.make.core.profile.Profile) => x$2.politicalParty)), user.profile.flatMap[String](((x$3: org.make.core.profile.Profile) => x$3.avatarUrl)), user.profile.flatMap[String](((x$4: org.make.core.profile.Profile) => x$4.gender.map[String](((x$5: org.make.core.profile.Gender) => x$5.value)))))
case (defaultCase$ @ _) => default.apply(x1)
};
final def isDefinedAt(x1: Option[org.make.core.user.User]): Boolean = ((x1.asInstanceOf[Option[org.make.core.user.User]]: Option[org.make.core.user.User]): Option[org.make.core.user.User] @unchecked) match {
case (value: org.make.core.user.User): Some[org.make.core.user.User]((user @ _)) => true
case (defaultCase$ @ _) => false
}
};
new $anonfun()
}: PartialFunction[Option[org.make.core.user.User],org.make.api.question.QuestionPersonalityResponse])).runWith[scala.concurrent.Future[Seq[org.make.api.question.QuestionPersonalityResponse]]](akka.stream.scaladsl.Sink.seq[org.make.api.question.QuestionPersonalityResponse])(stream.this.Materializer.matFromSystem(DefaultQuestionServiceComponent.this.actorSystem))
|
|
173
|
22597
|
6084
-
6121
|
TypeApply
|
akka.stream.scaladsl.Sink.seq
|
org.make.api.question.questionservicetest
|
akka.stream.scaladsl.Sink.seq[org.make.api.question.QuestionPersonalityResponse]
|
|
183
|
28081
|
6423
-
6423
|
Select
|
org.make.core.user.OrganisationSearchQuery.apply$default$4
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchQuery.apply$default$4
|
|
183
|
25848
|
6423
-
6423
|
Select
|
org.make.core.user.OrganisationSearchQuery.apply$default$5
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchQuery.apply$default$5
|
|
183
|
24726
|
6423
-
6758
|
Apply
|
org.make.core.user.OrganisationSearchQuery.apply
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchQuery.apply(x$1, x$3, x$4, x$5, x$6, x$2)
|
|
184
|
27124
|
6471
-
6471
|
Select
|
org.make.core.user.OrganisationSearchFilters.apply$default$3
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchFilters.apply$default$3
|
|
184
|
23966
|
6471
-
6566
|
Apply
|
org.make.core.user.OrganisationSearchFilters.apply
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchFilters.apply(scala.Some.apply[org.make.core.user.OrganisationIdsSearchFilter](org.make.core.user.OrganisationIdsSearchFilter.apply(organisationIds)), org.make.core.user.OrganisationSearchFilters.apply$default$2, org.make.core.user.OrganisationSearchFilters.apply$default$3, org.make.core.user.OrganisationSearchFilters.apply$default$4, org.make.core.user.OrganisationSearchFilters.apply$default$5, org.make.core.user.OrganisationSearchFilters.apply$default$6)
|
|
184
|
24719
|
6471
-
6471
|
Select
|
org.make.core.user.OrganisationSearchFilters.apply$default$4
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchFilters.apply$default$4
|
|
184
|
22999
|
6466
-
6567
|
Apply
|
scala.Some.apply
|
org.make.api.question.questionservicetest
|
scala.Some.apply[org.make.core.user.OrganisationSearchFilters](org.make.core.user.OrganisationSearchFilters.apply(scala.Some.apply[org.make.core.user.OrganisationIdsSearchFilter](org.make.core.user.OrganisationIdsSearchFilter.apply(organisationIds)), org.make.core.user.OrganisationSearchFilters.apply$default$2, org.make.core.user.OrganisationSearchFilters.apply$default$3, org.make.core.user.OrganisationSearchFilters.apply$default$4, org.make.core.user.OrganisationSearchFilters.apply$default$5, org.make.core.user.OrganisationSearchFilters.apply$default$6))
|
|
184
|
28071
|
6471
-
6471
|
Select
|
org.make.core.user.OrganisationSearchFilters.apply$default$2
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchFilters.apply$default$2
|
|
184
|
26213
|
6471
-
6471
|
Select
|
org.make.core.user.OrganisationSearchFilters.apply$default$6
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchFilters.apply$default$6
|
|
184
|
26662
|
6520
-
6564
|
Apply
|
org.make.core.user.OrganisationIdsSearchFilter.apply
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationIdsSearchFilter.apply(organisationIds)
|
|
184
|
22526
|
6471
-
6471
|
Select
|
org.make.core.user.OrganisationSearchFilters.apply$default$5
|
org.make.api.question.questionservicetest
|
org.make.core.user.OrganisationSearchFilters.apply$default$5
|
|
184
|
24484
|
6515
-
6565
|
Apply
|
scala.Some.apply
|
org.make.api.question.questionservicetest
|
scala.Some.apply[org.make.core.user.OrganisationIdsSearchFilter](org.make.core.user.OrganisationIdsSearchFilter.apply(organisationIds))
|
|
186
|
26668
|
6624
-
6678
|
Apply
|
scala.Option.orElse
|
org.make.api.question.questionservicetest
|
cats.implicits.toFunctorOps[Option, org.make.core.user.OrganisationSortAlgorithm](sortAlgorithm)(cats.implicits.catsStdInstancesForOption).as[org.make.core.technical.Pagination.Limit](org.make.core.technical.Pagination.Limit.apply(1000)).orElse[org.make.core.technical.Pagination.Limit](limit)
|
|
187
|
24409
|
6697
-
6750
|
Apply
|
scala.Option.orElse
|
org.make.api.question.questionservicetest
|
cats.implicits.toFunctorOps[Option, org.make.core.user.OrganisationSortAlgorithm](sortAlgorithm)(cats.implicits.catsStdInstancesForOption).as[org.make.core.technical.Pagination.Offset](org.make.core.technical.Pagination.Offset.apply(0)).orElse[org.make.core.technical.Pagination.Offset](offset)
|
|
190
|
26146
|
6800
-
6812
|
Select
|
org.make.core.technical.Pagination.extractInt
|
|
x$6.extractInt
|
|
190
|
22533
|
6797
-
6798
|
Literal
|
<nosymbol>
|
org.make.api.question.questionservicetest
|
0
|
|
190
|
23976
|
6785
-
6813
|
Apply
|
scala.Option.fold
|
org.make.api.question.questionservicetest
|
offset.fold[Int](0)(((x$6: org.make.core.technical.Pagination.Offset) => x$6.extractInt))
|
|
191
|
26600
|
6880
-
6880
|
Select
|
scala.concurrent.ExecutionContext.Implicits.global
|
org.make.api.question.questionservicetest
|
scala.concurrent.ExecutionContext.Implicits.global
|
|
191
|
24263
|
6820
-
7452
|
ApplyToImplicitArgs
|
scala.concurrent.Future.map
|
org.make.api.question.questionservicetest
|
DefaultQuestionServiceComponent.this.elasticsearchOrganisationAPI.searchOrganisations(query).map[org.make.core.user.indexed.OrganisationSearchResult](((organisationSearchResult: org.make.core.user.indexed.OrganisationSearchResult) => sortAlgorithm.collect[org.make.core.user.indexed.OrganisationSearchResult](({
@SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[org.make.core.user.OrganisationSortAlgorithm,org.make.core.user.indexed.OrganisationSearchResult] with java.io.Serializable {
def <init>(): <$anon: org.make.core.user.OrganisationSortAlgorithm => org.make.core.user.indexed.OrganisationSearchResult> = {
$anonfun.super.<init>();
()
};
final override def applyOrElse[A1 <: org.make.core.user.OrganisationSortAlgorithm, B1 >: org.make.core.user.indexed.OrganisationSearchResult](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[org.make.core.user.OrganisationSortAlgorithm]: org.make.core.user.OrganisationSortAlgorithm): org.make.core.user.OrganisationSortAlgorithm @unchecked) match {
case (questionId: org.make.core.question.QuestionId): org.make.core.user.ParticipationAlgorithm(_) => {
<artifact> val x$1: Seq[org.make.core.user.indexed.IndexedOrganisation] @scala.reflect.internal.annotations.uncheckedBounds = organisationSearchResult.results.sortBy[Int](((orga: org.make.core.user.indexed.IndexedOrganisation) => orga.countsByQuestion.collect[Int](({
@SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion,Int] with java.io.Serializable {
def <init>(): <$anon: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion => Int> = {
$anonfun.super.<init>();
()
};
final override def applyOrElse[A1 <: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion, B1 >: Int](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion]: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion): org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion @unchecked) match {
case (counts @ _) if counts.questionId.==(questionId) => counts.proposalsCount.+(counts.votesCount)
case (defaultCase$ @ _) => default.apply(x1)
};
final def isDefinedAt(x1: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion): Boolean = ((x1.asInstanceOf[org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion]: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion): org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion @unchecked) match {
case (counts @ _) if counts.questionId.==(questionId) => true
case (defaultCase$ @ _) => false
}
};
new $anonfun()
}: PartialFunction[org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion,Int])).sum[Int](math.this.Numeric.IntIsIntegral).*(-1)))(cats.implicits.catsKernelOrderingForOrder[Int](cats.implicits.catsKernelStdOrderForInt)).slice(offsetOrZero, offsetOrZero.+(limit.fold[Int](organisationSearchResult.total.toInt)(((x$7: org.make.core.technical.Pagination.Limit) => x$7.extractInt))));
<artifact> val x$2: Long = organisationSearchResult.copy$default$1;
organisationSearchResult.copy(x$2, x$1)
}
case (defaultCase$ @ _) => default.apply(x1)
};
final def isDefinedAt(x1: org.make.core.user.OrganisationSortAlgorithm): Boolean = ((x1.asInstanceOf[org.make.core.user.OrganisationSortAlgorithm]: org.make.core.user.OrganisationSortAlgorithm): org.make.core.user.OrganisationSortAlgorithm @unchecked) match {
case (questionId: org.make.core.question.QuestionId): org.make.core.user.ParticipationAlgorithm(_) => true
case (defaultCase$ @ _) => false
}
};
new $anonfun()
}: PartialFunction[org.make.core.user.OrganisationSortAlgorithm,org.make.core.user.indexed.OrganisationSearchResult])).getOrElse[org.make.core.user.indexed.OrganisationSearchResult](organisationSearchResult)))(scala.concurrent.ExecutionContext.Implicits.global)
|
|
200
|
22683
|
6918
-
7444
|
Apply
|
scala.Option.getOrElse
|
|
sortAlgorithm.collect[org.make.core.user.indexed.OrganisationSearchResult](({
@SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[org.make.core.user.OrganisationSortAlgorithm,org.make.core.user.indexed.OrganisationSearchResult] with java.io.Serializable {
def <init>(): <$anon: org.make.core.user.OrganisationSortAlgorithm => org.make.core.user.indexed.OrganisationSearchResult> = {
$anonfun.super.<init>();
()
};
final override def applyOrElse[A1 <: org.make.core.user.OrganisationSortAlgorithm, B1 >: org.make.core.user.indexed.OrganisationSearchResult](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[org.make.core.user.OrganisationSortAlgorithm]: org.make.core.user.OrganisationSortAlgorithm): org.make.core.user.OrganisationSortAlgorithm @unchecked) match {
case (questionId: org.make.core.question.QuestionId): org.make.core.user.ParticipationAlgorithm(_) => {
<artifact> val x$1: Seq[org.make.core.user.indexed.IndexedOrganisation] @scala.reflect.internal.annotations.uncheckedBounds = organisationSearchResult.results.sortBy[Int](((orga: org.make.core.user.indexed.IndexedOrganisation) => orga.countsByQuestion.collect[Int](({
@SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractPartialFunction[org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion,Int] with java.io.Serializable {
def <init>(): <$anon: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion => Int> = {
$anonfun.super.<init>();
()
};
final override def applyOrElse[A1 <: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion, B1 >: Int](x1: A1, default: A1 => B1): B1 = ((x1.asInstanceOf[org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion]: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion): org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion @unchecked) match {
case (counts @ _) if counts.questionId.==(questionId) => counts.proposalsCount.+(counts.votesCount)
case (defaultCase$ @ _) => default.apply(x1)
};
final def isDefinedAt(x1: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion): Boolean = ((x1.asInstanceOf[org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion]: org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion): org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion @unchecked) match {
case (counts @ _) if counts.questionId.==(questionId) => true
case (defaultCase$ @ _) => false
}
};
new $anonfun()
}: PartialFunction[org.make.core.user.indexed.ProposalsAndVotesCountsByQuestion,Int])).sum[Int](math.this.Numeric.IntIsIntegral).*(-1)))(cats.implicits.catsKernelOrderingForOrder[Int](cats.implicits.catsKernelStdOrderForInt)).slice(offsetOrZero, offsetOrZero.+(limit.fold[Int](organisationSearchResult.total.toInt)(((x$7: org.make.core.technical.Pagination.Limit) => x$7.extractInt))));
<artifact> val x$2: Long = organisationSearchResult.copy$default$1;
organisationSearchResult.copy(x$2, x$1)
}
case (defaultCase$ @ _) => default.apply(x1)
};
final def isDefinedAt(x1: org.make.core.user.OrganisationSortAlgorithm): Boolean = ((x1.asInstanceOf[org.make.core.user.OrganisationSortAlgorithm]: org.make.core.user.OrganisationSortAlgorithm): org.make.core.user.OrganisationSortAlgorithm @unchecked) match {
case (questionId: org.make.core.question.QuestionId): org.make.core.user.ParticipationAlgorithm(_) => true
case (defaultCase$ @ _) => false
}
};
new $anonfun()
}: PartialFunction[org.make.core.user.OrganisationSortAlgorithm,org.make.core.user.indexed.OrganisationSearchResult])).getOrElse[org.make.core.user.indexed.OrganisationSearchResult](organisationSearchResult)
|