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.api.technical.generator.fixtures
21 
22 import cats.implicits._
23 import akka.stream.scaladsl.{Sink, Source}
24 import cats.data.{NonEmptyList => Nel}
25 import grizzled.slf4j.Logging
26 import org.make.api.extensions.MakeSettingsComponent
27 import org.make.api.operation.{
28   CreateOperationOfQuestion,
29   OperationOfQuestionServiceComponent,
30   OperationServiceComponent
31 }
32 import org.make.api.organisation.OrganisationServiceComponent
33 import org.make.api.partner.PartnerServiceComponent
34 import org.make.api.proposal.{
35   ProposalServiceComponent,
36   RefuseProposalRequest,
37   UpdateQualificationRequest,
38   UpdateVoteRequest
39 }
40 import org.make.api.question.{PersistentQuestionServiceComponent, QuestionServiceComponent}
41 import org.make.api.sessionhistory.SessionHistoryCoordinatorServiceComponent
42 import org.make.api.tag.TagServiceComponent
43 import org.make.api.technical.ActorSystemComponent
44 import org.make.api.technical.ExecutorServiceHelper._
45 import org.make.api.technical.generator.EntitiesGen
46 import org.make.api.technical.security.SecurityConfigurationComponent
47 import org.make.api.user.UserServiceComponent
48 import org.make.core.operation.{OperationId, SimpleOperation}
49 import org.make.core.partner.Partner
50 import org.make.core.proposal.{ProposalId, ProposalStatus, VoteKey}
51 import org.make.core.question.{Question, QuestionId}
52 import org.make.core.reference.{Country, Language}
53 import org.make.core.session.SessionId
54 import org.make.core.tag.{Tag, TagId}
55 import org.make.core.user.{User, UserId}
56 import org.make.core.{DateHelper, RequestContext}
57 import org.scalacheck.Gen
58 import org.scalacheck.Gen.Parameters
59 import org.scalacheck.rng.Seed
60 
61 import java.util.concurrent.Executors
62 import scala.concurrent.{ExecutionContext, Future}
63 
64 trait FixturesService {
65   def generate(
66     maybeOperationId: Option[OperationId],
67     maybeQuestionId: Option[QuestionId],
68     maxProposals: Option[Int] = None,
69     forceCountries: Option[Nel[Country]] = None,
70     forceLanguage: Option[Language] = None
71   ): Future[FixtureResponse]
72 }
73 
74 trait FixturesServiceComponent {
75   def fixturesService: FixturesService
76 }
77 
78 trait DefaultFixturesServiceComponent extends FixturesServiceComponent with Logging {
79   this: OperationServiceComponent
80     with UserServiceComponent
81     with QuestionServiceComponent
82     with OperationOfQuestionServiceComponent
83     with ProposalServiceComponent
84     with TagServiceComponent
85     with OrganisationServiceComponent
86     with PartnerServiceComponent
87     with PersistentQuestionServiceComponent
88     with SecurityConfigurationComponent
89     with SessionHistoryCoordinatorServiceComponent
90     with ActorSystemComponent
91     with MakeSettingsComponent =>
92   override lazy val fixturesService: FixturesService = new DefaultFixturesService
93 
94   class DefaultFixturesService extends FixturesService {
95 
96     private val nThreads = 32
97     implicit private val executionContext: ExecutionContext =
98       Executors.newFixedThreadPool(nThreads).instrument("fixtures").toExecutionContext
99 
100     @SuppressWarnings(Array("org.wartremover.warts.OptionPartial"))
101     override def generate(
102       maybeOperationId: Option[OperationId],
103       maybeQuestionId: Option[QuestionId],
104       maxProposals: Option[Int] = None,
105       forceCountries: Option[Nel[Country]],
106       forceLanguage: Option[Language]
107     ): Future[FixtureResponse] = {
108       val futureAdmin: Future[User] = userService.getUserByEmail(makeSettings.defaultAdmin.email).flatMap {
109         case Some(user) => Future.successful(user)
110         case None       => Future.failed(new IllegalStateException())
111       }
112       for {
113         admin          <- futureAdmin
114         operationId    <- generateOperation(maybeOperationId, admin.userId)
115         questionId     <- generateQuestion(maybeQuestionId, operationId, forceCountries, forceLanguage)
116         users          <- generateUsers(questionId)
117         orgas          <- generateOrganisations
118         partners       <- generatePartners(questionId, orgas)
119         question       <- questionService.getQuestion(questionId).map(_.get)
120         tags           <- generateTags(question)
121         proposals      <- generateProposals(question, users ++ orgas, tags.map(_.tagId), admin.userId, maxProposals)
122         orgasVoteCount <- generateOrganisationVotes(orgas, proposals)
123       } yield FixtureResponse(
124         operationId = operationId,
125         questionId = questionId,
126         userCount = users.size,
127         organisationCount = orgas.size,
128         partnerCount = partners.size,
129         tagCount = tags.size,
130         proposalCount = proposals.size,
131         organisationsVoteCount = orgasVoteCount
132       )
133     }
134 
135     def generateOperation(maybeOperationId: Option[OperationId], adminUserId: UserId): Future[OperationId] = {
136       maybeOperationId match {
137         case Some(operationId) => Future.successful(operationId)
138         case None =>
139           val operation: SimpleOperation = EntitiesGen.genSimpleOperation.value
140           operationService.create(userId = adminUserId, slug = operation.slug, operationKind = operation.operationKind)
141       }
142     }
143 
144     def generateQuestion(
145       maybeQuestionId: Option[QuestionId],
146       operationId: OperationId,
147       forceCountries: Option[Nel[Country]],
148       forceLanguage: Option[Language]
149     ): Future[QuestionId] = {
150       maybeQuestionId match {
151         case Some(questionId) =>
152           questionService.getQuestion(questionId).flatMap {
153             case Some(question) =>
154               persistentQuestionService
155                 .modify(
156                   question.copy(
157                     countries = forceCountries.getOrElse(question.countries),
158                     languages = forceLanguage.fold(question.languages)(Nel.of(_))
159                   )
160                 )
161                 .map(_.questionId)
162             case None => Future.successful(questionId)
163           }
164         case None =>
165           val parameters: CreateOperationOfQuestion =
166             EntitiesGen.genCreateOperationOfQuestion(operationId, forceCountries, forceLanguage).value
167           operationOfQuestionService.create(parameters).map { question =>
168             logger.info(s"generated: question ${question.questionId}")
169             question.questionId
170           }
171       }
172     }
173 
174     def generateUsers(questionId: QuestionId): Future[Seq[User]] = {
175       val usersData = Gen.listOf(EntitiesGen.genUserRegisterData(Some(questionId))).value
176       logger.info(s"generating: ${usersData.size} users")
177       Source(usersData.distinctBy(_.email))
178         .mapAsync(16) { data =>
179           userService.register(data, RequestContext.empty)
180         }
181         .runWith(Sink.seq)
182     }
183 
184     def generateOrganisations: Future[Seq[User]] = {
185       val parameters = Parameters.default.withSize(20)
186       val orgasData = Gen.listOf(EntitiesGen.genOrganisationRegisterData).pureApply(parameters, Seed.random())
187       logger.info(s"generating: ${orgasData.size} organisations")
188       Source(orgasData.distinctBy(_.email))
189         .mapAsync(16) { data =>
190           organisationService.register(data, RequestContext.empty)
191         }
192         .runWith(Sink.seq)
193     }
194 
195     def generatePartners(questionId: QuestionId, organisations: Seq[User]): Future[Seq[Partner]] = {
196       val parameters = Parameters.default.withSize(20)
197       val partnersData =
198         Gen.listOf(EntitiesGen.genCreatePartnerRequest(None, questionId)).pureApply(parameters, Seed.random()) ++
199           organisations.map(orga => EntitiesGen.genCreatePartnerRequest(Some(orga), questionId).value)
200       logger.info(s"generating: ${partnersData.size} partners")
201       Source(partnersData)
202         .mapAsync(16) { data =>
203           partnerService.createPartner(data)
204         }
205         .runWith(Sink.seq)
206     }
207 
208     @SuppressWarnings(Array("org.wartremover.warts.OptionPartial"))
209     def generateProposals(
210       question: Question,
211       users: Seq[User],
212       tagsIds: Seq[TagId],
213       adminUserId: UserId,
214       proposalsSize: Option[Int]
215     ): Future[Seq[ProposalId]] = {
216       val parameters: Parameters = Parameters.default.withSize(2000)
217 
218       def gen[T]: Gen[T] => Gen[List[T]] = proposalsSize match {
219         case None       => Gen.listOf(_)
220         case Some(size) => Gen.listOfN(size, _)
221       }
222 
223       val proposalsData = gen(EntitiesGen.genProposal(question, users, tagsIds))
224         .pureApply(parameters, Seed.random())
225       logger.info(s"generating: ${proposalsData.size} proposals")
226 
227       Source(proposalsData)
228         .mapAsync(16) { proposal =>
229           proposalService
230             .propose(
231               user = users.find(_.userId == proposal.author).get,
232               requestContext = proposal.creationContext,
233               createdAt = proposal.createdAt.getOrElse(DateHelper.now()),
234               content = proposal.content,
235               question = question,
236               initialProposal = proposal.initialProposal,
237               submittedAsLanguage = proposal.creationContext.languageContext.language.getOrElse(Language("fr")),
238               isAnonymous = proposal.isAnonymous,
239               proposalType = proposal.proposalType
240             )
241             .map(proposalId => proposal.copy(proposalId = proposalId))
242         }
243         .mapAsync(16) { proposal =>
244           proposal.status match {
245             case ProposalStatus.Pending => Future.successful(proposal)
246             case ProposalStatus.Postponed =>
247               proposalService
248                 .postponeProposal(proposal.proposalId, adminUserId, RequestContext.empty)
249                 .map(_ => proposal)
250             case ProposalStatus.Accepted =>
251               proposalService
252                 .validateProposal(
253                   proposalId = proposal.proposalId,
254                   moderator = adminUserId,
255                   requestContext = RequestContext.empty,
256                   question = question,
257                   newContent = None,
258                   newContentTranslations = None,
259                   sendNotificationEmail = false,
260                   tags = proposal.tags
261                 )
262                 .map(_ => proposal)
263             case ProposalStatus.Refused =>
264               proposalService
265                 .refuseProposal(
266                   proposalId = proposal.proposalId,
267                   moderator = adminUserId,
268                   requestContext = RequestContext.empty,
269                   request = RefuseProposalRequest(sendNotificationEmail = false, refusalReason = proposal.refusalReason)
270                 )
271                 .map(_ => proposal)
272             case ProposalStatus.Archived => Future.successful(proposal)
273           }
274         }
275         .mapAsync(16) { proposal =>
276           val votes = proposal.votingOptions.map(
277             _.deprecatedVotesSeq
278               .map(
279                 v =>
280                   UpdateVoteRequest(
281                     key = v.key,
282                     count = Some(v.count),
283                     countVerified = Some(v.countVerified),
284                     countSequence = Some(v.countSequence),
285                     countSegment = Some(v.countSegment),
286                     qualifications = v.qualifications.map(
287                       q =>
288                         UpdateQualificationRequest(
289                           key = q.key,
290                           count = Some(q.count),
291                           countVerified = Some(q.countVerified),
292                           countSequence = Some(q.countSequence),
293                           countSegment = Some(q.countSegment)
294                         )
295                     )
296                   )
297               )
298           )
299           proposal.status match {
300             case ProposalStatus.Accepted =>
301               proposalService
302                 .updateVotes(
303                   proposalId = proposal.proposalId,
304                   moderator = adminUserId,
305                   requestContext = RequestContext.empty,
306                   updatedAt = proposal.updatedAt.getOrElse(DateHelper.now()),
307                   votes = votes.getOrElse(Seq.empty)
308                 )
309                 .as(proposal.proposalId)
310             case _ => Future.successful(proposal.proposalId)
311           }
312         }
313         .runWith(Sink.seq)
314     }
315 
316     def generateTags(question: Question): Future[Seq[Tag]] = {
317       val tagsData: Seq[Tag] = Gen.listOf(EntitiesGen.genTag(question.operationId, Some(question.questionId))).value
318       logger.info(s"generating: ${tagsData.size} tags")
319       Source(tagsData.distinctBy(_.label))
320         .mapAsync(16) { tag =>
321           tagService.createTag(
322             label = tag.label,
323             tagTypeId = tag.tagTypeId,
324             question = question,
325             display = tag.display,
326             weight = tag.weight
327           )
328         }
329         .runWith(Sink.seq)
330     }
331 
332     def generateOrganisationVotes(orgas: Seq[User], proposals: Seq[ProposalId]): Future[Int] = {
333       val sampleSize = if (proposals.sizeIs > 50) 50 else proposals.size
334       val proposalsSample = Gen.pick(sampleSize, proposals).value
335 
336       def proposalKey(proposalId: ProposalId, sessionId: SessionId): String =
337         proposalService.generateProposalKeyHash(
338           proposalId,
339           sessionId,
340           Some("fixtures"),
341           securityConfiguration.secureVoteSalt
342         )
343 
344       def requestContext(sessionId: SessionId) =
345         RequestContext.empty.copy(sessionId = sessionId, location = Some("fixtures"))
346 
347       Source(orgas)
348         .mapAsync(16) { orga =>
349           val sessionId = SessionId(orga.userId.value)
350           sessionHistoryCoordinatorService
351             .convertSession(sessionId, orga.userId, requestContext(sessionId))
352             .map(_ => orga)
353         }
354         .map(_ -> Gen.pick(sampleSize / 5, proposalsSample).value)
355         .mapAsync(16) {
356           case (orga, sample) =>
357             val sessionId = SessionId(orga.userId.value)
358             Source(sample.toSeq)
359               .mapAsync(1) { proposalId =>
360                 proposalService.voteProposal(
361                   proposalId = proposalId,
362                   maybeUserId = Some(orga.userId),
363                   requestContext = requestContext(sessionId),
364                   voteKey = Gen.frequency((6, VoteKey.Agree), (3, VoteKey.Disagree), (1, VoteKey.Neutral)).value,
365                   proposalKey = Some(proposalKey(proposalId, sessionId))
366                 )
367               }
368               .runWith(Sink.seq)
369               .map(_.size)
370         }
371         .runWith(Sink.seq)
372         .map(_.sum)
373     }
374   }
375 }
Line Stmt Id Pos Tree Symbol Tests Code
96 50510 3566 - 3568 Literal <nosymbol> 32
98 34485 3637 - 3717 Select org.make.api.technical.ExecutorServiceHelper.RichExecutorService.toExecutionContext org.make.api.technical.ExecutorServiceHelper.RichExecutorService(org.make.api.technical.ExecutorServiceHelper.RichExecutorService(java.util.concurrent.Executors.newFixedThreadPool(DefaultFixturesService.this.nThreads)).instrument("fixtures")).toExecutionContext
98 43388 3637 - 3698 Apply org.make.api.technical.ExecutorServiceHelper.RichExecutorService.instrument org.make.api.technical.ExecutorServiceHelper.RichExecutorService(java.util.concurrent.Executors.newFixedThreadPool(DefaultFixturesService.this.nThreads)).instrument("fixtures")
108 37908 4097 - 4295 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesServiceComponent.this.userService.getUserByEmail(DefaultFixturesServiceComponent.this.makeSettings.defaultAdmin.email).flatMap[org.make.core.user.User](((x0$1: Option[org.make.core.user.User]) => x0$1 match { case (value: org.make.core.user.User): Some[org.make.core.user.User]((user @ _)) => scala.concurrent.Future.successful[org.make.core.user.User](user) case scala.None => scala.concurrent.Future.failed[Nothing](new java.lang.IllegalStateException()) }))(DefaultFixturesService.this.executionContext)
108 31346 4124 - 4155 Select org.make.api.extensions.MakeSettings.DefaultAdmin.email DefaultFixturesServiceComponent.this.makeSettings.defaultAdmin.email
108 45502 4165 - 4165 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
109 43707 4194 - 4217 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[org.make.core.user.User](user)
110 49933 4245 - 4287 Apply scala.concurrent.Future.failed scala.concurrent.Future.failed[Nothing](new java.lang.IllegalStateException())
110 36891 4259 - 4286 Apply java.lang.IllegalStateException.<init> new java.lang.IllegalStateException()
113 35876 4302 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap futureAdmin.flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((admin: org.make.core.user.User) => DefaultFixturesService.this.generateOperation(maybeOperationId, admin.userId).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((operationId: org.make.core.operation.OperationId) => DefaultFixturesService.this.generateQuestion(maybeQuestionId, operationId, forceCountries, forceLanguage).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((questionId: org.make.core.question.QuestionId) => DefaultFixturesService.this.generateUsers(questionId).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((users: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generateOrganisations.flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((orgas: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generatePartners(questionId, orgas).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((partners: Seq[org.make.core.partner.Partner]) => DefaultFixturesServiceComponent.this.questionService.getQuestion(questionId).map[org.make.core.question.Question](((x$1: Option[org.make.core.question.Question]) => x$1.get))(DefaultFixturesService.this.executionContext).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((question: org.make.core.question.Question) => DefaultFixturesService.this.generateTags(question).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((tags: Seq[org.make.core.tag.Tag]) => DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
113 44760 4331 - 4331 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
114 48172 4354 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesService.this.generateOperation(maybeOperationId, admin.userId).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((operationId: org.make.core.operation.OperationId) => DefaultFixturesService.this.generateQuestion(maybeQuestionId, operationId, forceCountries, forceLanguage).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((questionId: org.make.core.question.QuestionId) => DefaultFixturesService.this.generateUsers(questionId).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((users: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generateOrganisations.flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((orgas: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generatePartners(questionId, orgas).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((partners: Seq[org.make.core.partner.Partner]) => DefaultFixturesServiceComponent.this.questionService.getQuestion(questionId).map[org.make.core.question.Question](((x$1: Option[org.make.core.question.Question]) => x$1.get))(DefaultFixturesService.this.executionContext).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((question: org.make.core.question.Question) => DefaultFixturesService.this.generateTags(question).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((tags: Seq[org.make.core.tag.Tag]) => DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
114 51030 4408 - 4420 Select org.make.core.user.User.userId admin.userId
114 35541 4369 - 4369 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
115 42645 4430 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesService.this.generateQuestion(maybeQuestionId, operationId, forceCountries, forceLanguage).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((questionId: org.make.core.question.QuestionId) => DefaultFixturesService.this.generateUsers(questionId).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((users: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generateOrganisations.flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((orgas: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generatePartners(questionId, orgas).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((partners: Seq[org.make.core.partner.Partner]) => DefaultFixturesServiceComponent.this.questionService.getQuestion(questionId).map[org.make.core.question.Question](((x$1: Option[org.make.core.question.Question]) => x$1.get))(DefaultFixturesService.this.executionContext).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((question: org.make.core.question.Question) => DefaultFixturesService.this.generateTags(question).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((tags: Seq[org.make.core.tag.Tag]) => DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
115 50252 4445 - 4445 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
116 41625 4549 - 4549 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
116 37455 4534 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesService.this.generateUsers(questionId).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((users: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generateOrganisations.flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((orgas: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generatePartners(questionId, orgas).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((partners: Seq[org.make.core.partner.Partner]) => DefaultFixturesServiceComponent.this.questionService.getQuestion(questionId).map[org.make.core.question.Question](((x$1: Option[org.make.core.question.Question]) => x$1.get))(DefaultFixturesService.this.executionContext).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((question: org.make.core.question.Question) => DefaultFixturesService.this.generateTags(question).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((tags: Seq[org.make.core.tag.Tag]) => DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
117 36117 4601 - 4601 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
117 49921 4586 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesService.this.generateOrganisations.flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((orgas: Seq[org.make.core.user.User]) => DefaultFixturesService.this.generatePartners(questionId, orgas).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((partners: Seq[org.make.core.partner.Partner]) => DefaultFixturesServiceComponent.this.questionService.getQuestion(questionId).map[org.make.core.question.Question](((x$1: Option[org.make.core.question.Question]) => x$1.get))(DefaultFixturesService.this.executionContext).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((question: org.make.core.question.Question) => DefaultFixturesService.this.generateTags(question).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((tags: Seq[org.make.core.tag.Tag]) => DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
118 30877 4649 - 4649 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
118 43697 4634 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesService.this.generatePartners(questionId, orgas).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((partners: Seq[org.make.core.partner.Partner]) => DefaultFixturesServiceComponent.this.questionService.getQuestion(questionId).map[org.make.core.question.Question](((x$1: Option[org.make.core.question.Question]) => x$1.get))(DefaultFixturesService.this.executionContext).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((question: org.make.core.question.Question) => DefaultFixturesService.this.generateTags(question).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((tags: Seq[org.make.core.tag.Tag]) => DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
119 34517 4757 - 4757 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
119 42610 4711 - 4711 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
119 43420 4758 - 4763 Select scala.Option.get x$1.get
119 35074 4696 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesServiceComponent.this.questionService.getQuestion(questionId).map[org.make.core.question.Question](((x$1: Option[org.make.core.question.Question]) => x$1.get))(DefaultFixturesService.this.executionContext).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((question: org.make.core.question.Question) => DefaultFixturesService.this.generateTags(question).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((tags: Seq[org.make.core.tag.Tag]) => DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
120 50216 4773 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesService.this.generateTags(question).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((tags: Seq[org.make.core.tag.Tag]) => DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
120 37703 4788 - 4788 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
121 44449 4893 - 4900 Select org.make.core.tag.Tag.tagId x$2.tagId
121 31090 4868 - 4882 Apply scala.collection.IterableOps.++ users.++[org.make.core.user.User](orgas)
121 36655 4884 - 4901 Apply scala.collection.IterableOps.map tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId))
121 50008 4837 - 4837 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
121 49973 4903 - 4915 Select org.make.core.user.User.userId admin.userId
121 41584 4822 - 5335 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesService.this.generateProposals(question, users.++[org.make.core.user.User](orgas), tags.map[org.make.core.tag.TagId](((x$2: org.make.core.tag.Tag) => x$2.tagId)), admin.userId, maxProposals).flatMap[org.make.api.technical.generator.fixtures.FixtureResponse](((proposals: Seq[org.make.core.proposal.ProposalId]) => DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)))(DefaultFixturesService.this.executionContext)
122 36084 4939 - 5335 ApplyToImplicitArgs scala.concurrent.Future.map DefaultFixturesService.this.generateOrganisationVotes(orgas, proposals).map[org.make.api.technical.generator.fixtures.FixtureResponse](((orgasVoteCount: Int) => FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)))(DefaultFixturesService.this.executionContext)
122 44212 4954 - 4954 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
123 31133 5015 - 5335 Apply org.make.api.technical.generator.fixtures.FixtureResponse.apply FixtureResponse.apply(operationId, questionId, users.size, orgas.size, partners.size, tags.size, proposals.size, orgasVoteCount)
126 45541 5120 - 5130 Select scala.collection.SeqOps.size users.size
127 37662 5160 - 5170 Select scala.collection.SeqOps.size orgas.size
128 50461 5195 - 5208 Select scala.collection.SeqOps.size partners.size
129 43183 5229 - 5238 Select scala.collection.SeqOps.size tags.size
130 35038 5264 - 5278 Select scala.collection.SeqOps.size proposals.size
137 49964 5519 - 5549 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[org.make.core.operation.OperationId](operationId)
139 35578 5614 - 5650 ApplyToImplicitArgs org.make.api.technical.generator.fixtures.RichGen.value qual$1.value(x$1, x$2)
139 50292 5645 - 5645 Select org.make.api.technical.generator.fixtures.RichGen.value$default$1 qual$1.value$default$1
139 43171 5645 - 5645 Select org.make.api.technical.generator.fixtures.RichGen.value$default$2 qual$1.value$default$2
139 42088 5614 - 5644 Select org.make.core.technical.generator.EntitiesGen.genSimpleOperation org.make.api.technical.generator.EntitiesGen.genSimpleOperation
139 38257 5614 - 5644 ApplyImplicitView org.make.api.technical.generator.fixtures.RichGen fixtures.this.`package`.RichGen[org.make.core.operation.SimpleOperation](org.make.api.technical.generator.EntitiesGen.genSimpleOperation)
140 35908 5746 - 5769 Select org.make.core.operation.SimpleOperation.operationKind operation.operationKind
140 44795 5714 - 5728 Select org.make.core.operation.SimpleOperation.slug operation.slug
140 42123 5661 - 5770 Apply org.make.api.operation.OperationService.create qual$2.create(x$3, x$4, x$5, x$6)
140 49710 5678 - 5678 Select org.make.api.operation.OperationService.create$default$4 qual$2.create$default$4
140 48627 5661 - 5677 Select org.make.api.operation.OperationServiceComponent.operationService DefaultFixturesServiceComponent.this.operationService
152 49503 6120 - 6120 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
152 41374 6072 - 6554 ApplyToImplicitArgs scala.concurrent.Future.flatMap DefaultFixturesServiceComponent.this.questionService.getQuestion(questionId).flatMap[org.make.core.question.QuestionId](((x0$1: Option[org.make.core.question.Question]) => x0$1 match { case (value: org.make.core.question.Question): Some[org.make.core.question.Question]((question @ _)) => DefaultFixturesServiceComponent.this.persistentQuestionService.modify({ <artifact> val x$1: cats.data.NonEmptyList[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = forceCountries.getOrElse[cats.data.NonEmptyList[org.make.core.reference.Country]](question.countries); <artifact> val x$2: cats.data.NonEmptyList[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = forceLanguage.fold[cats.data.NonEmptyList[org.make.core.reference.Language]](question.languages)(((x$3: org.make.core.reference.Language) => cats.data.NonEmptyList.of[org.make.core.reference.Language](x$3))); <artifact> val x$3: org.make.core.question.QuestionId = question.copy$default$1; <artifact> val x$4: String = question.copy$default$2; <artifact> val x$5: org.make.core.reference.Language = question.copy$default$4; <artifact> val x$6: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.collection.NonEmpty]] @scala.reflect.internal.annotations.uncheckedBounds = question.copy$default$6; <artifact> val x$7: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.collection.NonEmpty]]] @scala.reflect.internal.annotations.uncheckedBounds = question.copy$default$7; <artifact> val x$8: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = question.copy$default$8; question.copy(x$3, x$4, x$1, x$5, x$2, x$6, x$7, x$8) }).map[org.make.core.question.QuestionId](((x$4: org.make.core.question.Question) => x$4.questionId))(DefaultFixturesService.this.executionContext) case scala.None => scala.concurrent.Future.successful[org.make.core.question.QuestionId](questionId) }))(DefaultFixturesService.this.executionContext)
156 41879 6249 - 6249 Select org.make.core.question.Question.copy$default$6 question.copy$default$6
156 50791 6249 - 6249 Select org.make.core.question.Question.copy$default$8 question.copy$default$8
156 44244 6249 - 6249 Select org.make.core.question.Question.copy$default$1 question.copy$default$1
156 36441 6249 - 6249 Select org.make.core.question.Question.copy$default$2 question.copy$default$2
156 42969 6240 - 6434 Apply org.make.core.question.Question.copy question.copy(x$3, x$4, x$1, x$5, x$2, x$6, x$7, x$8)
156 49746 6249 - 6249 Select org.make.core.question.Question.copy$default$4 question.copy$default$4
156 33740 6249 - 6249 Select org.make.core.question.Question.copy$default$7 question.copy$default$7
157 37696 6312 - 6330 Select org.make.core.question.Question.countries question.countries
157 51352 6287 - 6331 Apply scala.Option.getOrElse forceCountries.getOrElse[cats.data.NonEmptyList[org.make.core.reference.Country]](question.countries)
158 48126 6365 - 6414 Apply scala.Option.fold forceLanguage.fold[cats.data.NonEmptyList[org.make.core.reference.Language]](question.languages)(((x$3: org.make.core.reference.Language) => cats.data.NonEmptyList.of[org.make.core.reference.Language](x$3)))
158 43205 6384 - 6402 Select org.make.core.question.Question.languages question.languages
158 35328 6404 - 6413 Apply cats.data.NonEmptyList.of cats.data.NonEmptyList.of[org.make.core.reference.Language](x$3)
161 35366 6474 - 6486 Select org.make.core.question.Question.questionId x$4.questionId
161 48162 6473 - 6473 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
161 43996 6171 - 6487 ApplyToImplicitArgs scala.concurrent.Future.map DefaultFixturesServiceComponent.this.persistentQuestionService.modify({ <artifact> val x$1: cats.data.NonEmptyList[org.make.core.reference.Country] @scala.reflect.internal.annotations.uncheckedBounds = forceCountries.getOrElse[cats.data.NonEmptyList[org.make.core.reference.Country]](question.countries); <artifact> val x$2: cats.data.NonEmptyList[org.make.core.reference.Language] @scala.reflect.internal.annotations.uncheckedBounds = forceLanguage.fold[cats.data.NonEmptyList[org.make.core.reference.Language]](question.languages)(((x$3: org.make.core.reference.Language) => cats.data.NonEmptyList.of[org.make.core.reference.Language](x$3))); <artifact> val x$3: org.make.core.question.QuestionId = question.copy$default$1; <artifact> val x$4: String = question.copy$default$2; <artifact> val x$5: org.make.core.reference.Language = question.copy$default$4; <artifact> val x$6: org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.collection.NonEmpty]] @scala.reflect.internal.annotations.uncheckedBounds = question.copy$default$6; <artifact> val x$7: Option[org.make.core.technical.Multilingual[eu.timepit.refined.api.Refined[String,eu.timepit.refined.collection.NonEmpty]]] @scala.reflect.internal.annotations.uncheckedBounds = question.copy$default$7; <artifact> val x$8: Option[org.make.core.operation.OperationId] @scala.reflect.internal.annotations.uncheckedBounds = question.copy$default$8; question.copy(x$3, x$4, x$1, x$5, x$2, x$6, x$7, x$8) }).map[org.make.core.question.QuestionId](((x$4: org.make.core.question.Question) => x$4.questionId))(DefaultFixturesService.this.executionContext)
162 35867 6513 - 6542 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[org.make.core.question.QuestionId](questionId)
166 47920 6642 - 6732 ApplyToImplicitArgs org.make.api.technical.generator.fixtures.RichGen.value qual$1.value(x$9, x$10)
166 51308 6642 - 6726 ApplyImplicitView org.make.api.technical.generator.fixtures.RichGen fixtures.this.`package`.RichGen[org.make.api.operation.CreateOperationOfQuestion](org.make.api.technical.generator.EntitiesGen.genCreateOperationOfQuestion(operationId, forceCountries, forceLanguage))
166 33779 6642 - 6726 Apply org.make.api.technical.generator.EntitiesGen.genCreateOperationOfQuestion org.make.api.technical.generator.EntitiesGen.genCreateOperationOfQuestion(operationId, forceCountries, forceLanguage)
166 35119 6727 - 6727 Select org.make.api.technical.generator.fixtures.RichGen.value$default$2 qual$1.value$default$2
166 42398 6727 - 6727 Select org.make.api.technical.generator.fixtures.RichGen.value$default$1 qual$1.value$default$1
167 48940 6793 - 6793 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
167 41412 6743 - 6921 ApplyToImplicitArgs scala.concurrent.Future.map DefaultFixturesServiceComponent.this.operationOfQuestionService.create(parameters).map[org.make.core.question.QuestionId](((question: org.make.core.operation.OperationOfQuestion) => { DefaultFixturesServiceComponent.this.logger.info(("generated: question ".+(question.questionId): String)); question.questionId }))(DefaultFixturesService.this.executionContext)
168 44035 6819 - 6877 Apply grizzled.slf4j.Logger.info DefaultFixturesServiceComponent.this.logger.info(("generated: question ".+(question.questionId): String))
169 36925 6890 - 6909 Select org.make.core.operation.OperationOfQuestion.questionId question.questionId
175 33524 7071 - 7087 Apply scala.Some.apply scala.Some.apply[org.make.core.question.QuestionId](questionId)
175 35318 7028 - 7089 ApplyImplicitView org.make.api.technical.generator.fixtures.RichGen fixtures.this.`package`.RichGen[List[org.make.api.user.UserRegisterData]](org.scalacheck.Gen.listOf[org.make.api.user.UserRegisterData](org.make.api.technical.generator.EntitiesGen.genUserRegisterData(scala.Some.apply[org.make.core.question.QuestionId](questionId))))
175 47962 7090 - 7090 Select org.make.api.technical.generator.fixtures.RichGen.value$default$1 qual$1.value$default$1
175 43461 7028 - 7089 Apply org.scalacheck.Gen.listOf org.scalacheck.Gen.listOf[org.make.api.user.UserRegisterData](org.make.api.technical.generator.EntitiesGen.genUserRegisterData(scala.Some.apply[org.make.core.question.QuestionId](questionId)))
175 51341 7039 - 7088 Apply org.make.api.technical.generator.EntitiesGen.genUserRegisterData org.make.api.technical.generator.EntitiesGen.genUserRegisterData(scala.Some.apply[org.make.core.question.QuestionId](questionId))
175 36962 7028 - 7095 ApplyToImplicitArgs org.make.api.technical.generator.fixtures.RichGen.value qual$1.value(x$1, x$2)
175 40068 7090 - 7090 Select org.make.api.technical.generator.fixtures.RichGen.value$default$2 qual$1.value$default$2
176 48980 7102 - 7153 Apply grizzled.slf4j.Logger.info DefaultFixturesServiceComponent.this.logger.info(("generating: ".+(usersData.size).+(" users"): String))
177 41867 7188 - 7195 Select org.make.api.user.UserRegisterData.email x$5.email
177 33561 7167 - 7196 Apply scala.collection.immutable.StrictOptimizedSeqOps.distinctBy usersData.distinctBy[String](((x$5: org.make.api.user.UserRegisterData) => x$5.email))
178 51099 7216 - 7218 Literal <nosymbol> 16
179 43497 7267 - 7287 Select org.make.core.RequestContext.empty org.make.core.RequestContext.empty
179 35359 7240 - 7288 Apply org.make.api.user.UserService.register DefaultFixturesServiceComponent.this.userService.register(data, org.make.core.RequestContext.empty)
181 36721 7315 - 7315 ApplyToImplicitArgs akka.stream.Materializer.matFromSystem stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)
181 40883 7315 - 7315 Select org.make.api.technical.ActorSystemComponent.actorSystem DefaultFixturesServiceComponent.this.actorSystem
181 49490 7160 - 7325 ApplyToImplicitArgs akka.stream.scaladsl.Source.runWith akka.stream.scaladsl.Source.apply[org.make.api.user.UserRegisterData](usersData.distinctBy[String](((x$5: org.make.api.user.UserRegisterData) => x$5.email))).mapAsync[org.make.core.user.User](16)(((data: org.make.api.user.UserRegisterData) => DefaultFixturesServiceComponent.this.userService.register(data, org.make.core.RequestContext.empty))).runWith[scala.concurrent.Future[Seq[org.make.core.user.User]]](akka.stream.scaladsl.Sink.seq[org.make.core.user.User])(stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem))
181 48412 7316 - 7324 TypeApply akka.stream.scaladsl.Sink.seq akka.stream.scaladsl.Sink.seq[org.make.core.user.User]
185 41905 7409 - 7440 Apply org.scalacheck.Gen.Parameters.withSize org.scalacheck.Gen.Parameters.default.withSize(20)
186 35106 7515 - 7515 Select org.scalacheck.Gen.pureApply$default$3 qual$1.pureApply$default$3
186 48450 7463 - 7551 Apply org.scalacheck.Gen.pureApply qual$1.pureApply(x$1, x$2, x$3)
186 43536 7537 - 7550 Apply org.scalacheck.rng.Seed.random org.scalacheck.rng.Seed.random()
186 34031 7474 - 7513 Select org.make.api.technical.generator.EntitiesGen.genOrganisationRegisterData org.make.api.technical.generator.EntitiesGen.genOrganisationRegisterData
186 47411 7463 - 7514 Apply org.scalacheck.Gen.listOf org.scalacheck.Gen.listOf[org.make.api.organisation.OrganisationRegisterData](org.make.api.technical.generator.EntitiesGen.genOrganisationRegisterData)
187 40021 7558 - 7617 Apply grizzled.slf4j.Logger.info DefaultFixturesServiceComponent.this.logger.info(("generating: ".+(orgasData.size).+(" organisations"): String))
188 49526 7631 - 7660 Apply scala.collection.immutable.StrictOptimizedSeqOps.distinctBy orgasData.distinctBy[String](((x$6: org.make.api.organisation.OrganisationRegisterData) => x$6.email))
188 36755 7652 - 7659 Select org.make.api.organisation.OrganisationRegisterData.email x$6.email
189 41658 7680 - 7682 Literal <nosymbol> 16
190 46563 7704 - 7760 Apply org.make.api.organisation.OrganisationService.register DefaultFixturesServiceComponent.this.organisationService.register(data, org.make.core.RequestContext.empty)
190 33516 7739 - 7759 Select org.make.core.RequestContext.empty org.make.core.RequestContext.empty
192 48211 7787 - 7787 ApplyToImplicitArgs akka.stream.Materializer.matFromSystem stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)
192 35141 7787 - 7787 Select org.make.api.technical.ActorSystemComponent.actorSystem DefaultFixturesServiceComponent.this.actorSystem
192 40058 7624 - 7797 ApplyToImplicitArgs akka.stream.scaladsl.Source.runWith akka.stream.scaladsl.Source.apply[org.make.api.organisation.OrganisationRegisterData](orgasData.distinctBy[String](((x$6: org.make.api.organisation.OrganisationRegisterData) => x$6.email))).mapAsync[org.make.core.user.User](16)(((data: org.make.api.organisation.OrganisationRegisterData) => DefaultFixturesServiceComponent.this.organisationService.register(data, org.make.core.RequestContext.empty))).runWith[scala.concurrent.Future[Seq[org.make.core.user.User]]](akka.stream.scaladsl.Sink.seq[org.make.core.user.User])(stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem))
192 42740 7788 - 7796 TypeApply akka.stream.scaladsl.Sink.seq akka.stream.scaladsl.Sink.seq[org.make.core.user.User]
196 36204 7929 - 7960 Apply org.scalacheck.Gen.Parameters.withSize org.scalacheck.Gen.Parameters.default.withSize(20)
198 43492 8060 - 8060 Select org.scalacheck.Gen.pureApply$default$3 qual$1.pureApply$default$3
198 33267 7994 - 8059 Apply org.scalacheck.Gen.listOf org.scalacheck.Gen.listOf[org.make.api.partner.CreatePartnerRequest](org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest(scala.None, questionId))
198 49281 8041 - 8045 Select scala.None scala.None
198 34902 7994 - 8096 Apply org.scalacheck.Gen.pureApply qual$1.pureApply(x$1, x$2, x$3)
198 46598 8082 - 8095 Apply org.scalacheck.rng.Seed.random org.scalacheck.rng.Seed.random()
198 43245 7994 - 8202 Apply scala.collection.IterableOps.++ { <artifact> val qual$1: org.scalacheck.Gen[List[org.make.api.partner.CreatePartnerRequest]] @scala.reflect.internal.annotations.uncheckedBounds = org.scalacheck.Gen.listOf[org.make.api.partner.CreatePartnerRequest](org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest(scala.None, questionId)); <artifact> val x$1: org.scalacheck.Gen.Parameters = parameters; <artifact> val x$2: org.scalacheck.rng.Seed = org.scalacheck.rng.Seed.random(); <artifact> val x$3: Int = qual$1.pureApply$default$3; qual$1.pureApply(x$1, x$2, x$3) }.++[org.make.api.partner.CreatePartnerRequest](organisations.map[org.make.api.partner.CreatePartnerRequest](((orga: org.make.core.user.User) => { <artifact> val qual$2: org.make.api.technical.generator.fixtures.RichGen[org.make.api.partner.CreatePartnerRequest] @scala.reflect.internal.annotations.uncheckedBounds = fixtures.this.`package`.RichGen[org.make.api.partner.CreatePartnerRequest](org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest(scala.Some.apply[org.make.core.user.User](orga), questionId)); <artifact> val x$4: org.scalacheck.Gen.Parameters = qual$2.value$default$1; <artifact> val x$5: org.scalacheck.rng.Seed = qual$2.value$default$2; qual$2.value(x$4, x$5) })))
198 41696 8005 - 8058 Apply org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest(scala.None, questionId)
199 41458 8196 - 8196 Select org.make.api.technical.generator.fixtures.RichGen.value$default$2 qual$2.value$default$2
199 46631 8110 - 8202 Apply scala.collection.IterableOps.map organisations.map[org.make.api.partner.CreatePartnerRequest](((orga: org.make.core.user.User) => { <artifact> val qual$2: org.make.api.technical.generator.fixtures.RichGen[org.make.api.partner.CreatePartnerRequest] @scala.reflect.internal.annotations.uncheckedBounds = fixtures.this.`package`.RichGen[org.make.api.partner.CreatePartnerRequest](org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest(scala.Some.apply[org.make.core.user.User](orga), questionId)); <artifact> val x$4: org.scalacheck.Gen.Parameters = qual$2.value$default$1; <artifact> val x$5: org.scalacheck.rng.Seed = qual$2.value$default$2; qual$2.value(x$4, x$5) }))
199 40093 8136 - 8195 Apply org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest(scala.Some.apply[org.make.core.user.User](orga), questionId)
199 47698 8172 - 8182 Apply scala.Some.apply scala.Some.apply[org.make.core.user.User](orga)
199 32972 8136 - 8195 ApplyImplicitView org.make.api.technical.generator.fixtures.RichGen fixtures.this.`package`.RichGen[org.make.api.partner.CreatePartnerRequest](org.make.api.technical.generator.EntitiesGen.genCreatePartnerRequest(scala.Some.apply[org.make.core.user.User](orga), questionId))
199 50042 8196 - 8196 Select org.make.api.technical.generator.fixtures.RichGen.value$default$1 qual$2.value$default$1
199 33303 8136 - 8201 ApplyToImplicitArgs org.make.api.technical.generator.fixtures.RichGen.value qual$2.value(x$4, x$5)
200 35656 8209 - 8266 Apply grizzled.slf4j.Logger.info DefaultFixturesServiceComponent.this.logger.info(("generating: ".+(partnersData.size).+(" partners"): String))
202 48758 8312 - 8314 Literal <nosymbol> 16
203 39857 8336 - 8370 Apply org.make.api.partner.PartnerService.createPartner DefaultFixturesServiceComponent.this.partnerService.createPartner(data)
205 33342 8273 - 8407 ApplyToImplicitArgs akka.stream.scaladsl.Source.runWith akka.stream.scaladsl.Source.apply[org.make.api.partner.CreatePartnerRequest](partnersData).mapAsync[org.make.core.partner.Partner](16)(((data: org.make.api.partner.CreatePartnerRequest) => DefaultFixturesServiceComponent.this.partnerService.createPartner(data))).runWith[scala.concurrent.Future[Seq[org.make.core.partner.Partner]]](akka.stream.scaladsl.Sink.seq[org.make.core.partner.Partner])(stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem))
205 33009 8398 - 8406 TypeApply akka.stream.scaladsl.Sink.seq akka.stream.scaladsl.Sink.seq[org.make.core.partner.Partner]
205 41651 8397 - 8397 ApplyToImplicitArgs akka.stream.Materializer.matFromSystem stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)
205 49788 8397 - 8397 Select org.make.api.technical.ActorSystemComponent.actorSystem DefaultFixturesServiceComponent.this.actorSystem
216 46398 8717 - 8750 Apply org.scalacheck.Gen.Parameters.withSize org.scalacheck.Gen.Parameters.default.withSize(2000)
219 43283 8844 - 8857 Apply org.scalacheck.Gen.listOf org.scalacheck.Gen.listOf[T](x$7)
220 35403 8885 - 8905 Apply org.scalacheck.Gen.listOfN org.scalacheck.Gen.listOfN[T](size, x$8)
223 48201 8945 - 8994 Apply org.make.core.technical.generator.EntitiesGen.genProposal org.make.api.technical.generator.EntitiesGen.genProposal(question, users, tagsIds)
223 39896 8941 - 8995 Apply scala.Function1.apply gen[org.make.core.proposal.Proposal].apply(org.make.api.technical.generator.EntitiesGen.genProposal(question, users, tagsIds))
224 41693 8941 - 9041 Apply org.scalacheck.Gen.pureApply qual$1.pureApply(x$1, x$2, x$3)
224 49827 9005 - 9005 Select org.scalacheck.Gen.pureApply$default$3 qual$1.pureApply$default$3
224 32759 9027 - 9040 Apply org.scalacheck.rng.Seed.random org.scalacheck.rng.Seed.random()
225 33811 9048 - 9107 Apply grizzled.slf4j.Logger.info DefaultFixturesServiceComponent.this.logger.info(("generating: ".+(proposalsData.size).+(" proposals"): String))
228 47188 9155 - 9157 Literal <nosymbol> 16
229 39322 9183 - 9198 Select org.make.api.proposal.ProposalServiceComponent.proposalService DefaultFixturesServiceComponent.this.proposalService
230 31949 9183 - 9780 Apply org.make.api.proposal.ProposalService.propose qual$2.propose(x$4, x$5, x$6, x$7, x$8, x$11, x$9, x$10, x$12)
231 40340 9242 - 9285 Select scala.Option.get users.find(((x$9: org.make.core.user.User) => x$9.userId.==(proposal.author))).get
231 48238 9253 - 9280 Apply java.lang.Object.== x$9.userId.==(proposal.author)
231 34890 9265 - 9280 Select org.make.core.proposal.Proposal.author proposal.author
232 32796 9318 - 9342 Select org.make.core.proposal.Proposal.creationContext proposal.creationContext
233 49573 9399 - 9415 Apply org.make.core.DefaultDateHelper.now org.make.core.DateHelper.now()
233 41444 9370 - 9416 Apply scala.Option.getOrElse proposal.createdAt.getOrElse[java.time.ZonedDateTime](org.make.core.DateHelper.now())
234 33847 9442 - 9458 Select org.make.core.proposal.Proposal.content proposal.content
236 46349 9527 - 9551 Select org.make.core.proposal.Proposal.initialProposal proposal.initialProposal
237 34928 9589 - 9664 Apply scala.Option.getOrElse proposal.creationContext.languageContext.language.getOrElse[org.make.core.reference.Language](org.make.core.reference.Language.apply("fr"))
237 39359 9649 - 9663 Apply org.make.core.reference.Language.apply org.make.core.reference.Language.apply("fr")
238 47994 9694 - 9714 Select org.make.core.proposal.Proposal.isAnonymous proposal.isAnonymous
239 39850 9745 - 9766 Select org.make.core.proposal.Proposal.proposalType proposal.proposalType
241 32023 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$19 proposal.copy$default$19
241 41982 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$21 proposal.copy$default$21
241 45355 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$2 proposal.copy$default$2
241 39311 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$15 proposal.copy$default$15
241 41240 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$12 proposal.copy$default$12
241 35438 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$16 proposal.copy$default$16
241 34164 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$22 proposal.copy$default$22
241 47481 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$23 proposal.copy$default$23
241 31457 9812 - 9850 Apply org.make.core.proposal.Proposal.copy proposal.copy(proposalId, proposal.copy$default$2, proposal.copy$default$3, proposal.copy$default$4, proposal.copy$default$5, proposal.copy$default$6, proposal.copy$default$7, proposal.copy$default$8, proposal.copy$default$9, proposal.copy$default$10, proposal.copy$default$11, proposal.copy$default$12, proposal.copy$default$13, proposal.copy$default$14, proposal.copy$default$15, proposal.copy$default$16, proposal.copy$default$17, proposal.copy$default$18, proposal.copy$default$19, proposal.copy$default$20, proposal.copy$default$21, proposal.copy$default$22, proposal.copy$default$23, proposal.copy$default$24)
241 47445 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$14 proposal.copy$default$14
241 46099 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$11 proposal.copy$default$11
241 33598 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$4 proposal.copy$default$4
241 47989 9797 - 9797 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
241 39349 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$24 proposal.copy$default$24
241 40949 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$18 proposal.copy$default$18
241 40916 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$9 proposal.copy$default$9
241 41484 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$3 proposal.copy$default$3
241 38505 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$6 proposal.copy$default$6
241 34405 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$13 proposal.copy$default$13
241 34692 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$7 proposal.copy$default$7
241 47782 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$17 proposal.copy$default$17
241 48030 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$8 proposal.copy$default$8
241 46388 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$5 proposal.copy$default$5
241 31985 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$10 proposal.copy$default$10
241 45861 9821 - 9821 Select org.make.core.proposal.Proposal.copy$default$20 proposal.copy$default$20
241 40705 9183 - 9851 ApplyToImplicitArgs scala.concurrent.Future.map { <artifact> val qual$2: org.make.api.proposal.ProposalService = DefaultFixturesServiceComponent.this.proposalService; <artifact> val x$4: org.make.core.user.User = users.find(((x$9: org.make.core.user.User) => x$9.userId.==(proposal.author))).get; <artifact> val x$5: org.make.core.RequestContext = proposal.creationContext; <artifact> val x$6: java.time.ZonedDateTime = proposal.createdAt.getOrElse[java.time.ZonedDateTime](org.make.core.DateHelper.now()); <artifact> val x$7: String = proposal.content; <artifact> val x$8: org.make.core.question.Question = question; <artifact> val x$9: Boolean = proposal.initialProposal; <artifact> val x$10: org.make.core.reference.Language = proposal.creationContext.languageContext.language.getOrElse[org.make.core.reference.Language](org.make.core.reference.Language.apply("fr")); <artifact> val x$11: Boolean = proposal.isAnonymous; <artifact> val x$12: org.make.core.proposal.ProposalType = proposal.proposalType; qual$2.propose(x$4, x$5, x$6, x$7, x$8, x$11, x$9, x$10, x$12) }.map[org.make.core.proposal.Proposal](((proposalId: org.make.core.proposal.ProposalId) => proposal.copy(proposalId, proposal.copy$default$2, proposal.copy$default$3, proposal.copy$default$4, proposal.copy$default$5, proposal.copy$default$6, proposal.copy$default$7, proposal.copy$default$8, proposal.copy$default$9, proposal.copy$default$10, proposal.copy$default$11, proposal.copy$default$12, proposal.copy$default$13, proposal.copy$default$14, proposal.copy$default$15, proposal.copy$default$16, proposal.copy$default$17, proposal.copy$default$18, proposal.copy$default$19, proposal.copy$default$20, proposal.copy$default$21, proposal.copy$default$22, proposal.copy$default$23, proposal.copy$default$24)))(DefaultFixturesService.this.executionContext)
243 33093 9880 - 9882 Literal <nosymbol> 16
244 45897 9908 - 9923 Select org.make.core.proposal.Proposal.status proposal.status
245 41733 9975 - 10002 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[org.make.core.proposal.Proposal](proposal)
248 46210 10146 - 10166 Select org.make.core.RequestContext.empty org.make.core.RequestContext.empty
248 33592 10112 - 10131 Select org.make.core.proposal.Proposal.proposalId proposal.proposalId
249 39107 10188 - 10188 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
249 31494 10062 - 10203 ApplyToImplicitArgs scala.concurrent.Future.map DefaultFixturesServiceComponent.this.proposalService.postponeProposal(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty).map[org.make.core.proposal.Proposal](((x$10: Option[org.make.api.proposal.ModerationProposalResponse]) => proposal))(DefaultFixturesService.this.executionContext)
253 47735 10344 - 10363 Select org.make.core.proposal.Proposal.proposalId proposal.proposalId
255 40129 10443 - 10463 Select org.make.core.RequestContext.empty org.make.core.RequestContext.empty
257 32574 10535 - 10539 Select scala.None scala.None
258 45650 10584 - 10588 Select scala.None scala.None
259 41230 10632 - 10637 Literal <nosymbol> false
260 33631 10664 - 10677 Select org.make.core.proposal.Proposal.tags proposal.tags
262 46668 10716 - 10716 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
262 39143 10262 - 10731 ApplyToImplicitArgs scala.concurrent.Future.map DefaultFixturesServiceComponent.this.proposalService.validateProposal(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty, question, scala.None, scala.None, false, proposal.tags).map[org.make.core.proposal.Proposal](((x$11: Option[org.make.api.proposal.ModerationProposalResponse]) => proposal))(DefaultFixturesService.this.executionContext)
266 31245 10869 - 10888 Select org.make.core.proposal.Proposal.proposalId proposal.proposalId
268 47769 10968 - 10988 Select org.make.core.RequestContext.empty org.make.core.RequestContext.empty
269 45687 11018 - 11110 Apply org.make.api.proposal.RefuseProposalRequest.apply org.make.api.proposal.RefuseProposalRequest.apply(false, proposal.refusalReason)
269 40166 11064 - 11069 Literal <nosymbol> false
269 33047 11087 - 11109 Select org.make.core.proposal.Proposal.refusalReason proposal.refusalReason
271 33379 10789 - 11164 ApplyToImplicitArgs scala.concurrent.Future.map DefaultFixturesServiceComponent.this.proposalService.refuseProposal(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty, org.make.api.proposal.RefuseProposalRequest.apply(false, proposal.refusalReason)).map[org.make.core.proposal.Proposal](((x$12: Option[org.make.api.proposal.ModerationProposalResponse]) => proposal))(DefaultFixturesService.this.executionContext)
271 37269 11149 - 11149 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
272 47475 11209 - 11236 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[org.make.core.proposal.Proposal](proposal)
275 39598 11277 - 11279 Literal <nosymbol> 16
276 45678 11317 - 12220 Apply scala.Option.map proposal.votingOptions.map[Seq[org.make.api.proposal.UpdateVoteRequest]](((x$13: org.make.core.proposal.VotingOptions) => x$13.deprecatedVotesSeq.map[org.make.api.proposal.UpdateVoteRequest](((v: org.make.core.proposal.Vote) => org.make.api.proposal.UpdateVoteRequest.apply(v.key, scala.Some.apply[Int](v.count), scala.Some.apply[Int](v.countVerified), scala.Some.apply[Int](v.countSequence), scala.Some.apply[Int](v.countSegment), v.qualifications.map[org.make.api.proposal.UpdateQualificationRequest](((q: org.make.core.proposal.Qualification) => org.make.api.proposal.UpdateQualificationRequest.apply(q.key, scala.Some.apply[Int](q.count), scala.Some.apply[Int](q.countVerified), scala.Some.apply[Int](q.countSequence), scala.Some.apply[Int](q.countSegment)))))))))
278 32873 11357 - 12208 Apply scala.collection.IterableOps.map x$13.deprecatedVotesSeq.map[org.make.api.proposal.UpdateVoteRequest](((v: org.make.core.proposal.Vote) => org.make.api.proposal.UpdateVoteRequest.apply(v.key, scala.Some.apply[Int](v.count), scala.Some.apply[Int](v.countVerified), scala.Some.apply[Int](v.countSequence), scala.Some.apply[Int](v.countSegment), v.qualifications.map[org.make.api.proposal.UpdateQualificationRequest](((q: org.make.core.proposal.Qualification) => org.make.api.proposal.UpdateQualificationRequest.apply(q.key, scala.Some.apply[Int](q.count), scala.Some.apply[Int](q.countVerified), scala.Some.apply[Int](q.countSequence), scala.Some.apply[Int](q.countSegment)))))))
280 39887 11437 - 12192 Apply org.make.api.proposal.UpdateVoteRequest.apply org.make.api.proposal.UpdateVoteRequest.apply(v.key, scala.Some.apply[Int](v.count), scala.Some.apply[Int](v.countVerified), scala.Some.apply[Int](v.countSequence), scala.Some.apply[Int](v.countSegment), v.qualifications.map[org.make.api.proposal.UpdateQualificationRequest](((q: org.make.core.proposal.Qualification) => org.make.api.proposal.UpdateQualificationRequest.apply(q.key, scala.Some.apply[Int](q.count), scala.Some.apply[Int](q.countVerified), scala.Some.apply[Int](q.countSequence), scala.Some.apply[Int](q.countSegment)))))
281 30724 11482 - 11487 Select org.make.core.proposal.Vote.key v.key
282 47812 11522 - 11529 Select org.make.core.proposal.Vote.count v.count
282 39928 11517 - 11530 Apply scala.Some.apply scala.Some.apply[Int](v.count)
283 33086 11573 - 11588 Select org.make.core.proposal.Vote.countVerified v.countVerified
283 46137 11568 - 11589 Apply scala.Some.apply scala.Some.apply[Int](v.countVerified)
284 33421 11627 - 11648 Apply scala.Some.apply scala.Some.apply[Int](v.countSequence)
284 37308 11632 - 11647 Select org.make.core.proposal.Vote.countSequence v.countSequence
285 47224 11690 - 11704 Select org.make.core.proposal.Vote.countSegment v.countSegment
285 39636 11685 - 11705 Apply scala.Some.apply scala.Some.apply[Int](v.countSegment)
286 44584 11744 - 12172 Apply scala.collection.IterableOps.map v.qualifications.map[org.make.api.proposal.UpdateQualificationRequest](((q: org.make.core.proposal.Qualification) => org.make.api.proposal.UpdateQualificationRequest.apply(q.key, scala.Some.apply[Int](q.count), scala.Some.apply[Int](q.countVerified), scala.Some.apply[Int](q.countSequence), scala.Some.apply[Int](q.countSegment))))
288 31233 11817 - 12150 Apply org.make.api.proposal.UpdateQualificationRequest.apply org.make.api.proposal.UpdateQualificationRequest.apply(q.key, scala.Some.apply[Int](q.count), scala.Some.apply[Int](q.countVerified), scala.Some.apply[Int](q.countSequence), scala.Some.apply[Int](q.countSegment))
289 31194 11877 - 11882 Select org.make.core.proposal.Qualification.key q.key
290 40733 11918 - 11931 Apply scala.Some.apply scala.Some.apply[Int](q.count)
290 43852 11923 - 11930 Select org.make.core.proposal.Qualification.count q.count
291 45642 11975 - 11996 Apply scala.Some.apply scala.Some.apply[Int](q.countVerified)
291 32836 11980 - 11995 Select org.make.core.proposal.Qualification.countVerified q.countVerified
292 33165 12040 - 12061 Apply scala.Some.apply scala.Some.apply[Int](q.countSequence)
292 38047 12045 - 12060 Select org.make.core.proposal.Qualification.countSequence q.countSequence
293 47259 12109 - 12123 Select org.make.core.proposal.Qualification.countSegment q.countSegment
293 39392 12104 - 12124 Apply scala.Some.apply scala.Some.apply[Int](q.countSegment)
299 37801 12231 - 12246 Select org.make.core.proposal.Proposal.status proposal.status
302 45436 12357 - 12357 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
302 37836 12357 - 12357 ApplyToImplicitArgs cats.instances.FutureInstances.catsStdInstancesForFuture cats.implicits.catsStdInstancesForFuture(DefaultFixturesService.this.executionContext)
302 32022 12313 - 12659 Apply org.make.api.proposal.ProposalService.updateVotes DefaultFixturesServiceComponent.this.proposalService.updateVotes(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty, proposal.updatedAt.getOrElse[java.time.ZonedDateTime](org.make.core.DateHelper.now()), votes.getOrElse[Seq[org.make.api.proposal.UpdateVoteRequest]](scala.`package`.Seq.empty[Nothing]))
303 33374 12390 - 12409 Select org.make.core.proposal.Proposal.proposalId proposal.proposalId
305 46423 12489 - 12509 Select org.make.core.RequestContext.empty org.make.core.RequestContext.empty
306 31272 12541 - 12587 Apply scala.Option.getOrElse proposal.updatedAt.getOrElse[java.time.ZonedDateTime](org.make.core.DateHelper.now())
306 38892 12570 - 12586 Apply org.make.core.DefaultDateHelper.now org.make.core.DateHelper.now()
307 44347 12631 - 12640 TypeApply scala.collection.SeqFactory.Delegate.empty scala.`package`.Seq.empty[Nothing]
307 39923 12615 - 12641 Apply scala.Option.getOrElse votes.getOrElse[Seq[org.make.api.proposal.UpdateVoteRequest]](scala.`package`.Seq.empty[Nothing])
309 46461 12313 - 12700 Apply cats.Functor.Ops.as cats.implicits.toFunctorOps[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]](DefaultFixturesServiceComponent.this.proposalService.updateVotes(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty, proposal.updatedAt.getOrElse[java.time.ZonedDateTime](org.make.core.DateHelper.now()), votes.getOrElse[Seq[org.make.api.proposal.UpdateVoteRequest]](scala.`package`.Seq.empty[Nothing])))(cats.implicits.catsStdInstancesForFuture(DefaultFixturesService.this.executionContext)).as[org.make.core.proposal.ProposalId](proposal.proposalId)
309 50359 12680 - 12699 Select org.make.core.proposal.Proposal.proposalId proposal.proposalId
310 31020 12723 - 12761 Apply scala.concurrent.Future.successful scala.concurrent.Future.successful[org.make.core.proposal.ProposalId](proposal.proposalId)
310 39632 12741 - 12760 Select org.make.core.proposal.Proposal.proposalId proposal.proposalId
313 39676 12800 - 12800 Select org.make.api.technical.ActorSystemComponent.actorSystem DefaultFixturesServiceComponent.this.actorSystem
313 32061 12800 - 12800 ApplyToImplicitArgs akka.stream.Materializer.matFromSystem stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)
313 43842 12801 - 12809 TypeApply akka.stream.scaladsl.Sink.seq akka.stream.scaladsl.Sink.seq[org.make.core.proposal.ProposalId]
313 46169 9115 - 12810 ApplyToImplicitArgs akka.stream.scaladsl.Source.runWith akka.stream.scaladsl.Source.apply[org.make.core.proposal.Proposal](proposalsData).mapAsync[org.make.core.proposal.Proposal](16)(((proposal: org.make.core.proposal.Proposal) => { <artifact> val qual$2: org.make.api.proposal.ProposalService = DefaultFixturesServiceComponent.this.proposalService; <artifact> val x$4: org.make.core.user.User = users.find(((x$9: org.make.core.user.User) => x$9.userId.==(proposal.author))).get; <artifact> val x$5: org.make.core.RequestContext = proposal.creationContext; <artifact> val x$6: java.time.ZonedDateTime = proposal.createdAt.getOrElse[java.time.ZonedDateTime](org.make.core.DateHelper.now()); <artifact> val x$7: String = proposal.content; <artifact> val x$8: org.make.core.question.Question = question; <artifact> val x$9: Boolean = proposal.initialProposal; <artifact> val x$10: org.make.core.reference.Language = proposal.creationContext.languageContext.language.getOrElse[org.make.core.reference.Language](org.make.core.reference.Language.apply("fr")); <artifact> val x$11: Boolean = proposal.isAnonymous; <artifact> val x$12: org.make.core.proposal.ProposalType = proposal.proposalType; qual$2.propose(x$4, x$5, x$6, x$7, x$8, x$11, x$9, x$10, x$12) }.map[org.make.core.proposal.Proposal](((proposalId: org.make.core.proposal.ProposalId) => proposal.copy(proposalId, proposal.copy$default$2, proposal.copy$default$3, proposal.copy$default$4, proposal.copy$default$5, proposal.copy$default$6, proposal.copy$default$7, proposal.copy$default$8, proposal.copy$default$9, proposal.copy$default$10, proposal.copy$default$11, proposal.copy$default$12, proposal.copy$default$13, proposal.copy$default$14, proposal.copy$default$15, proposal.copy$default$16, proposal.copy$default$17, proposal.copy$default$18, proposal.copy$default$19, proposal.copy$default$20, proposal.copy$default$21, proposal.copy$default$22, proposal.copy$default$23, proposal.copy$default$24)))(DefaultFixturesService.this.executionContext))).mapAsync[org.make.core.proposal.Proposal](16)(((proposal: org.make.core.proposal.Proposal) => proposal.status match { case org.make.core.proposal.ProposalStatus.Pending => scala.concurrent.Future.successful[org.make.core.proposal.Proposal](proposal) case org.make.core.proposal.ProposalStatus.Postponed => DefaultFixturesServiceComponent.this.proposalService.postponeProposal(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty).map[org.make.core.proposal.Proposal](((x$10: Option[org.make.api.proposal.ModerationProposalResponse]) => proposal))(DefaultFixturesService.this.executionContext) case org.make.core.proposal.ProposalStatus.Accepted => DefaultFixturesServiceComponent.this.proposalService.validateProposal(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty, question, scala.None, scala.None, false, proposal.tags).map[org.make.core.proposal.Proposal](((x$11: Option[org.make.api.proposal.ModerationProposalResponse]) => proposal))(DefaultFixturesService.this.executionContext) case org.make.core.proposal.ProposalStatus.Refused => DefaultFixturesServiceComponent.this.proposalService.refuseProposal(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty, org.make.api.proposal.RefuseProposalRequest.apply(false, proposal.refusalReason)).map[org.make.core.proposal.Proposal](((x$12: Option[org.make.api.proposal.ModerationProposalResponse]) => proposal))(DefaultFixturesService.this.executionContext) case org.make.core.proposal.ProposalStatus.Archived => scala.concurrent.Future.successful[org.make.core.proposal.Proposal](proposal) })).mapAsync[org.make.core.proposal.ProposalId](16)(((proposal: org.make.core.proposal.Proposal) => { val votes: Option[Seq[org.make.api.proposal.UpdateVoteRequest]] = proposal.votingOptions.map[Seq[org.make.api.proposal.UpdateVoteRequest]](((x$13: org.make.core.proposal.VotingOptions) => x$13.deprecatedVotesSeq.map[org.make.api.proposal.UpdateVoteRequest](((v: org.make.core.proposal.Vote) => org.make.api.proposal.UpdateVoteRequest.apply(v.key, scala.Some.apply[Int](v.count), scala.Some.apply[Int](v.countVerified), scala.Some.apply[Int](v.countSequence), scala.Some.apply[Int](v.countSegment), v.qualifications.map[org.make.api.proposal.UpdateQualificationRequest](((q: org.make.core.proposal.Qualification) => org.make.api.proposal.UpdateQualificationRequest.apply(q.key, scala.Some.apply[Int](q.count), scala.Some.apply[Int](q.countVerified), scala.Some.apply[Int](q.countSequence), scala.Some.apply[Int](q.countSegment))))))))); proposal.status match { case org.make.core.proposal.ProposalStatus.Accepted => cats.implicits.toFunctorOps[scala.concurrent.Future, Option[org.make.api.proposal.ModerationProposalResponse]](DefaultFixturesServiceComponent.this.proposalService.updateVotes(proposal.proposalId, adminUserId, org.make.core.RequestContext.empty, proposal.updatedAt.getOrElse[java.time.ZonedDateTime](org.make.core.DateHelper.now()), votes.getOrElse[Seq[org.make.api.proposal.UpdateVoteRequest]](scala.`package`.Seq.empty[Nothing])))(cats.implicits.catsStdInstancesForFuture(DefaultFixturesService.this.executionContext)).as[org.make.core.proposal.ProposalId](proposal.proposalId) case _ => scala.concurrent.Future.successful[org.make.core.proposal.ProposalId](proposal.proposalId) } })).runWith[scala.concurrent.Future[Seq[org.make.core.proposal.ProposalId]]](akka.stream.scaladsl.Sink.seq[org.make.core.proposal.ProposalId])(stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem))
317 45932 12912 - 12997 ApplyToImplicitArgs org.make.api.technical.generator.fixtures.RichGen.value qual$1.value(x$1, x$2)
317 32866 12992 - 12992 Select org.make.api.technical.generator.fixtures.RichGen.value$default$2 qual$1.value$default$2
317 46209 12964 - 12989 Apply scala.Some.apply scala.Some.apply[org.make.core.question.QuestionId](question.questionId)
317 31770 12912 - 12991 Apply org.scalacheck.Gen.listOf org.scalacheck.Gen.listOf[org.make.core.tag.Tag](org.make.api.technical.generator.EntitiesGen.genTag(question.operationId, scala.Some.apply[org.make.core.question.QuestionId](question.questionId)))
317 39384 12923 - 12990 Apply org.make.core.technical.generator.EntitiesGen.genTag org.make.api.technical.generator.EntitiesGen.genTag(question.operationId, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))
317 50395 12969 - 12988 Select org.make.core.question.Question.questionId question.questionId
317 36016 12992 - 12992 Select org.make.api.technical.generator.fixtures.RichGen.value$default$1 qual$1.value$default$1
317 37589 12942 - 12962 Select org.make.core.question.Question.operationId question.operationId
317 43594 12912 - 12991 ApplyImplicitView org.make.api.technical.generator.fixtures.RichGen fixtures.this.`package`.RichGen[List[org.make.core.tag.Tag]](org.scalacheck.Gen.listOf[org.make.core.tag.Tag](org.make.api.technical.generator.EntitiesGen.genTag(question.operationId, scala.Some.apply[org.make.core.question.QuestionId](question.questionId))))
318 37792 13004 - 13053 Apply grizzled.slf4j.Logger.info DefaultFixturesServiceComponent.this.logger.info(("generating: ".+(tagsData.size).+(" tags"): String))
319 50146 13087 - 13094 Select org.make.core.tag.Tag.label x$14.label
319 46250 13067 - 13095 Apply scala.collection.SeqOps.distinctBy tagsData.distinctBy[String](((x$14: org.make.core.tag.Tag) => x$14.label))
320 39421 13115 - 13117 Literal <nosymbol> 16
321 45968 13138 - 13341 Apply org.make.api.tag.TagService.createTag DefaultFixturesServiceComponent.this.tagService.createTag(tag.label, tag.tagTypeId, question, tag.display, tag.weight)
322 31528 13180 - 13189 Select org.make.core.tag.Tag.label tag.label
323 44339 13215 - 13228 Select org.make.core.tag.Tag.tagTypeId tag.tagTypeId
325 36046 13285 - 13296 Select org.make.core.tag.Tag.display tag.display
326 32609 13319 - 13329 Select org.make.core.tag.Tag.weight tag.weight
329 47042 13368 - 13368 ApplyToImplicitArgs akka.stream.Materializer.matFromSystem stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)
329 37546 13369 - 13377 TypeApply akka.stream.scaladsl.Sink.seq akka.stream.scaladsl.Sink.seq[org.make.core.tag.Tag]
329 39174 13060 - 13378 ApplyToImplicitArgs akka.stream.scaladsl.Source.runWith akka.stream.scaladsl.Source.apply[org.make.core.tag.Tag](tagsData.distinctBy[String](((x$14: org.make.core.tag.Tag) => x$14.label))).mapAsync[org.make.core.tag.Tag](16)(((tag: org.make.core.tag.Tag) => DefaultFixturesServiceComponent.this.tagService.createTag(tag.label, tag.tagTypeId, question, tag.display, tag.weight))).runWith[scala.concurrent.Future[Seq[org.make.core.tag.Tag]]](akka.stream.scaladsl.Sink.seq[org.make.core.tag.Tag])(stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem))
329 50888 13368 - 13368 Select org.make.api.technical.ActorSystemComponent.actorSystem DefaultFixturesServiceComponent.this.actorSystem
333 32647 13541 - 13555 Select scala.collection.SeqOps.size proposals.size
333 44095 13533 - 13535 Literal <nosymbol> 50
333 45728 13541 - 13555 Block scala.collection.SeqOps.size proposals.size
333 31011 13510 - 13531 Apply scala.collection.IterableOps.SizeCompareOps.> proposals.sizeIs.>(50)
333 36519 13533 - 13535 Block <nosymbol> 50
334 30761 13584 - 13621 ApplyToImplicitArgs org.make.api.technical.generator.fixtures.RichGen.value qual$1.value(x$1, x$2)
334 42499 13616 - 13616 Select org.make.api.technical.generator.fixtures.RichGen.value$default$1 qual$1.value$default$1
334 37581 13584 - 13615 Apply org.scalacheck.Gen.pick org.scalacheck.Gen.pick[org.make.core.proposal.ProposalId](sampleSize, proposals)
334 50925 13584 - 13615 ApplyImplicitView org.make.api.technical.generator.fixtures.RichGen fixtures.this.`package`.RichGen[scala.collection.Seq[org.make.core.proposal.ProposalId]](org.scalacheck.Gen.pick[org.make.core.proposal.ProposalId](sampleSize, proposals))
334 39216 13616 - 13616 Select org.make.api.technical.generator.fixtures.RichGen.value$default$2 qual$1.value$default$2
337 31804 13709 - 13877 Apply org.make.api.proposal.ProposalService.generateProposalKeyHash DefaultFixturesServiceComponent.this.proposalService.generateProposalKeyHash(proposalId, sessionId, scala.Some.apply[String]("fixtures"), DefaultFixturesServiceComponent.this.securityConfiguration.secureVoteSalt)
340 44136 13803 - 13819 Apply scala.Some.apply scala.Some.apply[String]("fixtures")
341 36005 13831 - 13867 Select org.make.api.technical.security.SecurityConfiguration.secureVoteSalt DefaultFixturesServiceComponent.this.securityConfiguration.secureVoteSalt
345 42296 13957 - 13957 Select org.make.core.RequestContext.copy$default$14 org.make.core.RequestContext.empty.copy$default$14
345 42529 13957 - 13957 Select org.make.core.RequestContext.copy$default$4 org.make.core.RequestContext.empty.copy$default$4
345 38405 13957 - 13957 Select org.make.core.RequestContext.copy$default$15 org.make.core.RequestContext.empty.copy$default$15
345 45208 13996 - 14012 Apply scala.Some.apply scala.Some.apply[String]("fixtures")
345 31565 13957 - 13957 Select org.make.core.RequestContext.copy$default$16 org.make.core.RequestContext.empty.copy$default$16
345 35755 13957 - 13957 Select org.make.core.RequestContext.copy$default$8 org.make.core.RequestContext.empty.copy$default$8
345 43928 13957 - 13957 Select org.make.core.RequestContext.copy$default$17 org.make.core.RequestContext.empty.copy$default$17
345 30796 13957 - 13957 Select org.make.core.RequestContext.copy$default$6 org.make.core.RequestContext.empty.copy$default$6
345 45719 13957 - 13957 Select org.make.core.RequestContext.copy$default$20 org.make.core.RequestContext.empty.copy$default$20
345 38123 13957 - 13957 Select org.make.core.RequestContext.copy$default$21 org.make.core.RequestContext.empty.copy$default$21
345 45677 13957 - 13957 Select org.make.core.RequestContext.copy$default$10 org.make.core.RequestContext.empty.copy$default$10
345 50172 13957 - 13957 Select org.make.core.RequestContext.copy$default$13 org.make.core.RequestContext.empty.copy$default$13
345 35790 13957 - 13957 Select org.make.core.RequestContext.copy$default$18 org.make.core.RequestContext.empty.copy$default$18
345 38365 13957 - 13957 Select org.make.core.RequestContext.copy$default$5 org.make.core.RequestContext.empty.copy$default$5
345 37620 13957 - 13957 Select org.make.core.RequestContext.copy$default$1 org.make.core.RequestContext.empty.copy$default$1
345 44169 13957 - 13957 Select org.make.core.RequestContext.copy$default$7 org.make.core.RequestContext.empty.copy$default$7
345 48843 13957 - 13957 Select org.make.core.RequestContext.copy$default$19 org.make.core.RequestContext.empty.copy$default$19
345 31844 13957 - 13957 Select org.make.core.RequestContext.copy$default$9 org.make.core.RequestContext.empty.copy$default$9
345 50685 13957 - 13957 Select org.make.core.RequestContext.copy$default$2 org.make.core.RequestContext.empty.copy$default$2
345 37380 13957 - 13957 Select org.make.core.RequestContext.copy$default$11 org.make.core.RequestContext.empty.copy$default$11
345 51238 13936 - 14013 Apply org.make.core.RequestContext.copy org.make.core.RequestContext.empty.copy(x$3, x$4, x$1, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$2, x$13, x$14, x$15, x$16, x$17, x$18, x$19, x$20, x$21)
348 42331 14053 - 14055 Literal <nosymbol> 16
349 38929 14103 - 14120 Select org.make.core.user.UserId.value orga.userId.value
349 31312 14093 - 14121 Apply org.make.core.session.SessionId.apply org.make.core.session.SessionId.apply(orga.userId.value)
351 44128 14204 - 14215 Select org.make.core.user.User.userId orga.userId
351 36863 14217 - 14242 Apply org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.requestContext requestContext(sessionId)
352 48875 14260 - 14260 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
352 45757 14132 - 14271 ApplyToImplicitArgs scala.concurrent.Future.map DefaultFixturesServiceComponent.this.sessionHistoryCoordinatorService.convertSession(sessionId, orga.userId, requestContext(sessionId)).map[org.make.core.user.User](((x$15: Unit) => orga))(DefaultFixturesService.this.executionContext)
354 35249 14342 - 14342 Select org.make.api.technical.generator.fixtures.RichGen.value$default$1 qual$2.value$default$1
354 43882 14300 - 14347 ApplyToImplicitArgs org.make.api.technical.generator.fixtures.RichGen.value qual$2.value(x$3, x$4)
354 36301 14295 - 14347 Apply scala.Predef.ArrowAssoc.-> scala.Predef.ArrowAssoc[org.make.core.user.User](x$16).->[scala.collection.Seq[org.make.core.proposal.ProposalId]]({ <artifact> val qual$2: org.make.api.technical.generator.fixtures.RichGen[scala.collection.Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = fixtures.this.`package`.RichGen[scala.collection.Seq[org.make.core.proposal.ProposalId]](org.scalacheck.Gen.pick[org.make.core.proposal.ProposalId](sampleSize./(5), proposalsSample)); <artifact> val x$3: org.scalacheck.Gen.Parameters = qual$2.value$default$1; <artifact> val x$4: org.scalacheck.rng.Seed = qual$2.value$default$2; qual$2.value(x$3, x$4) })
354 43394 14300 - 14341 ApplyImplicitView org.make.api.technical.generator.fixtures.RichGen fixtures.this.`package`.RichGen[scala.collection.Seq[org.make.core.proposal.ProposalId]](org.scalacheck.Gen.pick[org.make.core.proposal.ProposalId](sampleSize./(5), proposalsSample))
354 31348 14342 - 14342 Select org.make.api.technical.generator.fixtures.RichGen.value$default$2 qual$2.value$default$2
354 50676 14300 - 14341 Apply org.scalacheck.Gen.pick org.scalacheck.Gen.pick[org.make.core.proposal.ProposalId](sampleSize./(5), proposalsSample)
354 37870 14309 - 14323 Apply scala.Int./ sampleSize./(5)
355 49669 14367 - 14369 Literal <nosymbol> 16
357 37372 14434 - 14462 Apply org.make.core.session.SessionId.apply org.make.core.session.SessionId.apply(orga.userId.value)
357 45505 14444 - 14461 Select org.make.core.user.UserId.value orga.userId.value
358 50427 14482 - 14494 Select scala.collection.IterableOnceOps.toSeq sample.toSeq
359 42817 14520 - 14521 Literal <nosymbol> 1
360 49926 14555 - 14945 Apply org.make.api.proposal.ProposalService.voteProposal DefaultFixturesServiceComponent.this.proposalService.voteProposal(proposalId, scala.Some.apply[org.make.core.user.UserId](orga.userId), requestContext(sessionId), { <artifact> val qual$3: org.make.api.technical.generator.fixtures.RichGen[org.make.core.proposal.VoteKey] @scala.reflect.internal.annotations.uncheckedBounds = fixtures.this.`package`.RichGen[org.make.core.proposal.VoteKey](org.scalacheck.Gen.frequency[org.make.core.proposal.VoteKey](scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Agree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Agree.type](6, org.make.core.proposal.VoteKey.Agree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Disagree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Disagree.type](3, org.make.core.proposal.VoteKey.Disagree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Neutral.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Neutral.type](1, org.make.core.proposal.VoteKey.Neutral)))); <artifact> val x$5: org.scalacheck.Gen.Parameters = qual$3.value$default$1; <artifact> val x$6: org.scalacheck.rng.Seed = qual$3.value$default$2; qual$3.value(x$5, x$6) }, scala.Some.apply[String](proposalKey(proposalId, sessionId)))
362 35288 14665 - 14676 Select org.make.core.user.User.userId orga.userId
362 31094 14660 - 14677 Apply scala.Some.apply scala.Some.apply[org.make.core.user.UserId](orga.userId)
363 43919 14714 - 14739 Apply org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.requestContext requestContext(sessionId)
364 50505 14769 - 14847 ApplyImplicitView org.make.api.technical.generator.fixtures.RichGen fixtures.this.`package`.RichGen[org.make.core.proposal.VoteKey](org.scalacheck.Gen.frequency[org.make.core.proposal.VoteKey](scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Agree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Agree.type](6, org.make.core.proposal.VoteKey.Agree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Disagree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Disagree.type](3, org.make.core.proposal.VoteKey.Disagree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Neutral.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Neutral.type](1, org.make.core.proposal.VoteKey.Neutral))))
364 34448 14803 - 14824 Apply scala.Tuple2.apply scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Disagree.type](3, org.make.core.proposal.VoteKey.Disagree)
364 48866 14826 - 14846 Apply scala.Tuple2.apply scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Neutral.type](1, org.make.core.proposal.VoteKey.Neutral)
364 50463 14804 - 14805 Literal <nosymbol> 3
364 36048 14784 - 14785 Literal <nosymbol> 6
364 42322 14807 - 14823 Select org.make.core.proposal.VoteKey.Disagree org.make.core.proposal.VoteKey.Disagree
364 31047 14769 - 14853 ApplyToImplicitArgs org.make.api.technical.generator.fixtures.RichGen.value qual$3.value(x$5, x$6)
364 30580 14803 - 14824 ApplyImplicitView org.scalacheck.Gen.freqTuple scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Disagree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Disagree.type](3, org.make.core.proposal.VoteKey.Disagree))
364 48829 14787 - 14800 Select org.make.core.proposal.VoteKey.Agree org.make.core.proposal.VoteKey.Agree
364 45545 14783 - 14801 Apply scala.Tuple2.apply scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Agree.type](6, org.make.core.proposal.VoteKey.Agree)
364 37165 14769 - 14847 Apply org.scalacheck.Gen.frequency org.scalacheck.Gen.frequency[org.make.core.proposal.VoteKey](scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Agree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Agree.type](6, org.make.core.proposal.VoteKey.Agree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Disagree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Disagree.type](3, org.make.core.proposal.VoteKey.Disagree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Neutral.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Neutral.type](1, org.make.core.proposal.VoteKey.Neutral)))
364 43666 14827 - 14828 Literal <nosymbol> 1
364 37126 14783 - 14801 ApplyImplicitView org.scalacheck.Gen.freqTuple scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Agree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Agree.type](6, org.make.core.proposal.VoteKey.Agree))
364 34479 14848 - 14848 Select org.make.api.technical.generator.fixtures.RichGen.value$default$2 qual$3.value$default$2
364 36085 14830 - 14845 Select org.make.core.proposal.VoteKey.Neutral org.make.core.proposal.VoteKey.Neutral
364 43382 14848 - 14848 Select org.make.api.technical.generator.fixtures.RichGen.value$default$1 qual$3.value$default$1
364 40992 14826 - 14846 ApplyImplicitView org.scalacheck.Gen.freqTuple scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Neutral.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Neutral.type](1, org.make.core.proposal.VoteKey.Neutral))
365 36886 14887 - 14927 Apply scala.Some.apply scala.Some.apply[String](proposalKey(proposalId, sessionId))
365 43701 14892 - 14926 Apply org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.proposalKey proposalKey(proposalId, sessionId)
368 37621 14984 - 14984 Select org.make.api.technical.ActorSystemComponent.actorSystem DefaultFixturesServiceComponent.this.actorSystem
368 50256 14984 - 14984 ApplyToImplicitArgs akka.stream.Materializer.matFromSystem stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)
368 41789 14985 - 14993 TypeApply akka.stream.scaladsl.Sink.seq akka.stream.scaladsl.Sink.seq[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]]
369 43416 15014 - 15020 Select scala.collection.SeqOps.size x$17.size
369 31088 14475 - 15021 ApplyToImplicitArgs scala.concurrent.Future.map akka.stream.scaladsl.Source.apply[org.make.core.proposal.ProposalId](sample.toSeq).mapAsync[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]](1)(((proposalId: org.make.core.proposal.ProposalId) => DefaultFixturesServiceComponent.this.proposalService.voteProposal(proposalId, scala.Some.apply[org.make.core.user.UserId](orga.userId), requestContext(sessionId), { <artifact> val qual$3: org.make.api.technical.generator.fixtures.RichGen[org.make.core.proposal.VoteKey] @scala.reflect.internal.annotations.uncheckedBounds = fixtures.this.`package`.RichGen[org.make.core.proposal.VoteKey](org.scalacheck.Gen.frequency[org.make.core.proposal.VoteKey](scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Agree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Agree.type](6, org.make.core.proposal.VoteKey.Agree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Disagree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Disagree.type](3, org.make.core.proposal.VoteKey.Disagree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Neutral.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Neutral.type](1, org.make.core.proposal.VoteKey.Neutral)))); <artifact> val x$5: org.scalacheck.Gen.Parameters = qual$3.value$default$1; <artifact> val x$6: org.scalacheck.rng.Seed = qual$3.value$default$2; qual$3.value(x$5, x$6) }, scala.Some.apply[String](proposalKey(proposalId, sessionId))))).runWith[scala.concurrent.Future[Seq[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]]]](akka.stream.scaladsl.Sink.seq[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]])(stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)).map[Int](((x$17: Seq[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]]) => x$17.size))(DefaultFixturesService.this.executionContext)
369 35546 15013 - 15013 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext
371 36649 15048 - 15048 Select org.make.api.technical.ActorSystemComponent.actorSystem DefaultFixturesServiceComponent.this.actorSystem
371 44448 15049 - 15057 TypeApply akka.stream.scaladsl.Sink.seq akka.stream.scaladsl.Sink.seq[Int]
371 49967 15048 - 15048 ApplyToImplicitArgs akka.stream.Materializer.matFromSystem stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)
372 37660 15072 - 15077 ApplyToImplicitArgs scala.collection.IterableOnceOps.sum x$18.sum[Int](math.this.Numeric.IntIsIntegral)
372 43177 14021 - 15078 ApplyToImplicitArgs scala.concurrent.Future.map akka.stream.scaladsl.Source.apply[org.make.core.user.User](orgas).mapAsync[org.make.core.user.User](16)(((orga: org.make.core.user.User) => { val sessionId: org.make.core.session.SessionId = org.make.core.session.SessionId.apply(orga.userId.value); DefaultFixturesServiceComponent.this.sessionHistoryCoordinatorService.convertSession(sessionId, orga.userId, requestContext(sessionId)).map[org.make.core.user.User](((x$15: Unit) => orga))(DefaultFixturesService.this.executionContext) })).map[(org.make.core.user.User, scala.collection.Seq[org.make.core.proposal.ProposalId])](((x$16: org.make.core.user.User) => scala.Predef.ArrowAssoc[org.make.core.user.User](x$16).->[scala.collection.Seq[org.make.core.proposal.ProposalId]]({ <artifact> val qual$2: org.make.api.technical.generator.fixtures.RichGen[scala.collection.Seq[org.make.core.proposal.ProposalId]] @scala.reflect.internal.annotations.uncheckedBounds = fixtures.this.`package`.RichGen[scala.collection.Seq[org.make.core.proposal.ProposalId]](org.scalacheck.Gen.pick[org.make.core.proposal.ProposalId](sampleSize./(5), proposalsSample)); <artifact> val x$3: org.scalacheck.Gen.Parameters = qual$2.value$default$1; <artifact> val x$4: org.scalacheck.rng.Seed = qual$2.value$default$2; qual$2.value(x$3, x$4) }))).mapAsync[Int](16)(((x0$1: (org.make.core.user.User, scala.collection.Seq[org.make.core.proposal.ProposalId])) => x0$1 match { case (_1: org.make.core.user.User, _2: scala.collection.Seq[org.make.core.proposal.ProposalId]): (org.make.core.user.User, scala.collection.Seq[org.make.core.proposal.ProposalId])((orga @ _), (sample @ _)) => { val sessionId: org.make.core.session.SessionId = org.make.core.session.SessionId.apply(orga.userId.value); akka.stream.scaladsl.Source.apply[org.make.core.proposal.ProposalId](sample.toSeq).mapAsync[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]](1)(((proposalId: org.make.core.proposal.ProposalId) => DefaultFixturesServiceComponent.this.proposalService.voteProposal(proposalId, scala.Some.apply[org.make.core.user.UserId](orga.userId), requestContext(sessionId), { <artifact> val qual$3: org.make.api.technical.generator.fixtures.RichGen[org.make.core.proposal.VoteKey] @scala.reflect.internal.annotations.uncheckedBounds = fixtures.this.`package`.RichGen[org.make.core.proposal.VoteKey](org.scalacheck.Gen.frequency[org.make.core.proposal.VoteKey](scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Agree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Agree.type](6, org.make.core.proposal.VoteKey.Agree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Disagree.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Disagree.type](3, org.make.core.proposal.VoteKey.Disagree)), scalacheck.this.Gen.freqTuple[org.make.core.proposal.VoteKey.Neutral.type](scala.Tuple2.apply[Int, org.make.core.proposal.VoteKey.Neutral.type](1, org.make.core.proposal.VoteKey.Neutral)))); <artifact> val x$5: org.scalacheck.Gen.Parameters = qual$3.value$default$1; <artifact> val x$6: org.scalacheck.rng.Seed = qual$3.value$default$2; qual$3.value(x$5, x$6) }, scala.Some.apply[String](proposalKey(proposalId, sessionId))))).runWith[scala.concurrent.Future[Seq[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]]]](akka.stream.scaladsl.Sink.seq[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]])(stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)).map[Int](((x$17: Seq[Option[org.make.api.proposal.ProposalActorResponse.VotesActorResponse]]) => x$17.size))(DefaultFixturesService.this.executionContext) } })).runWith[scala.concurrent.Future[Seq[Int]]](akka.stream.scaladsl.Sink.seq[Int])(stream.this.Materializer.matFromSystem(DefaultFixturesServiceComponent.this.actorSystem)).map[Int](((x$18: Seq[Int]) => x$18.sum[Int](math.this.Numeric.IntIsIntegral)))(DefaultFixturesService.this.executionContext)
372 41547 15074 - 15074 Select scala.math.Numeric.IntIsIntegral math.this.Numeric.IntIsIntegral
372 50459 15071 - 15071 Select org.make.api.technical.generator.fixtures.DefaultFixturesServiceComponent.DefaultFixturesService.executionContext DefaultFixturesService.this.executionContext