]> gitweb.factorcode.org Git - factor.git/commitdiff
factor: fix some spacing
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 12 Jan 2023 01:17:47 +0000 (19:17 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 12 Jan 2023 01:17:47 +0000 (19:17 -0600)
with some regexps in vscode:
/^       [^\s]./
/^   \[/
/^   \]/
/^   \{/
/^   \}/

and vary the number of spaces

237 files changed:
basis/alien/data/data-docs.factor
basis/alien/enums/enums.factor
basis/alien/libraries/finder/freebsd/freebsd.factor
basis/alien/libraries/libraries-docs.factor
basis/alien/prettyprint/prettyprint.factor
basis/bootstrap/assembler/arm.64.factor
basis/calendar/calendar-docs.factor
basis/calendar/calendar.factor
basis/circular/circular-docs.factor
basis/cocoa/dialogs/dialogs.factor
basis/combinators/short-circuit/smart/smart-docs.factor
basis/compiler/cfg/build-stack-frame/build-stack-frame-tests.factor
basis/compiler/cfg/ssa/construction/tdmsc/tdmsc.factor
basis/compiler/errors/errors.factor
basis/compiler/tests/alien.factor
basis/compiler/tests/codegen.factor
basis/compiler/tests/intrinsics.factor
basis/compression/gzip/gzip-tests.factor
basis/compression/gzip/gzip.factor
basis/compression/huffman/huffman.factor
basis/compression/inflate/inflate.factor
basis/concurrency/distributed/distributed.factor
basis/constructors/constructors-tests.factor
basis/core-text/core-text.factor
basis/couchdb/couchdb.factor
basis/csv/csv.factor
basis/db/postgresql/ffi/ffi.factor
basis/db/tester/tester.factor
basis/db/tuples/tuples-docs.factor
basis/db/types/types-docs.factor
basis/deques/deques-docs.factor
basis/editors/acme/acme-docs.factor
basis/editors/acme/acme.factor
basis/environment/environment-docs.factor
basis/farkup/farkup-tests.factor
basis/fonts/fonts-docs.factor
basis/formatting/formatting.factor
basis/furnace/actions/actions-docs.factor
basis/furnace/auth/auth-docs.factor
basis/furnace/auth/login/login-docs.factor
basis/furnace/auth/providers/couchdb/couchdb.factor
basis/furnace/boilerplate/boilerplate-docs.factor
basis/furnace/conversations/conversations-docs.factor
basis/furnace/db/db-docs.factor
basis/furnace/redirection/redirection-docs.factor
basis/furnace/referrer/referrer-docs.factor
basis/furnace/sessions/sessions-docs.factor
basis/furnace/syndication/syndication-docs.factor
basis/game/input/xinput/xinput.factor
basis/help/html/html.factor
basis/help/lint/checks/checks.factor
basis/help/lint/lint.factor
basis/help/markup/markup.factor
basis/http/client/client-tests.factor
basis/http/client/client.factor
basis/http/server/dispatchers/dispatchers-docs.factor
basis/http/server/server-docs.factor
basis/http/server/static/static-docs.factor
basis/images/loader/cocoa/cocoa.factor
basis/ini-file/ini-file-tests.factor
basis/io/files/info/unix/unix-docs.factor
basis/io/files/links/links-docs.factor
basis/io/files/windows/windows.factor
basis/io/streams/limited/limited-docs.factor
basis/json/reader/reader-tests.factor
basis/json/writer/writer-docs.factor
basis/lists/lazy/lazy.factor
basis/lists/lists-tests.factor
basis/math/bitwise/bitwise-docs.factor
basis/math/matrices/matrices-docs.factor
basis/math/matrices/matrices-tests.factor
basis/mime/multipart/multipart-tests.factor
basis/mime/types/types-docs.factor
basis/peg/ebnf/ebnf-tests.factor
basis/peg/ebnf/ebnf.factor
basis/persistent/hashtables/hashtables.factor
basis/quoted-printable/quoted-printable.factor
basis/random/random-docs.factor
basis/random/sfmt/sfmt.factor
basis/retries/retries-tests.factor
basis/sequences/generalizations/generalizations-docs.factor
basis/sorting/human/human-docs.factor
basis/sorting/slots/slots-docs.factor
basis/specialized-arrays/prettyprint/prettyprint.factor
basis/splitting/monotonic/monotonic-docs.factor
basis/suffix-arrays/suffix-arrays-docs.factor
basis/system-info/freebsd/freebsd.factor
basis/timers/timers-docs.factor
basis/tools/annotations/annotations-docs.factor
basis/tools/deploy/deploy-docs.factor
basis/tools/files/files-docs.factor
basis/tools/test/test.factor
basis/ui/backend/gtk/gtk-tests.factor
basis/ui/backend/gtk/io/io.factor
basis/ui/backend/windows/windows.factor
basis/ui/gadgets/panes/panes-tests.factor
basis/ui/pens/tile/tile.factor
basis/unicode/breaks/breaks.factor
basis/unicode/unicode.factor
basis/unix/groups/groups-docs.factor
basis/unix/users/users-docs.factor
basis/urls/urls-docs.factor
basis/windows/com/com.factor
basis/windows/uniscribe/uniscribe.factor
basis/x11/x11.factor
basis/xml/data/data.factor
basis/xml/dtd/dtd.factor
basis/xml/syntax/syntax.factor
basis/xml/tokenize/tokenize.factor
basis/xml/writer/writer-tests.factor
basis/xmode/marker/marker-tests.factor
core/assocs/assocs-docs.factor
core/assocs/assocs.factor
core/byte-arrays/byte-arrays-docs.factor
core/classes/classes-docs.factor
core/combinators/combinators-tests.factor
core/combinators/short-circuit/short-circuit-docs.factor
core/continuations/continuations-docs.factor
core/destructors/destructors-docs.factor
core/generalizations/generalizations-docs.factor
core/graphs/graphs.factor
core/hash-sets/hash-sets.factor
core/hashtables/hashtables-docs.factor
core/io/encodings/encodings-docs.factor
core/io/encodings/encodings-tests.factor
core/io/io-docs.factor
core/io/io.factor
core/kernel/kernel-docs.factor
core/locals/locals-tests.factor
core/math/math-docs.factor
core/math/parser/parser.factor
core/sequences/sequences-docs.factor
core/sequences/sequences.factor
core/sets/sets-docs.factor
core/syntax/syntax-docs.factor
extra/asn1/asn1.factor
extra/asn1/ldap/ldap.factor
extra/assocs/extras/extras.factor
extra/bitcoin/client/client-docs.factor
extra/boids/boids.factor
extra/bson/bson-tests.factor
extra/bson/constants/constants.factor
extra/bson/reader/reader.factor
extra/bson/writer/writer.factor
extra/c/preprocessor/preprocessor.factor
extra/cgi/cgi.factor
extra/cli/git/git.factor
extra/combinators/extras/extras-tests.factor
extra/cpu/8080/emulator/emulator.factor
extra/crypto/aes/aes-tests.factor
extra/crypto/aes/aes.factor
extra/crypto/passwd-md5/passwd-md5-docs.factor
extra/cuda/prettyprint/prettyprint.factor
extra/ecdsa/ecdsa.factor
extra/elevate/elevate-docs.factor
extra/game/debug/debug.factor
extra/gamelib/ui/ui.factor
extra/generators/generators.factor
extra/gpu/render/render.factor
extra/gpu/util/util.factor
extra/html/parser/analyzer/analyzer.factor
extra/html5/html5.factor
extra/http2/hpack/hpack-tests.factor
extra/id3/id3-tests.factor
extra/images/gif/gif.factor
extra/images/viewer/viewer-tests.factor
extra/images/viewer/viewer.factor
extra/infix/infix-tests.factor
extra/io/files/acls/macosx/ffi/ffi.factor
extra/io/files/acls/macosx/macosx.factor
extra/io/streams/256color/256color.factor
extra/io/streams/ansi/ansi.factor
extra/irc/client/chats/chats.factor
extra/irc/client/internals/internals-tests.factor
extra/irc/client/internals/internals.factor
extra/irc/logbot/log-line/log-line.factor
extra/irc/messages/messages-tests.factor
extra/lint/vocabs/vocabs.factor
extra/logic/examples/money/money.factor
extra/logic/logic-tests.factor
extra/logic/logic.factor
extra/mason/mason.factor
extra/mason/report/report-tests.factor
extra/math/affine-transforms/affine-transforms.factor
extra/math/dual/dual.factor
extra/math/finance/finance-docs.factor
extra/math/text/french/french.factor
extra/merger/merger.factor
extra/metar/metar.factor
extra/models/illusion/illusion.factor
extra/modern/html/html.factor
extra/modern/modern.factor
extra/modern/paths/paths.factor
extra/mongodb/benchmark/benchmark.factor
extra/mongodb/connection/connection.factor
extra/mongodb/driver/driver.factor
extra/mongodb/operations/operations.factor
extra/mongodb/tuple/collection/collection.factor
extra/mongodb/tuple/persistent/persistent.factor
extra/mongodb/tuple/state/state.factor
extra/mongodb/tuple/tuple.factor
extra/odbc/odbc.factor
extra/project-euler/009/009.factor
extra/project-euler/047/047.factor
extra/project-euler/051/051.factor
extra/project-euler/070/070.factor
extra/project-euler/099/099.factor
extra/project-euler/116/116.factor
extra/project-euler/151/151.factor
extra/punycode/punycode-tests.factor
extra/raylib/demo/mesh-picking/mesh-picking.factor
extra/readline/readline.factor
extra/rosetta-code/animation/animation.factor
extra/rosetta-code/bulls-and-cows/bulls-and-cows.factor
extra/rosetta-code/dice7/dice7.factor
extra/rosetta-code/inverted-index/inverted-index.factor
extra/rosetta-code/metronome/metronome.factor
extra/rosetta-code/n-queens/n-queens.factor
extra/rosetta-code/y-combinator/y-combinator.factor
extra/sequences/extras/extras-docs.factor
extra/sequences/extras/extras.factor
extra/smalltalk/compiler/compiler-tests.factor
extra/smalltalk/parser/parser-tests.factor
extra/sodium/ffi/ffi.factor
extra/spider/spider-docs.factor
extra/tools/wc/wc.factor
extra/trees/trees-tests.factor
extra/trees/trees.factor
extra/webapps/blogs/blogs.factor
extra/webapps/wiki/wiki.factor
extra/wordlet/wordlet.factor
extra/yaml/ffi/ffi.factor
extra/yaml/yaml-tests.factor
extra/yaml/yaml.factor
extra/yenc/yenc.factor
extra/zealot/factor/factor.factor
extra/zoneinfo/zoneinfo-tests.factor

index 8e86520e7309eb479feadc6939d2d76eba31dbf6..f18dd3d4af350c0b292a7a3d5a26bce3ae6b9657 100644 (file)
@@ -159,8 +159,8 @@ ARTICLE: "c-boxes" "C value boxes"
   "FUNCTION: int do_foo ( int* a )"
 }
 "and writes to the pointer 'a', then it can be called like this:"
-{  $code
-   "1234 int <ref> [ do_foo ] keep int deref"
+{ $code
+    "1234 int <ref> [ do_foo ] keep int deref"
 }
 "The stack will then contain the two integers emitted by the 'do_foo' function." ;
 
index e9f9d44ec645648a0afa140db5090494874390b8..6f1b1306af8f8c695dcbffa2563f9ce8561049d5 100644 (file)
@@ -28,7 +28,7 @@ M: enum-c-type c-type-boxed-class drop object ;
 M: enum-c-type c-type-boxer-quot members>> enum-boxer ;
 M: enum-c-type c-type-unboxer-quot drop [ enum>number ] ;
 M: enum-c-type c-type-setter
-   [ enum>number ] swap base-type>> c-type-setter '[ _ 2dip @ ] ;
+    [ enum>number ] swap base-type>> c-type-setter '[ _ 2dip @ ] ;
 
 : define-enum-value ( class value -- )
     enum>number "enum-value" set-word-prop ;
index a47f16daab916691ad7e8352ec079cc9ff9965ec..8523717cb65e8280504d304c9af468ec69847f63 100644 (file)
@@ -6,10 +6,11 @@ IN: alien.libraries.finder.freebsd
 <PRIVATE
 
 : parse-ldconfig-lines ( string -- triple )
-    [ ":-" split1 [ drop ] dip
-    "=>" split1 [ [ unicode:blank? ] trim ] bi@
-      2array
-   ] map ;
+    [
+        ":-" split1 [ drop ] dip
+        "=>" split1 [ [ unicode:blank? ] trim ] bi@
+        2array
+    ] map ;
 
 : load-ldconfig-cache ( -- seq )
     "/sbin/ldconfig -r" utf8 [ read-lines ] with-process-reader
index 582b607f32f676b63a09acdce6f3df7524ced1b7..e5231b0d1a9f65496d66e7bdc23b922c1acfad8e 100644 (file)
@@ -54,8 +54,8 @@ HELP: dlsym?
 
 HELP: make-library
 { $values
-     { "path" "a pathname string" } { "abi" "the ABI used by the library, either " { $link cdecl } " or " { $link stdcall } }
-     { "library" library } }
+    { "path" "a pathname string" } { "abi" "the ABI used by the library, either " { $link cdecl } " or " { $link stdcall } }
+    { "library" library } }
 { $description "Opens a C library using the path and ABI parameters and outputs a library tuple." }
 { $notes "User code should use " { $link add-library } " so that the opened library is added to a global hashtable, " { $link libraries } "." } ;
 
index 3417d6d1b8fd0dcd748117b91e95784cff7a2ff9..548d892487fd0bf47057b1c9e993fc165453d359 100644 (file)
@@ -135,4 +135,4 @@ M: enum-c-type-word synopsis*
         [ lookup-c-type base-type>> dup int eq? [ drop ] [ "<" text pprint-word ] if ]
     } cleave ;
 M: enum-c-type-word definition
-   lookup-c-type members>> ;
+    lookup-c-type members>> ;
index 6079c7a0c9dba7498874f6f9fee9cd605f88b26a..327278439dd460984bca363c69b3893ba05c61d6 100644 (file)
@@ -324,7 +324,7 @@ big-endian off
             jit-call-quot
 
             vm-reg "end_callback" jit-call-1arg
-     ] }
+    ] }
 } define-sub-primitives
 
 
index db29a9f29d7f3d6a1e82965f09dd9827d33bdd84..b577c77abbc782734f2bdccfea41e58f4d60a199 100644 (file)
@@ -351,9 +351,9 @@ HELP: hence
 { $description "Computes a time in the future that is the " { $snippet "duration" } " added to the result of " { $link now } "." }
 { $examples
     { $unchecked-example
-       "USING: calendar prettyprint ;"
-       "10 hours hence ."
-       "T{ timestamp f 2008 9 2 2 47 45+943/1000 T{ duration f 0 0 0 -5 0 0 } }"
+        "USING: calendar prettyprint ;"
+        "10 hours hence ."
+        "T{ timestamp f 2008 9 2 2 47 45+943/1000 T{ duration f 0 0 0 -5 0 0 } }"
     }
 } ;
 
@@ -362,9 +362,9 @@ HELP: ago
 { $description "Computes a time in the past that is the " { $snippet "duration" } " subtracted from the result of " { $link now } "." }
 { $examples
     { $unchecked-example
-       "USING: calendar prettyprint ;"
-       "3 weeks ago ."
-       "T{ timestamp f 2008 8 11 16 49 52+99/500 T{ duration f 0 0 0 -5 0 0 } }"
+        "USING: calendar prettyprint ;"
+        "3 weeks ago ."
+        "T{ timestamp f 2008 8 11 16 49 52+99/500 T{ duration f 0 0 0 -5 0 0 } }"
     }
 } ;
 
@@ -489,8 +489,8 @@ HELP: time-since-midnight
 
 HELP: since-1970
 { $values
-     { "duration" duration }
-     { "timestamp" timestamp } }
+    { "duration" duration }
+    { "timestamp" timestamp } }
 { $description "Adds the duration to the beginning of Unix time and returns the result as a timestamp." } ;
 
 ARTICLE: "calendar" "Calendar"
index f8afca050a72828424c5aace49f077dae49c7c69..91f918ef2ee0fd86c8f3559fa77749f32c3a79a8 100644 (file)
@@ -261,7 +261,7 @@ M: number +second
         [ day>>    +day    ]
         [ month>>  +month  ]
         [ year>>   +year   ]
-     } cleave ; inline
+    } cleave ; inline
 
 PRIVATE>
 
index 259001ef0a75e05a5b7e9a096bf365c4933bb974..54a86e614795a561e60f4765518d55555ca40eaf 100644 (file)
@@ -5,25 +5,25 @@ IN: circular
 
 HELP: <circular-string>
 { $values
-     { "n" integer }
-     { "circular" circular } }
+    { "n" integer }
+    { "circular" circular } }
 { $description "Creates a new circular string object. A circular string is a string object that can be accessed out of bounds and the index will wrap around to the start of the string." } ;
 
 HELP: <circular>
 { $values
-     { "seq" sequence }
-     { "circular" circular } }
+    { "seq" sequence }
+    { "circular" circular } }
 { $description "Creates a new " { $link circular } " object that wraps an existing sequence. By default, the index is set to zero." } ;
 
 HELP: <growing-circular>
 { $values
-     { "capacity" integer }
-     { "growing-circular" growing-circular } }
+    { "capacity" integer }
+    { "growing-circular" growing-circular } }
 { $description "Creates a new growing-circular object." } ;
 
 HELP: change-circular-start
 { $values
-     { "n" integer } { "circular" circular } }
+    { "n" integer } { "circular" circular } }
 { $description "Changes the start index of a circular object." } ;
 
 HELP: circular
@@ -34,12 +34,12 @@ HELP: growing-circular
 
 HELP: circular-push
 { $values
-     { "elt" object } { "circular" circular } }
+    { "elt" object } { "circular" circular } }
 { $description "Pushes an element to a " { $link circular } " object." } ;
 
 HELP: growing-circular-push
 { $values
-     { "elt" object } { "circular" circular } }
+    { "elt" object } { "circular" circular } }
 { $description "Pushes an element onto a " { $link growing-circular } " object." } ;
 
 HELP: rotate-circular
index 74387d63ef4585f16c189cdada4ee27ebb90f0b4..4f07d89c96c9a4cbd82b4af04336fa1eea6a6a48 100644 (file)
@@ -12,7 +12,7 @@ IN: cocoa.dialogs
     dup 1 -> setAllowsMultipleSelection: ;
 
 : <NSDirPanel> ( -- panel ) <NSOpenPanel>
-   dup 1 -> setCanChooseDirectories: ;
+    dup 1 -> setCanChooseDirectories: ;
 
 : <NSSavePanel> ( -- panel )
     NSSavePanel -> savePanel
index 10695086a09858493dd3e079c175327a4a379a6f..8b0a784613b96846eb360819dd60c866b8921706 100644 (file)
@@ -5,8 +5,8 @@ IN: combinators.short-circuit.smart
 
 HELP: &&
 { $values
-     { "quots" "a sequence of quotations" }
-     { "quot" quotation } }
+    { "quots" "a sequence of quotations" }
+    { "quot" quotation } }
 { $description "Infers the number of arguments that each quotation takes from the stack. Each quotation must take the same number of arguments. Returns true if every quotation yields true, and stops early if one yields false." }
 { $examples "Smart combinators will infer the two inputs:"
     { $example "USING: prettyprint kernel math combinators.short-circuit.smart ;"
@@ -17,8 +17,8 @@ HELP: &&
 
 HELP: ||
 { $values
-     { "quots" "a sequence of quotations" }
-     { "quot" quotation } }
+    { "quots" "a sequence of quotations" }
+    { "quot" quotation } }
 { $description "Infers the number of arguments that each quotation takes from the stack. Each quotation must take the same number of arguments. Returns true if any quotation yields true, and stops early when one yields true." }
 { $examples "Smart combinators will infer the two inputs:"
     { $example "USING: prettyprint kernel math combinators.short-circuit.smart ;"
index 9acd7215f06f1abcbd2ff09809ac8239e578b9c8..212a352efceb236430d4ec5f41f1423a4bb74208 100644 (file)
@@ -13,11 +13,11 @@ IN: compiler.cfg.build-stack-frame.tests
     144
 } [
     T{ stack-frame
-       { params 91 }
-       { allot-area-align 8 }
-       { allot-area-size 10 }
-       { spill-area-align 8 }
-       { spill-area-size 16 }
+        { params 91 }
+        { allot-area-align 8 }
+        { allot-area-size 10 }
+        { spill-area-align 8 }
+        { spill-area-size 16 }
     } finalize-stack-frame
     slots[ allot-area-base spill-area-base total-size ]
     ! Exclude any reserved stack space 32 bytes on win64, 0 bytes
index 3d3aae705e45ed06fbb9e1ff24b942b35cb74877..ef75ed4fb8f79fdb18c0b27085bbcdecd9e671bf 100644 (file)
@@ -88,4 +88,4 @@ PRIVATE>
     } apply-passes ;
 
 : merge-set ( bbs -- bbs' )
-     (merge-set) [ members ] dip nths ;
+    (merge-set) [ members ] dip nths ;
index a0f5c8f01394f0eee03e83e33118a5e840e5301e..752f8466e09f68941991d7a02a6fe9c982c93d10 100644 (file)
@@ -30,12 +30,12 @@ M: linkage-error error-type drop +linkage-error+ ;
     dup asset>> compiler-errors get-global set-at ;
 
 T{ error-type-holder
-   { type +compiler-error+ }
-   { word ":errors" }
-   { plural "compiler errors" }
-   { icon "vocab:ui/tools/error-list/icons/compiler-error.png" }
-   { quot [ compiler-errors get values ] }
-   { forget-quot [ compiler-errors get delete-at ] }
+    { type +compiler-error+ }
+    { word ":errors" }
+    { plural "compiler errors" }
+    { icon "vocab:ui/tools/error-list/icons/compiler-error.png" }
+    { quot [ compiler-errors get values ] }
+    { forget-quot [ compiler-errors get delete-at ] }
 } define-error-type
 
 : <compiler-error> ( error word -- compiler-error )
@@ -48,13 +48,13 @@ T{ error-type-holder
     '[ _ boa ] dip <linkage-error> dup asset>> linkage-errors get set-at ; inline
 
 T{ error-type-holder
-   { type +linkage-error+ }
-   { word ":linkage" }
-   { plural "linkage errors" }
-   { icon "vocab:ui/tools/error-list/icons/linkage-error.png" }
-   { quot [ linkage-errors get values ] }
-   { forget-quot [ linkage-errors get delete-at ] }
-   { fatal? f }
+    { type +linkage-error+ }
+    { word ":linkage" }
+    { plural "linkage errors" }
+    { icon "vocab:ui/tools/error-list/icons/linkage-error.png" }
+    { quot [ linkage-errors get values ] }
+    { forget-quot [ linkage-errors get delete-at ] }
+    { fatal? f }
 } define-error-type
 
 ERROR: no-such-library name message ;
index bd476d31c4e0675480fa97fb0384f58a60d182a3..8ba7772ab6290860e55cc7cd968b0ac071f66fed 100644 (file)
@@ -1036,7 +1036,7 @@ FUNCTION: ulong ffi_test_70 ( test_struct_68 a test_struct_68 b, test_struct_66
 ] unit-test
 
 { 55 } [
-   1 2 3 S{ test_struct_66 f 4 5 } S{ test_struct_69 f 6.0 7 8 } S{ test_struct_66 f 9 10 } ffi_test_69
+    1 2 3 S{ test_struct_66 f 4 5 } S{ test_struct_69 f 6.0 7 8 } S{ test_struct_66 f 9 10 } ffi_test_69
 ] unit-test
 
 : callback-17 ( -- callback )
index 294ea1be3e2d91305d41a3ca514051da93f0e8ec..434dc0c5835eb1c3aa676819f546c02fd471d6ab 100644 (file)
@@ -375,14 +375,14 @@ cell 4 = [
 
 ! Reduction
 : coalescing-bug-4 ( a b c -- a b c )
-     [ [ min ] keep ] dip vector? [ 1 ] [ 2 ] if ;
-
- [ 2 3 2 ] [ 2 3 "" coalescing-bug-4 ] unit-test
- [ 3 3 2 ] [ 4 3 "" coalescing-bug-4 ] unit-test
- [ 3 3 2 ] [ 4 3 "" coalescing-bug-4 ] unit-test
- [ 2 3 1 ] [ 2 3 V{ } coalescing-bug-4 ] unit-test
- [ 3 3 1 ] [ 4 3 V{ } coalescing-bug-4 ] unit-test
- [ 3 3 1 ] [ 4 3 V{ } coalescing-bug-4 ] unit-test
+    [ [ min ] keep ] dip vector? [ 1 ] [ 2 ] if ;
+
+[ 2 3 2 ] [ 2 3 "" coalescing-bug-4 ] unit-test
+[ 3 3 2 ] [ 4 3 "" coalescing-bug-4 ] unit-test
+[ 3 3 2 ] [ 4 3 "" coalescing-bug-4 ] unit-test
+[ 2 3 1 ] [ 2 3 V{ } coalescing-bug-4 ] unit-test
+[ 3 3 1 ] [ 4 3 V{ } coalescing-bug-4 ] unit-test
+[ 3 3 1 ] [ 4 3 V{ } coalescing-bug-4 ] unit-test
 
 ! Global stack analysis dataflow equations are wrong
 : some-word ( a -- b ) 2 + ;
index 41366e05e2777b1ae35479b0580d577c8f254e89..1ca53213e34f8ae3c8a93c475f377204acb07259 100644 (file)
@@ -514,7 +514,7 @@ ERROR: bug-in-fixnum* x y a b ;
 ] unit-test
 
 [ B{ 0 1 2 3 4 } ] [
-    B{ 0 1 2 3 4 } <displaced-alien>
+    2 B{ 0 1 2 3 4 } <displaced-alien>
     [ 1 swap <displaced-alien> ] compile-call
     underlying>>
 ] unit-test
index ac0459e3d4fc1b86831b8fac89173c595bf586fa..719c4bceb6a6ea009f25f821462b52774d25da44 100644 (file)
@@ -109,7 +109,7 @@ USING: compression.gzip compression.inflate tools.test ;
     255 255 255 0 255 255 255 0 255 255 255 0 255 255 255 0 255
     255 255 0
     }
-   compress-dynamic gzip-inflate 
+    compress-dynamic gzip-inflate 
 ] unit-test 
 
 { B{
@@ -221,5 +221,5 @@ USING: compression.gzip compression.inflate tools.test ;
     255 255 255 0 255 255 255 0 255 255 255 0 255 255 255 0 255
     255 255 0
     }
-   compress-fixed gzip-inflate 
+    compress-fixed gzip-inflate 
 ] unit-test 
index 8c281375acf7f45760d1b9c4b81850be07397ff2..4ac751838905f8080763a01bf9870b1bc05393f2 100644 (file)
@@ -94,7 +94,7 @@ SYMBOL: lit-vec
     dup array? [ [ first 5 <bits> >bit-array reverse ] [ second ] bi 2array ] [ 5 <bits> >bit-array reverse ] if  ;
 
 : lit-to-bits ( lit -- bits )
-     dup array? [ [ first (lit-to-bits) ] [ second ] bi 2array ] [ (lit-to-bits) ] if  ;
+    dup array? [ [ first (lit-to-bits) ] [ second ] bi 2array ] [ (lit-to-bits) ] if  ;
  
 : pair-to-bits ( l,d -- bits )
     [ first lit-to-bits ] [ second dist-to-bits ] bi 2array ;
@@ -124,7 +124,7 @@ SYMBOL: lit-vec
 
 ! Use the given dictionary to replace the element with its code
 :: replace-one ( ele code-dict  --  new-ele )
-   ele array? [ ele first code-dict at ele second 2array ] [ ele code-dict at ] if ;
+    ele array? [ ele first code-dict at ele second 2array ] [ ele code-dict at ] if ;
 
 ! replace both elements of a length distance pair with their codes
 : replace-pair (  pair  -- new-pair  )
@@ -136,10 +136,10 @@ SYMBOL: lit-vec
 
 ! Dictionary encoding
 : lit-code-lens ( -- len-seq )
-     285 [0..b] [ lit-dict get at length ] map [ zero? ] trim-tail ;
+    285 [0..b] [ lit-dict get at length ] map [ zero? ] trim-tail ;
 
 : dist-code-lens ( -- len-seq )
-     31 [0..b] [ dist-dict get at length ] map [ zero? ] trim-tail ;
+    31 [0..b] [ dist-dict get at length ] map [ zero? ] trim-tail ;
 
 :: replace-0-single ( m len-seq  -- new-len-seq )
     m 11 < [ len-seq m 0 <array> 17 m 3 - 3 <bits> >bit-array 2array 1array replace ]
@@ -162,7 +162,7 @@ SYMBOL: lit-vec
     range empty? [ len-seq ] [ range first range 1 tail len-seq replace-all-runs replace-runs ] if ;
 
 : run-free-lit ( -- len-seq )
-     0 285 [a..b] lit-code-lens replace-0 replace-all-runs ;
+    0 285 [a..b] lit-code-lens replace-0 replace-all-runs ;
 
 : run-free-dist ( -- len-seq )
     0 31 [a..b] dist-code-lens replace-0 replace-all-runs ;
@@ -204,7 +204,7 @@ TUPLE: deflate-block
 
 ! Compresses a block with dynamic huffman compression, outputting a nested array structure
 : (compress-dynamic) ( lit-seq -- bit-arr-seq  )
-      dup compress-lz77 vec-to-lits { 256 } append lit-vec set 
+    [   dup compress-lz77 vec-to-lits { 256 } append lit-vec set 
         lit-vec get build-dicts  
         dist-dict set 
         lit-dict set
index 329e29a741b4517b30131aeea251d36bc070ee05..9a8e7e64d09bda4925d385d70ba19b0af2a65cc0 100644 (file)
@@ -45,9 +45,9 @@ TUPLE: huffman-code
     [ nip '[ _ swap _ set-at ] each ] 3bi ;
 
 :: reverse-table ( tdesc n -- rtable )
-   n f <array> <enumerated> :> table
-   tdesc [ n table update-reverse-table ] huffman-each
-   table seq>> ;
+    n f <array> <enumerated> :> table
+    tdesc [ n table update-reverse-table ] huffman-each
+    table seq>> ;
 
 TUPLE: huffman-tree
     { code maybe{ fixnum } }
@@ -83,16 +83,16 @@ TUPLE: huffman-tree
         { [ dup leaf? ] [ code>> ?{ } swap  H{ } clone ?set-at ] }
         { [ dup left>> not ] [ right>> (generate-codes) [ ?{ t } prepend ] assoc-map ] }
         { [ dup right>> not ] [ left>> (generate-codes) [ ?{ f } prepend ] assoc-map ] }
-          
+        [ 
             [ left>> (generate-codes) [ ?{ f } prepend ] assoc-map ] 
             [ right>> (generate-codes) [ ?{ t } prepend ] assoc-map ] bi assoc-union! 
-          
-     } cond ;
+        ] 
+    } cond ;
 
 : generate-codes ( lit-seq -- code-dict )
     [
-       [ H{ } clone ]
-       [ H{ } clone leaf-table set
+        [ H{ } clone ]
+        [ H{ } clone leaf-table set
         <min-heap> node-heap set
         build-tree heap-pop swap (generate-codes) nip ]
         if-empty
@@ -113,7 +113,7 @@ TUPLE: huffman-tree
     >alist [ <==> ] sort ;
 
 : get-next-code ( code current -- next )
-   [ reverse bit-array>integer 1 + ] [ length ] bi <bits> >bit-array reverse dup length pick length swap - [ f ] replicate append nip ;
+    [ reverse bit-array>integer 1 + ] [ length ] bi <bits> >bit-array reverse dup length pick length swap - [ f ] replicate append nip ;
 
 ! Does most of the work of converting a collection of codes to canonical ones. 
 : (canonize-codes) ( current codes  -- codes )
index 65e132eeacfc26036cc5d9e3fb2c5aec7efa13b9..94ad9e4027d78d0cbf7a3b23948d02d86b0784cd 100644 (file)
@@ -26,14 +26,14 @@ ERROR: bad-zlib-header ;
 
 
 : read-until-terminated ( data -- data ) 
-   [ dup 8 swap bs:read 0 =  ] [  ]  until ;
+    [ dup 8 swap bs:read 0 =  ] [  ]  until ;
 
 :: interpret-flag ( flg data  -- )
-   27 data bs:seek 
-   flg first 1 = [ 8 data bs:read data bs:seek  ] when
-   flg second 1 = [ data read-until-terminated drop ] when
-   flg fourth 1 = [ data read-until-terminated drop ] when
-   flg second 1 = [ 1 data bs:read drop  ] when ;
+    27 data bs:seek 
+    flg first 1 = [ 8 data bs:read data bs:seek  ] when
+    flg second 1 = [ data read-until-terminated drop ] when
+    flg fourth 1 = [ data read-until-terminated drop ] when
+    flg second 1 = [ 1 data bs:read drop  ] when ;
 
 :: check-gzip-header ( data -- )
     8 data bs:read 31 assert=   ! ID 1
index 45afe537c142292e25e5f6771cf54cb0ce5df42f..ade25b60e3a599c5e389260feb2c7c376b8ead09 100644 (file)
@@ -10,7 +10,7 @@ IN: concurrency.distributed
 <PRIVATE
 
 : registered-remote-threads ( -- hash )
-   \ registered-remote-threads get-global ;
+    \ registered-remote-threads get-global ;
 
 : thread-connections ( -- hash )
     \ thread-connections get-global ;
index 59c84e4aa42b975ee2ec426033798d919397ce07..cf13b4937f979b1dfa19d98f8d75d00d39afc724 100644 (file)
@@ -7,7 +7,7 @@ IN: constructors.tests
 TUPLE: stock-spread stock spread timestamp ;
 
 CONSTRUCTOR: <stock-spread> stock-spread ( stock spread -- stock-spread )
-   now >>timestamp ;
+    now >>timestamp ;
 
 SYMBOL: AAPL
 
index d50f69040b9fc78cd2d1f9ea0b1263027fdadd2f..01f400af91d1ce1242e1a33ed71cd4f3ce157b8c 100644 (file)
@@ -85,7 +85,7 @@ render-loc render-dim render-ext ;
 
 : selection-rect ( dim line selection -- rect )
     [let [ start>> ] [ end>> ] [ string>> ] tri :> ( start end string )
-     start end [ 0 swap string subseq utf16n encode length 2 /i ] bi@
+        start end [ 0 swap string subseq utf16n encode length 2 /i ] bi@
     ]
     [ f CTLineGetOffsetForStringIndex ] bi-curry@ bi
     [ drop nip 0 ] [ swap - swap second ] 3bi <CGRect> ;
index 29e6bb1c65a5088c07c0bc8bb841e309f3144d00..87999291eada1da8b2ab284a78b77254bca70958 100644 (file)
@@ -86,7 +86,7 @@ CONSTANT: default-uuids-to-cache 100
     [ dup server-url % "_uuids?count=" % uuids-to-cache>> number>string % ] "" make ;
 
 : uuids-get ( server -- uuids )
-     uuids-url couch-get "uuids" of >vector ;
+    uuids-url couch-get "uuids" of >vector ;
 
 : get-uuids ( server -- server )
     dup uuids-get [ nip ] curry change-uuids ;
index e615493a45ad4441dcd881fdcf0a629f333af00d..1eb9eab8e7428dc4b7d03edecd0dc341b0e83ecb 100644 (file)
@@ -24,7 +24,7 @@ DEFER: quoted-field,
             { CHAR: \r   [ ] } ! Error: lf inside string?
             [ [ , drop f maybe-escaped-quote ] when* ]
         } case
-     ] if ; inline recursive
+    ] if ; inline recursive
 
 : quoted-field, ( delimiter stream -- delimiter stream sep/f )
     "\"" over stream-read-until drop % t maybe-escaped-quote ;
index 0ad686c8ce4cce85a381a2f790b34fe3c9204142..b1783a945821cae4d772f34227c30b1c1b4fb7b2 100644 (file)
@@ -242,12 +242,12 @@ FUNCTION: int    PQflush ( PGconn* conn )
 ! * use
 !
 FUNCTION: PGresult* PQfn ( PGconn* conn,
-     int fnid,
-     int* result_buf,
-     int* result_len,
-     int result_is_int,
-     PQArgBlock* args,
-     int nargs )
+    int fnid,
+    int* result_buf,
+    int* result_len,
+    int result_is_int,
+    PQArgBlock* args,
+    int nargs )
 
 ! Accessor functions for PGresult objects
 FUNCTION: ExecStatusType PQresultStatus ( PGresult* res )
