Comments, doc comments, test names, error and log messages, CLI help, README, Makefile, CI step names and the design document are now all in English. No behaviour changes; the full suite passes under the race detector. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b7417e1a69
commit
28029eb43b
21 files changed
+910
-869
No files matched your search
@@ -2,20 +2,20 @@ package sim
|
||||
|
||||
import "strings"
|
||||
|
||||
// simWords, üretilen sahte çıktının kelime havuzu.
|
||||
// simWords is the word pool the fake output is drawn from.
|
||||
var simWords = []string{
|
||||
"alfa", "beta", "gama", "delta", "epsilon", "zeta", "eta", "teta",
|
||||
"iota", "kappa", "lambda", "mu", "nu", "ksi", "omikron", "pi",
|
||||
"alpha", "beta", "gamma", "delta", "epsilon", "zeta", "eta", "theta",
|
||||
"iota", "kappa", "lambda", "mu", "nu", "xi", "omicron", "pi",
|
||||
}
|
||||
|
||||
// tokenText, n'inci üretilen token'ın metnini verir (n 1'den başlar).
|
||||
// Deterministik olması şart: finish sırasında cache'e yazılan metinle
|
||||
// istemciye akıtılan metin birebir aynı olmalı.
|
||||
// tokenText returns the text of the n-th generated token (n starts at 1).
|
||||
// It must be deterministic: the text written into the cache on completion has
|
||||
// to match exactly what was streamed to the client.
|
||||
func tokenText(n int) string {
|
||||
return " " + simWords[(n-1)%len(simWords)]
|
||||
}
|
||||
|
||||
// generatedText, ilk n token'ın birleşimini verir.
|
||||
// generatedText returns the concatenation of the first n tokens.
|
||||
func generatedText(n int) string {
|
||||
var b strings.Builder
|
||||
b.Grow(n * 7)
|
||||
|
||||
Reference in new issue
Block a user