From 8f8e29592a71b9facfda0f215a9ca9d9e954b4da Mon Sep 17 00:00:00 2001 From: logicmoo Date: Sat, 30 Nov 2024 07:05:36 -0800 Subject: [PATCH] bad_line_endings in metta sometimes are on purpose for testing --- tests/features/lsp_server/bad_line_endings.metta | 8 ++++---- .../corpus/soap_opera_corpus/so_convert.metta | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/features/lsp_server/bad_line_endings.metta b/tests/features/lsp_server/bad_line_endings.metta index e173d86df31..e2e40000826 100644 --- a/tests/features/lsp_server/bad_line_endings.metta +++ b/tests/features/lsp_server/bad_line_endings.metta @@ -34,9 +34,9 @@ bad2rnn bad3rnn -bad1rrn -bad2rrn -bad3rrn +bad1rrn +bad2rrn +bad3rrn bad1nnr bad2nnr @@ -49,5 +49,5 @@ bad1nnr bad1rnr bad2rnr bad3rnr - bad1rrr bad2rrr bad3rrr + bad1rrr bad2rrr bad3rrr now some tabs:one tab twotab threetab end diff --git a/tests/performance/gpt2-like/corpus/soap_opera_corpus/so_convert.metta b/tests/performance/gpt2-like/corpus/soap_opera_corpus/so_convert.metta index 799631ea005..c439e4ada7a 100644 --- a/tests/performance/gpt2-like/corpus/soap_opera_corpus/so_convert.metta +++ b/tests/performance/gpt2-like/corpus/soap_opera_corpus/so_convert.metta @@ -257,7 +257,7 @@ (writeln .) (listing (/ $F $A)) (told)) -; ; functor(P,F,A),forall(P,(writeq(P),writeln('.'))), +; ; functor(P,F,A),forall(P,(writeq(P),writeln('.'))), @@ -354,7 +354,7 @@ (save-extents $F $A) $Props) (debugln (:: (extent-props (/ $F $A)) $Props)) (set-det)) -; ; avoid division by zero ; ; adds 20 seconds and is not yet used +; ; avoid division by zero ; ; adds 20 seconds and is not yet used (= (save-extents $_ $_ (= $_ x)) @@ -458,7 +458,7 @@ (nb-setval current-scene $SceneName) (nop (format '~N:- ~q.~n' (:: (begin-scene $SceneName)))) (set-det))) -; ;listing(tmp:in_scene/1), +; ;listing(tmp:in_scene/1), (= (delist-lists (:: $X) $Y) @@ -941,7 +941,7 @@ (set-det) (nl) (nl)) -; ;listing(tmp:in_scene/1), +; ;listing(tmp:in_scene/1), (= (finish-scene) (dmsg finish-scene) (set-det)) @@ -1239,7 +1239,7 @@ (inc-flag corpus-convos) (set-flag speech-act 1) (set-det)) -; ;C = 100_000_000_000, Buffer is floor(XX/C)*C + 01111111111, ; ;ignore(add_conversation_converting(Buffer)), !, +; ;C = 100_000_000_000, Buffer is floor(XX/C)*C + 01111111111, ; ;ignore(add_conversation_converting(Buffer)), !, ; ; add_converting_str(XX,Str):- 1 is XX mod 2, !, add_converting_said(said,"Al",XX,Str),!. ; @@ -1248,7 +1248,7 @@ (= (add-converting-str $XX $Str) (must-det-l (, (string $Str) (assert-converting-v $XX string $Str) (tokenize-atom $Str $Toks) (set-det) (pretok $Toks $PreToks0) (add-punct $PreToks0 $PreToks) (text-to-tree $PreToks $Tree) (assert-converting $XX text-to-tree $Tree) (unphrasify $Tree $List) (assert-converting $XX unphrasify $List) (tree-to-toks $List $PostToks) (set-det) (assert-converting $XX tree-to-toks $PostToks) (add-converting-toks $XX $PostToks)))) -; ;writeq(sample_tree(Tree)),writeln('.'), +; ;writeq(sample_tree(Tree)),writeln('.'),