index 0029a0de1e27b52d7238af0fc6c08e831cfdb40b..825c9e77fa242f566f7d807e60246106961fc1fa 100644 (file)
@@ -48,19 +48,19 @@ IN: db.tester
 TUPLE: test-1 id a b c ;
 
 test-1 "TEST1" {
-   { "id" "ID" INTEGER +db-assigned-id+ }
-   { "a" "A" { VARCHAR 256 } +not-null+ }
-   { "b" "B" { VARCHAR 256 } +not-null+ }
-   { "c" "C" { VARCHAR 256 } +not-null+ }
+    { "id" "ID" INTEGER +db-assigned-id+ }
+    { "a" "A" { VARCHAR 256 } +not-null+ }
+    { "b" "B" { VARCHAR 256 } +not-null+ }
+    { "c" "C" { VARCHAR 256 } +not-null+ }
 } define-persistent
 
 TUPLE: test-2 id x y z ;
 
 test-2 "TEST2" {
-   { "id" "ID" INTEGER +db-assigned-id+ }
-   { "x" "X" { VARCHAR 256 } +not-null+ }
-   { "y" "Y" { VARCHAR 256 } +not-null+ }
-   { "z" "Z" { VARCHAR 256 } +not-null+ }
+    { "id" "ID" INTEGER +db-assigned-id+ }
+    { "x" "X" { VARCHAR 256 } +not-null+ }
+    { "y" "Y" { VARCHAR 256 } +not-null+ }
+    { "z" "Z" { VARCHAR 256 } +not-null+ }
 } define-persistent
 
 : test-1-tuple ( -- tuple )
index dd4837adae6194930c866cd028804b504794c864..c574e241bd6f1ce7f3f0270c73ebc454126b6231 100644 (file)
@@ -10,61 +10,61 @@ HELP: random-id-generator
 
 HELP: create-sql-statement
 { $values
-     { "class" class }
-     { "object" object } }
+    { "class" class }
+    { "object" object } }
 { $description "Generates the SQL code for creating a table for a given class." } ;
 
 HELP: drop-sql-statement
 { $values
-     { "class" class }
-     { "object" object } }
+    { "class" class }
+    { "object" object } }
 { $description "Generates the SQL code for dropping a table for a given class." } ;
 
 HELP: insert-tuple-set-key
 { $values
-     { "tuple" tuple } { "statement" statement } }
+    { "tuple" tuple } { "statement" statement } }
 { $description "Inserts a tuple and sets its primary key in one word. This is necessary for some databases." } ;
 
 HELP: <count-statement>
 { $values
-     { "query" query }
-     { "statement" statement } }
+    { "query" query }
+    { "statement" statement } }
 { $description "A database-specific hook for generating the SQL for a count statement." } ;
 
 HELP: <delete-tuples-statement>
 { $values
-     { "tuple" tuple } { "class" class }
-     { "object" object } }
+    { "tuple" tuple } { "class" class }
+    { "object" object } }
 { $description "A database-specific hook for generating the SQL for an delete statement." } ;
 
 HELP: <insert-db-assigned-statement>
 { $values
-     { "class" class }
-     { "object" object } }
+    { "class" class }
+    { "object" object } }
 { $description "A database-specific hook for generating the SQL for an insert statement with a database-assigned primary key." } ;
 
 HELP: <insert-user-assigned-statement>
 { $values
-     { "class" class }
-     { "object" object } }
+    { "class" class }
+    { "object" object } }
 { $description "A database-specific hook for generating the SQL for an insert statement with a user-assigned primary key." } ;
 
 HELP: <select-by-slots-statement>
 { $values
-     { "tuple" tuple } { "class" class }
-     { "statement" tuple } }
+    { "tuple" tuple } { "class" class }
+    { "statement" tuple } }
 { $description "A database-specific hook for generating the SQL for a select statement." } ;
 
 HELP: <update-tuple-statement>
 { $values
-     { "class" class }
-     { "object" object } }
+    { "class" class }
+    { "object" object } }
 { $description "A database-specific hook for generating the SQL for an update statement." } ;
 
 
 HELP: define-persistent
 { $values
-     { "class" class } { "table" string } { "columns" "an array of slot specifiers" } }
+    { "class" class } { "table" string } { "columns" "an array of slot specifiers" } }
 { $description "Defines a relation from a Factor " { $snippet "tuple class" } " to an SQL database table name. The format for the slot specifiers is as follows:"
 { $list
     { "a slot name from the " { $snippet "tuple class" } }
@@ -84,22 +84,22 @@ HELP: define-persistent
 
 HELP: create-table
 { $values
-     { "class" class } }
+    { "class" class } }
 { $description "Creates an SQL table from a mapping defined by " { $link define-persistent } ". If the table already exists, the database will likely throw an error." } ;
 
 HELP: ensure-table
 { $values
-     { "class" class } }
+    { "class" class } }
 { $description "Creates an SQL table from a mapping defined by " { $link define-persistent } ". If the table already exists, the error is silently ignored." } ;
 
 HELP: ensure-tables
 { $values
-     { "classes" "a sequence of classes" } }
+    { "classes" "a sequence of classes" } }
 { $description "Creates an SQL table from a mapping defined by " { $link define-persistent } ". If a table already exists, the error is silently ignored." } ;
 
 HELP: recreate-table
 { $values
-     { "class" class } }
+    { "class" class } }
 { $description "Drops an existing table and re-creates it from a mapping defined by " { $link define-persistent } ". If the table does not exist the error is silently ignored." }
 { $warning { $emphasis "THIS WORD WILL DELETE YOUR DATA." } $nl
 " Use " { $link ensure-table } " unless you want to delete the data in this table." } ;
@@ -108,25 +108,25 @@ HELP: recreate-table
 
 HELP: drop-table
 { $values
-     { "class" class } }
+    { "class" class } }
 { $description "Drops an existing table which deletes all of the data. The database will probably throw an error if the table does not exist." }
 { $warning { $emphasis "THIS WORD WILL DELETE YOUR DATA." } } ;
 
 HELP: insert-tuple
 { $values
-     { "tuple" tuple } }
+    { "tuple" tuple } }
 { $description "Inserts a tuple into a database if a relation has been defined with " { $link define-persistent } ". If a mapping states that the database assigns a primary key to the tuple, this value will be set after this word runs." }
 { $notes "Objects should only be inserted into a database once per object. To store the object after the initial insert, call " { $link update-tuple } "." } ;
 
 HELP: update-tuple
 { $values
-     { "tuple" tuple } }
+    { "tuple" tuple } }
 { $description "Updates a tuple that has already been inserted into a database. The tuple must have a primary key that has been set by " { $link insert-tuple } " or that is user-defined." } ;
 
 HELP: update-tuples
 { $values
-     { "query/tuple" tuple }
-     { "quot" { $quotation ( tuple -- tuple'/f ) } } }
+    { "query/tuple" tuple }
+    { "quot" { $quotation ( tuple -- tuple'/f ) } } }
 { $description "An SQL query is constructed from the slots of the exemplar tuple that are not " { $link f } ". The " { $snippet "quot" } " is applied to each tuple from the database that matches the query, and the changed tuple is stored back to the database. If the " { $snippet "quot" } " returns " { $link f } ", the tuple is dropped, and its data remains unmodified in the database."
 $nl
 "The word is equivalent to the following code:"
@@ -135,14 +135,14 @@ $nl
 
 HELP: delete-tuples
 { $values
-     { "tuple" tuple } }
+    { "tuple" tuple } }
 { $description "Uses the " { $snippet "tuple" } " as an exemplar object and deletes any objects that have the same slots set. If a slot is not " { $link f } ", then it is used to generate an SQL statement that deletes tuples." }
 { $warning "This word will delete your data." } ;
 
 HELP: reject-tuples
 { $values
-     { "query/tuple" tuple }
-     { "quot" { $quotation ( tuple -- ? ) } } }
+    { "query/tuple" tuple }
+    { "quot" { $quotation ( tuple -- ? ) } } }
 { $description "An SQL query is constructed from the slots of the exemplar tuple that are not " { $link f } ". The " { $snippet "quot" } " is applied to each tuple from the database that matches the query, and if it returns a true value, the row is deleted from the database."
 $nl
 "The word is equivalent to the following code:"
@@ -154,26 +154,26 @@ $nl
 
 HELP: each-tuple
 { $values
-     { "query/tuple" tuple }
-     { "quot" { $quotation ( tuple -- ) } } }
+    { "query/tuple" tuple }
+    { "quot" { $quotation ( tuple -- ) } } }
 { $description "An SQL query is constructed from the slots of the exemplar tuple that are not " { $link f } ". The " { $snippet "quot" } " is applied to each tuple from the database that matches the query constructed from the exemplar tuple." } ;
 
 HELP: select-tuple
 { $values
-     { "query/tuple" tuple }
-     { "tuple/f" { $maybe tuple } } }
+    { "query/tuple" tuple }
+    { "tuple/f" { $maybe tuple } } }
 { $description "An SQL query is constructed from the slots of the exemplar tuple that are not " { $link f } ". Returns a single tuple from the database if it matches the query constructed from the exemplar tuple." } ;
 
 HELP: select-tuples
 { $values
-     { "query/tuple" tuple }
-     { "tuples" "an array of tuples" } }
+    { "query/tuple" tuple }
+    { "tuples" "an array of tuples" } }
 { $description "An SQL query is constructed from the slots of the exemplar tuple that are not " { $link f } ". Returns an array of multiple tuples from the database that match the query constructed from the exemplar tuple." } ;
 
 HELP: count-tuples
 { $values
-     { "query/tuple" tuple }
-     { "n" integer } }
+    { "query/tuple" tuple }
+    { "n" integer } }
 { $description "Returns the number of items that would be returned if the query were a select query. Counting the tuples with this word is more efficient than calling " { $link length } " on the result of " { $link select-tuples } "." } ;
 
 { each-tuple select-tuple select-tuples count-tuples } related-words
@@ -272,7 +272,7 @@ T{ book
 "Now we've created a book. Let's save it to the database."
 { $code "USING: db db.sqlite fry io.files.temp ;
 : with-book-tutorial ( quot -- )
-     '[ \"book-tutorial.db\" temp-file <sqlite-db> _ with-db ] call ; inline
+    '[ \"book-tutorial.db\" temp-file <sqlite-db> _ with-db ] call ; inline
 
 [
     book recreate-table
index ba2aac8ce587b9c1c0346d5303a4872c775f69ce..f2e4fe2aa300851ae00352424f97337432248eac 100644 (file)
@@ -91,53 +91,53 @@ HELP: VARCHAR
 
 HELP: user-assigned-id-spec?
 { $values
-     { "specs" "a sequence of SQL specs" }
-     { "?" boolean } }
+    { "specs" "a sequence of SQL specs" }
+    { "?" boolean } }
 { $description "Tests if any of the SQL specs has the type " { $link +user-assigned-id+ } "." } ;
 
 HELP: bind#
 { $values
-     { "spec" "an SQL spec" } { "obj" object } }
+    { "spec" "an SQL spec" } { "obj" object } }
 { $description "A generic word that lets a database construct a literal binding." } ;
 
 HELP: bind%
 { $values
-     { "spec" "an SQL spec" } }
+    { "spec" "an SQL spec" } }
 { $description "A generic word that lets a database output a binding." } ;
 
 HELP: db-assigned-id-spec?
 { $values
-     { "specs" "a sequence of SQL specs" }
-     { "?" boolean } }
+    { "specs" "a sequence of SQL specs" }
+    { "?" boolean } }
 { $description "Tests if any of the SQL specs has the type " { $link +db-assigned-id+ } "." } ;
 
 HELP: find-primary-key
 { $values
-     { "specs" "a sequence of SQL specs" }
-     { "seq" "a sequence of SQL specs" } }
+    { "specs" "a sequence of SQL specs" }
+    { "seq" "a sequence of SQL specs" } }
 { $description "Returns the rows from the SQL specs array that are part of the primary key. Composite primary keys are supported, so this word must return a sequence." }
 { $notes "This is a low-level word." } ;
 
 HELP: no-sql-type
 { $values
-     { "type" "an SQL type" } }
+    { "type" "an SQL type" } }
 { $description "Throws an error containing an SQL type that is unsupported or the result of a typo." } ;
 
 HELP: normalize-spec
 { $values
-     { "spec" "an SQL spec" } }
+    { "spec" "an SQL spec" } }
 { $description "Normalizes an SQL spec." } ;
 
 HELP: primary-key?
 { $values
-     { "spec" "an SQL spec" }
-     { "?" boolean } }
+    { "spec" "an SQL spec" }
+    { "?" boolean } }
 { $description "Returns true if an SQL spec is a primary key." } ;
 
 HELP: relation?
 { $values
-     { "spec" "an SQL spec" }
-     { "?" boolean } }
+    { "spec" "an SQL spec" }
+    { "?" boolean } }
 { $description "Returns true if an SQL spec is a relation." } ;
 
 HELP: unknown-modifier
index cd90a357e76c62eb9d71736ba334105e77e15715..a6adcf3c0749a7cc4922dff996b43b256ee8f214 100644 (file)
@@ -16,13 +16,13 @@ HELP: deque-empty?
 
 HELP: clear-deque
 { $values
-     { "deque" deque } }
+    { "deque" deque } }
 { $description "Removes all elements from a deque." } ;
 
 HELP: deque-member?
 { $values
-     { "value" object } { "deque" deque }
-     { "?" boolean } }
+    { "value" object } { "deque" deque }
+    { "?" boolean } }
 { $description "Returns true if the " { $snippet "value" } " is found in the deque." } ;
 
 HELP: push-front
@@ -54,12 +54,12 @@ HELP: push-back*
 
 HELP: push-all-back
 { $values
-     { "seq" sequence } { "deque" deque } }
+    { "seq" sequence } { "deque" deque } }
 { $description "Pushes a sequence of elements onto the back of a deque." } ;
 
 HELP: push-all-front
 { $values
-     { "seq" sequence } { "deque" deque } }
+    { "seq" sequence } { "deque" deque } }
 { $description "Pushes a sequence of elements onto the front of a deque." } ;
 
 HELP: peek-front*
@@ -110,7 +110,7 @@ HELP: pop-back*
 
 HELP: delete-node
 { $values
-     { "node" object } { "deque" deque } }
+    { "node" object } { "deque" deque } }
 { $contract "Deletes the node from the deque." } ;
 
 HELP: deque
@@ -118,13 +118,13 @@ HELP: deque
 
 HELP: node-value
 { $values
-     { "node" object }
-     { "value" object } }
+    { "node" object }
+    { "value" object } }
 { $description "Accesses the value stored at a node." } ;
 
 HELP: slurp-deque
 { $values
-     { "deque" deque } { "quot" { $quotation ( ... obj -- ... ) } } }
+    { "deque" deque } { "quot" { $quotation ( ... obj -- ... ) } } }
 { $description "Pops off the back element of the deque and calls the quotation in a loop until the deque is empty." }
 { $examples
   { $example
index be29f1cc936d7eb92c096f345461b6c9e14d2b62..3d27f4d15472e23800a4f8679dc27c2be47234f7 100644 (file)
@@ -20,10 +20,9 @@ HELP: plan9-path
 "The " { $link plan9-path } " word will try to locate your Plan9"
 " installation. In order of preference this word checks:"
 $nl
-{
- $list
- { "The " { $link plan9-path } " global" }
- "The PLAN9 environment variable"
+{ $list
+  { "The " { $link plan9-path } " global" }
+  "The PLAN9 environment variable"
 }
 $nl
 "Finally, if neither is available, falls back to "
index 4f6580eae1f0d305871399e2e7fbeb71aa9c8055..3c9de98ae505f2ae94320c5d292a5aa3603c0271 100644 (file)
@@ -25,10 +25,10 @@ editor-class [ acme ] initialize
 
 : (massage-pathname) ( file line -- str )
  over file-info regular-file?
- [ number>string 2array ":" join ]
- [ drop ] if ;
 [ number>string 2array ":" join ]
 [ drop ] if ;
 
 PRIVATE>
 
 M: acme editor-command ( file line -- command )
- [ (plumb-path) , "-d" , "edit" , (massage-pathname) , ] { } make ;
 [ (plumb-path) , "-d" , "edit" , (massage-pathname) , ] { } make ;
index 823c9b35a41bb31b0293ae9d0350f8569523737a..98c8d7210f380afb0be0b2017c29453a6c4b0079 100644 (file)
@@ -6,14 +6,13 @@ IN: environment
 
 HELP: (os-envs)
 { $values
-
-     { "seq" sequence } }
+    { "seq" sequence } }
 { $description "Returns a sequence of key/value pairs from the operating system." }
 { $notes "In most cases, use " { $link os-envs } " instead." } ;
 
 HELP: (set-os-envs)
 { $values
-     { "seq" sequence } }
+    { "seq" sequence } }
 { $description "Low-level word for replacing the current set of environment variables." }
 { $notes "In most cases, use " { $link set-os-envs } " instead." } ;
 
index 34c1c59ab52e22204a0307eca44081f40853f374..dd52aa18ed0b3f1ede51b6b7267939cd1709c1e9 100644 (file)
@@ -135,7 +135,7 @@ link-no-follow? off
 { "<p>asdf</p><ul><li>lol</li><li>haha</li></ul>" } [ "asdf\n-lol\n-haha" convert-farkup ] unit-test
 
 { "<p>asdf</p><ul><li>lol</li><li>haha</li></ul>" }
- [ "asdf\n\n-lol\n-haha" convert-farkup ] unit-test
+[ "asdf\n\n-lol\n-haha" convert-farkup ] unit-test
 
 { "<hr/>" } [ "___" convert-farkup ] unit-test
 { "<hr/>" } [ "___\n" convert-farkup ] unit-test
index 3b30713ef3b659678b5f937d6d612daba567184b..5d9b889b10a16516b971ab60bcf80050c25f8f3a 100644 (file)
@@ -12,15 +12,15 @@ HELP: font
 
 HELP: font-with-background
 { $values
-     { "font" font } { "color" color }
-     { "font'" font }
+    { "font" font } { "color" color }
+    { "font'" font }
 }
 { $description "Creates a new font equal to the given font, except with a different " { $slot "background" } " slot." } ;
 
 HELP: font-with-foreground
 { $values
-     { "font" font } { "color" color }
-     { "font'" font }
+    { "font" font } { "color" color }
+    { "font'" font }
 }
 { $description "Creates a new font equal to the given font, except with a different " { $slot "foreground" } " slot." } ;
 
index 1f5663c959ef9fa920ce8b16b6fcf705875dff31..f02c16de64d7f80a92cc09d3f48ec6bb10ad64ea 100644 (file)
@@ -195,11 +195,11 @@ MACRO: sprintf ( format-string -- quot )
 : >datetime ( timestamp -- string )
     [
        {
-          [ day-of-week day-abbreviation3 ]
-          [ month>> month-abbreviation ]
-          [ day>> pad-00 ]
-          [ >time ]
-          [ year>> number>string ]
+            [ day-of-week day-abbreviation3 ]
+            [ month>> month-abbreviation ]
+            [ day>> pad-00 ]
+            [ >time ]
+            [ year>> number>string ]
        } cleave
     ] output>array join-words ; inline
 
index 1a107d5c8934730f89d0fff69237a473f2e9d4ba..f97270ffe8d404abe14ee0f0e0c28b6572926a43 100644 (file)
@@ -8,8 +8,8 @@ HELP: <action>
 
 HELP: <chloe-content>
 { $values
-     { "path" "a path" }
-     { "response" response }
+    { "path" "a path" }
+    { "response" response }
 }
 { $description "Creates an HTTP response which serves a Chloe template. See " { $link "html.templates.chloe" } "." } ;
 
@@ -24,8 +24,8 @@ $nl
 
 HELP: new-action
 { $values
-     { "class" class }
-     { "action" action }
+    { "class" class }
+    { "action" action }
 }
 { $description "Constructs a subclass of " { $link action } "." } ;
 
@@ -46,7 +46,7 @@ HELP: validate-integer-id
 
 HELP: validate-params
 { $values
-     { "validators" "an association list mapping parameter names to validator quotations" }
+    { "validators" "an association list mapping parameter names to validator quotations" }
 }
 { $description "Validates query or POST parameters, depending on the request type, and stores them in " { $link "html.forms.values" } ". The validator quotations can execute " { $link "validators" } "." }
 { $examples
index 68125b3311b9a6ea498cbec3db7f80422c75f002..443186ab2ea012dd6f20f2f639f93949ffeb3e99 100644 (file)
@@ -5,8 +5,8 @@ IN: furnace.auth
 
 HELP: <protected>
 { $values
-     { "responder" "a responder" }
-     { "protected" "a new responder" }
+    { "responder" "a responder" }
+    { "protected" "a new responder" }
 }
 { $description "Wraps a responder in a protected responder. Access to the wrapped responder will be conditional upon the client authenticating with the current authentication realm." } ;
 
@@ -27,15 +27,15 @@ HELP: define-capability
 
 HELP: encode-password
 { $values
-     { "string" string } { "salt" integer }
-     { "bytes" byte-array }
+    { "string" string } { "salt" integer }
+    { "bytes" byte-array }
 }
 { $description "Encodes a password with the current authentication realm's checksum." } ;
 
 HELP: have-capabilities?
 { $values
-     { "capabilities" "a sequence of capabilities" }
-     { "?" boolean }
+    { "capabilities" "a sequence of capabilities" }
+    { "?" boolean }
 }
 { $description "Tests if the currently logged-in user possesses the given capabilities." } ;
 
@@ -44,14 +44,14 @@ HELP: logged-in-user
 
 HELP: login-required
 { $values
-     { "description" string } { "capabilities" "a sequence of capabilities" }
+    { "description" string } { "capabilities" "a sequence of capabilities" }
 }
 { $description "Redirects the client to a login page." } ;
 
 HELP: login-required*
 { $values
-     { "description" string } { "capabilities" "a sequence of capabilities" } { "realm" "an authenticaiton realm" }
-     { "response" response }
+    { "description" string } { "capabilities" "a sequence of capabilities" } { "realm" "an authenticaiton realm" }
+    { "response" response }
 }
 { $contract "Constructs an HTTP response for redirecting the client to a login page." } ;
 
index fe9fef0f3fa5573d62cdfda9efce487b28d2caf7..efebdbb0ffbfe484ae755409ffa184712a3b4065 100644 (file)
@@ -3,8 +3,8 @@ IN: furnace.auth.login
 
 HELP: <login-realm>
 { $values
-     { "responder" "a responder" } { "name" string }
-     { "realm" "a new responder" }
+    { "responder" "a responder" } { "name" string }
+    { "realm" "a new responder" }
 }
 { $description "Wraps a responder in a new login realm with the given name. The realm must be configured before use; see " { $link "furnace.auth.realm-config" } "." } ;
 
index 79d272d15aea57386070666e5407eab9557ecc04..b4b737ef075dd67ed1346cb14c5d20c9e7daa907 100644 (file)
@@ -136,9 +136,9 @@ TUPLE: couchdb-auth-provider
     bi ;
 
 : user>user-hash ( user -- hash )
-     hash-mirror
-     [ [ "password" ] dip [ >base64 >string ] change-at ] keep
-     couchdb-auth-provider get field-map>> map-fields-forward ;
+    hash-mirror
+    [ [ "password" ] dip [ >base64 >string ] change-at ] keep
+    couchdb-auth-provider get field-map>> map-fields-forward ;
 
 ! Used when the user is guaranteed to exist if the logic of the Factor
 ! code is correct (e.g. when update-user is called).
index ea01cdd96ac73900729c75a67aaf0eeacb4862cb..3fb6c10ef670f8d32ceadd54793270a5b85312a5 100644 (file)
@@ -3,8 +3,8 @@ IN: furnace.boilerplate
 
 HELP: <boilerplate>
 { $values
-     { "responder" "a responder" }
-     { "boilerplate" "a new boilerplate responder" }
+    { "responder" "a responder" }
+    { "boilerplate" "a new boilerplate responder" }
 }
 { $description "Wraps a responder in a boilerplate responder. The boilerplate responder needs to be configured before use; see " { $link "furnace.boilerplate.config" } "." } ;
 
index bb62c3104d2b6ccc3bb6a58bfc85058c6396f5f1..8feb52c09f56369768758da3ea8d8ecbc3452c62 100644 (file)
@@ -4,8 +4,8 @@ IN: furnace.conversations
 
 HELP: <conversations>
 { $values
-     { "responder" "a responder" }
-     { "responder'" "a new responder" }
+    { "responder" "a responder" }
+    { "responder'" "a new responder" }
 }
 { $description "Creates a new " { $link conversations } " responder wrapping an existing responder." } ;
 
index c40b9f9c157bccc8400b4a70924b8586b2875a27..89f7c7597d7b6e438eeb70595eb55ef5734b4933 100644 (file)
@@ -3,8 +3,8 @@ IN: furnace.db
 
 HELP: <db-persistence>
 { $values
-     { "responder" "a responder" } { "db" "a database descriptor" }
-     { "responder'" db-persistence }
+    { "responder" "a responder" } { "db" "a database descriptor" }
+    { "responder'" db-persistence }
 }
 { $description "Wraps a responder with database persistence support. The responder's " { $link call-responder* } " method will run in a " { $link with-db } " scope." } ;
 
index e8f917f1f81631d7d75b80a731af5877ac0a6499..b7035d24aa6e0576643848d4b70f7392484324ef 100644 (file)
@@ -15,23 +15,23 @@ HELP: <secure-only>
 
 HELP: <secure-redirect>
 { $values
-     { "url" url }
-     { "response" response }
+    { "url" url }
+    { "response" response }
 }
 { $description "Creates a responder which unconditionally redirects the client to the given URL after setting its protocol to HTTPS." }
 { $notes "This word is intended to be used with a relative URL. The client is redirected to the relative URL, but with HTTPS instead of HTTP." } ;
 
 HELP: >secure-url
 { $values
-     { "url" url }
-     { "url'" url }
+    { "url" url }
+    { "url'" url }
 }
 { $description "Sets the protocol of a URL to HTTPS." } ;
 
 HELP: if-secure
 { $values
-     { "quot" quotation }
-     { "response" response }
+    { "quot" quotation }
+    { "response" response }
 }
 { $description "Runs a quotation if the current request was made over HTTPS, otherwise returns a redirect to have the client request the current page again via HTTPS." } ;
 
index 01bcf88e34d0dd2f64a02dd267e7026d2289dacb..53d1d77209e4da8d39f18dc54492a11e82af9e8a 100644 (file)
@@ -3,8 +3,8 @@ IN: furnace.referrer
 
 HELP: <check-form-submissions>
 { $values
-     { "responder" "a responder" }
-     { "responder'" "a responder" }
+    { "responder" "a responder" }
+    { "responder'" "a responder" }
 }
 { $description "Wraps the responder in a filter responder which ensures that form submissions originate from a page on the same server. Any submissions which do not are sent back with a 403 error." } ;
 
index 515954c30ca7765f3b6c8f0df3be9e25c53593e4..a3de0631729636e6299001832617ef04d0f91899 100644 (file)
@@ -4,8 +4,8 @@ IN: furnace.sessions
 
 HELP: <sessions>
 { $values
-     { "responder" "a responder" }
-     { "responder'" "a new responder" }
+    { "responder" "a responder" }
+    { "responder'" "a new responder" }
 }
 { $description "Wraps a responder in a session manager responder." } ;
 
index 714b0cef0ff78e9465adea5c902ea3d01e209f46..fc4797da7d3c7e69fe374cc7e259d90185f7ab13 100644 (file)
@@ -8,8 +8,8 @@ HELP: <feed-action>
 
 HELP: >entry
 { $values
-     { "object" object }
-     { "entry" entry }
+    { "object" object }
+    { "entry" entry }
 }
 { $contract "Converts an object into an Atom feed entry. The default implementation constructs an entry by calling "
 { $link feed-entry-title } ", "
@@ -22,29 +22,29 @@ HELP: feed-action
 
 HELP: feed-entry-date
 { $values
-     { "object" object }
-     { "timestamp" timestamp }
+    { "object" object }
+    { "timestamp" timestamp }
 }
 { $contract "Outputs a feed entry timestmap." } ;
 
 HELP: feed-entry-description
 { $values
-     { "object" object }
-     { "description" string }
+    { "object" object }
+    { "description" string }
 }
 { $contract "Outputs a feed entry description." } ;
 
 HELP: feed-entry-title
 { $values
-     { "object" object }
-     { "string" string }
+    { "object" object }
+    { "string" string }
 }
 { $contract "Outputs a feed entry title." } ;
 
 HELP: feed-entry-url
 { $values
-     { "object" object }
-     { "url" url }
+    { "object" object }
+    { "url" url }
 }
 { $contract "Outputs a feed entry URL." } ;
 
index 0959df79f5f8b0bbcf3b19f2313ad58aa5ad6846..879e490626aa5081cc71a0164708418c70b0776b 100644 (file)
@@ -34,7 +34,7 @@ MACRO: map-index-compose ( seq quot -- quot' )
       map-index-compose 2cleave ;
 
  : >pov ( byte -- symbol )
-     {
+    {
          pov-neutral
          pov-up
          pov-down
@@ -51,7 +51,7 @@ MACRO: map-index-compose ( seq quot -- quot' )
          pov-neutral
          pov-neutral
          pov-neutral
-     } nth ;
+    } nth ;
 
 : fill-controller-state ( XINPUT_STATE -- controller-state )
     Gamepad>> controller-state new dup rot
index c9cd833b69c4888f60413f4eabd20081a499c475..9e9fb9b16b219205e617c9b93094076084ca25e8 100644 (file)
@@ -108,7 +108,7 @@ M: pathname url-of
             }
         });
         </script>
-     XML] ;
+    XML] ;
 
 : help-header ( stylesheet -- xml )
     help-stylesheet help-meta swap help-script 3append ;
@@ -127,7 +127,7 @@ M: pathname url-of
             <a href="/">Handbook</a>
             <a href=<->>Glossary</a>
         </nav>
-     XML] ;
+    XML] ;
 
 : help-footer ( -- xml )
     version-info "\n" split1 drop
index cbaff6550b50f0347b9fd374e01da72843d0f6b1..de62d72ad9c0cb300ae542f552e60bd38b113a74 100644 (file)
@@ -47,8 +47,8 @@ SYMBOL: vocab-articles
         ] vocabs-quot get call( quot -- )
     ] leaks members no-ui-disposables
     dup length 0 > [
-       dup [ class-of ] histogram-by
-       [ "Leaked resources: " write ... ] with-string-writer simple-lint-error
+        dup [ class-of ] histogram-by
+        [ "Leaked resources: " write ... ] with-string-writer simple-lint-error
     ] [
         drop
     ] if ;
index 1162ec7657b871ac03c93bee01b0f495e8326cf2..26fb94288930fdfe3417e2e71ea48b60d48f582a 100644 (file)
@@ -15,12 +15,12 @@ TUPLE: help-lint-error < source-file-error ;
 SYMBOL: +help-lint-failure+
 
 T{ error-type-holder
-   { type +help-lint-failure+ }
-   { word ":lint-failures" }
-   { plural "help lint failures" }
-   { icon "vocab:ui/tools/error-list/icons/help-lint-error.png" }
-   { quot [ lint-failures get values ] }
-   { forget-quot [ lint-failures get delete-at ] }
+    { type +help-lint-failure+ }
+    { word ":lint-failures" }
+    { plural "help lint failures" }
+    { icon "vocab:ui/tools/error-list/icons/help-lint-error.png" }
+    { quot [ lint-failures get values ] }
+    { forget-quot [ lint-failures get delete-at ] }
 } define-error-type
 M: help-lint-error error-type drop +help-lint-failure+ ;
 
index a92c2d64b8410d905beefcf3ab570a30571d715f..c1be84b1ea9ac037d50f0d0af5c8851a0df4de43 100644 (file)
@@ -376,7 +376,7 @@ M: f ($instance) ($link) ;
     print-element $snippet ;
 
 : ($instances) ( element -- )
