New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run latest commit from https://github.com/olafurpg/scalafmt/pull/715 #18

Open
wants to merge 1 commit into
from
The table of contents is too big for display.
+48,171 −43,132
Diff settings

Always

Just for now

The diff you're trying to view is too large. We only load the first 3000 changed files.
View
@@ -1 +1,2 @@
+rewrite.rules = [AvoidInfix]
project.git = true
@@ -373,27 +373,28 @@ class Engine[TD, EI, PD, Q, P, A](
logger.info(s"Preparator params: $preparatorParams")
val algorithmsParams: Seq[(String, Params)] =
- variantJson findField {
+ (variantJson findField {
case JField("algorithms", _) => true
case _ => false
- } map { jv =>
- val algorithmsParamsJson = jv._2
- algorithmsParamsJson match {
- case JArray(s) =>
- s.map { algorithmParamsJValue =>
- val eap =
- algorithmParamsJValue.extract[CreateWorkflow.AlgorithmParams]
- (
- eap.name,
- WorkflowUtils.extractParams(engineLanguage,
- compact(render(eap.params)),
- algorithmClassMap(eap.name),
- jsonExtractor)
- )
- }
- case _ => Nil
+ }).map { jv =>
+ val algorithmsParamsJson = jv._2
+ algorithmsParamsJson match {
+ case JArray(s) =>
+ s.map { algorithmParamsJValue =>
+ val eap =
+ algorithmParamsJValue.extract[CreateWorkflow.AlgorithmParams]
+ (
+ eap.name,
+ WorkflowUtils.extractParams(engineLanguage,
+ compact(render(eap.params)),
+ algorithmClassMap(eap.name),
+ jsonExtractor)
+ )
+ }
+ case _ => Nil
+ }
}
- } getOrElse Seq(("", EmptyParams()))
+ .getOrElse(Seq(("", EmptyParams())))
logger.info(s"Extracting serving params...")
val servingParams: (String, Params) =
@@ -66,7 +66,7 @@ trait Evaluation extends Deployment {
*/
def engineEvaluator_=[EI, Q, P, A, R <: BaseEvaluatorResult](
engineEvaluator: (BaseEngine[EI, Q, P, A], BaseEvaluator[EI, Q, P, A, R])) {
- assert(! _evaluatorSet, "Evaluator can be set at most once")
+ assert(!_evaluatorSet, "Evaluator can be set at most once")
engine = engineEvaluator._1
_evaluator = engineEvaluator._2
_evaluatorSet = true
Oops, something went wrong.