Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.10.3
459334061c519a66bfd30aef5ae42f2982bed638
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.9.10
version = 3.10.3

align.preset = more
assumeStandardLibraryStripMargin = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class JsoniterScalaModelBenchmark extends DomBenchmark {
case "eu-lobby-country.json" => JsonCodecMaker.make[EuLobbyCountry.RootInterface](CodecMakerConfig)
case "eu-lobby-financial.json" => JsonCodecMaker.make[EuLobbyFinancial.RootInterface](CodecMakerConfig)
case "eu-lobby-repr.json" => JsonCodecMaker.make[EuLobbyRepr.RootInterface](CodecMakerConfig)
case "github-events.json" =>
case "github-events.json" =>
JsonCodecMaker
.make[List[GithubEvents.RootInterface[GithubEvents.Head[GithubEvents.Repo1], GithubEvents.Forkee]]](
CodecMakerConfig)
Expand Down
2 changes: 1 addition & 1 deletion project/src/main/scala/Analysis.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object Analysis {
val libPerf = perf(library)
val factors = borerPerf.map { case (param, borerScore) => param -> (borerScore / libPerf(param)) }
val avg = factors.map(_._2).sum / factors.size
val mean = {
val mean = {
val sorted = factors.sortBy(_._2)
val mid = factors.size / 2
if ((factors.size & 1) == 1) sorted(mid)._2
Expand Down
2 changes: 1 addition & 1 deletion project/src/main/scala/SpecializeJsonParserPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ object SpecializeJsonParserPlugin extends AutoPlugin {
val dropLen = sourceDir.toString.zip(targetDir.toString).takeWhile(t => t._1 == t._2).size
streams.log.info(
s"Rewriting ../${sourceFile.toString.drop(dropLen)} to ../${targetFile.toString.drop(dropLen)}")
val fileContent = IO.read(sourceFile)
val fileContent = IO.read(sourceFile)
val rewritingResult = rules.foldLeft(Right(fileContent): Either[String, String]) {
case (error @ Left(_), _) => error
case (Right(string), rule) => rule(string)
Expand Down
Loading