-     dup word? [ ($link) "s" print-element ] [ print-element ] if ;
+    dup word? [ ($link) "s" print-element ] [ print-element ] if ;
 
 : $sequence ( element -- )
     { "a " { $link sequence } " of " } print-element
index 49b897180e86c942f75e17db7119fa77e1fb8a7c..6ccf080b067d8057c5a50f1cbde9c16b478e2d5c 100644 (file)
@@ -99,7 +99,7 @@ IN: http.client.tests
     "https://www.apple.com/index.html"
     "CONNECT" <client-request>
         f >>proxy-url
-     request-uri
+    request-uri
 ] unit-test
 
 { f } [
@@ -229,10 +229,10 @@ CONSTANT: classic-proxy-settings H{
 
 ! This url is misparsed bu request-url can fix it
 { T{ url
-   { protocol "http" }
-   { host "www.google.com" }
-   { path "/" }
-   { port 80 }
+    { protocol "http" }
+    { host "www.google.com" }
+    { path "/" }
+    { port 80 }
 } } [ "www.google.com" request-url ] unit-test
 
 ! This one is not fixable, leave it as it is
index 236a203bc8ec844fa42cbb69d2be6a7c80e3d333..a41146a6a4236c9b924b3fb02fbdabb6133069aa 100644 (file)
@@ -177,8 +177,8 @@ SYMBOL: redirects
 
 : no-proxy? ( request -- ? )
     get-no-proxy-list [
-       [ url>> host>> "." split ] dip "," split
-       [ "." split no-proxy-match? ] with any?
+        [ url>> host>> "." split ] dip "," split
+        [ "." split no-proxy-match? ] with any?
     ] [ drop f ] if* ;
 
 : (check-proxy) ( proxy -- ? )
index 583edee8ee101dc49f394d64ac89f730ad81b350..c2d67d219c7ad0d22bd0f110ced81ee4fbde6651 100644 (file)
@@ -23,7 +23,7 @@ HELP: <vhost-dispatcher>
 
 HELP: add-responder
 { $values
-     { "dispatcher" dispatcher } { "responder" "a responder" } { "path" "a pathname string or hostname" } }
+    { "dispatcher" dispatcher } { "responder" "a responder" } { "path" "a pathname string or hostname" } }
 { $description "Adds a responder to a dispatcher." }
 { $notes "The " { $snippet "path" } " parameter is interpreted differently depending on the dispatcher type." }
 { $side-effects "dispatcher" } ;
index be09e235a61c75286a5e8da53b5f436419ff314d..a3a24c462f777b6707235b6e98a4e399ae7c7ce5 100644 (file)
@@ -15,14 +15,14 @@ HELP: benchmark?
 
 HELP: call-responder
 { $values
-     { "path" "a sequence of strings" } { "responder" "a responder" }
-     { "response" response } }
+    { "path" "a sequence of strings" } { "responder" "a responder" }
+    { "response" response } }
 { $description "Calls a responder." } ;
 
 HELP: call-responder*
 { $values
-     { "path" "a sequence of strings" } { "responder" "a responder" }
-     { "response" response } }
+    { "path" "a sequence of strings" } { "responder" "a responder" }
+    { "response" response } }
 { $contract "Processes an HTTP request and returns a response." }
 { $notes "When this word is called, various dynamic variables are set; see " { $link "http.server.requests" } "." } ;
 
@@ -64,8 +64,8 @@ HELP: request-params
 
 HELP: param
 { $values
-     { "name" string }
-     { "value" string }
+    { "name" string }
+    { "value" string }
 }
 { $description "Outputs the value of a query parameter (if the current request is a GET or HEAD request) or a POST parameter (if the current request is a POST request)." }
 { $notes "Instead of using this word, it is better to use " { $vocab-link "furnace.actions" } " and the associated validation machinery, which allows you to access values using " { $link "html.forms.values" } " words." } ;
index df8827795bcff575557b5193db7f77cbaddecf8b..a882a0e26152ffe528e800b38b12e8b668fb3d3e 100644 (file)
@@ -9,9 +9,9 @@ HELP: <file-responder>
 
 HELP: <static>
 { $values
-     { "root" "a pathname string" }
-     { "responder" file-responder } }
- { $description "Creates a file responder which serves content from " { $snippet "path" } "." } ;
+    { "root" "a pathname string" }
+    { "responder" file-responder } }
+{ $description "Creates a file responder which serves content from " { $snippet "path" } "." } ;
 
 HELP: enable-fhtml
 { $values { "responder" file-responder } }
index 4307248f8437c006b946998c734840625ac84137..e0cce98505146609808ac1ad81bed2fe70b21eed 100644 (file)
@@ -33,7 +33,7 @@ os macosx? [
         { "png" "tif" "tiff" "gif" "jpg" "jpeg" "bmp" "ico" "webp" }
     ] [
         supported-ns-image-extensions
-     ] if [ ns-image register-image-class ] each
+    ] if [ ns-image register-image-class ] each
 ] when
 
 : <CGImage> ( byte-array -- image-rep )
index 7f9108e77501271f64faa7b3fa9784354bde5638..1434d64b5119edbf5c3f08706d2c13baf7db8c06 100644 (file)
@@ -86,7 +86,7 @@ USING: ini-file tools.test ;
 
 { H{ { "owner" H{ { "name" "John Doe" }
                   { "organization" "Acme Widgets Inc." } } }
-     { "database" H{ { "server" "192.0.2.62" }
+    { "database" H{ { "server" "192.0.2.62" }
                      { "port" "143" }
                      { "file" "payroll.dat" } } } } }
 [
index dc87f0e2a20e97d9f4c4e0b2bd7b7b2759840082..db8bd1044896794f16b4e30e2d754ea80ee8f8b0 100644 (file)
@@ -6,100 +6,100 @@ IN: io.files.info.unix
 
 HELP: add-file-permissions
 { $values
-     { "path" "a pathname string" }
-     { "n" integer } }
+    { "path" "a pathname string" }
+    { "n" integer } }
 { $description "Ensures that the bits from " { $snippet "n" } " are set in the Unix file permissions for a given file." } ;
 
 HELP: remove-file-permissions
 { $values
-     { "path" "a pathname string" }
-     { "n" integer } }
+    { "path" "a pathname string" }
+    { "n" integer } }
 { $description "Ensures that the bits from " { $snippet "n" } " are cleared in the Unix file permissions for a given file." } ;
 
 HELP: file-group-id
 { $values
-     { "path" "a pathname string" }
-     { "gid" integer } }
+    { "path" "a pathname string" }
+    { "gid" integer } }
 { $description "Returns the group id for a given file." } ;
 
 HELP: file-group-name
 { $values
-     { "path" "a pathname string" }
-     { "string" string } }
+    { "path" "a pathname string" }
+    { "string" string } }
 { $description "Returns the group name for a given file." } ;
 
 HELP: file-permissions
 { $values
-     { "path" "a pathname string" }
-     { "n" integer } }
+    { "path" "a pathname string" }
+    { "n" integer } }
 { $description "Returns the Unix file permissions for a given file." } ;
 
 HELP: file-user-name
 { $values
-     { "path" "a pathname string" }
-     { "string" string } }
+    { "path" "a pathname string" }
+    { "string" string } }
 { $description "Returns the user-name for a given file." } ;
 
 HELP: file-user-id
 { $values
-     { "path" "a pathname string" }
-     { "uid" integer } }
+    { "path" "a pathname string" }
+    { "uid" integer } }
 { $description "Returns the user id for a given file." } ;
 
 HELP: group-execute?
 { $values
-     { "obj" "a pathname string or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "group execute" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: group-read?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "group read" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: group-write?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "group write" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: other-execute?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "other execute" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: other-read?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "other read" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: other-write?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "other write" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: set-file-access-time
 { $values
-     { "path" "a pathname string" } { "timestamp" timestamp } }
+    { "path" "a pathname string" } { "timestamp" timestamp } }
 { $description "Sets a file's last access timestamp." } ;
 
 HELP: set-file-group
 { $values
-     { "path" "a pathname string" } { "string/id" "a string or a group id" } }
+    { "path" "a pathname string" } { "string/id" "a string or a group id" } }
 { $description "Sets a file's group id from the given group id or group name." } ;
 
 HELP: set-file-ids
 { $values
-     { "path" "a pathname string" } { "uid" integer } { "gid" integer } }
+    { "path" "a pathname string" } { "uid" integer } { "gid" integer } }
 { $description "Sets the user id and group id of a file with a single library call." } ;
 
 HELP: set-file-permissions
 { $values
-     { "path" "a pathname string" } { "n" "an integer, interepreted as a string of bits" } }
+    { "path" "a pathname string" } { "n" "an integer, interepreted as a string of bits" } }
 { $description "Sets the file permissions for a given file with the supplied Unix permissions integer." }
 { $examples "Using the traditional octal value:"
     { $code "USING: io.files.info.unix kernel ;"
@@ -115,113 +115,113 @@ HELP: set-file-permissions
 
 HELP: set-file-times
 { $values
-     { "path" "a pathname string" } { "timestamps" "an array of two timestamps" } }
+    { "path" "a pathname string" } { "timestamps" "an array of two timestamps" } }
 { $description "Sets the access and write timestamps for a file as provided in the input array. A value of " { $link f } " provided for either of the timestamps will not change that timestamp." } ;
 
 HELP: set-file-user
 { $values
-     { "path" "a pathname string" } { "string/id" "a string or a user id" } }
+    { "path" "a pathname string" } { "string/id" "a string or a user id" } }
 { $description "Sets a file's user id from the given user id or user-name." } ;
 
 HELP: set-file-modified-time
 { $values
-     { "path" "a pathname string" } { "timestamp" timestamp } }
+    { "path" "a pathname string" } { "timestamp" timestamp } }
 { $description "Sets a file's last modified timestamp, or write timestamp." } ;
 
 HELP: set-gid
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "gid" } " bit of a file to true or false." } ;
 
 HELP: gid?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "gid" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: set-group-execute
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "group execute" } " bit of a file to true or false." } ;
 
 HELP: set-group-read
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "group read" } " bit of a file to true or false." } ;
 
 HELP: set-group-write
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "group write" } " bit of a file to true or false." } ;
 
 HELP: set-other-execute
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "other execute" } " bit of a file to true or false." } ;
 
 HELP: set-other-read
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "other read" } " bit of a file to true or false." } ;
 
 HELP: set-other-write
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "other execute" } " bit of a file to true or false." } ;
 
 HELP: set-sticky
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "sticky" } " bit of a file to true or false." } ;
 
 HELP: sticky?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "sticky" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: set-uid
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "uid" } " bit of a file to true or false." } ;
 
 HELP: uid?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "uid" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: set-user-execute
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "user execute" } " bit of a file to true or false." } ;
 
 HELP: set-user-read
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "user read" } " bit of a file to true or false." } ;
 
 HELP: set-user-write
 { $values
-     { "path" "a pathname string" } { "?" boolean } }
+    { "path" "a pathname string" } { "?" boolean } }
 { $description "Sets the " { $snippet "user write" } " bit of a file to true or false." } ;
 
 HELP: user-execute?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "user execute" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: user-read?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "user read" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 HELP: user-write?
 { $values
-     { "obj" "a pathname string, file-info object, or an integer" }
-     { "?" boolean } }
+    { "obj" "a pathname string, file-info object, or an integer" }
+    { "?" boolean } }
 { $description "Tests whether the " { $snippet "user write" } " bit is set on a file, " { $link file-info } ", or an integer." } ;
 
 ARTICLE: "unix-file-permissions" "Unix file permissions"
index 4590fe5c35bfeb0f442740882a0e1686496740bb..57c18a5cd90e111fca6aeec4cdf0b710c8c85d46 100644 (file)
@@ -19,15 +19,15 @@ HELP: copy-link
 
 HELP: follow-link
 { $values
-     { "path" "a pathname string" }
-     { "path'" "a pathname string" }
+    { "path" "a pathname string" }
+    { "path'" "a pathname string" }
 }
 { $description "Returns an absolute path from " { $link read-link } "." } ;
 
 HELP: follow-links
 { $values
-     { "path" "a pathname string" }
-     { "path'" "a pathname string" }
+    { "path" "a pathname string" }
+    { "path'" "a pathname string" }
 }
 { $description "Follows a chain of symlinks up to " { $link symlink-depth } "." } ;
 
@@ -35,13 +35,13 @@ HELP: follow-links
 
 HELP: symlink-depth
 { $values
-     { "value" integer }
+    { "value" integer }
 }
 { $description "The number of redirections " { $link follow-links } " will follow." } ;
 
 HELP: too-many-symlinks
 { $values
-     { "path" "a pathname string" } { "n" integer }
+    { "path" "a pathname string" } { "n" integer }
 }
 { $description "An error thrown when the number of redirections in a chain of symlinks surpasses the value in the " { $link symlink-depth } " variable." } ;
 
index a708dfee817bef6997b1d3a36c3f442bcced7775..a2148da194642369afec052ac75fe911bfb131dc 100644 (file)
@@ -53,7 +53,7 @@ TUPLE: io-callback port thread ;
 C: <io-callback> io-callback
 
 : <completion-port> ( handle existing -- handle )
-     f 1 CreateIoCompletionPort dup win32-error=0/f ;
+    f 1 CreateIoCompletionPort dup win32-error=0/f ;
 
 : <master-completion-port> ( -- handle )
     INVALID_HANDLE_VALUE f <completion-port> ;
