Fixing a few typos in the source code.

Done using the codespell tool found here: https://github.com/lucasdemarchi/codespell
pull/3703/head
Luis Felipe Strano Moraes 2017-10-16 10:09:30 -07:00
parent 4dff48b974
commit 1984853fc0
8 changed files with 11 additions and 11 deletions

View File

@ -73,7 +73,7 @@ Please do not automate computer analysis requests. They're very expensive.
"online": true, // is the player currently using lichess?
"playing": "https://lichess.org/abcdefgh", // game being played, if any
"engine": false, // true if the user is known to use a chess engine
"language": "en", // prefered language
"language": "en", // preferred language
"profile": {
"bio": "Writes bugs for free",
"country": "FR",

View File

@ -18,7 +18,7 @@ Set-Cookie: lila2="3b5cc8c80f0af258a31dc4fd1b5381cabe7388c7-sessionId=80q7V5stkK
"title": null, // chess title like FM or LM (lichess master)
"online": true, // is the player currently using lichess?
"engine": false, // true if the user is known to use a chess engine
"language": "en", // prefered language
"language": "en", // preferred language
"profile": {
"bio": "Developer of lichess",
"country": "FR",

View File

@ -602,7 +602,7 @@ object WMMatching {
val dt = new Delta()
// Compute delta1: the minumum value of any vertex dual.
// Compute delta1: the minimum value of any vertex dual.
if (!maxcardinality) {
dt.update(1, dualvar.slice(0, nvertex).min, -1)
}
@ -699,7 +699,7 @@ object WMMatching {
blossombestedges(k) = null
}
// Loss of labeling means that we can not be sure that currently
// allowable edges remain allowable througout this stage.
// allowable edges remain allowable throughout this stage.
allowedge = Array.fill(nedge)(false)
// Make queue empty.

View File

@ -222,7 +222,7 @@ trait dsl extends LowPriorityDsl {
//**********************************************************************************************//
/**
* Represents the inital state of the expression which has only the name of the field.
* Represents the initial state of the expression which has only the name of the field.
* It does not know the value of the expression.
*/
trait ElementBuilder {

View File

@ -178,7 +178,7 @@ object Quote {
new Quote("Chess is a foolish expedient for making idle people believe they are doing something very clever when they are only wasting their time.", "George Bernard Shaw"),
new Quote("You must take your opponent into a deep dark forest where 2+2=5, and the path leading out is only wide enough for one.", "Mikhail Tal"),
new Quote("I feel as if I were a piece in a game of chess, when my opponent says of it: That piece cannot be moved.", "Soren Kierkegaard"),
new Quote("When your house is on fire, you cant be bothered with the neighbors. Or, as we say in chess, if your king is under attack you dont worry about losing a pawn on the queens side.", "Garry Kasparov"),
new Quote("When your house is on fire, you can't be bothered with the neighbors. Or, as we say in chess, if your king is under attack you dont worry about losing a pawn on the queens side.", "Garry Kasparov"),
new Quote("Man is a frivolous, a specious creature, and like a chess player, cares more for the process of attaining his goal than for the goal itself.", "Dostoyevsky"),
new Quote("When asked, -How is that you pick better moves than your opponents?, I responded: Im very glad you asked me that, because, as it happens, there is a very simple answer. I think up my own moves, and I make my opponent think up his.", "Alexander Alekhine"),
new Quote("Mistrust is the most necessary characteristic of the chess player.", "Siegbert Tarrasch"),
@ -388,14 +388,14 @@ object Quote {
new Quote("All that matters on the chessboard is good moves.", "Bobby Fischer"),
new Quote("All that now seems to stand between Nigel and the prospect of the world crown is the unfortunate fact that fate brought him into this world only two years after Kasparov.", "(prophetic comment in 1987) - Garry Kasparov"),
new Quote("Along with my retirement from chess analytical work seems to have gone too.", "Mikhail Botvinnik"),
new Quote("Althought the Knight is generally considered to be on a par with the Bishop in strength, the latter piece is somewhat stronger in the majority of cases in which they are opposed to each other.", "Jose Capablanca"),
new Quote("Although the Knight is generally considered to be on a par with the Bishop in strength, the latter piece is somewhat stronger in the majority of cases in which they are opposed to each other.", "Jose Capablanca"),
new Quote("Amberley excelled at chess - a mark, Watson, of a scheming mind.", "Sir Arthur Conan Doyle"),
new Quote("Americans really don't know much about chess. But I think when I beat Spassky, that Americans will take a greater interest in chess. Americans like winners.", "Bobby Fischer"),
new Quote("Among top grandmasters the Dutch is a rare defense, which is good reason to play it! It has not been studied very deeply by many opponents, and theory, based on a small number of 'reliable' games, must be rather unreliable.", "Bent Larsen"),
new Quote("An amusing fact: as far as I can recall, when playing the Ruy Lopez I have not yet once in my life had to face the Marshall Attack!", "Anatoly Karpov"),
new Quote("An innovation need not be especially ingenious, but it must be well worked out.", "Paul Keres"),
new Quote("An isolated pawn spreads gloom all over the chessboard.", "Savielly Tartakower"),
new Quote("Analysis is a glittering opportunity for training: it is just here that capacity for work, perseverence and stamina are cultivated, and these qualities are, in truth, as necessary to a chess player as a marathon runner.", "Lev Polugaevsky"),
new Quote("Analysis is a glittering opportunity for training: it is just here that capacity for work, perseverance and stamina are cultivated, and these qualities are, in truth, as necessary to a chess player as a marathon runner.", "Lev Polugaevsky"),
new Quote("Analysis, if it is really carried out with a complete concentration of his powers, forms and completes a chess player.", "Lev Polugaevsky"),
new Quote("Anyone who wishes to learn how to play chess well must make himself or herself thoroughly conversant with the play in positions where the players have castled on opposite sides.", "Alexander Kotov"),
new Quote("Apart from direct mistakes, there is nothing more ruinous than routine play, the aim of which is mechanical development.", "Alexei Suetin"),

View File

@ -30,7 +30,7 @@ sealed trait Node {
def dropFirstChild: Node
def clock: Option[Centis]
// implementation dependant
// implementation dependent
def idOption: Option[UciCharPair]
def moveOption: Option[Uci.WithSan]

View File

@ -131,7 +131,7 @@ export default function(data: StudyData, ctrl: AnalyseCtrl, tagTypes: TagTypes,
function configureAnalysis() {
if (ctrl.embed) return;
const canContribute = members.canContribute();
// unwrite if member lost priviledges
// unwrite if member lost privileges
vm.mode.write = vm.mode.write && canContribute;
li.pubsub.emit('chat.writeable')(data.features.chat);
li.pubsub.emit('chat.permissions')({local: canContribute});

View File

@ -37,7 +37,7 @@ lichess.timeago = (function() {
return lichess.timeagoLocale(diff, i, total_sec)[agoin].replace('%s', diff);
}
// calculate the diff second between date to be formated now
// calculate the diff second between date to be formatted now
function diffSec(date) {
return (Date.now() - toDate(date)) / 1000;
}