-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
~Show highest/lowest rating percent equivalence - Closes #12631 #13234
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
~Show highest/lowest rating percent equivalence - Closes #12631 #13234
Conversation
4e44eb5 to
c39607d
Compare
app/views/user/perfStat.scala
Outdated
| glicko(user, perfType, user.perfs(perfType), percentile), | ||
| counter(stat.count), | ||
| highlow(stat), | ||
| highlow(stat, percentile_low, percentile_high), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scala never uses underscore, please look at the code around
translation/source/site.xml
Outdated
| <string name="yourPerfTypeRatingIsRating">Your %1$s rating is %2$s.</string> | ||
| <string name="youAreBetterThanPercentOfPerfTypePlayers">You are better than %1$s of %2$s players.</string> | ||
| <string name="userIsBetterThanPercentOfPerfTypePlayers">%1$s is better than %2$s of %3$s players.</string> | ||
| <string name="currentlyRepresentingBeingBetterThanPercentPlayers">Currently representing being better than %1$s of %2$s players</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessarily verbose.
<string name="betterThanPercentPlayers">Better than %1$s of %2$s players</string>| } | ||
|
|
||
| private def calc_percentile(wrd: Option[List[Int]], intRating: IntRating): Option[Double] = { | ||
| return (wrd.map: distrib => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we never use the word return
|
Thanks for the feedbacks :) ! Will fix probably Soon™ . |
* master: (21 commits) index dox notes unignore streamer application on unmute ABR - Always Be Resolving Update reload.ts remove old mobile UA test upgrade scalachess parse lichess-bot UA remove old mobile UA regex New Crowdin updates (lichess-org#13207) fix submitMove pref - closes lichess-org#13237 Update lettuce-core to 6.2.5.RELEASE Update sbt-bloop to 1.5.9 fix gone notifications - closes lichess-org#13233 scalachess 15.5.0 better integrate lichess mobile user agent integrate mobile app connections into security/modding remove yarn refs gitignore pnpm-store dir mobile oauth security entries WIP fix lint ...
|
please format your code before committing: Most editors can do it automatically. |
| yield PerfStatData(u, perfStat, rankingsOf(u.id), percentile, percentileLow, percentileHigh) | ||
| } | ||
|
|
||
| private def calc_percentile(wrd: Option[List[Int]], intRating: IntRating): Option[Double] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
underscore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for that miss :x
I'm confused; I guess I learned that "sbt scalafmtAll" (gives error, as seen below) doesn't do the same as "yarn run format" (no changes). sbt scalafmtAll end of output (error on files I didn't change Env.scala @ scala3; it still formated a few of my files files that I'll push) : [error] org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: /Users/redmba/dev/myLichess/lila/modules/tournament/src/main/Env.scala:74: error: [dialect scala3] ; expected but , found
[error] else if Revolution is tour then scheduler.scheduleOnce(10 seconds) { revolutionApi.clear() },
[error] ^ [/Users/redmba/dev/myLichess/lila/modules/tournament/src/main/Env.scala]
[error] (tournament / Compile / scalafmt) org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: /Users/redmba/dev/myLichess/lila/modules/tournament/src/main/Env.scala:74: error: [dialect scala3] ; expected but , found
[error] else if Revolution is tour then scheduler.scheduleOnce(10 seconds) { revolutionApi.clear() },
[error] ^ [/Users/redmba/dev/myLichess/lila/modules/tournament/src/main/Env.scala]
|
~scalafmtAll
59d367f to
14a389b
Compare
|
Thanks again :x ; done ! |
…rd/lila into rating_percent_highlow * 'rating_percent_highlow' of https://github.com/TheMadSword/lila: ~Modifs for PR (1st & 2nd review) ~scalafmtAll
* master: work around scalafmt bug support mobile UAs without a build number tweak eval cache Use webkitAudioContext as a fallback for iOS Safari < 14.5
|
please stop force-pushing, it makes collaboration on the PR very hard. We're both committing and our trees become incompatible with each force push. |
My apologies; it is noted; I didn't think you'd commit; I'll try to stop force-pushing once a non-draft PR is published |
What it looks like :
I'm using a simple html tooltip ("title").
I did as I said in my edit @ issue; I'm not saving anything, but just calculating percent for highest/lowest ratings.