index ff55eb991d565c0afd640e6a7527dc2538de7896..6cc6ba8fb7b825326dbdf784aef541b18208d1e2 100644 (file)
@@ -5,15 +5,15 @@ IN: io.streams.limited
 
 HELP: <limited-stream>
 { $values
-     { "stream" "an input stream" } { "limit" integer }
-     { "stream'" "an input stream" }
+    { "stream" "an input stream" } { "limit" integer }
+    { "stream'" "an input stream" }
 }
 { $description "Constructs a new " { $link limited-stream } " from an existing stream. User code should use " { $link limit-stream } " or " { $link limited-input } "." } ;
 
 HELP: limit-stream
 { $values
-     { "stream" "an input stream" } { "limit" integer }
-     { "stream'" "a stream" }
+    { "stream" "an input stream" } { "limit" integer }
+    { "stream'" "a stream" }
 }
 { $description "Changes a decoder's stream to be a limited stream, or wraps " { $snippet "stream" } " in a " { $link limited-stream } "." }
 { $examples
index 642c76674e84888a79687fc3a759abd4d21cba8a..b2054ab26b4ed6093b80c29c31fe06946bdfbe1c 100644 (file)
@@ -85,7 +85,7 @@ ${ { 0xabcd } >string } [ " \"\\uaBCd\" " json> ] unit-test
 [ not-a-json-number? ] must-fail-with
 
 ! unclosed objects and mismatched brackets are not allowed
- [ "[\"a\",
+[ "[\"a\",
 4
 ,1," json> ] must-fail
 
index 9c8d0d5b93e07d2104a8fa69f715225c382b6958..37d55a4d3f176f7158d8c256dd26cd609e42a641 100644 (file)
@@ -14,11 +14,11 @@ HELP: json-print
 $nl
 "Some options can control the formatting of the result:"
 { $table
-     { { $link json-allow-fp-special? } "Allow special floating-points: NaN, Infinity, -Infinity" }
-     { { $link json-friendly-keys? }    "Convert - to _ in tuple slots and hashtable keys" }
-     { { $link json-coerce-keys? }      "Coerce hashtable keys into strings" }
-     { { $link json-escape-slashes? }   "Escape forward slashes inside strings" }
-     { { $link json-escape-unicode? }   "Escape unicode values inside strings" }
+    { { $link json-allow-fp-special? } "Allow special floating-points: NaN, Infinity, -Infinity" }
+    { { $link json-friendly-keys? }    "Convert - to _ in tuple slots and hashtable keys" }
+    { { $link json-coerce-keys? }      "Coerce hashtable keys into strings" }
+    { { $link json-escape-slashes? }   "Escape forward slashes inside strings" }
+    { { $link json-escape-unicode? }   "Escape unicode values inside strings" }
 }
 }
 { $see-also >json } ;
index 3209ab657559e2db04ad477fa842a1e72428172e..bbb194302f7133eb8781a1f728823e324f4107e9 100644 (file)
@@ -176,7 +176,7 @@ M: lazy-append cdr
     [ list1>> cdr ] [ list2>> ] bi lappend-lazy ;
 
 M: lazy-append nil?
-     drop f ;
+    drop f ;
 
 TUPLE: lazy-from-by n quot ;
 
index f6f6a04975672ca3e78b0155e255612f04f7385b..b46c6de2ac5af25d7305921a622d063e895aa424 100644 (file)
@@ -31,7 +31,7 @@ USING: tools.test lists math kernel ;
 ] unit-test
 
 { 15 } [
- { 1 2 3 4 5 } sequence>list 0 [ + ] foldr
   { 1 2 3 4 5 } sequence>list 0 [ + ] foldr
 ] unit-test
 
 { { 5 4 3 2 1 } } [
index cc3c33a49bd96e2b6536eae0767419dd1740eb66..0ec2f69b021ca0fb2f6d603c36cb4d636f95984e 100644 (file)
@@ -131,8 +131,8 @@ HELP: bitroll
 
 HELP: bit-count
 { $values
-     { "obj" object }
-     { "n" integer }
+    { "obj" object }
+    { "n" integer }
 }
 { $description "Returns the number of set bits as an object. This word only works on non-negative integers or objects that can be represented as a byte-array." }
 { $examples
@@ -152,8 +152,8 @@ HELP: bit-count
 
 HELP: bitroll-32
 { $values
-     { "m" integer } { "s" integer }
-     { "n" integer }
+    { "m" integer } { "s" integer }
+    { "n" integer }
 }
 { $description "Rolls the number " { $snippet "m" } " by " { $snippet "s" } " bits to the left, wrapping around after 32 bits." }
 { $examples
@@ -169,8 +169,8 @@ HELP: bitroll-32
 
 HELP: bitroll-64
 { $values
-     { "m" integer } { "s" "a shift integer" }
-     { "n" integer }
+    { "m" integer } { "s" "a shift integer" }
+    { "n" integer }
 }
 { $description "Rolls the number " { $snippet "m" } " by " { $snippet "s" } " bits to the left, wrapping around after 64 bits." }
 { $examples
@@ -188,8 +188,8 @@ HELP: bitroll-64
 
 HELP: clear-bit
 { $values
-     { "x" integer } { "n" integer }
-     { "y" integer }
+    { "x" integer } { "n" integer }
+    { "y" integer }
 }
 { $description "Sets the " { $snippet "n" } "th bit of " { $snippet "x" } " to zero." }
 { $examples
@@ -265,8 +265,8 @@ HELP: >signed
 
 HELP: mask
 { $values
-     { "x" integer } { "n" integer }
-     { "y" integer }
+    { "x" integer } { "n" integer }
+    { "y" integer }
 }
 { $description "After the operation, only the bits that were set in both the mask and the original number are set." }
 { $examples
@@ -278,8 +278,8 @@ HELP: mask
 
 HELP: mask-bit
 { $values
-     { "m" integer } { "n" integer }
-     { "m'" integer }
+    { "m" integer } { "n" integer }
+    { "m'" integer }
 }
 { $description "Turns off all bits besides the " { $snippet "n" } "th bit." }
 { $examples
@@ -291,8 +291,8 @@ HELP: mask-bit
 
 HELP: mask?
 { $values
-     { "x" integer } { "n" integer }
-     { "?" boolean }
+    { "x" integer } { "n" integer }
+    { "?" boolean }
 }
 { $description "Returns true if all of the bits in the mask " { $snippet "n" } " are set in the integer input " { $snippet "x" } "." }
 { $examples
@@ -323,8 +323,8 @@ HELP: odd-parity?
 
 HELP: on-bits
 { $values
-     { "m" integer }
-     { "n" integer }
+    { "m" integer }
+    { "n" integer }
 }
 { $description "Returns an integer with " { $snippet "m" } " bits set." }
 { $examples
@@ -340,9 +340,9 @@ HELP: on-bits
 
 HELP: toggle-bit
 { $values
-     { "m" integer }
-     { "n" integer }
-     { "m'" integer }
+    { "m" integer }
+    { "n" integer }
+    { "m'" integer }
 }
 { $description "Toggles the " { $snippet "n" } "th bit of an integer." }
 { $examples
@@ -358,8 +358,8 @@ HELP: toggle-bit
 
 HELP: set-bit
 { $values
-     { "x" integer } { "n" integer }
-     { "y" integer }
+    { "x" integer } { "n" integer }
+    { "y" integer }
 }
 { $description "Sets the " { $snippet "n" } "th bit of " { $snippet "x" } "." }
 { $examples
@@ -371,15 +371,15 @@ HELP: set-bit
 
 HELP: shift-mod
 { $values
-     { "m" integer } { "s" integer } { "w" integer }
-     { "n" integer }
+    { "m" integer } { "s" integer } { "w" integer }
+    { "n" integer }
 }
 { $description "Calls " { $link shift } " on " { $snippet "n" } " and " { $snippet "s" } ", wrapping the result to " { $snippet "w" } " bits." } ;
 
 HELP: unmask
 { $values
-     { "x" integer } { "n" integer }
-     { "y" integer }
+    { "x" integer } { "n" integer }
+    { "y" integer }
 }
 { $description "Clears the bits in " { $snippet "x" } " if they are set in the mask " { $snippet "n" } "." }
 { $examples
@@ -391,8 +391,8 @@ HELP: unmask
 
 HELP: unmask?
 { $values
-     { "x" integer } { "n" integer }
-     { "?" boolean }
+    { "x" integer } { "n" integer }
+    { "?" boolean }
 }
 { $description "Tests whether unmasking the bits in " { $snippet "x" } " would return an integer greater than zero." }
 { $examples
@@ -404,8 +404,8 @@ HELP: unmask?
 
 HELP: w*
 { $values
-     { "x" integer } { "y" integer }
-     { "z" integer }
+    { "x" integer } { "y" integer }
+    { "z" integer }
 }
 { $description "Multiplies two integers and wraps the result to a 32-bit unsigned integer." }
 { $examples
@@ -417,8 +417,8 @@ HELP: w*
 
 HELP: w+
 { $values
-     { "x" integer } { "y" integer }
-     { "z" integer }
+    { "x" integer } { "y" integer }
+    { "z" integer }
 }
 { $description "Adds two integers and wraps the result to a 32-bit unsigned integer." }
 { $examples
@@ -430,8 +430,8 @@ HELP: w+
 
 HELP: w-
 { $values
-     { "x" integer } { "y" integer }
-     { "z" integer }
+    { "x" integer } { "y" integer }
+    { "z" integer }
 }
 { $description "Subtracts two integers and wraps the result to a 32-bit unsigned integer." }
 { $examples
@@ -443,8 +443,8 @@ HELP: w-
 
 HELP: W*
 { $values
-     { "x" integer } { "y" integer }
-     { "z" integer }
+    { "x" integer } { "y" integer }
+    { "z" integer }
 }
 { $description "Multiplies two integers and wraps the result to a 64-bit unsigned integer." }
 { $examples
@@ -456,8 +456,8 @@ HELP: W*
 
 HELP: W+
 { $values
-     { "x" integer } { "y" integer }
-     { "z" integer }
+    { "x" integer } { "y" integer }
+    { "z" integer }
 }
 { $description "Adds two integers and wraps the result to 64-bit unsigned integer." }
 { $examples
@@ -469,8 +469,8 @@ HELP: W+
 
 HELP: W-
 { $values
-     { "x" integer } { "y" integer }
-     { "z" integer }
+    { "x" integer } { "y" integer }
+    { "z" integer }
 }
 { $description "Subtracts two integers and wraps the result to a 64-bit unsigned integer." }
 { $examples
@@ -482,8 +482,8 @@ HELP: W-
 
 HELP: wrap
 { $values
-     { "m" integer } { "n" integer }
-     { "m'" integer }
+    { "m" integer } { "n" integer }
+    { "m'" integer }
 }
 { $description "Wraps an integer " { $snippet "m" } " by modding it by " { $snippet "n" } ". This word is uses bitwise arithmetic and does not actually call the modulus word, and as such can only mod by powers of two." }
 { $examples "Equivalent to modding by 8:"
index 7cd9494bf2a5483b6d207c8081f66f65f438a246..c941de5fcdd6369ebc4911285ac8ed7280b3a978 100644 (file)
@@ -1038,11 +1038,11 @@ HELP: matrix-p-norm-entrywise
 { $description "Find the entry-wise norm of a matrix, in 𝑙ₚ (" { $snippet "L^p" } ") vector space."  }
 { $notes "This word is not an induced or Schatten norm, and it is distinct from all of " { $links matrix-l1-norm matrix-l2-norm matrix-l-infinity-norm } "." }
 { $examples
-   { $example
+    { $example
        "USING: math.matrices prettyprint ;"
        "4 4 1 <matrix> 2 matrix-p-norm-entrywise ."
        "4.0"
-   }
+    }
 } ;
 
 HELP: matrix-p-norm
@@ -1056,17 +1056,17 @@ HELP: matrix-p-norm
 }
 { $examples
    "Calls " { $link l1-norm } ":"
-   { $example
+    { $example
        "USING: math.matrices prettyprint ;"
        "4 4 1 <matrix> 1 matrix-p-norm ."
        "4"
-   }
+    }
    "Falls back to " { $link matrix-p-norm-entrywise } ":"
-   { $example
+    { $example
        "USING: math.functions math.matrices prettyprint ;"
        "2 2 3 <matrix> 1.5 matrix-p-norm 7.559 10e-4 ~ ."
        "t"
-   }
+    }
 } ;
 
 { matrix-p-norm matrix-p-norm-entrywise } related-words
@@ -1076,15 +1076,15 @@ HELP: matrix-normalize
 { $values { "m" "a matrix with at least 1 non-zero number" } { "m'" matrix } }
 { $description "Normalize a matrix containing at least 1 non-zero element. Each element from the input matrix is computed as a fraction of the maximum element. The maximum element becomes " { $snippet "1/1" } "." }
 { $notelist
-   $2d-only-note
-   { $matrix-scalar-note max abs / }
+    $2d-only-note
+    { $matrix-scalar-note max abs / }
 }
 { $examples
-   { $example
+    { $example
        "USING: math.matrices prettyprint ;"
        "{ { 5 9 } { 15 17 } } matrix-normalize ."
        "{ { 5/17 9/17 } { 15/17 1 } }"
-   }
+    }
 } ;
 
 HELP: main-diagonal
index 6a015b8b4d087ca3994f1de22fd01ead774930ed..0d7c116ebef40b9c854421e6de523fc787e8a185 100644 (file)
@@ -374,13 +374,13 @@ PRIVATE>
 { { 4 3 2 1 } } [ { 1 2 3 4 } <anti-diagonal-matrix> transpose anti-diagonal ] unit-test
 
 { {
- { 1 4 7 }
- { 2 5 8 }
- { 3 6 9 }
 { 1 4 7 }
 { 2 5 8 }
 { 3 6 9 }
 } } [ {
- { 1 2 3 }
- { 4 5 6 }
- { 7 8 9 }
 { 1 2 3 }
 { 4 5 6 }
 { 7 8 9 }
 } transpose ] unit-test
 
 ! anti transposition
@@ -389,13 +389,13 @@ PRIVATE>
 { { 4 3 2 1 } } [ { 1 2 3 4 } <diagonal-matrix> anti-transpose main-diagonal ] unit-test
 
 { {
- { 9 6 3 }
- { 8 5 2 }
- { 7 4 1 }
 { 9 6 3 }
 { 8 5 2 }
 { 7 4 1 }
 } } [ {
- { 1 2 3 }
- { 4 5 6 }
- { 7 8 9 }
 { 1 2 3 }
 { 4 5 6 }
 { 7 8 9 }
 } anti-transpose ] unit-test
 
 <PRIVATE
index d2644f2974482b55daf752988a83848fec559225..f3ed32aabce4d5921959cd549b19abe1531fb79a 100644 (file)
@@ -12,9 +12,9 @@ CONSTANT: separator1 "----WebKitFormBoundary6odjpVPXIighAE2L"
 CONSTANT: upload1 "------WebKitFormBoundary6odjpVPXIighAE2L\r\nContent-Disposition: form-data; name=\"file1\"; filename=\"up.txt\"\r\nContent-Type: text/plain\r\n\r\nuploaded!\n\r\n------WebKitFormBoundary6odjpVPXIighAE2L\r\nContent-Disposition: form-data; name=\"file2\"; filename=\"\"\r\n\r\n\r\n------WebKitFormBoundary6odjpVPXIighAE2L\r\nContent-Disposition: form-data; name=\"file3\"; filename=\"\"\r\n\r\n\r\n------WebKitFormBoundary6odjpVPXIighAE2L\r\nContent-Disposition: form-data; name=\"text1\"\r\n\r\nlol\r\n------WebKitFormBoundary6odjpVPXIighAE2L--\r\n"
 
 : mime-test-stream ( -- stream )
-   upload1
-   [ "mime" "test" unique-file ] with-temp-directory
-   ascii [ set-file-contents ] [ <file-reader> ] 2bi ;
+    upload1
+    [ "mime" "test" unique-file ] with-temp-directory
+    ascii [ set-file-contents ] [ <file-reader> ] 2bi ;
 
 { } [ mime-test-stream [ ] with-input-stream ] unit-test
 
index 96987829cf9e42b5ae7eb905c08af2a3c67ae903..e60a3ed405bff6e833085d3acce7949aad954e7c 100644 (file)
@@ -6,7 +6,7 @@ IN: mime.types
 HELP: mime-db
 { $values
 
-     { "seq" sequence } }
+    { "seq" sequence } }
 { $description "Outputs an array where the first element is a MIME type and the rest of the array is file extensions that have that MIME type." } ;
 
 HELP: mime-type
@@ -18,13 +18,13 @@ HELP: mime-type
 HELP: mime-types
 { $values
 
-     { "assoc" assoc } }
+    { "assoc" assoc } }
 { $description "Outputs an " { $snippet "assoc" } " made from the data in the " { $link mime-db } " word where the keys are file extensions and the values are the corresponding MIME types." } ;
 
 HELP: nonstandard-mime-types
 { $values
 
-     { "assoc" assoc } }
+    { "assoc" assoc } }
 { $description "A list of Factor-specific MIME types that are added to the MIME database loaded from disk." } ;
 
 ARTICLE: "mime.types" "MIME types"
index 7aaaba47c422aad0a0b15dbb4b0c698b9191252b..9f7e4df3ef49d09a462c84fa9f501e2d672e7bb8 100644 (file)
@@ -16,10 +16,10 @@ IN: peg.ebnf.tests
 
 {
   T{ ebnf-rule f
-     "digit"
-     T{ ebnf-choice f
+    "digit"
+    T{ ebnf-choice f
         V{ T{ ebnf-terminal f "1" } T{ ebnf-terminal f "2" } }
-     }
+    }
   }
 } [
   "digit = '1' | '2'" rule-parser parse
@@ -27,10 +27,10 @@ IN: peg.ebnf.tests
 
 {
   T{ ebnf-rule f
-     "digit"
-     T{ ebnf-sequence f
-        V{ T{ ebnf-terminal f "1" } T{ ebnf-terminal f "2" } }
-     }
+    "digit"
+    T{ ebnf-sequence f
+      V{ T{ ebnf-terminal f "1" } T{ ebnf-terminal f "2" } }
+    }
   }
 } [
   "digit = '1' '2'" rule-parser parse
@@ -38,12 +38,12 @@ IN: peg.ebnf.tests
 
 {
   T{ ebnf-choice f
-     V{
-       T{ ebnf-sequence f
-          V{ T{ ebnf-non-terminal f "one" } T{ ebnf-non-terminal f "two" } }
-       }
-       T{ ebnf-non-terminal f "three" }
-     }
+    V{
+      T{ ebnf-sequence f
+        V{ T{ ebnf-non-terminal f "one" } T{ ebnf-non-terminal f "two" } }
+      }
+      T{ ebnf-non-terminal f "three" }
+    }
   }
 } [
   "one two | three" choice-parser parse
@@ -51,7 +51,7 @@ IN: peg.ebnf.tests
 
 {
   T{ ebnf-sequence f
-     V{
+    V{
        T{ ebnf-non-terminal f "one" }
        T{ ebnf-whitespace f
          T{ ebnf-choice f
@@ -66,7 +66,7 @@ IN: peg.ebnf.tests
 
 {
   T{ ebnf-sequence f
-     V{
+    V{
        T{ ebnf-non-terminal f "one" }
        T{ ebnf-repeat0 f
           T{ ebnf-sequence f
@@ -86,7 +86,7 @@ IN: peg.ebnf.tests
 
 {
   T{ ebnf-sequence f
-     V{
+    V{
        T{ ebnf-non-terminal f "one" }
        T{ ebnf-ignore f
           T{ ebnf-sequence f
@@ -106,7 +106,7 @@ IN: peg.ebnf.tests
 
 {
   T{ ebnf-sequence f
-     V{
+    V{
          T{ ebnf-non-terminal f "one" }
          T{ ebnf-optional f T{ ebnf-non-terminal f "two" } }
          T{ ebnf-non-terminal f "three" }
index e7ed0ed1ed14592962a2d4a0e982f87294e8d047..311fb19dea9b7a72969f39d1e1370af7c1a4834c 100644 (file)
@@ -300,10 +300,10 @@ DEFER: choice-parser
     ] choice* ;
 
 : action-parser ( -- parser )
-     "[[" factor-code-parser "]]" syntax-pack ;
+    "[[" factor-code-parser "]]" syntax-pack ;
 
 : semantic-parser ( -- parser )
-     "?[" factor-code-parser "]?" syntax-pack ;
+    "?[" factor-code-parser "]?" syntax-pack ;
 
 : sequence-parser ( -- parser )
     ! A sequence of terminals and non-terminals, including
@@ -457,7 +457,7 @@ M: ebnf-sequence build-locals
                 " " %
                 %
                 " nip ]" %
-             ] "" make
+            ] "" make
         ] if
     ] if ;
 
index 4d474caa79faa49730079e2d86cb8ede1389d374..28d2d37e09e0a6c49d4836425ef0262747cc0e74 100644 (file)
@@ -13,8 +13,8 @@ TUPLE: persistent-hash
 M: persistent-hash assoc-size count>> ;
 
 M: persistent-hash at*
-     [ dup hashcode >fixnum ] [ root>> ] bi* (entry-at)
-     dup [ value>> t ] [ f ] if ;
+    [ dup hashcode >fixnum ] [ root>> ] bi* (entry-at)
+    dup [ value>> t ] [ f ] if ;
 
 M: persistent-hash new-at
     [
index bffe4f53d79108a7573f4b6d74ce975288bec0ce..0453fe7f60a4cd7f40c15c1538831ca912c4d665 100644 (file)
@@ -47,9 +47,9 @@ PRIVATE>
 
 : read-char ( byte -- ch )
     dup CHAR: = = [
-       drop read1 dup CHAR: \n =
-       [ drop read1 read-char ]
-       [ read1 2array hex> ] if
+        drop read1 dup CHAR: \n =
+        [ drop read1 read-char ]
+        [ read1 2array hex> ] if
     ] when ;
 
 : read-quoted ( -- bytes )
index 974e0bd40f24e0943141d1b8cae340889f3d6e1f..99c489febd66e9f8c3d0316d534aa7dd259b926f 100644 (file)
@@ -102,8 +102,8 @@ HELP: with-system-random
 
 HELP: randomize
 { $values
-     { "seq" sequence }
-     { "randomized" sequence }
+    { "seq" sequence }
+    { "randomized" sequence }
 }
 { $description "Randomizes a sequence in-place with the Fisher-Yates algorithm and returns the sequence." } ;
 
@@ -122,8 +122,8 @@ HELP: sample
 
 HELP: delete-random
 { $values
-     { "seq" sequence }
-     { "elt" object } }
+    { "seq" sequence }
+    { "elt" object } }
 { $description "Deletes a random number from a sequence using " { $link remove-nth! } " and returns the deleted object." } ;
 
 ARTICLE: "random-protocol" "Random protocol"
index d6668c1622ebaa00c09f4ebdec1df2f80bb9879f..ac86936a0827d09cb91c64a58f6b8cdbacdb9bb7 100644 (file)
@@ -39,16 +39,16 @@ TUPLE: sfmt
     [ endian-shuffle ] dip hrshift endian-shuffle ; inline
 
 : wA ( w -- wA )
-   dup 1 hlshift* vbitxor ; inline
+    dup 1 hlshift* vbitxor ; inline
 
 : wB ( w mask -- wB )
-   [ 11 vrshift ] dip vbitand ; inline
+    [ 11 vrshift ] dip vbitand ; inline
 
 : wC ( w -- wC )
-   1 hrshift* ; inline
+    1 hrshift* ; inline
 
 : wD ( w -- wD )
-   18 vlshift ; inline
+    18 vlshift ; inline
 
 : formula ( a b mask c d -- r )
     [ wC ] dip wD vbitxor
index 0e96a1f0f143bdaad283c3f50495e57aa35a3615..a9123e2d124e39c6a94d9b077a62c13cff2d75e3 100644 (file)
@@ -67,6 +67,6 @@ IN: retries.tests
 
 { } [
     [ 2 = [ "not 2!" throw ] unless ]
-     1.1 100 <exponential-wait> 3 retries
+    1.1 100 <exponential-wait> 3 retries
 ] unit-test
 
index b82a8a9a9b6bebe2ddb0c4f9ea96fb31fd1554b1..853b988de1c8f19bf08736e87f1c58f4ae21f2a9 100644 (file)
@@ -65,8 +65,8 @@ HELP: set-firstn
 
 HELP: nappend
 { $values
-     { "n" integer }
-     { "seq" sequence }
+    { "n" integer }
+    { "seq" sequence }
 }
 { $description "Outputs a new sequence consisting of the elements of the top " { $snippet "n" } " sequences from the datastack in turn." }
 { $errors "Throws an error if any of the sequences contain elements that are not permitted in the sequence type of the first sequence." }
@@ -79,8 +79,8 @@ HELP: nappend
 
 HELP: nappend-as
 { $values
-     { "n" integer } { "exemplar" sequence }
-     { "seq" sequence }
+    { "n" integer } { "exemplar" sequence }
+    { "seq" sequence }
 }
 { $description "Outputs a new sequence of type " { $snippet "exemplar" } " consisting of the elements of the top " { $snippet "n" } " sequences from the datastack in turn." }
 { $errors "Throws an error if any of the sequences contain elements that are not permitted in the sequence type of the first sequence." }
index 0c9dac3a09ac083627426563b4fe90887650a7f6..04066020ca92554251ac33a26b07a217b5d26b39 100644 (file)
@@ -5,22 +5,22 @@ IN: sorting.human
 
 HELP: find-numbers
 { $values
-     { "sequence" sequence }
-     { "sequence'" sequence }
+    { "sequence" sequence }
+    { "sequence'" sequence }
 }
 { $description "Splits a string on numbers and returns a sequence of sequences and integers." } ;
 
 HELP: human<=>
 { $values
-     { "obj1" object } { "obj2" object }
-     { "<=>" "an ordering specifier" }
+    { "obj1" object } { "obj2" object }
+    { "<=>" "an ordering specifier" }
 }
 { $description "Compares two objects after converting numbers in the string into integers." } ;
 
 HELP: human>=<
 { $values
-     { "obj1" object } { "obj2" object }
-     { ">=<" "an ordering specifier" }
+    { "obj1" object } { "obj2" object }
+    { ">=<" "an ordering specifier" }
 }
 { $description "Compares two objects using the " { $link human<=> } " word and inverts the result." } ;
 
index 7c9288631c78e90c085bec9662d798c0c02138cb..3fc15909bdf7fe4c8e78c812b2ef1592146abf09 100644 (file)
@@ -15,8 +15,8 @@ HELP: compare-slots
 
 HELP: sort-by
 { $values
-     { "seq" sequence } { "sort-specs" "a sequence of accessors ending with a comparator" }
-     { "seq'" sequence }
+    { "seq" sequence } { "sort-specs" "a sequence of accessors ending with a comparator" }
+    { "seq'" sequence }
 }
 { $description "Sorts a sequence of tuples by the sort-specs in " { $snippet "sort-spec" } ". A sort-spec is a sequence of slot accessors ending in a comparator." }
 { $examples
index ac7c705c8a281c946b59b3fbebe71a9b2c878a3e..f0b46b651b9853e760edaa60bf5308c961ef9daa 100644 (file)
@@ -7,9 +7,9 @@ IN: specialized-arrays.prettyprint
 
 : pprint-direct-array ( direct-array -- )
     \ c-array@ [
-         [ underlying-type ] [ underlying>> ] [ length>> ] tri
-         [ pprint* ] tri@
-     ] pprint-prefix ;
+        [ underlying-type ] [ underlying>> ] [ length>> ] tri
+        [ pprint* ] tri@
+    ] pprint-prefix ;
 
 M: specialized-array pprint*
     [ pprint-object ] [ pprint-direct-array ] pprint-c-object ;
index 5837c4cc31da4d4cbe4f5723bed372ed63175f00..63b43f4a4667aec37dc3f3028df7bb383db4111e 100644 (file)
@@ -5,8 +5,8 @@ IN: splitting.monotonic
 
 HELP: monotonic-split-slice
 { $values
-     { "seq" sequence } { "quot" { $quotation ( obj1 obj2 -- ? ) } }
-     { "pieces" "a sequence of slices" }
+    { "seq" sequence } { "quot" { $quotation ( obj1 obj2 -- ? ) } }
+    { "pieces" "a sequence of slices" }
 }
 { $description "Monotonically splits a sequence into slices." }
 { $examples
@@ -22,8 +22,8 @@ HELP: monotonic-split-slice
 
 HELP: monotonic-split
 { $values
-     { "seq" sequence } { "quot" quotation }
-     { "pieces" "a sequence of sequences" }
+    { "seq" sequence } { "quot" quotation }
+    { "pieces" "a sequence of sequences" }
 }
 { $description "Splits a sequence into subsequences, in which for all consecutive pairs of elements the quotation returns true." }
 { $examples
@@ -43,8 +43,8 @@ HELP: monotonic-split
 
 HELP: downward-slices
 { $values
-     { "seq" sequence }
-     { "slices" "a sequence of downward-slices" }
+    { "seq" sequence }
+    { "slices" "a sequence of downward-slices" }
 }
 { $description "Returns an array of monotonically decreasing slices of type " { $link downward-slice } ". Slices of one element are discarded." } ;
 
index 455756bd7dfda427678752157c31c89503f044ae..dee423128cdc55b355760580b16370192b63fdf6 100644 (file)
@@ -6,8 +6,8 @@ IN: suffix-arrays
 
 HELP: >suffix-array
 { $values
-     { "seq" sequence }
-     { "suffix-array" array } }
+    { "seq" sequence }
+    { "suffix-array" array } }
 { $description "Creates a suffix array from the input sequence. Suffix arrays are arrays of slices." } ;
 
 HELP: SA{
@@ -15,14 +15,14 @@ HELP: SA{
 
 HELP: suffixes
 { $values
-     { "string" string }
-     { "suffixes-seq" "a sequence of slices" } }
+    { "string" string }
+    { "suffixes-seq" "a sequence of slices" } }
 { $description "Returns a sequence of tail slices of the input string." } ;
 
 HELP: query
 { $values
-     { "begin" sequence } { "suffix-array" "a suffix-array" }
-     { "matches" array } }
+    { "begin" sequence } { "suffix-array" "a suffix-array" }
+    { "matches" array } }
 { $description "Returns a sequence of sequences from the suffix-array that contain the input sequence. An empty array is returned when there are no matches." } ;
 
 ARTICLE: "suffix-arrays" "Suffix arrays"
index 0a434acbd7f162c53cd079f1c76120330fb37c30..e43fd2895ca8f40e66357a02caa8e7614b7f2de7 100644 (file)
@@ -24,9 +24,9 @@ FUNCTION-ALIAS: (xuname)
 PRIVATE>
 
 : uname ( -- seq )
-     SYS_NMLN [ (uname) ] [ group ] bi
-     dup length utsname-items assert=
-     [ >string [ zero? ] trim-tail ] map ;
+    SYS_NMLN [ (uname) ] [ group ] bi
+    dup length utsname-items assert=
+    [ >string [ zero? ] trim-tail ] map ;
 
 : sysname ( -- string ) 0 uname nth ;
 : nodename ( -- string ) 1 uname nth ;
index 49905afdc9438bcbec59e995ec9da3ad0574e767..cc1d8e28c73d01228d4df80b4a88d98dcdbd177b 100644 (file)
@@ -18,8 +18,8 @@ HELP: stop-timer
 
 HELP: every
 { $values
-     { "quot" quotation } { "interval-duration" duration }
-     { "timer" timer } }
+    { "quot" quotation } { "interval-duration" duration }
+    { "timer" timer } }
 { $description "Creates a timer that calls the quotation repeatedly, using " { $snippet "duration" } " as the frequency. The first call of " { $snippet "quot" } " will happen immediately. If the quotation throws an exception, the timer will stop." }
 { $examples
     { $code
@@ -40,8 +40,8 @@ HELP: later
 
 HELP: delayed-every
 { $values
-     { "quot" quotation } { "duration" duration }
-     { "timer" timer } }
+    { "quot" quotation } { "duration" duration }
+    { "timer" timer } }
 { $description "Creates a timer that calls " { $snippet "quot" } " repeatedly, waiting " { $snippet "duration" } " before calling " { $snippet "quot" } " the first time and then waiting " { $snippet "duration" } " between further calls. If the quotation throws an exception, the timer will stop." }
 { $examples
     { $code
index 885a359094a0b8f62740fcd12ae3cdc0a6d9bfe6..5c6e53edb4e552b17a32cc3e69f70f55dd54133e 100644 (file)
@@ -36,13 +36,13 @@ HELP: watch
 
 HELP: reset
 { $values
-     { "word" word } }
+    { "word" word } }
 { $description "Resets any annotations on a word." }
 { $notes "This word will remove a " { $link watch } "." } ;
 
 HELP: watch-vars
 { $values
-     { "word" word } { "vars" "a sequence of symbols" } }
+    { "word" word } { "vars" "a sequence of symbols" } }
 { $description "Annotates a word definition to print the " { $snippet "vars" } " upon entering the word. This word is useful for debugging." } ;
 
 HELP: add-timing
index 892436cd11addda738ef7ffc553b1d6e93fffb62..81e3cd21e16f96cd61d3e03bd7da355d67a25959 100644 (file)
@@ -21,9 +21,9 @@ ARTICLE: "tools.deploy.usage" "Deploy tool usage"
 "For example, you can deploy the " { $vocab-link "hello-ui" } " demo which comes with Factor. Note that this demo already has a deployment configuration, so nothing needs to be configured:"
 { $code "\"hello-ui\" deploy" }
 { $list
-   { "On Mac OS X, this yields a program named " { $snippet "Hello world.app" } "." }
-   { "On Windows, it yields a directory named " { $snippet "Hello world" } " containing a program named " { $snippet "hello-ui.exe" } "." }
-   { "On Unix-like systems (Linux, BSD, Solaris, etc), it yields a directory named " { $snippet "Hello world" } " containing a program named " { $snippet "hello-ui" } "." }
+    { "On Mac OS X, this yields a program named " { $snippet "Hello world.app" } "." }
+    { "On Windows, it yields a directory named " { $snippet "Hello world" } " containing a program named " { $snippet "hello-ui.exe" } "." }
+    { "On Unix-like systems (Linux, BSD, Solaris, etc), it yields a directory named " { $snippet "Hello world" } " containing a program named " { $snippet "hello-ui" } "." }
 }
 "On all platforms, running the program will display a window with a message." ;
 
index d95ea3bcd39b24ebb932658f246bdf7ca4823c49..04881e7e59ce395d3fad7e8d5cca271319c27e95 100644 (file)
@@ -5,7 +5,7 @@ IN: tools.files
 
 HELP: directory.
 { $values
-     { "path" "a pathname string" }
+    { "path" "a pathname string" }
 }
 { $description "Prints information about all files in a directory to the output stream in a cross-platform way similar to the Unix " { $snippet "ls" } " command." } ;
 
index ddcfc03476319ebbc9695b3e3ad67ce6c1007542..59a55a22dc0e3b6a99690a897612b6300c33569f 100644 (file)
@@ -22,11 +22,11 @@ SYMBOL: test-failures
 test-failures [ V{ } clone ] initialize
 
 T{ error-type-holder
-   { type +test-failure+ }
-   { word ":test-failures" }
-   { plural "unit test failures" }
-   { icon "vocab:ui/tools/error-list/icons/unit-test-error.png" }
-   { quot [ test-failures get ] }
+    { type +test-failure+ }
+    { word ":test-failures" }
+    { plural "unit test failures" }
+    { icon "vocab:ui/tools/error-list/icons/unit-test-error.png" }
+    { quot [ test-failures get ] }
 } define-error-type
 
 SYMBOL: silent-tests?
index 921f70fb2a13db4aadb318b4bb34cf340f9fb7aa..f37c54748ad8d665ddc52a0544df7e8f2a341aac 100644 (file)
@@ -4,62 +4,62 @@ IN: ui.backend.gtk.tests
 
 : gdk-key-release-event ( -- event )
     S{ GdkEventKey
-       { type 9 }
-       { window ALIEN: 1672900 }
-       { send_event 0 }
-       { time 1332590199 }
-       { state 17 }
-       { keyval 72 }
-       { length 1 }
-       { string ALIEN: 1b25c80 }
-       { hardware_keycode 43 }
-       { group 0 }
-       { is_modifier 0 }
+        { type 9 }
+        { window ALIEN: 1672900 }
+        { send_event 0 }
+        { time 1332590199 }
+        { state 17 }
+        { keyval 72 }
+        { length 1 }
+        { string ALIEN: 1b25c80 }
+        { hardware_keycode 43 }
+        { group 0 }
+        { is_modifier 0 }
     } ;
 
 : gdk-key-press-event ( -- event )
     S{ GdkEventKey
-       { type 8 }
-       { window ALIEN: 16727e0 }
-       { send_event 0 }
-       { time 1332864912 }
-       { state 16 }
-       { keyval 65471 }
-       { length 0 }
-       { string ALIEN: 19c9700 }
-       { hardware_keycode 68 }
-       { group 0 }
-       { is_modifier 0 }
+        { type 8 }
+        { window ALIEN: 16727e0 }
+        { send_event 0 }
+        { time 1332864912 }
+        { state 16 }
+        { keyval 65471 }
+        { length 0 }
+        { string ALIEN: 19c9700 }
+        { hardware_keycode 68 }
+        { group 0 }
+        { is_modifier 0 }
     } ;
 
 : gdk-space-key-press-event ( -- event )
     S{ GdkEventKey
-       { type 8 }
-       { window ALIEN: 1b66360 }
-       { send_event 0 }
-       { time 28246628 }
-       { state 0 }
-       { keyval 32 }
-       { length 0 }
-       { string ALIEN: 20233b0 }
-       { hardware_keycode 64 }
-       { group 0 }
-       { is_modifier 1 }
+        { type 8 }
+        { window ALIEN: 1b66360 }
+        { send_event 0 }
+        { time 28246628 }
+        { state 0 }
+        { keyval 32 }
+        { length 0 }
+        { string ALIEN: 20233b0 }
+        { hardware_keycode 64 }
+        { group 0 }
+        { is_modifier 1 }
     } ;
 
 : gdk-windows-key-release-event ( -- event )
     S{ GdkEventKey
-       { type 9 }
-       { window ALIEN: 1a71d80 }
-       { send_event 0 }
-       { time 47998769 }
-       { state 67108928 }
-       { keyval 119 }
-       { length 1 }
-       { string ALIEN: 2017640 }
-       { hardware_keycode 25 }
-       { group 0 }
-       { is_modifier 0 }
+        { type 9 }
+        { window ALIEN: 1a71d80 }
+        { send_event 0 }
+        { time 47998769 }
+        { state 67108928 }
+        { keyval 119 }
+        { length 1 }
+        { string ALIEN: 2017640 }
+        { hardware_keycode 25 }
+        { group 0 }
+        { is_modifier 0 }
     } ;
 
 
index 4e661c6a91d7e6e81427bc4b2c980f66d0572e91..6df57923a90dc997104170fe96103df42e2e6568 100644 (file)
@@ -13,9 +13,9 @@ IN: ui.backend.gtk.io
     revents>> 0 = not ;
 
 : dispatch ( source callback user-data -- ? )
-     3drop
-     0 mx get-global wait-for-events
-     yield t ;
+    3drop
+    0 mx get-global wait-for-events
+    yield t ;
 
 : <funcs> ( -- funcs )
     GSourceFuncs malloc-struct
index 4281dd83947a20f2f43e66e0decac030cb1bf249..dde75997ed441741060254b9be3fa95051691dbc 100644 (file)
@@ -357,15 +357,15 @@ SYMBOL: upper-surrogate-wm-char
         ctrl? alt? xor [ ! enable AltGr combination inputs
             wParam {
                 { [ dup upper-surrogate? ] [
-                      upper-surrogate-wm-char set-global ]
-                }
+                      upper-surrogate-wm-char set-global
+                }
                 { [ dup under-surrogate? ] [
-                      drop
-                      upper-surrogate-wm-char get-global [
-                          wParam "" 2sequence
-                          utf16n encode utf16n decode hWnd window user-input
-                      ] when* ]
-                }
+                    drop
+                    upper-surrogate-wm-char get-global [
+                        wParam "" 2sequence
+                        utf16n encode utf16n decode hWnd window user-input
+                    ] when*
+                }
                 [ 1string hWnd window user-input
                   f upper-surrogate-wm-char set-global ]
             } cond
index 98d4d11a5a6f72b9cff725e9a170d36ac760e397..a05c0aad89195a26a47e16b0f0ca7c76c91e941d 100644 (file)
@@ -130,10 +130,10 @@ ARTICLE: "test-article-2" "This is a test article"
 ${
     ""
     T{ font
-       { name $[ default-sans-serif-font-name ] }
-       { size $[ default-font-size ] }
-       { foreground $[ text-color ] }
-       { background $[ content-background ] }
+        { name $[ default-sans-serif-font-name ] }
+        { size $[ default-font-size ] }
+        { foreground $[ text-color ] }
+        { background $[ content-background ] }
     }
 } [
     <pane> dup current>> smash-line [ text>> ] [ font>> ] bi
index c6a1997c046703ad856fed76e375bc8b02ff7255..bbd2cd1a04d881f8915c97077fe1ed41a3399cf2 100644 (file)
@@ -34,8 +34,8 @@ M: tile-pen pen-pref-dim
 : render-tile ( tile x width gadget -- )
     [ orientation>> '[ _ v* ] dip ] keep
    '[
-       _ _ [ dim>> swap ] [ orientation>> ] bi set-axis
-       swap draw-scaled-image
+        _ _ [ dim>> swap ] [ orientation>> ] bi set-axis
+        swap draw-scaled-image
    ] with-translation ;
 
 M: tile-pen draw-interior
index f69b0945feab23dad5982c8297f61c2e28ea3a53..60421a4ba1583984a690d213c3e815a97ceb7e10 100644 (file)
@@ -95,17 +95,17 @@ CATEGORY: spacing Mc ;
         { [ dup jamo? ] [ jamo-class ] }
         { [ dup hangul? ] [ hangul-class ] }
         { [ dup grapheme-control? ] [
-              control-class dup ZWJ = [
-                  drop
-                  str unclip-last-slice drop dup [
-                      [ extend? ]
-                      [ control-class Extend = ]
-                      [ modifier? ]
-                      tri or or not
-                  ] find-last drop [ swap ?nth ] [ last ] if*
-                  extended-pictographic-table interval-key? [
-                      (Extended_Pictographic-Extend*-)ZWJ
-                  ] [ ZWJ ] if
+            control-class dup ZWJ = [
+                drop
+                str unclip-last-slice drop dup [
+                    [ extend? ]
+                    [ control-class Extend = ]
+                    [ modifier? ]
+                    tri or or not
+                ] find-last drop [ swap ?nth ] [ last ] if*
+                extended-pictographic-table interval-key? [
+                    (Extended_Pictographic-Extend*-)ZWJ
+                ] [ ZWJ ] if
               ] when
           ] }
         { [ dup extend? ] [ drop Extend ] }
index e67b3a5366d3199fc797e7d81b62e818fa2ef3e8..9988f9606eca29b0d424de3262a467a175834905 100644 (file)
@@ -67,7 +67,7 @@ CATEGORY: math Sm | "Other_Math" property? ;
     ] if ;
 
 : last-grapheme-from ( end str -- i )
-     swap head-slice last-grapheme ;
+    swap head-slice last-grapheme ;
 
 <PRIVATE
 
index e9b72fc40566696d51383175de966ee70694c62e..c72ea5c3ef9da1d7e76b810d020379e9f11484e1 100644 (file)
@@ -23,20 +23,20 @@ HELP: group-cache
 
 HELP: group-id
 { $values
-     { "string" string }
-     { "id/f" "an integer or f" } }
+    { "string" string }
+    { "id/f" "an integer or f" } }
 { $description "Returns the group id given a group name. Returns " { $link f } " if the group does not exist." } ;
 
 HELP: group-name
 { $values
-     { "id" integer }
-     { "string" string } }
+    { "id" integer }
+    { "string" string } }
 { $description "Returns the group name given a group id." } ;
 
 HELP: group-struct
 { $values
-     { "obj" object }
-     { "group/f" "a group struct or f" } }
+    { "obj" object }
+    { "group/f" "a group struct or f" } }
 { $description "Returns an alien group struct to be turned into a group tuple by calling subsequent words." } ;
 
 HELP: real-group-id
@@ -49,33 +49,33 @@ HELP: real-group-name
 
 HELP: set-effective-group
 { $values
-     { "obj" object } }
+    { "obj" object } }
 { $description "Sets the effective group id for the current user." } ;
 
 HELP: set-real-group
 { $values
-     { "obj" object } }
+    { "obj" object } }
 { $description "Sets the real group id for the current user." } ;
 
 HELP: user-groups
 { $values
-     { "string/id" "a string or a group id" }
-     { "seq" sequence } }
+    { "string/id" "a string or a group id" }
+    { "seq" sequence } }
 { $description "Returns the sequence of groups to which the user belongs." } ;
 
 HELP: with-effective-group
 { $values
-     { "string/id/f" "a string, a group id, or f" } { "quot" quotation } }
+    { "string/id/f" "a string, a group id, or f" } { "quot" quotation } }
 { $description "Sets the effective group name and calls the quotation. Restores the effective group name on success or on error after the call. If the first parameter is " { $link f } ", the quotation is called as the current user." } ;
 
 HELP: with-group-cache
 { $values
-     { "quot" quotation } }
+    { "quot" quotation } }
 { $description "Iterates over the group file using library calls and creates a cache in the " { $link group-cache } " symbol. The cache is a hashtable indexed by group id. When looking up many groups, this approach is much faster than calling system calls." } ;
 
 HELP: with-real-group
 { $values
-     { "string/id/f" "a string or a group id" } { "quot" quotation } }
+    { "string/id/f" "a string or a group id" } { "quot" quotation } }
 { $description "Sets the real group name and calls the quotation. Restores the current group name on success or on error after the call. If the first parameter is " { $link f } ", the quotation is called as the current user." } ;
 
 HELP: ?group-id
index af9a88941c4fae9f96c0b78228a39569b2d5c619..01e41b21a3a180f85167e154e0770c5e00243632 100644 (file)
@@ -27,8 +27,8 @@ HELP: user-cache
 
 HELP: passwd>new-passwd
 { $values
-     { "passwd" "a passwd struct" }
-     { "new-passwd" "a passwd tuple" } }
+    { "passwd" "a passwd struct" }
+    { "new-passwd" "a passwd tuple" } }
 { $description "A platform-specific conversion routine from a passwd structure to a passwd tuple." } ;
 
 HELP: real-user-name
@@ -49,35 +49,35 @@ HELP: set-real-user
 
 HELP: user-passwd
 { $values
-     { "obj" object }
-     { "passwd/f" "passwd or f" } }
+    { "obj" object }
+    { "passwd/f" "passwd or f" } }
 { $description "Returns the passwd tuple given a user-name string or user id." } ;
 
 HELP: user-name
 { $values
-     { "id" integer }
-     { "string" string } }
+    { "id" integer }
+    { "string" string } }
 { $description "Returns the user-name associated with the user id." } ;
 
 HELP: user-id
 { $values
-     { "string" string }
-     { "id/f" "an integer or f" } }
+    { "string" string }
+    { "id/f" "an integer or f" } }
 { $description "Returns the user id associated with the user-name." } ;
 
 HELP: with-effective-user
 { $values
-     { "string/id/f" "a string, a uid, or f" } { "quot" quotation } }
+    { "string/id/f" "a string, a uid, or f" } { "quot" quotation } }
 { $description "Sets the effective user-name and calls the quotation. Restores the current user-name on success or on error after the call. If the first parameter is " { $link f } ", the quotation is called as the current user." } ;
 
 HELP: with-user-cache
 { $values
-     { "quot" quotation } }
+    { "quot" quotation } }
 { $description "Iterates over the password file using library calls and creates a cache in the " { $link user-cache } " symbol. The cache is a hashtable indexed by user id. When looking up many users, this approach is much faster than calling system calls." } ;
 
 HELP: with-real-user
 { $values
-     { "string/id/f" "a string, a uid, or f" } { "quot" quotation } }
+    { "string/id/f" "a string, a uid, or f" } { "quot" quotation } }
 { $description "Sets the real user-name and calls the quotation. Restores the current user-name on success or on error after the call. If the first parameter is " { $link f } ", the quotation is called as the current user." } ;
 
 {
index 39a50b14252e50e9ffcc1b5f691d9939a7e627f6..6819fb9ffa146317fe190ec9dde4e3209941a830 100644 (file)
@@ -89,7 +89,7 @@ HELP: parse-host
 
 HELP: query-param
 { $values
-     { "url" url } { "key" string }
+    { "url" url } { "key" string }
     { "value" { $maybe string } } }
 { $description "Outputs the URL-decoded value of a URL query parameter." }
 { $examples
@@ -132,8 +132,8 @@ HELP: relative-url
 
 HELP: relative-url?
 { $values
-     { "url" url }
-     { "?" boolean } }
+    { "url" url }
+    { "?" boolean } }
 { $description "Tests whether a URL is relative." } ;
 
 HELP: redacted-url
index 674bae2b14569113524c5d3264c287cda81e8969..2e9d2380aead59d2062815b8d1f7fb8abefb8fee 100644 (file)
@@ -130,7 +130,7 @@ FUNCTION: void ReleaseStgMedium ( LPSTGMEDIUM pmedium )
     with-out-parameters ;
 
 : com-add-ref ( interface -- interface )
-     [ IUnknown::AddRef drop ] keep ; inline
+    [ IUnknown::AddRef drop ] keep ; inline
 
 ERROR: null-com-release ;
 : com-release ( interface -- )
index 299ef2f481a3e896436031863936a695e4ca078f..1c9e2d0ed3d1b55593022e48f9b1ebda64d274d1 100644 (file)
@@ -89,10 +89,10 @@ PRIVATE>
     [ [ { 0 0 } ] dip <RECT> ]
     [
         [let :> str str selection-start/end
-         [
-             str string>> dup selection? [ string>> ] when
-             swap >utf16-index
-         ] bi@
+            [
+                str string>> dup selection? [ string>> ] when
+                swap >utf16-index
+            ] bi@
         ]
     ] tri*
     ! iMinSel
index fc749012ab2ee2507929ad083999057cf0505349..4340fa1a7a5ee9608d7f1368393a4d0584e13373 100644 (file)
@@ -10,8 +10,8 @@ SYMBOL: scr
 SYMBOL: root
 
 : init-locale ( -- )
-   LC_ALL "" setlocale [ "setlocale() failed" print flush ] unless
-   XSupportsLocale c-bool> [ "XSupportsLocale() failed" print flush ] unless ;
+    LC_ALL "" setlocale [ "setlocale() failed" print flush ] unless
+    XSupportsLocale c-bool> [ "XSupportsLocale() failed" print flush ] unless ;
 
 : flush-dpy ( -- ) dpy get XFlush drop ;
 
index bb948e159beb5f06c908a0cb95f21c05401fe8cb..f4c3e5c5e7b1ec4db37802f52c586415346f8a9a 100644 (file)
@@ -205,7 +205,7 @@ CONSULT: name xml body>> ;
 PRIVATE>
 
 M: xml clone
-   xml clone-slots ;
+    xml clone-slots ;
 
 M: xml like
     swap dup xml? [ nip ] [
index 29ab7e482cde95e5c73ba3f24c2d61247b73dcd7..a407b73566da5a871fcf5da923f01e73a91e6048 100644 (file)
@@ -26,7 +26,7 @@ UNION: dtd-acceptable
             { CHAR: \" [ parse-quote ] }
             [ drop take-external-id close ]
         } case
-   ] dip '[ swap _ [ ?set-at ] change ] 2keep ;
+    ] dip '[ swap _ [ ?set-at ] change ] 2keep ;
 
 : take-entity-decl ( -- entity-decl )
     pass-blank get-char {
index aeebe98bbe66cc65d38bf71a6d352e2dfa107ed6..6d52b18953e2fd26375f7b56077d074f0ce5a03d 100644 (file)
@@ -44,13 +44,13 @@ SYNTAX: XML-NS:
     [ values [ interpolated? ] filter ] dip each ; inline
 
 : (each-interpolated) ( ... item quot: ( ... interpolated -- ... ) -- ... )
-     {
+    {
         { [ over interpolated? ] [ call ] }
         { [ over tag? ] [ [ attrs>> ] dip each-attrs ] }
         { [ over attrs? ] [ each-attrs ] }
         { [ over xml? ] [ [ body>> ] dip (each-interpolated) ] }
         [ 2drop ]
-     } cond ; inline recursive
+    } cond ; inline recursive
 
 : each-interpolated ( xml quot -- )
     '[ _ (each-interpolated) ] deep-each ; inline
index 77f5f8d917d5d16a53383b81a8325149ceb0c0f9..78d739eece8c7fcf4865022a8606e976403f1596 100644 (file)
@@ -75,9 +75,9 @@ HINTS: next* { spot } ;
     ! Take the substring of a string starting at spot
     ! from code until the quotation given is true and
     ! advance spot to after the substring.
-   10 <sbuf> [
-       '[ _ keep over [ drop ] [ _ push ] if ] skip-until
-   ] keep "" like ; inline
+    10 <sbuf> [
+        '[ _ keep over [ drop ] [ _ push ] if ] skip-until
+    ] keep "" like ; inline
 
 : take-to ( seq -- string )
     '[ _ member? ] take-until ; inline
@@ -186,4 +186,4 @@ HINTS: next* { spot } ;
     [ next (parse-quote) ] [ quoteless-attr ] if ; inline
 
 : parse-quote ( -- seq )
-   f parse-quote* ;
+    f parse-quote* ;
index d12e530ee7dafd96ffa8ec442957536e02fe4aa8..0bf7024ec618946572fc2e14b8d1c39d286270bc 100644 (file)
@@ -13,10 +13,10 @@ IN: xml.writer.tests
 { "ns:foo" } [ T{ name { space "ns" } { main "foo" } } name>string ] unit-test
 
 : reprints-as ( to from -- )
-     [ ] [ string>xml xml>string ] bi-curry* unit-test ;
+    [ ] [ string>xml xml>string ] bi-curry* unit-test ;
 
 : pprint-reprints-as ( to from -- )
-     [ ] [ string>xml pprint-xml>string ] bi-curry* unit-test ;
+    [ ] [ string>xml pprint-xml>string ] bi-curry* unit-test ;
 
 : reprints-same ( string -- ) dup reprints-as ;
 
index 6989e7fca59215518a28985c9f3793f2bb5562ac..f9f7a9e1d9aa9c9a5495cd1eab052150e3d3b748 100644 (file)
@@ -82,7 +82,7 @@ xmode.marker tools.test kernel ;
         T{ token f ">" KEYWORD2 }
     }
 } [
-     f "<!ELEMENT %hello; >" "xml" load-mode tokenize-line nip
+    f "<!ELEMENT %hello; >" "xml" load-mode tokenize-line nip
 ] unit-test
 
 {
@@ -97,7 +97,7 @@ xmode.marker tools.test kernel ;
         T{ token f ">" KEYWORD2 }
     }
 } [
-     f "<!ELEMENT %hello-world; >" "xml" load-mode tokenize-line nip
+    f "<!ELEMENT %hello-world; >" "xml" load-mode tokenize-line nip
 ] unit-test
 
 {
index 66cea3395ab227dff7654e3e6829b3b473000919..5636c60fe08735ae7ee22382369b6075632adfaa 100644 (file)
@@ -514,29 +514,29 @@ HELP: >alist
 
 HELP: assoc-clone-like
 { $values
-     { "assoc" assoc } { "exemplar" assoc }
-     { "newassoc" assoc } }
+    { "assoc" assoc } { "exemplar" assoc }
+    { "newassoc" assoc } }
 { $description "Outputs a newly-allocated assoc with the same elements as " { $snippet "assoc" } "." }
 { $examples { $example "USING: prettyprint assocs hashtables ;" "H{ { 1 2 } { 3 4 } } { } assoc-clone-like ." "{ { 1 2 } { 3 4 } }" } } ;
 
 HELP: assoc-union-all
 { $values
-     { "seq" "a sequence of assocs" }
-     { "union" assoc } }
+    { "seq" "a sequence of assocs" }
+    { "union" assoc } }
 { $description "Takes the union of all of the " { $snippet "assocs" } " in " { $snippet "seq" } "." }
 { $examples { $example "USING: prettyprint assocs ;" "{ H{ { 1 2 } } H{ { 3 4 } } } assoc-union-all ." "H{ { 1 2 } { 3 4 } }" } } ;
 
 HELP: assoc-map-as
 { $values
-     { "assoc" assoc } { "quot" { $quotation ( ... key value -- ... newkey newvalue ) } } { "exemplar" assoc }
-     { "newassoc" assoc } }
+    { "assoc" assoc } { "quot" { $quotation ( ... key value -- ... newkey newvalue ) } } { "exemplar" assoc }
+    { "newassoc" assoc } }
 { $description "Applies the quotation to each entry in the input assoc and collects the results in a new assoc of the same type as the exemplar." }
 { $examples { $example "USING: prettyprint assocs hashtables math ;" " H{ { 1 2 } { 3 4 } } [ sq ] { } assoc-map-as ." "{ { 1 4 } { 3 16 } }" } } ;
 
 HELP: extract-keys
 { $values
-     { "seq" sequence } { "assoc" assoc }
-     { "subassoc" assoc } }
+    { "seq" sequence } { "assoc" assoc }
+    { "subassoc" assoc } }
 { $description "Outputs an new " { $snippet "assoc" } " with key/value pairs whose keys match the elements in the input " { $snippet "seq" } "." }
 { $examples
     { $example "USING: prettyprint assocs ;"
@@ -547,7 +547,7 @@ HELP: extract-keys
 
 HELP: push-at
 { $values
-     { "value" object } { "key" object } { "assoc" assoc } }
+    { "value" object } { "key" object } { "assoc" assoc } }
 { $description "Pushes the " { $snippet "value" } " onto a " { $snippet "vector" } " stored at the " { $snippet "key" } " in the " { $snippet "assoc" } ". If the " { $snippet "key" } " does not yet exist, creates a new " { $snippet "vector" } " at that " { $snippet "key" } " and pushes the " { $snippet "value" } "." }
 { $examples { $example "USING: prettyprint assocs kernel ;"
 "H{ { \"cats\" V{ \"Mittens\" } } } \"Mew\" \"cats\" pick push-at ."
@@ -556,8 +556,8 @@ HELP: push-at
 
 HELP: search-alist
 { $values
-     { "key" object } { "alist" "an array of key/value pairs" }
-     { "pair/f" "a key/value pair" } { "i/f" integer } }
+    { "key" object } { "alist" "an array of key/value pairs" }
+    { "pair/f" "a key/value pair" } { "i/f" integer } }
 { $description "Iterates over " { $snippet "alist" } " and stops when the key is matched or the end of the " { $snippet "alist" } " has been reached. If there is no match, both outputs are " { $link f } "." }
 { $notes "This word is used to implement " { $link at* } " and " { $link set-at } " on sequences, and should not be called directly." }
 { $examples { $example "USING: prettyprint assocs.private kernel ;"
@@ -571,8 +571,8 @@ HELP: search-alist
 
 HELP: unzip
 { $values
-     { "assoc" assoc }
-     { "keys" sequence } { "values" sequence } }
+    { "assoc" assoc }
+    { "keys" sequence } { "values" sequence } }
 { $description "Outputs an array of keys and an array of values of the input " { $snippet "assoc" } "." }
 { $examples
     { $example "USING: prettyprint assocs kernel ;"
@@ -583,8 +583,8 @@ HELP: unzip
 
 HELP: zip
 { $values
-     { "keys" sequence } { "values" sequence }
-     { "alist" "an array of key/value pairs" } }
+    { "keys" sequence } { "values" sequence }
+    { "alist" "an array of key/value pairs" } }
 { $description "Combines two sequences pairwise into a single sequence of key/value pairs." }
 { $examples
     { $example "USING: prettyprint assocs ;"
@@ -595,8 +595,8 @@ HELP: zip
 
 HELP: zip-as
 { $values
-     { "keys" sequence } { "values" sequence } { "exemplar" sequence }
-     { "assoc" "a sequence of key/value pairs of type " { $snippet "exemplar" } } }
+    { "keys" sequence } { "values" sequence } { "exemplar" sequence }
+    { "assoc" "a sequence of key/value pairs of type " { $snippet "exemplar" } } }
 { $description "Combines two sequences pairwise into a single sequence of key/value pairs of type " { $snippet "exemplar" } "." }
 { $notes "Exemplar must be a sequence type; hashtables will not work yet." }
 { $examples
index fdfacb8fcce7e699b2aed64bd1d8dec5383a7a24..f4ddb7371b83e2b4d3f6f29d20af86c4135d4df6 100644 (file)
@@ -238,7 +238,7 @@ M: assoc value-at* swap [ = nip ] curry assoc-find nip ;
     ] if ; inline
 
 : zip ( keys values -- alist )
-     { } zip-as ; inline
+    { } zip-as ; inline
 
 : zip-index-as ( values exemplar -- assoc )
     [ dup length <iota> ] dip zip-as ; inline
index 6a62122eb1e07807c0ed5cab3cdecfc15f299d8a..6946b886637585f752c7f3843e3c0b2e8177a3c0 100644 (file)
@@ -49,26 +49,26 @@ HELP: >byte-array
 
 HELP: 1byte-array
 { $values
-     { "x" object }
-     { "byte-array" byte-array } }
+    { "x" object }
+    { "byte-array" byte-array } }
 { $description "Creates a new byte-array with one element." } ;
 
 HELP: 2byte-array
 { $values
-     { "x" object } { "y" object }
-     { "byte-array" byte-array } }
+    { "x" object } { "y" object }
+    { "byte-array" byte-array } }
 { $description "Creates a new byte-array with two elements." } ;
 
 HELP: 3byte-array
 { $values
-     { "x" object } { "y" object } { "z" object }
-     { "byte-array" byte-array } }
+    { "x" object } { "y" object } { "z" object }
+    { "byte-array" byte-array } }
 { $description "Creates a new byte-array with three element." } ;
 
 HELP: 4byte-array
 { $values
-     { "w" object } { "x" object } { "y" object } { "z" object }
-     { "byte-array" byte-array } }
+    { "w" object } { "x" object } { "y" object } { "z" object }
+    { "byte-array" byte-array } }
 { $description "Creates a new byte-array with four elements." } ;
 
 { 1byte-array 2byte-array 3byte-array 4byte-array } related-words
index 7581a900c5d1c1c694cec75060428dc904d67ebd..c60a4362aee7885b9e3e74bf5454e8cd403d096b 100644 (file)
@@ -130,8 +130,8 @@ HELP: superclass-of
 
 HELP: superclasses-of
 { $values
-     { "class" class }
-     { "supers" sequence } }
+    { "class" class }
+    { "supers" sequence } }
 { $description "Outputs a sequence of superclasses of a class along with the class itself." }
 { $examples
     { $example "USING: classes prettyprint ;"
@@ -175,8 +175,8 @@ HELP: implementors
 
 HELP: instance?
 { $values
-     { "object" object } { "class" class }
-     { "?" boolean } }
+    { "object" object } { "class" class }
+    { "?" boolean } }
 { $description "Tests whether the input object is a member of the class." } ;
 
 HELP: reset-class
index f428666a0ddc3661acf42b4f573c48694aeb91e7..b1d6b78e68b718d47d97fd2173151417b6d6b784 100644 (file)
@@ -120,9 +120,9 @@ IN: combinators.tests
 
 : cond-test-6 ( a -- b )
     {
-       [ drop "really early" ]
-       { [ dup 2 mod 1 = ] [ drop "odd" ] }
-       { [ dup 2 mod 0 = ] [ drop "even" ] }
+        [ drop "really early" ]
+        { [ dup 2 mod 1 = ] [ drop "odd" ] }
+        { [ dup 2 mod 0 = ] [ drop "even" ] }
     } cond ;
 
 { "really early" } [ 2 cond-test-6 ] unit-test
index 80183e7dbc994bb522ebd27e62354f76dc2dbd28..d32c066dd341ca9a2fbae6fe89f652e19635cf6b 100644 (file)
@@ -37,14 +37,14 @@ HELP: 3||
 
 HELP: n&&
 { $values
-     { "quots" "a sequence of quotations" } { "n" integer }
-     { "quot" quotation } }
+    { "quots" "a sequence of quotations" } { "n" integer }
+    { "quot" quotation } }
 { $description "A macro that rewrites the code to pass " { $snippet "n" } " parameters from the stack to each quotation, evaluating the result in the same manner as " { $link 0&& } "." } ;
 
 HELP: n||
 { $values
-     { "quots" "a sequence of quotations" } { "n" integer }
-     { "quot" quotation } }
+    { "quots" "a sequence of quotations" } { "n" integer }
+    { "quot" quotation } }
 { $description "A macro that rewrites the code to pass " { $snippet "n" } " parameters from the stack to each OR quotation." } ;
 
 ARTICLE: "combinators.short-circuit" "Short-circuit combinators"
index 148180d7df202c78c46afa790b6814ebfe9ec904..6299d04bcdc66a0f4164acac14b5feb3ce124769 100644 (file)
@@ -254,8 +254,8 @@ HELP: with-datastack
 
 HELP: attempt-all
 { $values
-     { "seq" sequence } { "quot" quotation }
-     { "obj" object } }
+    { "seq" sequence } { "quot" quotation }
+    { "obj" object } }
 { $description "Applies the quotation to elements in a sequence and returns the value from the first quotation that does not throw an error. If all quotations throw an error, returns the last error thrown." }
 { $examples "The first two numbers throw, the last one doesn't:"
     { $example
@@ -275,7 +275,7 @@ HELP: return
 
 HELP: with-return
 { $values
-     { "quot" quotation } }
+    { "quot" quotation } }
 { $description "Captures a continuation that can be reified by calling the " { $link return } " word. If so, it will resume execution immediately after the " { $link with-return } " word. If " { $link return } " is not called, then execution proceeds as if this word were simply " { $link call } "." }
 { $examples
     "Only \"Hi\" will print:"
index 8271fcbd2020f363ca32d5c71a162ffd89b63108..5eed17e184f7b0e0c1d6b921905ba4293cbf71ff 100644 (file)
@@ -63,7 +63,7 @@ HELP: |dispose
 
 HELP: dispose-each
 { $values
-     { "seq" sequence } }
+    { "seq" sequence } }
 { $description "Attempts to dispose of each element of a sequence and collects all of the errors into a sequence. If any errors are thrown during disposal, the last error is rethrown after all objects have been disposed." } ;
 
 HELP: disposables
index 1b1c7f5cc53cf3a71c3583a3b225401aa36a2085..d144dfdee42270da26c6fd54daa89ff3785d7b05 100644 (file)
@@ -260,8 +260,8 @@ HELP: nweave
 
 HELP: n*quot
 { $values
-     { "n" integer } { "quot" quotation }
-     { "quotquot" quotation }
+    { "n" integer } { "quot" quotation }
+    { "quotquot" quotation }
 }
 { $examples
     { $example "USING: generalizations prettyprint math ;"
index de64c6b6063cf7e207d63ae8bc8d6f1c08b2f27c..3b305a34a93f8c45f20416579c59a1011c5611a8 100644 (file)
@@ -19,12 +19,12 @@ PRIVATE>
 <PRIVATE
 
  : (closure) ( vertex set quot: ( vertex -- edges ) -- )
-     2over ?adjoin [
-         [ dip ] keep [ (closure) ] 2curry each
-     ] [ 3drop ] if ; inline recursive
+    2over ?adjoin [
+        [ dip ] keep [ (closure) ] 2curry each
+    ] [ 3drop ] if ; inline recursive
 
  : new-empty-set-like ( exemplar -- set )
-     f swap set-like clone ; inline
+    f swap set-like clone ; inline
 
 PRIVATE>
 
index f9ed7fdfababc0bdf87c0f246d85986d763842a4..8cd372936155cbfe26d074bbc4d413b565e083fc 100644 (file)
@@ -99,7 +99,7 @@ PRIVATE>
     [ 0 0 ] dip <hash-array> hash-set boa ; inline
 
 M: hash-set in?
-     key@ 2nip ;
+    key@ 2nip ;
 
 M: hash-set clear-set
     [ init-hash ] [ array>> [ drop +empty+ ] map! drop ] bi ;
index 7fb99af93a06dc98cacc183bb80b7846b93693c9..972a659971591b3f731c334c5669aff8d8738327 100644 (file)
@@ -118,8 +118,8 @@ HELP: associate
 
 HELP: ?set-at
 { $values
-     { "value" object } { "key" object } { "assoc/f" "an assoc or " { $link f } }
-     { "assoc" assoc } }
+    { "value" object } { "key" object } { "assoc/f" "an assoc or " { $link f } }
+    { "assoc" assoc } }
 { $description "If the third input is an assoc, stores the key/value pair into that assoc, or else creates a new hashtable with the key/value pair as its only entry." } ;
 
 HELP: >hashtable
index 95cb73e8ad51100bbb5d80da6587193504d376a7..3ff1311239284fd4d969592fb46b128db3fda221 100644 (file)
@@ -42,27 +42,27 @@ $low-level-note ;
 
 HELP: decode-input
 { $values
-     { "encoding" "an encoding descriptor" }
+    { "encoding" "an encoding descriptor" }
 }
 { $description "Changes the encoding of the current input stream stored in the " { $link input-stream } " variable." } ;
 
 HELP: encode-output
 { $values
-     { "encoding" "an encoding descriptor" }
+    { "encoding" "an encoding descriptor" }
 }
 { $description "Changes the encoding of the current output stream stored in the " { $link output-stream } " variable." } ;
 
 HELP: re-decode
 { $values
-     { "stream" "a stream" } { "encoding" "an encoding descriptor" }
-     { "newstream" "a new stream" }
+    { "stream" "a stream" } { "encoding" "an encoding descriptor" }
+    { "newstream" "a new stream" }
 }
 { $description "Creates a new decoding stream with the supplied encoding descriptor from an existing stream by calling the " { $link <decoder> } " word." } ;
 
 HELP: re-encode
 { $values
-     { "stream" "a stream" } { "encoding" "an encoding descriptor" }
-     { "newstream" "a new stream" }
+    { "stream" "a stream" } { "encoding" "an encoding descriptor" }
+    { "newstream" "a new stream" }
 }
 { $description "Creates a new encoding stream with the supplied encoding descriptor from an existing stream by calling the " { $link <encoder> } " word." } ;
 
@@ -70,13 +70,13 @@ HELP: re-encode
 
 HELP: with-decoded-input
 { $values
-     { "encoding" "an encoding descriptor" } { "quot" quotation }
+    { "encoding" "an encoding descriptor" } { "quot" quotation }
 }
 { $description "Creates a new decoding stream with the given encoding descriptor and calls the quotation with this stream set to the " { $link input-stream } " variable. The original decoder stream is restored after the quotation returns and the stream is kept open for future input operations." } ;
 
 HELP: with-encoded-output
 { $values
-     { "encoding" "an encoding descriptor" } { "quot" quotation }
+    { "encoding" "an encoding descriptor" } { "quot" quotation }
 }
 { $description "Creates a new encoder with the given encoding descriptor and calls the quotation using this encoder. The original encoder object is restored after the quotation returns and the stream is kept open for future output operations." } ;
 
index c0807d1bff8976ddc775ea0efb8ee19279465f6c..f3601ee0a3f22f20404fa919bd2ed64af3936fd5 100644 (file)
@@ -38,25 +38,25 @@ unit-test
 {
     "1234"
 } [
-     "Hello world\r\n1234" <string-reader>
-     dup stream-readln drop
-     4 swap stream-read
+    "Hello world\r\n1234" <string-reader>
+    dup stream-readln drop
+    4 swap stream-read
 ] unit-test
 
 {
     "1234"
 } [
-     "Hello world\r\n1234" <string-reader>
-     dup stream-readln drop
-     4 swap stream-read-partial
+    "Hello world\r\n1234" <string-reader>
+    dup stream-readln drop
+    4 swap stream-read-partial
 ] unit-test
 
 {
     CHAR: 1
 } [
-     "Hello world\r\n1234" <string-reader>
-     dup stream-readln drop
-     stream-read1
+    "Hello world\r\n1234" <string-reader>
+    dup stream-readln drop
+    stream-read1
 ] unit-test
 
 { utf8 ascii } [
index 3a15419455fa11e31bd831af8d5dffc0497bad05..5993419f897619d62d15e327a066aa6bd186f625 100644 (file)
@@ -68,8 +68,8 @@ $io-error ;
 
 HELP: stream-read-partial
 { $values
-     { "n" "a non-negative integer" } { "stream" "an input stream" }
-     { "seq/f" { $or byte-array string f } } }
+    { "n" "a non-negative integer" } { "stream" "an input stream" }
+    { "seq/f" { $or byte-array string f } } }
 { $description "Reads at most " { $snippet "n" } " elements from a stream and returns up to that many characters without blocking. If no characters are available, blocks until some are and returns them." } ;
 
 HELP: stream-read-partial-unsafe
@@ -132,14 +132,14 @@ $io-error ;
 
 HELP: stream-tell
 { $values
-     { "stream" "a stream" } { "n" integer }
+    { "stream" "a stream" } { "n" integer }
 }
 { $description "Returns the index of the stream pointer if the stream is seekable." }
 { $notes "Stream seeking is not supported on streams that do not have a known length, e.g. TCP/IP streams." } ;
 
 HELP: stream-seek
 { $values
-     { "n" integer } { "seek-type" "a seek singleton" } { "stream" "a stream" }
+    { "n" integer } { "seek-type" "a seek singleton" } { "stream" "a stream" }
 }
 { $description "Moves the pointer associated with a stream's handle to an offset " { $snippet "n" } " bytes from the seek type so that further reading or writing happens at the new location. For output streams, the buffer is flushed before seeking. Seeking past the end of an output stream will pad the difference with zeros once the stream is written to again." $nl
     "Three methods of seeking are supported:"
@@ -149,36 +149,33 @@ HELP: stream-seek
 
 HELP: stream-seekable?
 { $values
-     { "stream" "a stream" } { "?" boolean }
+    { "stream" "a stream" } { "?" boolean }
 }
 { $description "Returns true if " { $snippet "stream" } " is a seekable stream." }
 { $notes "Stream seeking is not supported on streams that do not have a known length, e.g. TCP/IP streams." } ;
 
 HELP: stream-length
 { $values
-     { "stream" "a stream" } { "n/f" { $maybe integer } }
+    { "stream" "a stream" } { "n/f" { $maybe integer } }
 }
 { $description "Returns the length of the data supplied by " { $snippet "stream" } ", or " { $link f } " if the stream is not seekable or has unknown length." }
 { $notes "Stream seeking is not supported on streams that do not have a known length, e.g. TCP/IP streams." } ;
 
 HELP: seek-absolute
 { $values
-
-     { "value" "a seek singleton" }
+    { "value" "a seek singleton" }
 }
 { $description "Seeks to an offset from the beginning of the stream." } ;
 
 HELP: seek-end
 { $values
-
-     { "value" "a seek singleton" }
+    { "value" "a seek singleton" }
 }
 { $description "Seeks to an offset from the end of the stream. If the offset puts the stream pointer past the end of the data on an output stream, writing to it will pad the difference with zeros." } ;
 
 HELP: seek-relative
 { $values
-
-     { "value" "a seek singleton" }
+    { "value" "a seek singleton" }
 }
 { $description "Seeks to an offset from the current position of the stream pointer." } ;
 
@@ -187,13 +184,13 @@ HELP: seek-relative
 
 HELP: seek-input
 { $values
-     { "n" integer } { "seek-type" "a seek singleton" }
+    { "n" integer } { "seek-type" "a seek singleton" }
 }
 { $description "Calls " { $link stream-seek } " on the stream stored in " { $link input-stream } "." } ;
 
 HELP: seek-output
 { $values
-     { "n" integer } { "seek-type" "a seek singleton" }
+    { "n" integer } { "seek-type" "a seek singleton" }
 }
 { $description "Calls " { $link stream-seek } " on the stream stored in " { $link output-stream } "." } ;
 
index 36ea5e009d6cf4996ee2b26d21b8d254be7c0ac9..677b437a93718f48bc0f6305c6d2068986a8b126 100644 (file)
@@ -223,12 +223,12 @@ CONSTANT: each-block-size 65536
 <PRIVATE
 
 : read-loop ( buf stream n i -- count )
-     2dup = [ 3nip ] [
+    2dup = [ 3nip ] [
         pick stream-read1 [
             over [ pick set-nth-unsafe ] 2curry 3dip
             1 + read-loop
         ] [ 3nip ] if*
-     ] if ; inline recursive
+    ] if ; inline recursive
 
 : finalize-read-until ( seq sep/f -- seq/f sep/f )
     2dup [ empty? ] [ not ] bi* and [ 2drop f f ] when ; inline
index d39272eb3fdc780335f9afa806944001a9fa102e..561620f72e0cf7a55b27ad13373a576223bed328 100644 (file)
@@ -903,8 +903,8 @@ HELP: do
 
 HELP: loop
 { $values
-     { "pred" quotation } }
-     { $description "Calls the quotation repeatedly until it outputs " { $link f } "." }
+    { "pred" quotation } }
+    { $description "Calls the quotation repeatedly until it outputs " { $link f } "." }
 { $examples "Loop until we hit a zero:"
     { $unchecked-example "USING: kernel random math io ; "
     " [ \"hi\" write bl 10 random zero? not ] loop"
index e6244fa57c920af328321980b551de1927b48dc8..24cf78b689aae3ac27375e87cac3c63f9895fd04 100644 (file)
@@ -492,7 +492,7 @@ M: string ed's-bug reverse ;
 M: integer ed's-bug neg ;
 
 :: ed's-test-case ( a -- b )
-   { [ a ed's-bug ] } && ;
+    { [ a ed's-bug ] } && ;
 
 { t } [ \ ed's-test-case word-optimized? ] unit-test
 
index d857a6125dbd067416de6301b8964308e9bc4510..a7ea9057c4b00d4c7dd950960c2885ac9988845e 100644 (file)
@@ -277,7 +277,7 @@ HELP: if-zero
 
 HELP: when-zero
 { $values
-     { "n" number } { "quot" "the first quotation of an " { $link if-zero } } { "x" object } }
+    { "n" number } { "quot" "the first quotation of an " { $link if-zero } } { "x" object } }
 { $description "Makes an implicit check if the number is zero. A zero is dropped and the " { $snippet "quot" } " is called." }
 { $examples "This word is equivalent to " { $link if-zero } " with an empty second quotation:"
     { $example
@@ -294,7 +294,7 @@ HELP: when-zero
 
 HELP: unless-zero
 { $values
-     { "n" number } { "quot" "the second quotation of an " { $link if-zero } } }
+    { "n" number } { "quot" "the second quotation of an " { $link if-zero } } }
 { $description "Makes an implicit check if the number is zero. A zero is dropped. Otherwise, the " { $snippet "quot" } " is called on the number." }
 { $examples "This word is equivalent to " { $link if-zero } " with an empty first quotation:"
     { $example
@@ -311,7 +311,7 @@ HELP: unless-zero
 
 HELP: until-zero
 { $values
-     { "n" number } { "quot" { $quotation ( ... x -- ... y ) } } }
+    { "n" number } { "quot" { $quotation ( ... x -- ... y ) } } }
 { $description "Makes a check if the number is zero, and repeatedly calls " { $snippet "quot" } " until the value on the stack is zero." }
 { $examples
     { $example
index 6284e66c32568b2bd763cc9d96c7dea168acacf2..e81b33ab04f5991523ebd4a12b21854b1e8a7b17 100644 (file)
@@ -205,7 +205,7 @@ CONSTANT: min-magnitude-2 -1074
     -rot 10 >>radix 0 ; inline
 
 : <float-parse> ( i number-parse n -- float-parse i number-parse n )
-     [ drop nip [ radix>> ] [ magnitude>> ] bi [ 0 f ] dip float-parse boa ] 3keep ; inline
+    [ drop nip [ radix>> ] [ magnitude>> ] bi [ 0 f ] dip float-parse boa ] 3keep ; inline
 
 : if-skip ( char true false -- )
     pick ",_" member-eq? [ drop nip call ] [ nip call ] if ; inline
index 0d95ae06a71f47eeaf327b8c2bc7c057fcabd045..8cebd36ec3b2763c716c2ea5984fa5e2b3c4b032 100644 (file)
@@ -1491,8 +1491,8 @@ HELP: sift
 { $values
     { "seq" sequence }
     { "newseq" sequence } }
- { $description "Outputs a new sequence with all instances of " { $link f } " removed." }
- { $examples
+{ $description "Outputs a new sequence with all instances of " { $link f } " removed." }
+{ $examples
     { $example "USING: prettyprint sequences ;"
         "{ \"a\" 3 { } f } sift ."
         "{ \"a\" 3 { } }"
@@ -1575,7 +1575,7 @@ HELP: replicate-as
 { $values
     { "len" integer } { "quot" { $quotation ( ... -- ... newelt ) } } { "exemplar" sequence }
     { "newseq" sequence } }
- { $description "Calls the quotation " { $snippet "len" } " times, collecting results into a new sequence of the same type as the exemplar sequence." }
+{ $description "Calls the quotation " { $snippet "len" } " times, collecting results into a new sequence of the same type as the exemplar sequence." }
 { $examples
     { $unchecked-example "USING: prettyprint kernel sequences ;"
         "5 [ 100 random ] B{ } replicate-as ."
@@ -1613,7 +1613,7 @@ HELP: 2map-reduce
 { $values
     { "seq1" sequence } { "seq2" sequence } { "map-quot" { $quotation ( ..a elt1 elt2 -- ..a intermediate ) } } { "reduce-quot" { $quotation ( ..a prev intermediate -- ..a next ) } }
     { "result" object } }
- { $description "Calls " { $snippet "map-quot" } " on each pair of elements from " { $snippet "seq1" } " and " { $snippet "seq2" } " and combines the results using " { $snippet "reduce-quot" } " in the same manner as " { $link reduce } ", except that there is no identity element, and the sequence must have a length of at least 1." }
+{ $description "Calls " { $snippet "map-quot" } " on each pair of elements from " { $snippet "seq1" } " and " { $snippet "seq2" } " and combines the results using " { $snippet "reduce-quot" } " in the same manner as " { $link reduce } ", except that there is no identity element, and the sequence must have a length of at least 1." }
 { $errors "Throws an error if the sequence is empty." }
 { $examples { $example "USING: sequences prettyprint math ;"
     "{ 10 30 50 } { 200 400 600 } [ + ] [ + ] 2map-reduce ."
index c10d4dbe6636d4befb0c625a977f5c3f21a57610..55ac4221ff3705f46af0c129c62f66d3527cf233 100644 (file)
@@ -909,7 +909,7 @@ PRIVATE>
     ] keep ;
 
 : reverse ( seq -- newseq )
-     [
+    [
         dup [ length ] keep new-sequence
         [ 0 swap copy-unsafe ] keep reverse!
     ] keep like ;
index 3fecbd4b6065696ff7d23e045887cb0d262d9031..54d82d5de996fbd35f73ff0676336c7351db137d 100644 (file)
@@ -59,8 +59,8 @@ ARTICLE: "set-operations" "Operations on sets"
 }
 "Utilities for sets and sequences:"
 { $subsections
-     within
-     without
+    within
+    without
 } ;
 
 ARTICLE: "set-implementations" "Set implementations"
@@ -199,8 +199,8 @@ HELP: set=
 
 HELP: gather
 { $values
-     { "seq" sequence } { "quot" { $quotation ( ... elt -- ... elts ) } }
-     { "newseq" sequence } }
+    { "seq" sequence } { "quot" { $quotation ( ... elt -- ... elts ) } }
+    { "newseq" sequence } }
 { $description "Maps a quotation over a sequence, concatenates the results of the mapping, and removes duplicates." } ;
 
 HELP: set-like
index 6639784a839b5f6bf12cfe372db2eaf6b84963ba..3128f4cc0db0086f59a8b4363f67741f52e3c1b4 100644 (file)
@@ -120,8 +120,8 @@ ARTICLE: "syntax-floats" "Float syntax"
 { $subsections POSTPONE: NAN: }
 "To see the 64 bit value of " { $snippet "0/0." } " on your platform, execute the following code :"
 { $code
-     "USING: io math math.parser ;"
-     "\"NAN: \" write 0/0. double>bits >hex print"
+    "USING: io math math.parser ;"
+    "\"NAN: \" write 0/0. double>bits >hex print"
 }
 "Hexadecimal, octal and binary float literals are also supported. These consist of a hexadecimal, octal or binary literal with a decimal point and a mandatory base-two exponent expressed as a decimal number after " { $snippet "p" } " or " { $snippet "P" } ":"
 { $example
index 2ea0de5e86806994f0072af48c01180d37d4944f..b4873b1ad0e011672e0f0ad258f4be953aec25a4 100644 (file)
@@ -60,7 +60,7 @@ PRIVATE>
                 }
             }
         }
-     } ;
+    } ;
 
 SYMBOL: elements
 
index 8115e1016539d81c842cdd94a4de3a2f3bb64430..0da784fe26e36dc2116b6c61cdfa497e96f8594f 100644 (file)
@@ -65,4 +65,4 @@ CONSTANT: SearchScope_WholeSubtree    2
                  }
              }
         }
-     } ;
+    } ;
index ddbe6a4de1f9289f9c0dd81b673a54b91dd0e07b..434008783744f58f87f38559bf27eb9c6bec8811 100644 (file)
@@ -79,8 +79,8 @@ IN: assocs.extras
 ! Modifies assoc1
 : assoc-merge! ( assoc1 assoc2 quot: ( value1 value2 -- new-value ) -- assoc1' )
     [| key2 val2 quot | val2 key2 pick
-     at* [ swap quot call ] [ drop ] if
-     key2 pick set-at ] curry assoc-each ; inline
+    at* [ swap quot call ] [ drop ] if
+    key2 pick set-at ] curry assoc-each ; inline
 
 ! Same as above, non-destructive
 : assoc-merge ( assoc1 assoc2 quot: ( value1 value2 -- new-value ) -- new-assoc )
index 5ebd601548a7da65670e820dae2d5b4f6cb54e3b..12abacd741048c0cba8291003f9aa6fdfc1cafd8 100644 (file)
@@ -113,9 +113,9 @@ HELP: set-generate
 }
 { $description
     "If 'gen' is true, the server starts generating bitcoins. If 'gen' is "
-     "'false' then the server stops generating bitcoins. 'n' is the number "
-     "of CPU's to use while generating. A value of '-1' means use all the "
-     "CPU's available."
+    "'false' then the server stops generating bitcoins. 'n' is the number "
+    "of CPU's to use while generating. A value of '-1' means use all the "
+    "CPU's available."
 } ;
 
 HELP: get-info
index fbe6db5040fddd3eb0d0babec9b520ec8388aeaf..4520a11403c8ae0ecbdbd049b908079f99e68465 100644 (file)
@@ -45,7 +45,7 @@ M: boids-gadget ungraft*
             -6.0  4.0 glVertex2f
             -6.0 -4.0 glVertex2f
             8.0 0.0 glVertex2f
-         ] do-state
+        ] do-state
     ] with-translation ;
 
 : draw-boids ( boids -- )
index b0052e3d71db329bcf0433789cd3bf047e996201..24809f7297f58efd4e6778bec68b463bfb546956 100644 (file)
@@ -36,12 +36,18 @@ IN: bson.tests
                    { gmt-offset T{ duration { hour 2 } } } } } } turnaround
 ] unit-test
 
-{ H{ { "nested" H{ { "a" "a string" } { "b" H{ { "a" "a string" } } } } }
-     { "ref" T{ dbref f "a" "b" "c" } }
-     { "array" H{ { "a list" { 1 2.234 "hello world" } } } }
-     { "quot" [ 1 2 + ] } }
-}
-[ H{ { "nested" H{ { "a" "a string" } { "b" H{ { "a" "a string" } } } } }
-     { "ref" T{ dbref f "a" "b" "c" } }
-     { "array" H{ { "a list" { 1 2.234 "hello world" } } } }
-     { "quot" [ 1 2 + ] } } turnaround ] unit-test
+{
+     H{
+          { "nested" H{ { "a" "a string" } { "b" H{ { "a" "a string" } } } } }
+          { "ref" T{ dbref f "a" "b" "c" } }
+          { "array" H{ { "a list" { 1 2.234 "hello world" } } } }
+          { "quot" [ 1 2 + ] }
+     }
+} [
+     H{
+          { "nested" H{ { "a" "a string" } { "b" H{ { "a" "a string" } } } } }
+          { "ref" T{ dbref f "a" "b" "c" } }
+          { "array" H{ { "a list" { 1 2.234 "hello world" } } } }
+          { "quot" [ 1 2 + ] }
+     } turnaround
+] unit-test
index 2282aabff1f8403d44e6be987605f77f86db766d..2b075a6172fe5746aa309474c14c819c82b387bd 100644 (file)
@@ -51,7 +51,7 @@ CONSTRUCTOR: <dbref> dbref ( ref id -- dbref ) ;
 TUPLE: mdbregexp { regexp string } { options string } ;
 
 : <mdbregexp> ( string -- mdbregexp )
-   [ mdbregexp new ] dip >>regexp ;
+    [ mdbregexp new ] dip >>regexp ;
 
 
 CONSTANT: MDB_OID_FIELD "_id"
index f08d896c4c42aa24b255fabf682796fdf73e8815..f63005734406b95ff04f42a77a410b72e9733b2a 100644 (file)
@@ -51,8 +51,8 @@ DEFER: read-elements
     read-int32 [ f ] [ drop read-elements t ] if-zero ; inline recursive
 
 : bson-binary-read ( -- binary )
-   read-int32 read-byte
-   {
+    read-int32 read-byte
+    {
         { T_Binary_Default [ read ] }
         { T_Binary_Bytes_Deprecated [ drop read-int32 read ] }
         { T_Binary_Custom [ read bytes>object ] }
@@ -60,11 +60,11 @@ DEFER: read-elements
         { T_Binary_MD5 [ read >string ] }
         { T_Binary_UUID [ read >string ] }
         [ "unknown binary sub-type" unknown-bson-type ]
-   } case ; inline
+    } case ; inline
 
 TYPED: bson-regexp-read ( -- mdbregexp: mdbregexp )
-   mdbregexp new
-   read-cstring >>regexp read-cstring >>options ; inline
+    mdbregexp new
+    read-cstring >>regexp read-cstring >>options ; inline
 
 TYPED: bson-oid-read ( -- oid: oid )
     read-longlong read-int32 oid boa ; inline
index e69166c74e35126eaedb84286355fea4c13bce73..5fed178e73fd628b4c3dbb93608a008cdb4d0293 100644 (file)
@@ -60,11 +60,11 @@ TYPED: write-byte-array ( binary: byte-array -- )
     [ T_Binary_Default write1 write ] bi ; inline
 
 TYPED: write-mdbregexp ( regexp: mdbregexp -- )
-   [ regexp>> write-cstring ]
-   [ options>> write-cstring ] bi ; inline
+    [ regexp>> write-cstring ]
+    [ options>> write-cstring ] bi ; inline
 
 TYPED: write-sequence ( array: sequence -- )
-   '[
+    '[
         _ [ number>string swap write-pair ] each-index
         write-eoo
     ] with-length-prefix ; inline recursive
@@ -85,7 +85,7 @@ UNION: hashtables hashtable linked-assoc ;
 TYPED: write-assoc ( assoc: hashtables -- )
     '[ _ [ write-oid-field ] [
             [ skip-field? [ 2drop ] [ write-pair ] if ] assoc-each
-         ] bi write-eoo
+        ] bi write-eoo
     ] with-length-prefix ; inline recursive
 
 UNION: code word quotation ;
index 0a1d8255c5bcf5ee66a24ac4cb1ee32662784c1f..036debf3b25710eed30932f4630adbd5ba7a28c2 100644 (file)
@@ -158,7 +158,7 @@ ERROR: header-file-missing path ;
             drop f >>processing-disabled?
             [ 1 - ] change-ifdef-nesting
             drop
-         ] [ 2drop ] if
+        ] [ 2drop ] if
     ] [
         parse-directive
     ] if ;
index 5e93827579add12fac3c867001f33baf76e155bb..9372e9454756118828419f741696e75eeb9219dc 100644 (file)
@@ -33,10 +33,10 @@ IN: cgi
 
 : parse-post ( -- assoc )
     "CONTENT_TYPE" os-env "" or content-type {
-       { "multipart/form-data"               [ multipart ] }
-       { "application/x-www-form-urlencoded" [ urlencoded ] }
-       [ drop parse-get ]
-   } case nip ;
+        { "multipart/form-data"               [ multipart ] }
+        { "application/x-www-form-urlencoded" [ urlencoded ] }
+        [ drop parse-get ]
+    } case nip ;
 
 PRIVATE>
 
index 0e6063fc0e586884d0ce423c808c963bed0af6b9..91456adf13c26b829b948d7459d13bb5abfbffa9 100644 (file)
@@ -42,7 +42,7 @@ cli-git-num-parallel [ cpus 2 * ] initialize
     ?file-info dup [ directory? ] when ;
 
 : git-current-branch* ( -- name )
-     { "git" "rev-parse" "--abbrev-ref" "HEAD" } git-command>string ;
+    { "git" "rev-parse" "--abbrev-ref" "HEAD" } git-command>string ;
 
 : git-current-branch ( directory -- name )
     [ git-current-branch* ] with-directory ;
index b700de0dc4c81be69a5a7425ce3cb88c5dc5b721..ebaaa6d2e33d5d471791907352e9342c0d4478d2 100644 (file)
@@ -17,9 +17,9 @@ IN: combinators.extras.tests
 { { "negative" 0 "positive" } } [
     { -1 0 1 } [
         {
-           { [ 0 > ] [ "positive" ] }
-           { [ 0 < ] [ "negative" ] }
-           [ ]
+            { [ 0 > ] [ "positive" ] }
+            { [ 0 < ] [ "negative" ] }
+            [ ]
         } cond-case
     ] map
 ] unit-test
index b2744af4b9bcc5f215b634cc479acd7432cbb358..ed632cf1cc5bff6554cb0eecc6a23915e52b99a7 100644 (file)
@@ -199,7 +199,7 @@ CONSTANT: sign-flag         0x80
     swap cpu-f-bitor= ;
 
 : clear-flag ( cpu flag -- )
-     bitnot 0xFF bitand swap cpu-f-bitand= ;
+    bitnot 0xFF bitand swap cpu-f-bitand= ;
 
 : update-zero-flag ( result cpu -- )
     ! If the result of an instruction has the value 0, this
index a2c4068cd60d4e3dbf00599e930f7be1b278ccf2..40d8a2dbc68b21edefd69716469fb5f5b44d9835 100644 (file)
@@ -151,24 +151,26 @@ CONSTANT: key B{ 0x2b 0x7e 0x15 0x16 0x28 0xae 0xd2 0xa6 0xab 0xf7 0x15 0x88 0x0
 ! set-d
 
 { { 0x01020304 0x02030401 0x03040102 0x04010203 } } [
-  { 0x01010101 0x02020202 0x03030303 0x04040404 } shift-rows
+    { 0x01010101 0x02020202 0x03030303 0x04040404 } shift-rows
 ] unit-test
 
 { { 0x01010101 0x02020202 0x03030303 0x04040404 } } [
{ 0x01020304 0x02030401 0x03040102 0x04010203 }  unshift-rows
   { 0x01020304 0x02030401 0x03040102 0x04010203 } unshift-rows
 ] unit-test
 
 { 0x02030401 } [ 0x01020304 rotword ] unit-test
 
 {
-V{ 729683222 682545830 2885096840 164581180 2700803607 2287217841
-   597899577 711751173 4072838642 2056698179 1496678522 1935275647
-   1031817085 1192689214 505642564 1836746811 4014253377 2823969663
-   3060868411 3674975488 3570517752 2089000327 3404904636 301536700
-   1837671290 285949693 3690563137 3389035517 1314191118 1600113139
-   2225491890 1319558223 3939660577 3045964498 824964448 2139957551
-   2893506291 435870753 684796225 1465647214 3491035560 3387827593
-   3779005640 3059944614 }
+    V{
+        729683222 682545830 2885096840 164581180 2700803607 2287217841
+        597899577 711751173 4072838642 2056698179 1496678522 1935275647
+        1031817085 1192689214 505642564 1836746811 4014253377 2823969663
+        3060868411 3674975488 3570517752 2089000327 3404904636 301536700
+        1837671290 285949693 3690563137 3389035517 1314191118 1600113139
+        2225491890 1319558223 3939660577 3045964498 824964448 2139957551
+        2893506291 435870753 684796225 1465647214 3491035560 3387827593
+        3779005640 3059944614
+    }
 } [
   B{ 0x2b 0x7e 0x15 0x16 0x28 0xae 0xd2 0xa6 0xab 0xf7 0x15 0x88 0x09 0xcf 0x4f 0x3c } ! AES-128 key expansion test vector from FIPS-197 (appendix)
         10 (expand-enc-key)
@@ -176,12 +178,13 @@ V{ 729683222 682545830 2885096840 164581180 2700803607 2287217841
 
 { 0x046681e5 } [ 0x088df419 ui32> t-transform ] unit-test
 
-{ V{
-    0x3925841d
-    0x02dc09fb
-    0xdc118597
-    0x196a0b32
- }
+{
+    V{
+        0x3925841d
+        0x02dc09fb
+        0xdc118597
+        0x196a0b32
+    }
 } [
     key plaintext aes-encrypt-block bytes>words
 ] unit-test
index 7e63b4803e9365eaa86fa7acc9b094600a0313a9..22f8729a2e59bc3394d9d6aeb5f8b197a9af1765 100644 (file)
@@ -225,7 +225,7 @@ SINGLETON: aes-encrypt
     c0 gb0   c1 gb1   c2 gb2   c3 gb3   >ui32 ; ! c3'
 
 : (add-round-key) ( key state -- state' )
-   4 [ bitxor ] unrolled-2map ;
+    4 [ bitxor ] unrolled-2map ;
 
 : add-round-key ( aes n -- aes' )
     over (key-at-nth-round) swap
index ff7d9155e5d973b3143184f56660cd9552bc2bea..f3c40593ca1143891935dbb4dc717210b6612c69 100644 (file)
@@ -5,20 +5,20 @@ IN: crypto.passwd-md5
 
 HELP: authenticate-password
 { $values
-     { "shadow" string } { "password" string }
-     { "?" boolean } }
+    { "shadow" string } { "password" string }
+    { "?" boolean } }
 { $description "Encodes the provided password and compares it to the encoded password entry from a shadowed password file." } ;
 
 HELP: parse-shadow-password
 { $values
-     { "string" string }
-     { "magic" string } { "salt" string } { "password" string } }
+    { "string" string }
+    { "magic" string } { "salt" string } { "password" string } }
 { $description "Splits a shadowed password entry into a magic string, a salt, and an encoded password string." } ;
 
 HELP: passwd-md5
 { $values
-     { "magic" string } { "salt" string } { "password" string }
-     { "bytes" "an md5-shadowed password entry" } }
+    { "magic" string } { "salt" string } { "password" string }
+    { "bytes" "an md5-shadowed password entry" } }
 { $description "Encodes the password with the given magic string and salt to an MD5-shadow password entry." } ;
 
 ARTICLE: "crypto.passwd-md5" "MD5 shadow passwords"
index 9a72ea799e592bdaf8e416516abe5efb1f229e43..5caa5f36fbe3aab89db0d76d29f6b642111691e2 100644 (file)
@@ -21,8 +21,8 @@ PREDICATE: cuda-function-word < word
 M: cuda-function-word definer drop \ CUDA-FUNCTION: \ ; ;
 M: cuda-function-word definition drop f ;
 M: cuda-function-word synopsis*
-   {
-       [ seeing-word ]
-       [ definer. ]
-       [ [ pprint-word ] pprint-cuda-function ]
-   } cleave ;
+    {
+        [ seeing-word ]
+        [ definer. ]
+        [ [ pprint-word ] pprint-cuda-function ]
+    } cleave ;
index c01550e62877fa507ddfb95d9204fa8029143551..e1de3e1f703eacb408468cd4c0563f072ccd8ea5 100644 (file)
@@ -2,8 +2,8 @@
 ! See http://factorcode.org/license.txt for BSD license.
 
 USING: kernel accessors sequences sequences.private destructors math namespaces
-       openssl openssl.libcrypto byte-arrays bit-arrays.private
-       alien.c-types alien.destructors alien.data ;
+    openssl openssl.libcrypto byte-arrays bit-arrays.private
+    alien.c-types alien.destructors alien.data ;
 
 IN: ecdsa
 
index 9e423b967fdff22adb530cc50e7aeadd930f255f..d1b9897adb945b060b8359b475cb790a7922bbc9 100644 (file)
@@ -12,7 +12,7 @@ ABOUT: "elevate"
 ARTICLE: "elevate" "Elevated permissions API"
     "The " { $vocab-link "elevate" } " vocabulary provides abstractions for running programs with elevated (administrator) privileges (permissions). It allows code to relaunch itself or other programs with administrator privileges after requiring a password."
     $nl
-     "This vocabulary is inspired by and ported from " { $url "https://github.com/barneygale/elevate" "Barney Gale's elevate.py" } "."
+    "This vocabulary is inspired by and ported from " { $url "https://github.com/barneygale/elevate" "Barney Gale's elevate.py" } "."
     $nl
     { $subsections already-root? elevate elevated lowered }
     "However, there are many caveats: " { $link "elevate.bugs" } "." ;
index a272a6161393867aa6286ebfd76213b11f5b5e0a..1eebd90dd0399d09999ab78bb5391e9f3e5ea8ef 100644 (file)
@@ -83,18 +83,18 @@ debug-text-fragment-shader debug-text-vertex-format ;
 
 CONSTANT: debug-text-font
     T{ font
-       { name       "monospace"  }
-       { size       16           }
-       { bold?      f            }
-       { italic?    f            }
-       { foreground COLOR: white }
-       { background COLOR: black } }
+        { name       "monospace"  }
+        { size       16           }
+        { bold?      f            }
+        { italic?    f            }
+        { foreground COLOR: white }
+        { background COLOR: black } }
 
 CONSTANT: debug-text-texture-parameters
     T{ texture-parameters
-       { wrap              repeat-texcoord }
-       { min-filter        filter-linear   }
-       { min-mipmap-filter f               } }
+        { wrap              repeat-texcoord }
+        { min-filter        filter-linear   }
+        { min-mipmap-filter f               } }
 
 : text>image ( string color -- image )
     debug-text-font clone swap >>foreground swap string>image drop ;
index 74e8ce06b0a5cb214fe46ab07b3baa4c31835f7b..95747a17d3df1871c777b9b540c77e58af3600a5 100644 (file)
@@ -17,7 +17,7 @@ TUPLE: board-gadget < gadget dimension bg-color draw-quotes board gests textures
     wdt cols /i :> cellwidth 
     hgt rows /i :> cellheight
 
-   cellwidth cellheight { } 2sequence ;
+    cellwidth cellheight { } 2sequence ;
 
 :: get-dimension-matrix ( n gadget -- matrix )
     ! gets a matrix of all starting locations of cells
@@ -117,7 +117,7 @@ TUPLE: board-gadget < gadget dimension bg-color draw-quotes board gests textures
 
 ! SECTION: gadget methods
 M: board-gadget pref-dim*
-   dimension>> ;
+    dimension>> ;
 
 M: board-gadget handle-gesture
     swap over gests>> ?at
index e6cc451727c88f0f4004f2ce6a7c65e6e062e08d..c9d6157209ca3cce640418550e0f0d3446e91af2 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2023 Keldan Chapman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel coroutines effects.parser words sequences accessors generalizations
-       locals.parser summary combinators.smart math continuations make ;
+locals.parser summary combinators.smart math continuations make ;
 IN: generators
 
 TUPLE: generator state ;
index 84f9ec3617212c9b999d3db12a4b88ed4af306ee..e6092519cba5edbaed3a99cb8bf267b4d30672c5 100644 (file)
@@ -310,12 +310,12 @@ M: object >uniform-vec-array '[ _ head ] map float-array{ } concat-as ; inline
 M: binary-data >uniform-vec-array drop ; inline
 
 M:: object >uniform-matrix ( sequence cols rows -- c-array )
-     sequence flip cols head-slice
-     [ rows head-slice c:float >c-array ] { } map-as concat ; inline
+    sequence flip cols head-slice
+    [ rows head-slice c:float >c-array ] { } map-as concat ; inline
 M: binary-data >uniform-matrix 2drop ; inline
 
 M: object >uniform-matrix-array
-     '[ _ _ >uniform-matrix ] map concat ; inline
+    '[ _ _ >uniform-matrix ] map concat ; inline
 M: binary-data >uniform-matrix-array 2drop ; inline
 
 M: object bind-uniform-bvec2 ( index sequence -- )
index 01cf4a4fbc5d509e56ea65403799972a4e3c36fe..f1038d889af23c58fe513f99b11ed5b0226b1cf1 100644 (file)
@@ -118,9 +118,9 @@ CONSTANT: window-vertexes
 :: <2d-render-texture> ( dim order type -- renderbuffer texture )
     order type
     T{ texture-parameters
-       { wrap clamp-texcoord-to-edge }
-       { min-filter filter-linear }
-       { min-mipmap-filter f } }
+        { wrap clamp-texcoord-to-edge }
+        { min-filter filter-linear }
+        { min-mipmap-filter f } }
     <texture-2d> [
         0 <texture-2d-attachment> 1array f f dim <framebuffer>
         dup { { default-attachment { 0 0 0 } } } clear-framebuffer
index 0964b0ad3f2783a5be351bb16f33d40d81038767..589a35eaeceec9362b4f1c8392ecaffb40bb944d 100644 (file)
@@ -19,7 +19,7 @@ IN: html.parser.analyzer
     swap attributes>> key? ;
 
 : find-all ( seq quot -- alist )
-   [ <enumerated> >alist ] [ '[ second @ ] ] bi* filter ; inline
+    [ <enumerated> >alist ] [ '[ second @ ] ] bi* filter ; inline
 
 : loopn-index ( n quot -- )
     [ <iota> ] [ '[ @ not ] ] bi* find 2drop ; inline
index e82f6d2928e15a0c309d034f79ef5bacbf9250fa..508cb5a56675091199d7e9bba66b329854f307a3 100644 (file)
@@ -665,7 +665,7 @@ M: in-body-mode tree-insert*
             over tree>> push
 
             after-body-mode >>insertion-mode
-         ] }
+        ] }
         { [ dup { [ end-tag? ] [ name>> "html" = ] } 1&& ] [ drop unimplemented* ] }
         ! { [ ] [ ] }
         [
@@ -691,7 +691,7 @@ M: after-body-mode tree-insert*
         { [ dup doctype? ] [ drop ] }
         { [ dup { [ tag? ] [ name>> "html" = ] } 1&& ] [
             unimplemented*
-         ] }
+        ] }
         { [ dup { [ end-tag? ] [ name>> "html" = ] } 1&& ] [
             ! XXX: make this a function
             "html" pick tree>> find-matching-tag
index c6e4a5c153b096f7eb881966827a7afec190227a..1b42abeba00b090fa0dadd8e70d39e3e5e779e4b 100644 (file)
@@ -107,7 +107,7 @@ CONSTANT: c53h { { ":status" "200" }
 
 ! RFC7541 Appendix C.2.1
 { T{ hpack-context f 4096 { { "custom-key" "custom-header" } } } 
-   26 { "custom-key" "custom-header" } }
+    26 { "custom-key" "custom-header" } }
 [ hpack-context new c21 0 decode-field nipd ] unit-test
 
 ! RFC7541 Appendix C.2.2
index 8168c96a00cd869c337f4f5db7accd163112a075..7c2e1f9f73bd3be69a7e854d49c473265f7e36b3 100644 (file)
@@ -15,12 +15,12 @@ IN: id3.tests
     } cleave ;
 
 {
-   "BLAH"
-   "ARTIST"
-   "ALBUM"
-   "2009"
-   "COMMENT"
-   "Bluegrass"
+    "BLAH"
+    "ARTIST"
+    "ALBUM"
+    "2009"
+    "COMMENT"
+    "Bluegrass"
 } [ "vocab:id3/tests/blah.mp3" mp3>id3 id3-params ] unit-test
 
 {
@@ -33,12 +33,12 @@ IN: id3.tests
 } [ "vocab:id3/tests/blah2.mp3" mp3>id3 id3-params ] unit-test
 
 {
-   "Stormy Weather"
-   "Frank Sinatra"
-   "Night and Day Frank Sinatra"
-    f
-   "eng, AG# 08E1C12E"
-   "Big Band"
+    "Stormy Weather"
+    "Frank Sinatra"
+    "Night and Day Frank Sinatra"
+     f
+    "eng, AG# 08E1C12E"
+    "Big Band"
 } [ "vocab:id3/tests/blah3.mp3" mp3>id3 id3-params ] unit-test
 
 
index 079efdbb5c4ac43065151666625c4d593a7d3f1e..5141c7fa8f8f569e2be5b28dd85ccc3e283b0eae 100644 (file)
@@ -114,11 +114,11 @@ CONSTANT: BLOCK-TERMINATOR 0x00
         read-sub-blocks >>comment-data ;
 
 : read-application-extension ( -- read-application-extension )
-   \ application-extension new
-       1 read le> >>block-size
-       8 read utf8 decode >>identifier
-       3 read >>authentication-code
-       read-sub-blocks >>application-data ;
+    \ application-extension new
+        1 read le> >>block-size
+        8 read utf8 decode >>identifier
+        3 read >>authentication-code
+        read-sub-blocks >>application-data ;
 
 : read-gif-header ( loading-gif -- loading-gif )
     6 read utf8 decode >>magic ;
index 10795f7b88a9f86c28d5f520a1eac9fd33af6907..efde37bbde3e9ca3cc9154f3eebbfcd6da2d3c55 100644 (file)
@@ -14,15 +14,15 @@ IN: images.viewer.tests
 { } [ { 50 50 } gen-image "s" set ] unit-test
 { } [ "s" get <image-gadget> "ig" set ] unit-test
 "ig" get [
-   [ t ] [ "ig" get image-gadget-texture single-texture? ] unit-test
+    [ t ] [ "ig" get image-gadget-texture single-texture? ] unit-test
 ] with-grafted-gadget
 
 { } [ "s" get <model> "m" set ] unit-test
 { } [ { 150 150 } gen-image "s1" set ] unit-test
 { } [ "m" get <image-control> "ic" set ] unit-test
 "ic" get [
-   [ t ] [ "ic" get image-gadget-texture single-texture? ] unit-test
-   [ { 50 50 } ] [ "ic" get texture>> texture-size ] unit-test
+    [ t ] [ "ic" get image-gadget-texture single-texture? ] unit-test
+    [ { 50 50 } ] [ "ic" get texture>> texture-size ] unit-test
 ] with-grafted-gadget
 
 ! TODO
index 28471b37f045cddb69dac38b1abf8517fc475970..3de44d2c6d6392f577f37e913988f3e1644657f9 100644 (file)
@@ -67,7 +67,7 @@ M: multi-texture texture-size
         ] [ f ] if*
     ] [ f ] if* ;
 : same-internal-format? ( image-gadget -- ? )
-   [ texture-format ] [ image>> image-format 2drop ] bi = ;
+    [ texture-format ] [ image>> image-format 2drop ] bi = ;
 
 ! TODO: also keep multitextures if possible ?
 : keep-same-texture? ( image-gadget -- ? )
index a6bbaa7dd545a549effc32b82c2895411e023bbe..9167bb6d6a2c9c9406599880e428f8f62eed9c18 100644 (file)
@@ -10,9 +10,10 @@ IN: infix.tests
 { 3 } [ [infix 2*7%3+1 infix] ] unit-test
 { 1419857 } [ [infix 17**5 infix] ] unit-test
 { 1 } [ [infix 2-
-     1
-     -5*
-     0 infix] ] unit-test
+    1
+    -5*
+    0 infix]
+] unit-test
 
 { 0.0 } [ [infix sin(0) infix] ] unit-test
 { 10 } [ [infix lcm(2,5) infix] ] unit-test
index 317ab4d08f5a88db62e7f598e95eaa522a4fad2b..dd39f53aad7e493f3d2f656efb959bb4297251fa 100644 (file)
@@ -104,25 +104,25 @@ CONSTANT: acl-flag-names {
 }
 
 STRUCT: guid_t
-   { g_guid { uchar KAUTH_GUID_SIZE } } ;
+    { g_guid { uchar KAUTH_GUID_SIZE } } ;
 
 TYPEDEF: uint kauth_ace_rights_t
 STRUCT: kauth_ace
-   { ace_applicable guid_t }
-   { ace_flags uint }
-   { ace_rights kauth_ace_rights_t } ;
+    { ace_applicable guid_t }
+    { ace_flags uint }
+    { ace_rights kauth_ace_rights_t } ;
 TYPEDEF: kauth_ace* kauth_ace_t
 
 STRUCT: kauth_acl
-   { acl_entrycount uint }
-   { acl_flags uint }
-   { acl_ace { kauth_ace 1 } } ;
+    { acl_entrycount uint }
+    { acl_flags uint }
+    { acl_ace { kauth_ace 1 } } ;
 TYPEDEF: kauth_acl* kauth_acl_t
 
 STRUCT: kauth_filesec
-   { fsec_magic uint }
-   { fsec_owner guid_t }
-   { fsec_group guid_t } ;
+    { fsec_magic uint }
+    { fsec_owner guid_t }
+    { fsec_group guid_t } ;
 TYPEDEF: kauth_filesec* kauth_filesec_t
 
 FUNCTION: int acl_dup ( acl_t acl )
index cc546bdbad330cebde35b04fec7f09d3e4203824..fd516aaf8207709e84c224bf73b55fdca4330b53 100644 (file)
@@ -90,7 +90,7 @@ ERROR: add-permission-failed permission-set permission ;
     f acl_permset_t <ref> [ acl_get_permset acl-error ] keep ;
 
 : filter-strings ( obj strings -- string )
-   [ [ 1 = ] dip f ? ] 2map sift "," join ;
+    [ [ 1 = ] dip f ? ] 2map sift "," join ;
 
 : permset>strings ( acl_permset -- strings )
     acl-perms [ acl_get_perm_np dup acl-error ] with map
@@ -100,7 +100,7 @@ ERROR: add-permission-failed permission-set permission ;
     acl-entry>permset permset>strings ;
 
 : with-new-acl ( quot -- )
-   [ [ new-acl &free-acl ] dip call ] with-destructors ; inline
+    [ [ new-acl &free-acl ] dip call ] with-destructors ; inline
 
 : acls. ( path -- )
     [ acl>text io:write ] acl-each ;
index 6bce05a25d1ee31fc23d3984ab8a6924b496008b..4c3f406f81166005897ef2fe3c5bd7780fa7f1c7 100644 (file)
@@ -94,7 +94,7 @@ M: 256color stream-write-table
     ] with-output-stream* ;
 
 M: 256color make-cell-stream
-     2drop <string-writer> <256color> ;
+    2drop <string-writer> <256color> ;
 
 M: 256color dispose drop ;
 
index 1717f1b6bdab2693dc6298ae3104fa3f72b191aa..ca8200da963fdf45dbe2b15bbc66c37800b4deba 100644 (file)
@@ -75,7 +75,7 @@ M: ansi stream-write-table
     ] with-output-stream* ;
 
 M: ansi make-cell-stream
-     2drop <string-writer> <ansi> ;
+    2drop <string-writer> <ansi> ;
 
 M: ansi dispose drop ;
 
index 5b90cd45227ff436af76b02e8c06668e5a7b75af..5ba7584c5e6e5c94d51a66958f964f5a85d5a104 100644 (file)
@@ -13,11 +13,11 @@ TUPLE: irc-nick-chat    < irc-chat name ;
 SYMBOL: +server-chat+
 
 : <irc-server-chat> ( -- irc-server-chat )
-     irc-server-chat new
+    irc-server-chat new
          <mailbox> >>in-messages ;
 
 : <irc-channel-chat> ( name -- irc-channel-chat )
-     irc-channel-chat new
+    irc-channel-chat new
          swap       >>name
          <mailbox>  >>in-messages
          f          >>password
@@ -25,7 +25,7 @@ SYMBOL: +server-chat+
          t          >>clear-participants ;
 
 : <irc-nick-chat> ( name -- irc-nick-chat )
-     irc-nick-chat new
+    irc-nick-chat new
          swap      >>name
          <mailbox> >>in-messages ;
 
@@ -33,9 +33,9 @@ TUPLE: irc-profile server port nickname password ;
 C: <irc-profile> irc-profile
 
 TUPLE: irc-client profile stream in-messages out-messages
-       chats is-running nick connect is-ready
-       reconnect-time reconnect-attempts
-       exceptions ;
+    chats is-running nick connect is-ready
+    reconnect-time reconnect-attempts
+    exceptions ;
 
 : <irc-client> ( profile -- irc-client )
     dup nickname>> irc-client new
index f68db13db64afa0bd2d77f5ccb39c98d1c3e63d9..6e42eec8e5190087ccb218dc94b12d4d0e6634e3 100644 (file)
@@ -190,9 +190,10 @@ M: mb-writer dispose drop ;
   ] unit-test
 ] spawning-irc
 
