<commit_before>package com.avsystem.commons
package jetty.rpc

import com.avsystem.commons.rpc.RPC
import org.eclipse.jetty.client.HttpClient
import org.eclipse.jetty.server.Server
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.{BeforeAndAfterAll, FunSuite, Matchers}

/**
  * @author MKej
  */
class JsonJettyRPCFrameworkTest extends FunSuite with ScalaFutures with Matchers with BeforeAndAfterAll {
  import JsonJettyRPCFramework._

  import scala.concurrent.ExecutionContext.Implicits.global

  @RPC trait SomeApi {
    def keks: Future[Long]
    def isTop(keks: Long): Future[Boolean]
    def topper: Topper
    def erroneousKeks: Future[Int]
  }
  object SomeApi {
    implicit val fullRPCInfo: BaseFullRPCInfo[SomeApi] = materializeFullInfo
  }

  @RPC trait Topper {
    def initialize: Future[Unit]<commit_msg>Relax PatienceConfig for Jetty framework tests<commit_after>package com.avsystem.commons
package jetty.rpc

import com.avsystem.commons.rpc.RPC
import org.eclipse.jetty.client.HttpClient
import org.eclipse.jetty.server.Server
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.time.{Milliseconds, Seconds, Span}
import org.scalatest.{BeforeAndAfterAll, FunSuite, Matchers}

/**
  * @author MKej
  */
class JsonJettyRPCFrameworkTest extends FunSuite with ScalaFutures with Matchers with BeforeAndAfterAll {
  import JsonJettyRPCFramework._

  import scala.concurrent.ExecutionContext.Implicits.global

  override implicit def patienceConfig: PatienceConfig =
    PatienceConfig(scaled(Span(5, Seconds)), scaled(Span(50, Milliseconds)))

  @RPC trait SomeApi {
    def keks: Future[Long]
    def isTop(keks: Long): Future[Boolean]
    def topper: Topper
    def erroneousKeks: Future[Int]
  }
  object SomeApi {
    implicit val fullRPCInfo: BaseFullRPCInfo[SomeApi] = materializeFullInfo
  }

  @RPC trait Topper {
    def initialize: Future[Unit]
{'fraction_non_alphanumeric': 0.0821917808219178, 'fraction_numerical': 0.0015806111696522655, 'mean_word_length': 4.971698113207547, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '684443', 'n_tokens_mistral': 602, 'n_tokens_neox': 589, 'n_words': 139}