From f80091d8c986eb671e6459a774837ef96e169317 Mon Sep 17 00:00:00 2001 From: Andrew Charneski Date: Sat, 11 Nov 2023 12:06:31 -0500 Subject: [PATCH] wip --- .gitignore | 1 + .../20231111/6d857f10/messages/qwcvyd.json | 1 - .../20231111/35e2c6c5/messages/hvlauy.json | 1 - .../20231111/35e2c6c5/messages/nakgfp.json | 1 - .../20231111/35e2c6c5/messages/ozicdd.json | 1 - 5 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .skynet/CodingActorTest_KotlinInterpreter/20231111/6d857f10/messages/qwcvyd.json delete mode 100644 .skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/hvlauy.json delete mode 100644 .skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/nakgfp.json delete mode 100644 .skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/ozicdd.json diff --git a/.gitignore b/.gitignore index 2b81b062..a45cb3b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .gradle .idea .qodana +.* build openai.key .run diff --git a/.skynet/CodingActorTest_KotlinInterpreter/20231111/6d857f10/messages/qwcvyd.json b/.skynet/CodingActorTest_KotlinInterpreter/20231111/6d857f10/messages/qwcvyd.json deleted file mode 100644 index 2820e72b..00000000 --- a/.skynet/CodingActorTest_KotlinInterpreter/20231111/6d857f10/messages/qwcvyd.json +++ /dev/null @@ -1 +0,0 @@ -"

Calculate the median prime number from the range 1-1000

\n
\nfun main() {\n    val primeNumbers = mutableListOf<Int>()\n    \n    for (number in 1..1000) {\n        if (isPrime(number)) {\n            primeNumbers.add(number)\n        }\n    }\n    \n    primeNumbers.sort()\n    \n    val median = if (primeNumbers.size % 2 == 0) {\n        val middleIndex = primeNumbers.size / 2\n        (primeNumbers[middleIndex - 1] + primeNumbers[middleIndex]) / 2.0\n    } else {\n        primeNumbers[primeNumbers.size / 2].toDouble()\n    }\n    \n    println("The median prime number from the range 1-1000 is: $median")\n}\n\nfun isPrime(number: Int): Boolean {\n    if (number <= 1) {\n        return false\n    }\n    \n    for (i in 2 until number) {\n        if (number % i == 0) {\n            return false\n        }\n    }\n    \n    return true\n}\n\n
\n

\n
Running...
null
\n
11:34:55.431 [pool-12-thread-1] INFO  c.s.skyenet.heart.KotlinInterpreter - Running:\n   fun main() {\n\t    val primeNumbers = mutableListOf()\n\t    \n\t    for (number in 1..1000) {\n\t        if (isPrime(number)) {\n\t            primeNumbers.add(number)\n\t        }\n\t    }\n\t    \n\t    primeNumbers.sort()\n\t    \n\t    val median = if (primeNumbers.size % 2 == 0) {\n\t        val middleIndex = primeNumbers.size / 2\n\t        (primeNumbers[middleIndex - 1] + primeNumbers[middleIndex]) / 2.0\n\t    } else {\n\t        primeNumbers[primeNumbers.size / 2].toDouble()\n\t    }\n\t    \n\t    println(\"The median prime number from the range 1-1000 is: $median\")\n\t}\n\t\n\tfun isPrime(number: Int): Boolean {\n\t    if (number <= 1) {\n\t        return false\n\t    }\n\t    \n\t    for (i in 2 until number) {\n\t        if (number % i == 0) {\n\t            return false\n\t        }\n\t    }\n\t    \n\t    return true\n\t}\n\n11:35:04.395 [pool-12-thread-1] INFO  c.s.skyenet.actors.CodingActor - Result: null\n
" \ No newline at end of file diff --git a/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/hvlauy.json b/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/hvlauy.json deleted file mode 100644 index 625e334a..00000000 --- a/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/hvlauy.json +++ /dev/null @@ -1 +0,0 @@ -"

This is the last message

\n

Isthay isay ethay astlay essagemay

\n
" \ No newline at end of file diff --git a/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/nakgfp.json b/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/nakgfp.json deleted file mode 100644 index 5927441b..00000000 --- a/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/nakgfp.json +++ /dev/null @@ -1 +0,0 @@ -"

Recite the pledge of allegiance (in pig latin)

\n

Eciteray ethay edgeplay ofay allegianceay (inay igpay atinlay)

\n
" \ No newline at end of file diff --git a/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/ozicdd.json b/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/ozicdd.json deleted file mode 100644 index 1fcdddeb..00000000 --- a/.skynet/SimpleActorTest_SimpleActor/20231111/35e2c6c5/messages/ozicdd.json +++ /dev/null @@ -1 +0,0 @@ -"

I wish to have a longer conversation

\n

Ishway otay avehay alay ongerlay onversationcay

\n
" \ No newline at end of file