-[ { H{ { "factorbot" T{ participant { nick "factorbot" } { operator t } } }
-       { "ircuser" T{ participant { nick "ircuser" } } }
-       { "voiced" T{ participant { nick "voiced" } { voice t } } } } } [
+[ { H{
+      { "factorbot" T{ participant { nick "factorbot" } { operator t } } }
+      { "ircuser" T{ participant { nick "ircuser" } } }
+      { "voiced" T{ participant { nick "voiced" } { voice t } } } } } [
       "#factortest" <irc-channel-chat>
       "ircuser" over join-participant
       [ %add-named-chat ] keep
index 03632f41f5892f315765969f22f17f0c2017f212..adfc191cb0059776317bc328a5f1444ac2b58b65 100644 (file)
@@ -46,10 +46,10 @@ IN: irc.client.internals
     ] [ (terminate-irc) ] if* ;
 
 : (do-login) ( -- )
-     irc>
-     [ profile>> password>> [ /PASS ] when* ]
-     [ nick>> /LOGIN ]
-     bi ;
+    irc>
+    [ profile>> password>> [ /PASS ] when* ]
+    [ nick>> /LOGIN ]
+    bi ;
 
 GENERIC: initialize-chat ( chat -- )
 M: irc-chat         initialize-chat drop ;
index a6a52131adb837e6983546b9cae5406a9337bdae..9136c2aedfb81ba63e6f6838940629af6246cb85 100644 (file)
@@ -59,7 +59,7 @@ M: participant-mode >log-line
             [ " has set mode " % mode>> % ]
             [ " to " % parameter>> % ]
         } cleave
-     ] "" make ;
+    ] "" make ;
 
 M: nick >log-line
     [ "* " % dup sender>> % " is now known as " % nickname>> % ] "" make ;
index 2fbc3c59db91bd88de2890c07a3321c86d9c41a0..9f8bb6ad6a6b0abccc870c073be3d68b426ae806 100644 (file)
@@ -5,67 +5,67 @@ USING: accessors irc.messages irc.messages.parser tools.test ;
 ! { "someuser" } [ "someuser!n=user@some.where" parse-name ] unit-test
 
 { T{ privmsg
-     { line ":someuser!n=user@some.where PRIVMSG #factortest :hi" }
-     { prefix  "someuser!n=user@some.where" }
-     { command "PRIVMSG" }
-     { parameters { "#factortest" } }
-     { trailing "hi" }
-     { target "#factortest" }
-     { text "hi" }
-     { sender "someuser" } } }
+    { line ":someuser!n=user@some.where PRIVMSG #factortest :hi" }
+    { prefix  "someuser!n=user@some.where" }
+    { command "PRIVMSG" }
+    { parameters { "#factortest" } }
+    { trailing "hi" }
+    { target "#factortest" }
+    { text "hi" }
+    { sender "someuser" } } }
 [ ":someuser!n=user@some.where PRIVMSG #factortest :hi"
   string>irc-message f >>timestamp ] unit-test
 
 { T{ join
-     { line ":someuser!n=user@some.where JOIN :#factortest" }
-     { prefix "someuser!n=user@some.where" }
-     { command "JOIN" }
-     { parameters { } }
-     { trailing "#factortest" }
-     { sender "someuser" }
-     { channel "#factortest" } } }
+    { line ":someuser!n=user@some.where JOIN :#factortest" }
+    { prefix "someuser!n=user@some.where" }
+    { command "JOIN" }
+    { parameters { } }
+    { trailing "#factortest" }
+    { sender "someuser" }
+    { channel "#factortest" } } }
 [ ":someuser!n=user@some.where JOIN :#factortest"
   string>irc-message f >>timestamp ] unit-test
 
 { T{ mode
-     { line ":ircserver.net MODE #factortest +ns" }
-     { prefix "ircserver.net" }
-     { command "MODE" }
-     { parameters { "#factortest" "+ns" } }
-     { name "#factortest" }
-     { mode "+ns" } } }
+    { line ":ircserver.net MODE #factortest +ns" }
+    { prefix "ircserver.net" }
+    { command "MODE" }
+    { parameters { "#factortest" "+ns" } }
+    { name "#factortest" }
+    { mode "+ns" } } }
 [ ":ircserver.net MODE #factortest +ns"
   string>irc-message f >>timestamp ] unit-test
 
 { T{ mode
-     { line ":ircserver.net MODE #factortest +o someuser" }
-     { prefix "ircserver.net" }
-     { command "MODE" }
-     { parameters { "#factortest" "+o" "someuser" } }
-     { name "#factortest" }
-     { mode "+o" }
-     { parameter "someuser" } } }
+    { line ":ircserver.net MODE #factortest +o someuser" }
+    { prefix "ircserver.net" }
+    { command "MODE" }
+    { parameters { "#factortest" "+o" "someuser" } }
+    { name "#factortest" }
+    { mode "+o" }
+    { parameter "someuser" } } }
 [ ":ircserver.net MODE #factortest +o someuser"
   string>irc-message f >>timestamp ] unit-test
 
 { T{ nick
-     { line ":someuser!n=user@some.where NICK :someuser2" }
-     { prefix "someuser!n=user@some.where" }
-     { command "NICK" }
-     { parameters  { } }
-     { trailing "someuser2" }
-     { sender "someuser" }
-     { nickname "someuser2" } } }
+    { line ":someuser!n=user@some.where NICK :someuser2" }
+    { prefix "someuser!n=user@some.where" }
+    { command "NICK" }
+    { parameters  { } }
+    { trailing "someuser2" }
+    { sender "someuser" }
+    { nickname "someuser2" } } }
 [ ":someuser!n=user@some.where NICK :someuser2"
   string>irc-message f >>timestamp ] unit-test
 
 { T{ rpl-nickname-in-use
-     { line ":ircserver.net 433 * nickname :Nickname is already in use" }
-     { prefix "ircserver.net" }
-     { command "433" }
-     { parameters { "*" "nickname" } }
-     { name "nickname" }
-     { trailing "Nickname is already in use" } } }
+    { line ":ircserver.net 433 * nickname :Nickname is already in use" }
+    { prefix "ircserver.net" }
+    { command "433" }
+    { parameters { "*" "nickname" } }
+    { name "nickname" }
+    { trailing "Nickname is already in use" } } }
 [ ":ircserver.net 433 * nickname :Nickname is already in use"
   string>irc-message f >>timestamp ] unit-test
 
index c82fcb35de19ad166f07c82624a66e9361c126de..204e2ac87e8d9d8f5d18b2c1b6bd0eb2e68937ca 100644 (file)
@@ -32,7 +32,7 @@ SYMBOL: cache
     <sequence-parser> ;
 
 : skip-after ( sequence-parser seq -- sequence-parser )
-   [ take-until-sequence* drop ] curry keep ;
+    [ take-until-sequence* drop ] curry keep ;
 
 : skip-after* ( sequence-parser object -- sequence-parser )
     [ take-until-object drop ] curry keep ;
index c4b6a2d2e155341fc4dd38e4674530122fe66111..3e820de6b3cfd1e2f6e4527c176748129271cdb5 100644 (file)
@@ -45,15 +45,15 @@ LOGIC-VARS: S E N D M O R Y A L G B T
 
 :: S-and-M-can't-be-zero ( seq -- seq' )
     seq [| hash |
-         1 hash N1 of lnth 0 = not
-         1 hash N2 of lnth 0 = not and
+        1 hash N1 of lnth 0 = not
+        1 hash N2 of lnth 0 = not and
     ] filter ;
 
 :: print-puzzle ( hash-array -- )
     hash-array
     [| hash |
-     "   " printf hash N1 of [ "%d " printf ] leach nl
-     "+  " printf hash N2 of [ "%d " printf ] leach nl
-     "----------------" printf nl
-     "   " printf hash N  of [ "%d " printf ] leach nl nl
+        "   " printf hash N1 of [ "%d " printf ] leach nl
+        "+  " printf hash N2 of [ "%d " printf ] leach nl
+        "----------------" printf nl
+        "   " printf hash N  of [ "%d " printf ] leach nl nl
     ] each ;
index 53d28e06cd5aa0569fa9493dd988e0609536a224..5992cdc4c09be5aa711a23b6b49cf1773e5ee90a 100644 (file)
@@ -224,8 +224,8 @@ SYMBOLS: big small a-big-cat a-small-cat ;
 { { H{ { X Tom } } } } [ { cato X } query ] unit-test
 {
     {
-       H{ { X big } { Y a-big-cat } }
-       H{ { X small } { Y a-small-cat } }
+        H{ { X big } { Y a-big-cat } }
+        H{ { X small } { Y a-small-cat } }
     }
 } [ { cato X Y } query ] unit-test
 {
index 39d86d885e5abeb48af2ae03a1987f7028590cd7..22c3f073f2040e4bccbe33e0cb00483b99daba5e 100644 (file)
@@ -379,8 +379,8 @@ SYMBOL: *anonymouse-var-no*
         { [ dup __ = ] [ drop proxy-var-for-'__' ] }
         { [ dup sequence? ] [ [ replace-'__' ] map ] }
         { [ dup tuple? ] [
-              [ tuple-slots [ replace-'__' ] map ]
-              [ class-of slots>tuple ] bi ] }
+            [ tuple-slots [ replace-'__' ] map ]
+            [ class-of slots>tuple ] bi ] }
         [ ]
     } cond ;
 
@@ -570,7 +570,7 @@ PRIVATE>
             ] when
         ] loop
     ] with-return
-     bindings dup {
+    bindings dup {
         [ empty? ]
         [ first keys empty? ]
     } 1|| [ drop success? ] [ >array ] if ;
@@ -627,7 +627,7 @@ PRIVATE>
                         d-env env-clear
                         f
                     ] if
-               ] [ f ] if
+                ] [ f ] if
             ] each-until
         ] if
     ] if ;
index 46fe13a8b4c083a658518cb560c016d50a207de2..05d4e39320dc75ce3a28d875880f2ebc2cd0d380 100644 (file)
@@ -19,8 +19,8 @@ IN: mason
 
 : build-loop-error ( error callstack -- )
     fatal-error-body
-     "build loop error"
-     email-fatal ;
+    "build loop error"
+    email-fatal ;
 
 : build-loop ( -- )
     [
index 9cdd1e327098f141b95fbff1919f82e098cf3cb8..82a31b88547850082f0d1e77b91253fb9e3ad97f 100644 (file)
@@ -5,9 +5,9 @@ IN: mason.report.tests
 { 0 0 } [ [ ] with-report ] must-infer-as
 
 : verify-report ( -- )
-     [ t ] [ "report" file-exists? ] unit-test
-     [ ] [ "report" file>xml drop ] unit-test
-     [ ] [ "report" delete-file ] unit-test ;
+    [ t ] [ "report" file-exists? ] unit-test
+    [ ] [ "report" file>xml drop ] unit-test
+    [ ] [ "report" delete-file ] unit-test ;
 
 "builds" temp-file builds-dir [
     [
index 9cebe85df88088f0db57c1a556dca720f98a865a..00483f26c033d74e2a1b09c517cd1d49395f7681 100644 (file)
@@ -13,7 +13,7 @@ CONSTANT: identity-transform T{ affine-transform f
                                 { 1.0 0.0 } { 0.0 1.0 } { 0.0 0.0 } }
 
 : axes ( a -- a' )
-     [ x>> ] [ y>> ] bi { 0.0 0.0 } <affine-transform> ;
+    [ x>> ] [ y>> ] bi { 0.0 0.0 } <affine-transform> ;
 
 : a.v ( a v -- v )
     [ [ x>> ] [ first  ] bi* v*n ]
index b125861c83aa538c60aca88091d951b757569643..409a921f834ea15796b8c6658e389d9aa85cfa3e 100644 (file)
@@ -33,10 +33,10 @@ MACRO: ordinary-op ( word -- o )
 ! This allows a set of partial derivatives each to be evaluated
 ! at the same point.
 MACRO: duals>nweave ( n -- quot )
-   dup dup dup
-   '[
-       [ [ epsilon-part>> ] _ napply ] _ nkeep
-       [ ordinary-part>> ] _ napply _ nweave
+    dup dup dup
+    '[
+        [ [ epsilon-part>> ] _ napply ] _ nkeep
+        [ ordinary-part>> ] _ napply _ nweave
     ] ;
 
 MACRO: chain-rule ( word -- e )
index 3a2cec1609bd988c43cde93c761e9c181318e3e9..0bb5932d424d5401c57d017147626fc8712a65a6 100644 (file)
@@ -32,43 +32,43 @@ HELP: momentum
 
 HELP: biweekly
 { $values
-     { "x" number }
-     { "y" number }
+    { "x" number }
+    { "y" number }
 }
 { $description "Divides a number by the number of two week periods in a year." } ;
 
 HELP: daily-360
 { $values
-     { "x" number }
-     { "y" number }
+    { "x" number }
+    { "y" number }
 }
 { $description "Divides a number by the number of days in a 360-day year." } ;
 
 HELP: daily-365
 { $values
-     { "x" number }
-     { "y" number }
+    { "x" number }
+    { "y" number }
 }
 { $description "Divides a number by the number of days in a 365-day year." } ;
 
 HELP: monthly
 { $values
-     { "x" number }
-     { "y" number }
+    { "x" number }
+    { "y" number }
 }
 { $description "Divides a number by the number of months in a year." } ;
 
 HELP: semimonthly
 { $values
-     { "x" number }
-     { "y" number }
+    { "x" number }
+    { "y" number }
 }
 { $description "Divides a number by the number of half-months in a year. Note that biweekly has two more periods than semimonthly." } ;
 
 HELP: weekly
 { $values
-     { "x" number }
-     { "y" number }
+    { "x" number }
+    { "y" number }
 }
 { $description "Divides a number by the number of weeks in a year." } ;
 
index 79a5ba335acb43785e9b50c0bc29fcf10a256227..2cb3a02997d56ccd26b6bbb7aacfe3199b199a5d 100644 (file)
@@ -9,15 +9,17 @@ IN: math.text.french
 DEFER: basic
 
 CONSTANT: literals
-    H{ { 0 "zéro" } { 1 "un" } { 2 "deux" } { 3 "trois" } { 4 "quatre" }
-       { 5 "cinq" } { 6 "six" } { 7 "sept" } { 8 "huit" } { 9 "neuf" }
-       { 10 "dix" } { 11 "onze" } { 12 "douze" } { 13 "treize" }
-       { 14 "quatorze" } { 15 "quinze" } { 16 "seize" } { 17 "dix-sept" }
-       { 18 "dix-huit" } { 19 "dix-neuf" } { 20 "vingt" } { 30 "trente" }
-       { 40 "quarante" } { 50 "cinquante" } { 60 "soixante" }
-       { 71 "soixante et onze" } { 80 "quatre-vingts" }
-       { 81 "quatre-vingt-un" }
-       { 100 "cent" } { 1000 "mille" } }
+    H{
+        { 0 "zéro" } { 1 "un" } { 2 "deux" } { 3 "trois" } { 4 "quatre" }
+        { 5 "cinq" } { 6 "six" } { 7 "sept" } { 8 "huit" } { 9 "neuf" }
+        { 10 "dix" } { 11 "onze" } { 12 "douze" } { 13 "treize" }
+        { 14 "quatorze" } { 15 "quinze" } { 16 "seize" } { 17 "dix-sept" }
+        { 18 "dix-huit" } { 19 "dix-neuf" } { 20 "vingt" } { 30 "trente" }
+        { 40 "quarante" } { 50 "cinquante" } { 60 "soixante" }
+        { 71 "soixante et onze" } { 80 "quatre-vingts" }
+        { 81 "quatre-vingt-un" }
+        { 100 "cent" } { 1000 "mille" }
+    }
 
 MEMO: units ( -- seq ) ! up to 10^99
     { "m" "b" "tr" "quadr" "quint" "sext" "sept" "oct"
index 24bc7b349b7fb8f12252f4285a37f536e69ef4f9..9e5eb04784be6282b24933465f13019420367d40 100644 (file)
@@ -8,7 +8,7 @@ MAIN-WINDOW: merger-window {
         { title "Merging" }
         { pref-dim { 300 220 } }
     }
-   vertical <track>
+    vertical <track>
     { "From:" "To:" } f <model> f <model> 2array
     [
         [
index 230081f620c316f695095a8eddfe9a46702e9dc8..295851daf327c53362a454718932404c42d78a37 100644 (file)
@@ -265,7 +265,7 @@ CONSTANT: compass-directions H{
             ] [
                 string>number "of %s" sprintf
             ] if* "runway %s visibility %s" sprintf
-         ] dip " ft" " meters" ? append
+        ] dip " ft" " meters" ? append
     ] dip append ;
 
 : (parse-weather) ( str -- str' )
index 27cee7d13b6f5800ff4b1c6d241f29d5361cf64f..5e296132f1c2421bb800e2047a9033421bb1e23f 100644 (file)
@@ -13,7 +13,7 @@ TUPLE: illusion < arrow ;
     <illusion> dup activate-model ;
 
 : backtalk ( value object -- )
-   [ quot>> [undo] call( a -- b ) ] [ model>> ] bi set-model ;
+    [ quot>> [undo] call( a -- b ) ] [ model>> ] bi set-model ;
 
 M: illusion update-model ( model -- )
     [ [ value>> ] keep backtalk ] with-locked-model ;
index 4082e930cdc98ca7318f96faf12c0d1217281b12..1ca076af754c81addead44ae73579272f48d69f7 100644 (file)
@@ -142,7 +142,7 @@ C: <dquote> dquote
     "%" expect-and-span >string
     [ take-tag-name >string ] dip-1up append
     [ "%>" slice-til-string [ >string ] bi@ ] dip-2up
-     <embedded-language> ;
+    <embedded-language> ;
 
 : read-open-tag ( n string opening -- n' string tag )
     [ take-tag-name ] dip-1up
index 435aaedd6968f8b0d4daaa4bbd3ededd8c1c74d1..3096bd2a1f6ff51d0861e80768053aba103fa61a 100644 (file)
@@ -37,7 +37,7 @@ MACRO:: read-double-matched ( open-ch -- quot: ( n string tag ch -- n' string se
             ] }
             [ [ tag openstr2 n string ] dip long-opening-mismatch ]
         } case
-     ] ;
+    ] ;
 
 : read-double-matched-paren ( n string tag ch -- n' string seq ) CHAR: ( read-double-matched ;
 : read-double-matched-bracket ( n string tag ch -- n' string seq ) CHAR: [ read-double-matched ;
index 2b54684760adb3fa9846bbaa6f7a84e247f71ccd..f13c35102caa67a4a34b9cdd1c558ed2465723c5 100644 (file)
@@ -11,7 +11,7 @@ ERROR: not-a-source-path path ;
     no-prefixes [ name>> ] map ;
 
 CONSTANT: core-broken-vocabs
-   {
+    {
         "vocabs.loader.test.a"
         "vocabs.loader.test.b"
         "vocabs.loader.test.c"
index b3b80d29b3b6289860b779e29b3ca639a53a5f31..2918b249342973cc58e3c4d7a21b21db78ae8217 100644 (file)
@@ -127,14 +127,16 @@ CONSTANT: DOC-LARGE H{ { "base_url" "http://www.example.com/test-me" }
 
 : large-doc-prepare ( -- quot: ( i -- doc ) )
     large-doc drop
-    [ "x" DOC-LARGE clone [ set-at ] keep
-       [ now "access-time" ] dip
-       [ set-at ] keep ] ;
+    [
+        "x" DOC-LARGE clone [ set-at ] keep
+        [ now "access-time" ] dip
+        [ set-at ] keep
+    ] ;
 
 : (insert) ( quot: ( i -- doc ) collection -- )
     [ trial-size ] 2dip
     '[ _ call( i -- doc ) [ _ ] dip
-       result get lasterror>> [ save ] [ save-unsafe ] if ] each-integer ;
+    result get lasterror>> [ save ] [ save-unsafe ] if ] each-integer ;
 
 : (prepare-batch) ( i b quot: ( i -- doc ) -- batch-seq )
     [ [ * ] keep 1 range boa ] dip
@@ -143,7 +145,7 @@ CONSTANT: DOC-LARGE H{ { "base_url" "http://www.example.com/test-me" }
 : (insert-batch) ( quot: ( i -- doc ) collection -- )
     [ trial-size batch-size [ / ] keep ] 2dip
     '[ _ _ (prepare-batch) [ _ ] dip
-       result get lasterror>> [ save ] [ save-unsafe ] if
+        result get lasterror>> [ save ] [ save-unsafe ] if
     ] each-integer ;
 
 : bchar ( boolean -- char )
@@ -202,12 +204,14 @@ CONSTANT: DOC-LARGE H{ { "base_url" "http://www.example.com/test-me" }
 
 : find-range ( quot -- quot: ( -- ) )
     drop
-    [ trial-size batch-size /i
-       collection-name
-       trial-size 2 / "$gt" H{ } clone [ set-at ] keep
-       [ trial-size 2 / batch-size + "$lt" ] dip [ set-at ] keep
-       "x" H{ } clone [ set-at ] keep
-       '[ _ _ <query> (find) ] times ] ;
+    [
+        trial-size batch-size /i
+        collection-name
+        trial-size 2 / "$gt" H{ } clone [ set-at ] keep
+        [ trial-size 2 / batch-size + "$lt" ] dip [ set-at ] keep
+        "x" H{ } clone [ set-at ] keep
+        '[ _ _ <query> (find) ] times
+    ] ;
 
 : batch ( -- )
     result [ t >>batch ] change ; inline
@@ -245,11 +249,17 @@ CONSTANT: DOC-LARGE H{ { "base_url" "http://www.example.com/test-me" }
     '[ <result> _ call( options -- time ) print-result ] with-scope ;
 
 : [bench-quot] ( feat-seq op-word -- quot: ( doc-word -- ) )
-    '[ _ swap _
-       '[ [ [ _ execute( -- quot ) ] dip
-          [ execute( -- ) ] each _ execute( quot -- quot ) gc
-            benchmark ] with-result ] each
-       print-separator ] ;
+    '[
+        _ swap _
+        '[
+            [
+                [ _ execute( -- quot ) ] dip
+                [ execute( -- ) ] each _ execute( quot -- quot ) gc
+                benchmark 
+            ] with-result
+        ] each
+        print-separator
+    ] ;
 
 : run-serialization-bench ( doc-word-seq feat-seq -- )
     "Serialization Tests" print
index f93f489d20efb4a5d8e93b4a215ad2826fbc871b..f48a13139b431567feb23de762c737446d8b6086 100644 (file)
@@ -96,9 +96,10 @@ CONSTRUCTOR: <mdb-connection> mdb-connection ( instance -- mdb-connection ) ;
     check-ok [ drop ] [ throw ] if ; inline
 
 : authenticate-connection ( mdb-connection -- )
-   [ mdb-connection get instance>> auth?
-     [ perform-authentication ] when
-   ] with-connection ; inline
+    [
+        mdb-connection get instance>> auth?
+        [ perform-authentication ] when
+    ] with-connection ; inline
 
 : open-connection ( mdb-connection node -- mdb-connection )
     [ >>node ] [ address>> ] bi
@@ -109,24 +110,24 @@ CONSTRUCTOR: <mdb-connection> mdb-connection ( instance -- mdb-connection ) ;
     "admin.$cmd" H{ { "ismaster" 1 } } send-query-1result ;
 
 : split-host-str ( hoststr -- host port )
-   ":" split [ first ] [ second string>number ] bi ; inline
+    ":" split [ first ] [ second string>number ] bi ; inline
 
 : eval-ismaster-result ( node result -- )
-   [
+    [
         [ "ismaster" ] dip at dup string?
         [ >integer 1 = ] when >>master? drop
-   ] [
+    ] [
         [ "remote" ] dip at
         [ split-host-str <inet> f <mdb-node> >>remote ] when* drop
     ] 2bi ;
 
 : check-node ( mdb node --  )
-   [ <mdb-connection> &dispose ] dip
-   [ [ open-connection ] [ 3drop f ] recover ] keep swap
-   [ [ get-ismaster eval-ismaster-result ] with-connection ] [ drop ] if* ;
+    [ <mdb-connection> &dispose ] dip
+    [ [ open-connection ] [ 3drop f ] recover ] keep swap
+    [ [ get-ismaster eval-ismaster-result ] with-connection ] [ drop ] if* ;
 
 : nodelist>table ( seq -- assoc )
-   [ [ master?>> ] keep 2array ] map >hashtable ;
+    [ [ master?>> ] keep 2array ] map >hashtable ;
 
 PRIVATE>
 
@@ -154,7 +155,7 @@ ERROR: mongod-connection-error address message ;
     ] recover ;
 
 : mdb-close ( mdb-connection -- )
-     [ [ dispose ] when* f ] change-handle drop ;
+    [ [ dispose ] when* f ] change-handle drop ;
 
 M: mdb-connection dispose
-     mdb-close ;
+    mdb-close ;
index cd9fb587f7dd708aa6e0d74a6448851bca558d06..cfc0a84829055fc356624414c99a7f87448145f4 100644 (file)
@@ -109,9 +109,9 @@ SYNTAX: r/
     H{ } clone [ set-at ] keep ;
 
 : <mdb> ( db host port -- mdb )
-   <inet> t [ <mdb-node> ] keep
-   H{ } clone [ set-at ] keep <mdb-db>
-   [ verify-nodes ] keep ;
+    <inet> t [ <mdb-node> ] keep
+    H{ } clone [ set-at ] keep <mdb-db>
+    [ verify-nodes ] keep ;
 
 GENERIC: create-collection ( name/collection -- )
 
@@ -155,9 +155,11 @@ M: mdb-collection create-collection ( collection -- )
 
 : (ensure-collection) ( collection mdb-instance -- collection )
     ensure-collection-map [ dup ] dip key?
-    [ ] [ [ ensure-valid-collection-name ]
-          [ create-collection ]
-          [ ] tri ] if ;
+    [ ] [
+        [ ensure-valid-collection-name ]
+        [ create-collection ]
+        [ ] tri
+    ] if ;
 
 : reserved-namespace? ( name -- ? )
     [ "$cmd" = ] [ "system" head? ] bi or ;
index 8e5fe548e4d72866e9270bd0502ded3394d79a86..3c499b0fd9e2729004f765942ecc78c69f09395f 100644 (file)
@@ -112,9 +112,9 @@ PRIVATE>
 
 : write-insert-message ( message -- )
     [
-       [ flags>> write-int32 ]
-       [ collection>> write-cstring ]
-       [ objects>> [ assoc>stream ] each ] tri
+        [ flags>> write-int32 ]
+        [ collection>> write-cstring ]
+        [ objects>> [ assoc>stream ] each ] tri
     ] (write-message) ; inline
 
 : write-update-message ( message -- )
@@ -150,9 +150,9 @@ PRIVATE>
 
 : write-killcursors-message ( message -- )
     [
-       [ flags>> write-int32 ]
-       [ cursors#>> write-int32 ]
-       [ cursors>> [ write-longlong ] each ] tri
+        [ flags>> write-int32 ]
+        [ cursors#>> write-int32 ]
+        [ cursors>> [ write-longlong ] each ] tri
     ] (write-message) ; inline
 
 PRIVATE>
index 1d7f25bd0c03c82050cb0bc972a39858066981e7..1c8c94af646246775f4cf6f0ac4983023c184ae5 100644 (file)
@@ -34,19 +34,19 @@ CONSTANT: MDB_USER_KEY       "mongodb_user_key"
 CONSTANT: MDB_COLLECTION_MAP "mongodb_collection_map"
 
 MEMO: id-slot ( class -- slot )
-   MDB_USER_KEY word-prop
-   dup [ drop "_id" ] unless ;
+    MDB_USER_KEY word-prop
+    dup [ drop "_id" ] unless ;
 
 PRIVATE>
 
 : >toid ( object -- toid )
-   [ id>> ] [ class-of id-slot ] bi <toid> ;
+    [ id>> ] [ class-of id-slot ] bi <toid> ;
 
 M: mdb-persistent id>> ( object -- id )
-   dup class-of id-slot reader-word execute( object -- id ) ;
+    dup class-of id-slot reader-word execute( object -- id ) ;
 
 M: mdb-persistent id<< ( object value -- )
-   over class-of id-slot writer-word execute( object value -- ) ;
+    over class-of id-slot writer-word execute( object value -- ) ;
 
 
 
@@ -98,7 +98,7 @@ GENERIC: mdb-index-map ( tuple -- sequence )
 PRIVATE>
 
 : MDB_ADDON_SLOTS ( -- slots )
-   { $[ MDB_OID_FIELD MDB_META_FIELD ] } ; inline
+    { $[ MDB_OID_FIELD MDB_META_FIELD ] } ; inline
 
 : link-class ( collection class -- )
     over classes>>
@@ -161,7 +161,7 @@ GENERIC: <mdb-tuple-collection> ( name -- mdb-tuple-collection )
 M: string <mdb-tuple-collection>
     collection-map [ ] [ key? ] 2bi
     [ at ] [ [ mdb-tuple-collection new dup ] 2dip
-             [ [ >>name ] keep ] dip set-at ] if ; inline
+    [ [ >>name ] keep ] dip set-at ] if ; inline
 M: mdb-tuple-collection <mdb-tuple-collection> ;
 M: mdb-collection <mdb-tuple-collection>
     [ name>> <mdb-tuple-collection> ] keep
index fd4216ca3ce8926e0a57d987d4aa9e0cf0d9c00d..c0dcc5dbbb1608a940ca424fe1b906ec6147b056 100644 (file)
@@ -15,18 +15,18 @@ DEFER: assoc>tuple
 <PRIVATE
 
 : mdbinfo>tuple-class ( tuple-info -- class )
-   [ first ] keep second lookup-word ; inline
+    [ first ] keep second lookup-word ; inline
 
 : tuple-instance ( tuple-info -- instance )
     mdbinfo>tuple-class new ; inline
 
 : prepare-assoc>tuple ( assoc -- tuple keylist mirror assoc )
-   [ tuple-info tuple-instance dup
-     <mirror> [ keys ] keep ] keep swap ; inline
+    [ tuple-info tuple-instance dup
+    <mirror> [ keys ] keep ] keep swap ; inline
 
 : make-tuple ( assoc -- tuple )
-   prepare-assoc>tuple
-   '[ dup _ at assoc>tuple swap _ set-at ] each ; inline recursive
+    prepare-assoc>tuple
+    '[ dup _ at assoc>tuple swap _ set-at ] each ; inline recursive
 
 : at+ ( value key assoc -- value )
     2dup key?
@@ -37,73 +37,74 @@ DEFER: assoc>tuple
     [ assoc? not ] [ drop f ] if  ; inline
 
 : add-storable ( assoc ns toid -- )
-   [ [ H{ } clone ] dip object-map get at+ ] dip
-   swap set-at ; inline
+    [ [ H{ } clone ] dip object-map get at+ ] dip
+    swap set-at ; inline
 
 : write-field? ( tuple key value -- ? )
-   pick mdb-persistent? [
-      { [ 2nip not ]
-        [ drop transient-slot? ] } 3|| not ] [ 3drop t ] if ; inline
+    pick mdb-persistent?
+    [ { [ 2nip not ] [ drop transient-slot? ] } 3|| not ]
+    [ 3drop t ] if ; inline
 
 TUPLE: cond-value value quot ;
 
 CONSTRUCTOR: <cond-value> cond-value ( value quot -- cond-value ) ;
 
 : write-mdb-persistent ( value quot -- value' )
-   over [ call( tuple -- assoc ) ] dip
-   [ [ tuple-collection name>> ] [ >toid ] bi ] keep
-   [ add-storable ] dip
-   [ tuple-collection name>> ] [ id>> ] bi <dbref> ;
+    over [ call( tuple -- assoc ) ] dip
+    [ [ tuple-collection name>> ] [ >toid ] bi ] keep
+    [ add-storable ] dip
+    [ tuple-collection name>> ] [ id>> ] bi <dbref> ;
 
 : write-field ( value quot -- value' )
-   <cond-value> {
-      { [ dup value>> mdb-special-value? ] [ value>> ]  }
-      { [ dup value>> mdb-persistent? ]
-        [ [ value>> ] [ quot>> ] bi write-mdb-persistent ] }
-      { [ dup value>> data-tuple? ]
-        [ [ value>> ] [ quot>> ] bi ( tuple -- assoc ) call-effect ]  }
-      { [ dup value>> [ hashtable? ] [ linked-assoc? ] bi or ]
-        [ [ value>> ] [ quot>> ] bi '[ _ write-field ] assoc-map ] }
-      [ value>> ]
-   } cond ;
+    <cond-value> {
+        { [ dup value>> mdb-special-value? ] [ value>> ]  }
+        { [ dup value>> mdb-persistent? ]
+          [ [ value>> ] [ quot>> ] bi write-mdb-persistent ] }
+        { [ dup value>> data-tuple? ]
+          [ [ value>> ] [ quot>> ] bi ( tuple -- assoc ) call-effect ]  }
+        { [ dup value>> [ hashtable? ] [ linked-assoc? ] bi or ]
+          [ [ value>> ] [ quot>> ] bi '[ _ write-field ] assoc-map ] }
+        [ value>> ]
+    } cond ;
 
 : write-tuple-fields ( mirror tuple assoc quot: ( tuple -- assoc ) -- )
-   swap ! m t q q a
-   '[ _ 2over write-field?
-      [ _ write-field swap _ set-at ]
-      [ 2drop ] if
-   ] assoc-each ;
+    swap ! m t q a
+    '[
+        _ 2over write-field?
+        [ _ write-field swap _ set-at ]
+        [ 2drop ] if
+    ] assoc-each ;
 
 : prepare-assoc ( tuple -- assoc mirror tuple assoc )
-   H{ } clone swap [ <mirror> ] keep pick ; inline
+    H{ } clone swap [ <mirror> ] keep pick ; inline
 
 : with-object-map ( quot: ( -- ) -- store-assoc )
-   [ H{ } clone dup object-map ] dip with-variable ; inline
+    [ H{ } clone dup object-map ] dip with-variable ; inline
 
 : (tuple>assoc) ( tuple -- assoc )
-   [ prepare-assoc [ tuple>assoc ] write-tuple-fields ] keep
-   over set-tuple-info ; inline
+    [ prepare-assoc [ tuple>assoc ] write-tuple-fields ] keep
+    over set-tuple-info ; inline
 
 PRIVATE>
 
 GENERIC: tuple>storable ( tuple -- storable )
 
 : ensure-oid ( tuple -- tuple )
-   dup id>> [ <oid> >>id ] unless ; inline
+    dup id>> [ <oid> >>id ] unless ; inline
 
 M: mdb-persistent tuple>storable ( mdb-persistent -- object-map )
-   '[ _ [ tuple>assoc ] write-mdb-persistent drop ] with-object-map ; inline
+    '[ _ [ tuple>assoc ] write-mdb-persistent drop ] with-object-map ; inline
 
 M: mdb-persistent tuple>assoc ( tuple -- assoc )
-   ensure-oid (tuple>assoc) ;
+    ensure-oid (tuple>assoc) ;
 
 M: tuple tuple>assoc ( tuple -- assoc )
-   (tuple>assoc) ;
+    (tuple>assoc) ;
 
 M: tuple tuple>selector ( tuple -- assoc )
     prepare-assoc [ tuple>selector ] write-tuple-fields ;
 
 : assoc>tuple ( assoc -- tuple )
-   dup assoc? [
+    dup assoc? [
         [ dup tuple-info? [ make-tuple ] when ] ignore-errors
-   ] when ; inline recursive
+    ] when ; inline recursive
index 8a569d19f8225bfc567e71fbf80019abdcc3bd1d..cd983c854035b9d3f319d4cdbfbef7e5beee9703 100644 (file)
@@ -16,7 +16,7 @@ PRIVATE>
     [ MDB_TUPLE_INFO ] dip at ; inline
 
 : set-tuple-info ( tuple assoc -- )
-   [ <tuple-info> MDB_TUPLE_INFO ] dip set-at ; inline
+    [ <tuple-info> MDB_TUPLE_INFO ] dip set-at ; inline
 
 : tuple-info? ( assoc -- ? )
-   [ MDB_TUPLE_INFO ] dip key? ;
+    [ MDB_TUPLE_INFO ] dip key? ;
index 8ec6cba96453a394197d6813a4cf5dd426025c89..1ddc358cbb501b185ea0840158f8e8cab36f60cb 100644 (file)
@@ -21,18 +21,19 @@ SYNTAX: MDBTUPLE:
 : ensure-table ( class -- )
     tuple-collection
     [ create-collection ]
-    [ [ mdb-index-map values ] keep
-      '[ _ name>> >>ns ensure-index ] each
+    [
+        [ mdb-index-map values ] keep
+        '[ _ name>> >>ns ensure-index ] each
     ] bi ;
 
 : ensure-tables ( classes -- )
     [ ensure-table ] each ;
 
 : drop-table ( class -- )
-      tuple-collection
-      [ [ mdb-index-map values ] keep
-        '[ _ name>> swap name>> drop-index ] each ]
-      [ name>> drop-collection ] bi ;
+    tuple-collection
+    [ [ mdb-index-map values ] keep
+    '[ _ name>> swap name>> drop-index ] each ]
+    [ name>> drop-collection ] bi ;
 
 : recreate-table ( class -- )
     [ drop-table ]
@@ -45,15 +46,17 @@ DEFER: tuple>query
 GENERIC: id-selector ( object -- selector )
 
 M: toid id-selector
-   [ value>> ] [ key>> ] bi associate ; inline
+    [ value>> ] [ key>> ] bi associate ; inline
 
 M: mdb-persistent id-selector
-   >toid id-selector ;
+    >toid id-selector ;
 
 : (save-tuples) ( collection assoc -- )
-   swap '[ [ _ ] 2dip
-           [ id-selector ] dip
-           <update> >upsert update ] assoc-each ; inline
+    swap '[
+        [ _ ] 2dip
+        [ id-selector ] dip
+        <update> >upsert update
+    ] assoc-each ; inline
 
 : prepare-tuple-query ( tuple/query -- query )
     dup mdb-query-msg? [ tuple>query ] unless ;
@@ -73,32 +76,32 @@ PRIVATE>
     update-tuple ;
 
 : insert-tuple ( tuple -- )
-   [ tuple-collection name>> ]
-   [ tuple>assoc ] bi
-   save ;
+    [ tuple-collection name>> ]
+    [ tuple>assoc ] bi
+    save ;
 
 : delete-tuple ( tuple -- )
-   [ tuple-collection name>> ] keep
-   id-selector <delete> delete ;
+    [ tuple-collection name>> ] keep
+    id-selector <delete> delete ;
 
 : delete-tuples ( seq -- )
     [ delete-tuple ] each ;
 
 : tuple>query ( tuple -- query )
-   [ tuple-collection name>> ] keep
-   tuple>selector <query> ;
+    [ tuple-collection name>> ] keep
+    tuple>selector <query> ;
 
 : select-tuple ( tuple/query -- tuple/f )
-   prepare-tuple-query
-   find-one [ assoc>tuple ] [ f ] if* ;
+    prepare-tuple-query
+    find-one [ assoc>tuple ] [ f ] if* ;
 
 : select-tuples ( tuple/query -- cursor tuples/f )
-   prepare-tuple-query
-   find [ assoc>tuple ] map ;
+    prepare-tuple-query
+    find [ assoc>tuple ] map ;
 
 : select-all-tuples ( tuple/query -- tuples )
-   prepare-tuple-query
-   find-all [ assoc>tuple ] map ;
+    prepare-tuple-query
+    find-all [ assoc>tuple ] map ;
 
 : count-tuples ( tuple/query -- n )
-   dup mdb-query-msg? [ tuple>query ] unless count ;
+    dup mdb-query-msg? [ tuple>query ] unless count ;
index f7bfa4d87c00bdcc1917e4de007cb246ee16605e..71607392dac5cbc84f69721dbf6a010c7aa2f86b 100644 (file)
@@ -115,14 +115,14 @@ FUNCTION: SQLRETURN SQLNumResultCols ( SQLHSTMT statementHandle, SQLSMALLINT* co
 FUNCTION: SQLRETURN SQLDescribeCol ( SQLHSTMT statementHandle, SQLSMALLINT columnNumber, SQLCHAR* columnName, SQLSMALLINT bufferLength, SQLSMALLINT* nameLengthPtr, SQLSMALLINT* dataTypePtr, SQLUINTEGER* columnSizePtr, SQLSMALLINT* decimalDigitsPtr, SQLSMALLINT* nullablePtr )
 FUNCTION: SQLRETURN SQLGetData ( SQLHSTMT statementHandle, SQLUSMALLINT columnNumber, SQLSMALLINT targetType, SQLPOINTER targetValuePtr, SQLINTEGER bufferLength, SQLINTEGER* strlen_or_indPtr )
 FUNCTION: SQLRETURN SQLGetDiagRec (
-     SQLSMALLINT     HandleType,
-     SQLHANDLE       Handle,
-     SQLSMALLINT     RecNumber,
-     SQLCHAR*       SQLState,
-     SQLINTEGER*    NativeErrorPtr,
-     SQLCHAR*       MessageText,
-     SQLSMALLINT     BufferLength,
-     SQLSMALLINT*   TextLengthPtr )
+    SQLSMALLINT     HandleType,
+    SQLHANDLE       Handle,
+    SQLSMALLINT     RecNumber,
+    SQLCHAR*       SQLState,
+    SQLINTEGER*    NativeErrorPtr,
+    SQLCHAR*       MessageText,
+    SQLSMALLINT     BufferLength,
+    SQLSMALLINT*   TextLengthPtr )
 
 : alloc-handle ( type parent -- handle )
     f void* <ref> [ SQLAllocHandle ] keep swap succeeded? [
index 7099a5571bf04e931e417acf79b655ff1cf53314..39b367fb01ad37b26ab99ab7b3fd01e108d1b430 100644 (file)
@@ -40,7 +40,7 @@ IN: project-euler.009
     sum pickd = [ next-pq 2dup abc (ptriplet) ] unless ;
 
 : ptriplet ( target -- triplet )
-   3 1 { 3 4 5 } (ptriplet) abc nip ;
+    3 1 { 3 4 5 } (ptriplet) abc nip ;
 
 PRIVATE>
 
index e5e94560d6a653efbf4bbf75b2b816f253326021..20db49716f57761b139b3d726101967ebea1edd6 100644 (file)
@@ -72,7 +72,7 @@ SYMBOL: sieve
     sieve get length 1 - over <range> ;
 
 : increment-counts ( n -- )
-     multiples [ sieve get [ 1 + ] change-nth ] each ;
+    multiples [ sieve get [ 1 + ] change-nth ] each ;
 
 : prime-tau-upto ( limit -- seq )
     dup initialize-sieve 2 swap [a..b) [
@@ -80,7 +80,7 @@ SYMBOL: sieve
     ] each sieve get ;
 
 : consecutive-under ( limit m -- n/f )
-   [ prime-tau-upto ] [ dup <repetition> ] bi* subseq-index ;
+    [ prime-tau-upto ] [ dup <repetition> ] bi* subseq-index ;
 
 PRIVATE>
 
index 73b6325b2cb56df1a9339f58b965cb7643d601d8..6670d9bc8568a5c97ad9b7ead847b20c5d2834eb 100644 (file)
@@ -54,7 +54,7 @@ SYMBOL: large-families
 : save-family ( family -- )
     dup family-count get at 8 = [ large-families get adjoin ] [ drop ] if ;
 : increment-family ( family -- )
-   family-count get inc-at ;
+    family-count get inc-at ;
 : handle-family ( family -- )
     [ increment-family ] [ save-family ] bi ;
 
index 07e45fff3d50c69fb93e49af624bca19a6112801..9ab0c388694cfc6a00c654f607f8b057f296d560 100644 (file)
@@ -60,8 +60,8 @@ IN: project-euler.070
 PRIVATE>
 
 : euler070 ( -- answer )
-   likely-prime-factors 2 all-combinations [ n-and-phi ] map
-   [ fit-requirements? ] filter minimum-ratio ;
+    likely-prime-factors 2 all-combinations [ n-and-phi ] map
+    [ fit-requirements? ] filter minimum-ratio ;
 
 ! [ euler070 ] 100 ave-time
 ! 379 ms ave run time - 1.15 SD (100 trials)
index 36fae686d5c747aaf89e54119bfd14bed28bf1e2..0426935d32f30d4490b4088bcb2d6117018b1809 100644 (file)
@@ -45,7 +45,7 @@ IN: project-euler.099
 PRIVATE>
 
 : euler099 ( -- answer )
-     source-099 solve ;
+    source-099 solve ;
 
 ! [ euler099 ] 100 ave-time
 ! 16 ms ave run timen - 1.67 SD (100 trials)
index 229c62ec7456b3365000acfa0bf0b6e449f94eaf..c3282555a42b148636c8e5cd3d476dedf5ce9953 100644 (file)
@@ -41,7 +41,7 @@ IN: project-euler.116
     [ length swap - 1 - ] keep ?nth 0 or ;
 
 : next ( colortile seq -- )
-     [ nth* ] [ last + ] [ push ] tri ;
+    [ nth* ] [ last + ] [ push ] tri ;
 
 : ways ( length colortile -- permutations )
     V{ 1 } clone [ [ next ] 2curry times ] keep last 1 - ;
index 45777ae56aba66981401d0657a19f67953f320d6..9ee666ac8a039bd4a34b0c0107c9bf69b16577e1 100644 (file)
@@ -63,7 +63,7 @@ DEFER: (euler151)
         { { 0 1 0 0 } [ { 0 0 1 1 } (euler151) 1 + ] }
         { { 1 0 0 0 } [ { 0 1 1 1 } (euler151) 1 + ] }
         [ [ dup length <iota> [ pick-sheet ] with map-sum ] [ sum ] bi / ]
-     } case ] cache ;
+    } case ] cache ;
 
 : euler151 ( -- answer )
     [
index e8ba19939e65423cc4904155a87b30bf72b44bc2..2b86badded0bd7359075181e169470826745628f 100644 (file)
@@ -48,8 +48,8 @@ punycode.private tools.test urls ;
 
     ! (D) Czech:
     {
-       "\u{0050}\u{0072}\u{006F}\u{010D}\u{0070}\u{0072}\u{006F}\u{0073}\u{0074}\u{011B}\u{006E}\u{0065}\u{006D}\u{006C}\u{0075}\u{0076}\u{00ED}\u{010D}\u{0065}\u{0073}\u{006B}\u{0079}"
-       "Proprostnemluvesky-uyb24dma41a"
+        "\u{0050}\u{0072}\u{006F}\u{010D}\u{0070}\u{0072}\u{006F}\u{0073}\u{0074}\u{011B}\u{006E}\u{0065}\u{006D}\u{006C}\u{0075}\u{0076}\u{00ED}\u{010D}\u{0065}\u{0073}\u{006B}\u{0079}"
+        "Proprostnemluvesky-uyb24dma41a"
     }
 
     ! (E) Hebrew:
@@ -110,7 +110,7 @@ punycode.private tools.test urls ;
     ! (N) Hello-Another-Way-<sorezore><no><basho>
     {
         "\u{0048}\u{0065}\u{006C}\u{006C}\u{006F}\u{002D}\u{0041}\u{006E}\u{006F}\u{0074}\u{0068}\u{0065}\u{0072}\u{002D}\u{0057}\u{0061}\u{0079}\u{002D}\u{305D}\u{308C}\u{305E}\u{308C}\u{306E}\u{5834}\u{6240}"
-       "Hello-Another-Way--fc4qua05auwb3674vfr0b"
+        "Hello-Another-Way--fc4qua05auwb3674vfr0b"
     }
 
     ! (O) <hitotsu><yane><no><shita>2
@@ -121,14 +121,14 @@ punycode.private tools.test urls ;
 
     ! (P) Maji<de>Koi<suru>5<byou><mae>
     {
-       "\u{004D}\u{0061}\u{006A}\u{0069}\u{3067}\u{004B}\u{006F}\u{0069}\u{3059}\u{308B}\u{0035}\u{79D2}\u{524D}"
-       "MajiKoi5-783gue6qz075azm5e"
+        "\u{004D}\u{0061}\u{006A}\u{0069}\u{3067}\u{004B}\u{006F}\u{0069}\u{3059}\u{308B}\u{0035}\u{79D2}\u{524D}"
+        "MajiKoi5-783gue6qz075azm5e"
     }
 
     ! (Q) <pafii>de<runba>
     {
-       "\u{30D1}\u{30D5}\u{30A3}\u{30FC}\u{0064}\u{0065}\u{30EB}\u{30F3}\u{30D0}"
-       "de-jg4avhby1noc0d"
+        "\u{30D1}\u{30D5}\u{30A3}\u{30FC}\u{0064}\u{0065}\u{30EB}\u{30F3}\u{30D0}"
+        "de-jg4avhby1noc0d"
     }
 
     ! (R) <sono><supiido><de>
@@ -139,7 +139,7 @@ punycode.private tools.test urls ;
 
     ! (S) -> $1.00 <-
     {
-       "\u{002D}\u{003E}\u{0020}\u{0024}\u{0031}\u{002E}\u{0030}\u{0030}\u{0020}\u{003C}\u{002D}"
+        "\u{002D}\u{003E}\u{0020}\u{0024}\u{0031}\u{002E}\u{0030}\u{0030}\u{0020}\u{003C}\u{002D}"
         "-> $1.00 <--"
     }
 } [
index 2d9b98ad4d26a85662df1c11059ee622f56dc294..575cc8558fb5d93e3d24d8d7eb50b2e20d25d2b9 100644 (file)
@@ -176,7 +176,7 @@ SYMBOL: mesh-picking-frame
                 tri
                 bary [ first3
                        "Barycenter: %3.2f %3.2f %3.2f" sprintf 10 ypos 45 + 10 BLACK draw-text
-                     ] when*
+                    ] when*
             ] [ drop ] if
 
             "Use Mouse to Move Camera" 10 screen-height 20 - 10 GRAY draw-text
index 2e8417d6129cab23d64a6a25bd8df3d32b064559..ad44bbd1c0cef457bfa9fd713fd5e74ac18f683f 100644 (file)
@@ -25,7 +25,7 @@ IN: readline
 
 : set-completion ( quot -- )
     [
-       '[
+        '[
             [ @ [ utf8 malloc-string ] [ f ] if* ]
             readline.ffi:rl_compentry_func_t
         ] ( -- alien ) define-temp
index 806d201f860281827d1a09be3b6b63ea588e0436..7a57f76cb6542e4068c7bb8dbe5bae71dbe54f5b 100644 (file)
@@ -37,7 +37,7 @@ TUPLE: animated-label < label-control reversed alarm ;
 animated-label
     H{
         { T{ button-down } [ [ not ] change-reversed drop ] }
-     } set-gestures
+    } set-gestures
 
 M: animated-label graft*
   [ [ [ model>> ] [ reversed>> ] bi update-model ] curry 400 milliseconds every ] keep
index 3e84fa2e9e2d28a1be3a1da81d84947b54980d71..04b3e10caa07b79ee3cd7a5288534747760613e4 100644 (file)
@@ -58,7 +58,7 @@ TUPLE: bull ;
     } cond ;
 
 : add-to-score ( arr -- score )
-   <score> [ bull? [ inc-bulls ] [ inc-cows ] if ] reduce ;
+    <score> [ bull? [ inc-bulls ] [ inc-cows ] if ] reduce ;
 
 : check-win ( score -- ? ) bulls>> 4 = ;
 
index a5d3780c72d8311a819013f678c1b900cc1ecb44..cd508420344b3479b657ea1f968dfafd9de324e6 100644 (file)
@@ -42,7 +42,7 @@ IN: rosetta-code.dice7
 
 ! Output a random integer 1..5.
 : dice5 ( -- x )
-   5 [1..b] random ;
+    5 [1..b] random ;
 
 ! Output a random integer 1..7 using dice5 as randomness source.
 : dice7 ( -- x )
index 7a26e51ae070ef8295824f06b6a5a1db33d9e736..cb7891a59443f5b06815ead923d862b872674638 100644 (file)
@@ -25,7 +25,7 @@ IN: rosetta-code.inverted-index
     '[ _ [ _ add-to-file-list ] change-at ] each ;
 
 : (index-files) ( files index -- )
-   [ [ [ file-words ] keep ] dip swap add-to-index ] curry each ;
+    [ [ [ file-words ] keep ] dip swap add-to-index ] curry each ;
 
 : index-files ( files -- index )
     H{ } clone [ (index-files) ] keep ;
index 6425ce9b2e35cbca938e653a292898acedf889da..02f88fc037bf76c240d43523d92025a626ab45cb 100644 (file)
@@ -65,6 +65,6 @@ M: metronome-gadget pref-dim* drop { 200 200 } ;
     "Example: metronome " write print-defaults flush ;
 
 : metronome-main ( -- )
-     [ [ metronome-cmdline metronome-ui ] [ drop metronome-usage 1 exit ] recover ] with-ui ;
+    [ [ metronome-cmdline metronome-ui ] [ drop metronome-usage 1 exit ] recover ] with-ui ;
 
 MAIN: metronome-main
index f55981122e07c7a3bcea039a42400eabda1c61e0..99952f1928980fedda345967ee23d0677c18e43a 100644 (file)
@@ -10,13 +10,13 @@ IN: rosetta-code.n-queens
 
 :: safe?  ( board q -- ? )
     [let q board nth :> x
-      q <iota> [
-         x swap
-         [ board nth ] keep
-         q swap -
-           [ + = not ]
-           [ - = not ] 3bi and
-      ] all?
+        q <iota> [
+            x swap
+            [ board nth ] keep
+            q swap -
+            [ + = not ]
+            [ - = not ] 3bi and
+        ] all?
     ] ;
 
 : solution? ( board -- ? )
index 5e75afa7eb0b5ef0ab411384080d0475ffbcbc06..7fc4f3cbbd0ebab46be9be9843d51350925f25dd 100644 (file)
@@ -36,8 +36,8 @@ IN: rosetta-code.y-combinator
 :: almost-ack ( quot -- quot )
     [
         {
-          { [ over zero? ] [ nip 1 + ] }
-          { [ dup zero? ] [ [ 1 - ] [ drop 1 ] bi* quot call ] }
-          [ [ drop 1 - ] [ 1 - quot call ] 2bi quot call ]
+            { [ over zero? ] [ nip 1 + ] }
+            { [ dup zero? ] [ [ 1 - ] [ drop 1 ] bi* quot call ] }
+            [ [ drop 1 - ] [ 1 - quot call ] 2bi quot call ]
         } cond
     ] ;
index a02097947d61d2f1c0d98aab13cbcb786b6960aa..f20e99505b95c9edb3812a626aec7dc8e1136ee7 100644 (file)
@@ -169,7 +169,7 @@ HELP: second?
 
 HELP: subseq*
 { $values
-     { "from" integer } { "to" integer } { "seq" sequence } { "subseq" sequence } }
+    { "from" integer } { "to" integer } { "seq" sequence } { "subseq" sequence } }
 { $description "Outputs a new sequence using positions relative to one or both ends of the sequence. Positive values describes offsets relative to the start of the sequence, negative values relative to the end. Values of " { $link f } " for " { $snippet "from" } " indicate the beginning of the sequence, while an " { $link f } " for " { $snippet "to" } " indicates the end of the sequence." }
 { $notes "Both " { $snippet "from" } " and " { $snippet "to" } " can be safely set to values outside the length of the sequence. Also, " { $snippet "from" } " can safely reference a smaller or greater index position than " { $snippet "to" } "." }
 { $examples
@@ -216,7 +216,7 @@ HELP: unsurround
 
 HELP: start-all
 { $values
-     { "seq" sequence } { "subseq" sequence } { "indices" sequence } }
+    { "seq" sequence } { "subseq" sequence } { "indices" sequence } }
 { $description "Outputs the starting indices of the non-overlapping occurrences of " { $snippet "subseq" } " in " { $snippet "seq" } "." }
 { $examples
     { $example "USING: prettyprint sequences.extras ;"
index 149f7814e168723c3c6bae82274293e26a06d9fb..09e7a9acada5ae7731cc2e8b2f4bcdfcf5b5b9a7 100644 (file)
@@ -374,7 +374,7 @@ PRIVATE>
     ] if ; inline
 
 : unsurround ( newseq seq2 seq3 -- seq1 )
-   [ ?head drop ] [ ?tail drop ] bi* ;
+    [ ?head drop ] [ ?tail drop ] bi* ;
 
 : >string-list ( seq -- seq' )
     [ "\"" 1surround ] map "," join ;
@@ -484,7 +484,7 @@ PRIVATE>
     [ [ dup ] compose [ ] ] dip produce-as nip ; inline
 
 : loop>array ( ... quot: ( ... -- ... obj/f ) -- ... array )
-   { } loop>sequence ; inline
+    { } loop>sequence ; inline
 
 : zero-loop>sequence ( ... quot: ( ... n -- ... obj/f ) exemplar -- ... seq )
     [ 0 ] [ '[ _ keep 1 + swap ] ] [ loop>sequence ] tri* nip ; inline
index 60b24c56446bd41e12943b7790c4e1ce479a2f74..8868fdb3fa8acdc95dbfc01e16057fbf363e4e99 100644 (file)
@@ -14,74 +14,72 @@ IN: smalltalk.compiler.tests
 
 { 2 1 } [
     T{ ast-block f
-       { "a" "b" }
-       {
-           T{ ast-message-send f
-              T{ ast-name f "a" }
-              "+"
-              { T{ ast-name f "b" } }
-           }
-       }
+        { "a" "b" }
+        {
+            T{ ast-message-send f
+                T{ ast-name f "a" }
+                "+"
+                { T{ ast-name f "b" } }
+            }
+        }
     } test-inference
 ] unit-test
 
 { 3 1 } [
     T{ ast-block f
-       { "a" "b" "c" }
-       {
-           T{ ast-assignment f
-              T{ ast-name f "a" }
-              T{ ast-message-send f
-                 T{ ast-name f "c" }
-                 "+"
-                 { T{ ast-name f "b" } }
-              }
-           }
-           T{ ast-message-send f
-              T{ ast-name f "b" }
-              "blah:"
-              { 123.456 }
-           }
-           T{ ast-return f T{ ast-name f "c" } }
-       }
+        { "a" "b" "c" }
+        {
+            T{ ast-assignment f
+                T{ ast-name f "a" }
+                T{ ast-message-send f
+                    T{ ast-name f "c" }
+                    "+"
+                    { T{ ast-name f "b" } }
+                }
+            }
+            T{ ast-message-send f
+                T{ ast-name f "b" }
+                "blah:"
+                { 123.456 }
+            }
+            T{ ast-return f T{ ast-name f "c" } }
+        }
     } test-inference
 ] unit-test
 
 { 0 1 } [
     T{ ast-block f
-       { }
-       { }
-       {
-           T{ ast-message-send
-              { receiver 1 }
-              { selector "to:do:" }
-              { arguments
-                {
-                    10
-                    T{ ast-block
-                       { arguments { "i" } }
-                       { body
-                         {
-                             T{ ast-message-send
-                                { receiver
-                                  T{ ast-name { name "i" } }
+        { }
+        { }
+        {
+            T{ ast-message-send
+                { receiver 1 }
+                { selector "to:do:" }
+                { arguments
+                    {
+                        10
+                        T{ ast-block
+                            { arguments { "i" } }
+                            { body
+                                {
+                                    T{ ast-message-send
+                                        { receiver T{ ast-name { name "i" } } }
+                                        { selector "print" }
+                                    }
                                 }
-                                { selector "print" }
-                             }
-                         }
-                       }
+                            }
+                        }
                     }
                 }
-              }
-           }
+            }
        }
     } test-inference
 ] unit-test
 
 { "a" } [
     T{ ast-block f
-       { }
-       { }
-       { { T{ ast-block { body { "a" } } } } }
+        { }
+        { }
+        { { T{ ast-block { body { "a" } } } } }
     } test-compilation call first call
 ] unit-test
index ab5eb12be9086a4bfef0515d797f69b94894edb0..be384b67e9a4a6f603047edd3f7385f6e997dfef 100644 (file)
@@ -55,22 +55,22 @@ test         = <foreign parse-smalltalk Literal>
 
 {
     T{ ast-block
-       { arguments { "i" } }
-       { body
-         {
-             T{ ast-message-send
-                { receiver T{ ast-name { name "i" } } }
-                { selector "print" }
-             }
-         }
-       }
+        { arguments { "i" } }
+        { body
+            {
+                T{ ast-message-send
+                    { receiver T{ ast-name { name "i" } } }
+                    { selector "print" }
+                }
+            }
+        }
     }
 }
 [ "[ :i | i print ]" test-Literal ] unit-test
 
 {
     T{ ast-block
-       { body { 5 self } }
+        { body { 5 self } }
     }
 }
 [ "[5. self]" test-Literal ] unit-test
@@ -141,50 +141,50 @@ test         = <foreign parse-smalltalk Expression>
 
 {
     T{ ast-message-send
-       { receiver
-         T{ ast-message-send
-            { receiver
-              T{ ast-message-send
-                 { receiver 1 }
-                 { selector "<" }
-                 { arguments { 10 } }
-              }
-            }
-            { selector "ifTrue:ifFalse:" }
-            { arguments
-              {
-                  T{ ast-block { body { "HI" } } }
-                  T{ ast-block { body { "BYE" } } }
-              }
+        { receiver
+            T{ ast-message-send
+                { receiver
+                T{ ast-message-send
+                    { receiver 1 }
+                    { selector "<" }
+                    { arguments { 10 } }
+                }
+                }
+                { selector "ifTrue:ifFalse:" }
+                { arguments
+                {
+                    T{ ast-block { body { "HI" } } }
+                    T{ ast-block { body { "BYE" } } }
+                }
+                }
             }
-         }
-       }
-       { selector "print" }
+        }
+        { selector "print" }
     }
 }
 [ "((1 < 10) ifTrue: [ 'HI' ] ifFalse: [ 'BYE' ]) print" test-Expression ] unit-test
 
 {
     T{ ast-cascade
-       { receiver 12 }
-       { messages
-         {
-           T{ ast-message f "sqrt" }
-           T{ ast-message f "+" { 2 } }
-         }
-       }
+        { receiver 12 }
+        { messages
+            {
+            T{ ast-message f "sqrt" }
+            T{ ast-message f "+" { 2 } }
+            }
+        }
     }
 }
 [ "12 sqrt; + 2" test-Expression ] unit-test
 
 {
     T{ ast-cascade
-       { receiver T{ ast-message-send f 12 "sqrt" } }
-       { messages
-         {
-           T{ ast-message f "+" { 1 } }
-           T{ ast-message f "+" { 2 } }
-         }
+        { receiver T{ ast-message-send f 12 "sqrt" } }
+        { messages
+            {
+                T{ ast-message f "+" { 1 } }
+                T{ ast-message f "+" { 2 } }
+            }
        }
     }
 }
@@ -192,12 +192,12 @@ test         = <foreign parse-smalltalk Expression>
 
 {
     T{ ast-cascade
-       { receiver T{ ast-message-send f 12 "squared" } }
-       { messages
-         {
-           T{ ast-message f "to:" { 100 } }
-           T{ ast-message f "sqrt" }
-         }
+        { receiver T{ ast-message-send f 12 "squared" } }
+        { messages
+            {
+                T{ ast-message f "to:" { 100 } }
+                T{ ast-message f "sqrt" }
+            }
        }
     }
 }
@@ -214,14 +214,14 @@ test         = <foreign parse-smalltalk Expression>
 
 {
     T{ ast-message-send
-       { receiver
-         T{ ast-message-send
-            { receiver { T{ ast-block { body { "a" } } } } }
-            { selector "at:" }
-            { arguments { 0 } }
-         }
-       }
-       { selector "value" }
+        { receiver
+            T{ ast-message-send
+                { receiver { T{ ast-block { body { "a" } } } } }
+                { selector "at:" }
+                { arguments { 0 } }
+            }
+        }
+        { selector "value" }
     }
 }
 [ "(#(['a']) at: 0) value" test-Expression ] unit-test
index 0aec267b439a4b84cb5c4367befd9850bb3f0f4c..3159c0027a24f969b8a8df25c84cc9124b988c4e 100644 (file)
@@ -572,7 +572,7 @@ FUNCTION: int crypto_secretstream_xchacha20poly1305_pull (
     uchar* c, ulonglong clen,
     uchar* ad, ulonglong adlen )
 FUNCTION: void crypto_secretstream_xchacha20poly1305_rekey (
-     crypto_secretstream_xchacha20poly1305_state* state )
+    crypto_secretstream_xchacha20poly1305_state* state )
 
 ! sodium_runtime_H
 FUNCTION: int sodium_runtime_has_neon ( )
index 4e0aef80896bcd5a58062effde695f499ccf82b5..f1ed395423fa7d3b2978eee5820a419d4ae5700a 100644 (file)
@@ -5,13 +5,13 @@ IN: spider
 
 HELP: <spider>
 { $values
-     { "base" "a string or url" }
-     { "spider" spider } }
+    { "base" "a string or url" }
+    { "spider" spider } }
 { $description "Creates a new web spider with a given base url." } ;
 
 HELP: run-spider
 { $values
-     { "spider" spider } }
+    { "spider" spider } }
 { $description "Runs a spider until completion. See the " { $subsection "spider-tutorial" } " for a complete description of the tuple slots that affect how thet spider works." } ;
 
 ARTICLE: "spider-tutorial" "Spider tutorial"
index 52f6403fa1110099c63a2cc9ba42f8e319fc06aa..2eee8a35cd33022f5d89e721cf3683d7d8131bf3 100644 (file)
@@ -13,17 +13,17 @@ IN: tools.wc
 <PRIVATE
 
 : aligned-slices ( seq -- head tail )
-   dup length 0xf unmask cut-slice ; inline
+    dup length 0xf unmask cut-slice ; inline
 
 : count-characters ( -- n )
     0 [ length + ] each-block-slice ; inline
 
 : count-lines ( -- n )
     0 [
-       aligned-slices [
-           uchar-16 cast-array swap
-           [ CHAR: \n uchar-16-with v= vcount + >fixnum ] reduce
-       ] [ [ CHAR: \n = ] count + >fixnum ] bi*
+        aligned-slices [
+            uchar-16 cast-array swap
+            [ CHAR: \n uchar-16-with v= vcount + >fixnum ] reduce
+        ] [ [ CHAR: \n = ] count + >fixnum ] bi*
     ] each-block-slice ; inline
 
 : wc-stdin ( -- n )
index 3ee169ba38f1255122322bbf238c8606e8ae25f0..f89dbe6480d155b55c96bb6cd54e95d9b4529d0e 100644 (file)
@@ -243,7 +243,7 @@ CONSTANT: test-tree2 TREE{
 
 
 { V{ { 10 10 } { 15 10 } { 20 20 }
-     { 15 20 } { 30 30 } { 35 30 }
+    { 15 20 } { 30 30 } { 35 30 }
 } } [
     TREE{ { 20 20 } { 10 10 } { 30 30 } } clone V{ } clone [
         dupd 6 [ [
index 617024a3dd07635e05149da974beed9d17db99d0..32bc6c29ac827d7f0b8782502fc68b7cbb9adcd0 100644 (file)
@@ -190,8 +190,8 @@ M: tree >alist
             to-key node right>> node-right?
             [ end-comparator (node>subalist-right) ]
             [
-                 [ from-key ] 2dip start-comparator
-                 end-comparator (node>subalist)
+                [ from-key ] 2dip start-comparator
+                end-comparator (node>subalist)
             ] if
         ] when
     ] when ; inline recursive
index 27ddc58afe624ed50f18aca09a93df87453265e4..741b2cfe73faa33678011679a83685d9142094dc 100644 (file)
@@ -173,7 +173,7 @@ M: comment entity-url
 
         { blogs "new-post" } >>template
 
-     <protected>
+    <protected>
         "make a new blog post" >>description ;
 
 : authorize-author ( author -- )
@@ -222,7 +222,7 @@ M: comment entity-url
             "author" value posts-by-url <redirect>
         ] >>submit
 
-     <protected>
+    <protected>
         "delete a blog post" >>description ;
 
 : <delete-author-action> ( -- action )
@@ -240,7 +240,7 @@ M: comment entity-url
             "author" value posts-by-url <redirect>
         ] >>submit
 
-     <protected>
+    <protected>
         "delete a blog post" >>description ;
 
 : validate-comment ( -- )
@@ -265,7 +265,7 @@ M: comment entity-url
             [ insert-tuple ] [ entity-url <redirect> ] bi
         ] >>submit
 
-     <protected>
+    <protected>
         "make a comment" >>description ;
 
 : <delete-comment-action> ( -- action )
index 3074915bb04599bfda52c3ebb122bb606c3d687d..0fcd0ce80b638717b29243955da68efc04f9d11d 100644 (file)
@@ -266,7 +266,7 @@ M: revision feed-entry-url id>> revision-url ;
             URL" $wiki" <redirect>
         ] >>submit
 
-     <protected>
+    <protected>
         "delete wiki articles" >>description
         { can-delete-wiki-articles? } >>capabilities ;
 
index 05a0bbd5eda7b8b59511b4dbadad7f79d8c07ddb..45ded6361a702ec9c12d98ecb257507084d1df09 100644 (file)
@@ -46,7 +46,7 @@ TUPLE: wordlet-game secret-word chances guesses ;
 
 : reamining-chars ( game -- chars )
     [ secret-word>> ] [ guesses>> ] bi [
-       guess>chars
+        guess>chars
     ] with map concat members
     [ background of ] assoc-map
     [ drop ] collect-value-by
index e3574cd95b837541895c66ae67e4c50c803ff633..9556d523120a01ca847da1b17edd3e26466e60ac 100644 (file)
@@ -609,9 +609,9 @@ STRUCT: yaml_node_pair_t
             { style yaml_mapping_style_t }
         ;
   UNION-STRUCT: node_data
-     { scalar scalar_node_data }
-     { sequence sequence_node_data }
-     { mapping mapping_node_data }
+    { scalar scalar_node_data }
+    { sequence sequence_node_data }
+    { mapping mapping_node_data }
   ;
 
 STRUCT: yaml_node_t
index 8b30a629d7025fcf6795e5a92c6cf1054fe06261..23e2b65b3495e75e11accd89de2a8f7849e0946a 100644 (file)
@@ -419,16 +419,16 @@ CONSTANT: construct-merge-obj {
     H{ { "x" 0 } { "y" 2 } } :> LEFT
     H{ { "r" 10 } } :> BIG
     H{ { "r" 1 } } :> SMALL
- {
-    CENTER
-    LEFT
-    BIG
-    SMALL
-    H{ { "x" 1 } { "y" 2 } { "r" 10 } { "label" "center/big" } }
-    H{ { T{ yaml-merge } CENTER }  { "r" 10 } { "label" "center/big" } }
-    H{ { T{ yaml-merge } { CENTER BIG } } { "label" "center/big" } }
-    H{ { T{ yaml-merge } { BIG LEFT SMALL } } { "x" 1 } { "label" "center/big" } }
-} ;
   {
+        CENTER
+        LEFT
+        BIG
+        SMALL
+        H{ { "x" 1 } { "y" 2 } { "r" 10 } { "label" "center/big" } }
+        H{ { T{ yaml-merge } CENTER }  { "r" 10 } { "label" "center/big" } }
+        H{ { T{ yaml-merge } { CENTER BIG } } { "label" "center/big" } }
+        H{ { T{ yaml-merge } { BIG LEFT SMALL } } { "x" 1 } { "label" "center/big" } }
+    } ;
 
 CONSTANT: construct-merge-str "---
 - &CENTER { x: 1, 'y': 2 }
@@ -722,7 +722,7 @@ f value [
   ${ construct-value-unsafe-obj } [ $ construct-value-unsafe-obj >yaml-docs yaml-docs> ] unit-test
   ${ construct-value-safe-obj } [
     $ construct-value-str yaml-docs> [
-     dup "link with" swap [ [ scalar-value ] map ] change-at
+      dup "link with" swap [ [ scalar-value ] map ] change-at
     ] map
   ] unit-test
 ] with-variable
index 7ffb146dbc96c5468b507b4b61c5809b97e6727e..dc800dce27c10f10ef9e40a7aceff472443dd738 100644 (file)
@@ -174,7 +174,7 @@ DEFER: parse-mapping
                 ] if
             ] with-destructors
             done [ 2drop ] [
-              [ [ parser event ] dip next-complex-value ] unless ,
+                [ [ parser event ] dip next-complex-value ] unless ,
             ] if
         ] until
     ] { } make ;
@@ -205,7 +205,7 @@ M: sets:set (deref-aliases)
     [ assoc-map ] [ drop clear-assoc ] [ drop swap assoc-union! ] 2tri ; inline
 
 M: assoc (deref-aliases)
-     [ [ (deref-aliases) ] bi-curry@ bi ] withd assoc-map! ;
+    [ [ (deref-aliases) ] bi-curry@ bi ] withd assoc-map! ;
 
 : merge-values ( seq -- assoc )
     reverse [ ] [ assoc-union ] map-reduce ;
index ed85ea67a0c3845ad293cfb5568c47291261ad84..8ec374592b543981d3d6971b7a95b113dee6a322 100644 (file)
@@ -71,7 +71,7 @@ PRIVATE>
     >string " " split [ "=" split1 ] H{ } map>assoc ;
 
 : find-metadata ( lines type -- metadata i )
-   [ '[ _ head? ] find ] keep ?head drop parse-metadata swap ;
+    [ '[ _ head? ] find ] keep ?head drop parse-metadata swap ;
 
 PRIVATE>
 
index ac9f8b4d482ed0d4c11466d96b31c9ebaefd4ba2..059e975cfbb2600ad86557646405e1eaf44acb29 100644 (file)
@@ -156,11 +156,11 @@ M: windows factor-path "./factor.com" ;
         +new-group+ >>group ;
 
 : zealot-test-commands ( path -- )
-     [
+    [
         32 <iota> [
             load-and-test-command
         ] map [ try-process ] parallel-each
-     ] with-directory ;
+    ] with-directory ;
 
 : zealot-test-commands-old ( path -- )
     [
index 1fd0d878d68be2ad94d7705f5507bffe1a1f01e7..e20deb49eea036fb04595bf0d7a0a8f1ec048f4f 100644 (file)
@@ -7,11 +7,11 @@ tools.test zoneinfo ;
 
 {
     T{ raw-zone
-       { name "EST" }
-       { gmt-offset "-5:00" }
-       { rules/save "-" }
-       { format "EST" }
-       { until { } }
+        { name "EST" }
+        { gmt-offset "-5:00" }
+        { rules/save "-" }
+        { format "EST" }
+        { until { } }
     }
 } [
     "EST" find-zone