From 42285ded0278c482506a290d3a803726c75b3ad6 Mon Sep 17 00:00:00 2001 From: Lee Spector Date: Wed, 29 Mar 2023 14:10:55 -0400 Subject: [PATCH] Remove calls to shutdown-agents --- src/docs_src/Adding_Problem.md | 3 +-- src/propeller/problems/PSB1/count_odds.cljc | 3 +-- src/propeller/problems/PSB1/grade.cljc | 3 +-- src/propeller/problems/PSB1/scrabble_score.cljc | 3 +-- src/propeller/problems/PSB1/small_or_large.cljc | 3 +-- src/propeller/problems/PSB2/basement.cljc | 3 +-- src/propeller/problems/PSB2/bouncing_balls.cljc | 3 +-- src/propeller/problems/PSB2/bowling.cljc | 3 +-- src/propeller/problems/PSB2/camel_case.cljc | 3 +-- src/propeller/problems/PSB2/dice_game.cljc | 3 +-- src/propeller/problems/PSB2/fizz_buzz.cljc | 3 +-- src/propeller/problems/PSB2/fuel_cost.cljc | 3 +-- src/propeller/problems/PSB2/gcd.cljc | 3 +-- src/propeller/problems/PSB2/luhn.cljc | 3 +-- src/propeller/problems/PSB2/middle_character.cljc | 3 +-- src/propeller/problems/PSB2/paired_digits.cljc | 3 +-- src/propeller/problems/PSB2/shopping_list.cljc | 3 +-- src/propeller/problems/PSB2/snow_day.cljc | 3 +-- src/propeller/problems/PSB2/solve_boolean.cljc | 3 +-- src/propeller/problems/PSB2/spin_words.cljc | 3 +-- src/propeller/problems/PSB2/square_digits.cljc | 3 +-- src/propeller/problems/PSB2/substitution_cipher.cljc | 3 +-- src/propeller/problems/PSB2/twitter.cljc | 3 +-- src/propeller/problems/complex_regression.cljc | 3 +-- src/propeller/problems/float_regression.cljc | 3 +-- src/propeller/problems/integer_regression.cljc | 3 +-- src/propeller/problems/simple_classification.cljc | 3 +-- src/propeller/problems/simple_regression.cljc | 3 +-- src/propeller/problems/software/number_io.cljc | 3 +-- src/propeller/problems/software/smallest.cljc | 3 +-- src/propeller/problems/string_classification.cljc | 3 +-- src/propeller/problems/valiant.cljc | 3 +-- 32 files changed, 32 insertions(+), 64 deletions(-) diff --git a/src/docs_src/Adding_Problem.md b/src/docs_src/Adding_Problem.md index 73d1651..6345f9a 100644 --- a/src/docs_src/Adding_Problem.md +++ b/src/docs_src/Adding_Problem.md @@ -116,7 +116,6 @@ instructions from `push/instructions`, input instructions, close, and constants :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) ``` \ No newline at end of file diff --git a/src/propeller/problems/PSB1/count_odds.cljc b/src/propeller/problems/PSB1/count_odds.cljc index ddc0b7e..8506eb5 100644 --- a/src/propeller/problems/PSB1/count_odds.cljc +++ b/src/propeller/problems/PSB1/count_odds.cljc @@ -74,5 +74,4 @@ :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB1/grade.cljc b/src/propeller/problems/PSB1/grade.cljc index 53b1e79..040cec5 100644 --- a/src/propeller/problems/PSB1/grade.cljc +++ b/src/propeller/problems/PSB1/grade.cljc @@ -92,5 +92,4 @@ :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB1/scrabble_score.cljc b/src/propeller/problems/PSB1/scrabble_score.cljc index a60f7da..6ecc7a0 100644 --- a/src/propeller/problems/PSB1/scrabble_score.cljc +++ b/src/propeller/problems/PSB1/scrabble_score.cljc @@ -143,5 +143,4 @@ :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB1/small_or_large.cljc b/src/propeller/problems/PSB1/small_or_large.cljc index 9b4adc7..389811a 100644 --- a/src/propeller/problems/PSB1/small_or_large.cljc +++ b/src/propeller/problems/PSB1/small_or_large.cljc @@ -75,5 +75,4 @@ :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/basement.cljc b/src/propeller/problems/PSB2/basement.cljc index 0539a3d..97b9f2d 100644 --- a/src/propeller/problems/PSB2/basement.cljc +++ b/src/propeller/problems/PSB2/basement.cljc @@ -85,5 +85,4 @@ :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/bouncing_balls.cljc b/src/propeller/problems/PSB2/bouncing_balls.cljc index 109bfdc..9c68817 100644 --- a/src/propeller/problems/PSB2/bouncing_balls.cljc +++ b/src/propeller/problems/PSB2/bouncing_balls.cljc @@ -96,5 +96,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/bowling.cljc b/src/propeller/problems/PSB2/bowling.cljc index 4f4ddb6..24a31b3 100644 --- a/src/propeller/problems/PSB2/bowling.cljc +++ b/src/propeller/problems/PSB2/bowling.cljc @@ -85,5 +85,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/camel_case.cljc b/src/propeller/problems/PSB2/camel_case.cljc index d0e5074..3949fbb 100644 --- a/src/propeller/problems/PSB2/camel_case.cljc +++ b/src/propeller/problems/PSB2/camel_case.cljc @@ -119,5 +119,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/dice_game.cljc b/src/propeller/problems/PSB2/dice_game.cljc index 18fdd4d..5330555 100644 --- a/src/propeller/problems/PSB2/dice_game.cljc +++ b/src/propeller/problems/PSB2/dice_game.cljc @@ -93,5 +93,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/fizz_buzz.cljc b/src/propeller/problems/PSB2/fizz_buzz.cljc index 82b1f9c..f331eef 100644 --- a/src/propeller/problems/PSB2/fizz_buzz.cljc +++ b/src/propeller/problems/PSB2/fizz_buzz.cljc @@ -82,5 +82,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/fuel_cost.cljc b/src/propeller/problems/PSB2/fuel_cost.cljc index f6bd42c..54e9d03 100644 --- a/src/propeller/problems/PSB2/fuel_cost.cljc +++ b/src/propeller/problems/PSB2/fuel_cost.cljc @@ -85,5 +85,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/gcd.cljc b/src/propeller/problems/PSB2/gcd.cljc index a688348..0ba421b 100644 --- a/src/propeller/problems/PSB2/gcd.cljc +++ b/src/propeller/problems/PSB2/gcd.cljc @@ -93,5 +93,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/luhn.cljc b/src/propeller/problems/PSB2/luhn.cljc index d1c448b..ac789b7 100644 --- a/src/propeller/problems/PSB2/luhn.cljc +++ b/src/propeller/problems/PSB2/luhn.cljc @@ -87,5 +87,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/middle_character.cljc b/src/propeller/problems/PSB2/middle_character.cljc index 54faba1..fee283f 100644 --- a/src/propeller/problems/PSB2/middle_character.cljc +++ b/src/propeller/problems/PSB2/middle_character.cljc @@ -83,5 +83,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/paired_digits.cljc b/src/propeller/problems/PSB2/paired_digits.cljc index 3525015..7b22443 100644 --- a/src/propeller/problems/PSB2/paired_digits.cljc +++ b/src/propeller/problems/PSB2/paired_digits.cljc @@ -84,5 +84,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/shopping_list.cljc b/src/propeller/problems/PSB2/shopping_list.cljc index 9578cad..a7702c0 100644 --- a/src/propeller/problems/PSB2/shopping_list.cljc +++ b/src/propeller/problems/PSB2/shopping_list.cljc @@ -96,5 +96,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/snow_day.cljc b/src/propeller/problems/PSB2/snow_day.cljc index 45f4acc..db46bed 100644 --- a/src/propeller/problems/PSB2/snow_day.cljc +++ b/src/propeller/problems/PSB2/snow_day.cljc @@ -98,5 +98,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/solve_boolean.cljc b/src/propeller/problems/PSB2/solve_boolean.cljc index a0ccbcc..4cb20e2 100644 --- a/src/propeller/problems/PSB2/solve_boolean.cljc +++ b/src/propeller/problems/PSB2/solve_boolean.cljc @@ -88,5 +88,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/spin_words.cljc b/src/propeller/problems/PSB2/spin_words.cljc index 60f8410..f8b360c 100644 --- a/src/propeller/problems/PSB2/spin_words.cljc +++ b/src/propeller/problems/PSB2/spin_words.cljc @@ -112,5 +112,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/square_digits.cljc b/src/propeller/problems/PSB2/square_digits.cljc index 1d557eb..bd8a9e3 100644 --- a/src/propeller/problems/PSB2/square_digits.cljc +++ b/src/propeller/problems/PSB2/square_digits.cljc @@ -85,5 +85,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/substitution_cipher.cljc b/src/propeller/problems/PSB2/substitution_cipher.cljc index fb4ba27..59d6176 100644 --- a/src/propeller/problems/PSB2/substitution_cipher.cljc +++ b/src/propeller/problems/PSB2/substitution_cipher.cljc @@ -95,5 +95,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/PSB2/twitter.cljc b/src/propeller/problems/PSB2/twitter.cljc index 0b5e832..6bc43f4 100644 --- a/src/propeller/problems/PSB2/twitter.cljc +++ b/src/propeller/problems/PSB2/twitter.cljc @@ -87,5 +87,4 @@ Source: https://arxiv.org/pdf/2106.06086.pdf" :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/complex_regression.cljc b/src/propeller/problems/complex_regression.cljc index 3f908a8..6ce4e1c 100644 --- a/src/propeller/problems/complex_regression.cljc +++ b/src/propeller/problems/complex_regression.cljc @@ -79,5 +79,4 @@ :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/float_regression.cljc b/src/propeller/problems/float_regression.cljc index 133b31a..86c7084 100644 --- a/src/propeller/problems/float_regression.cljc +++ b/src/propeller/problems/float_regression.cljc @@ -76,5 +76,4 @@ :solution-error-threshold 0.5 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/integer_regression.cljc b/src/propeller/problems/integer_regression.cljc index 88ce9b8..4595c18 100644 --- a/src/propeller/problems/integer_regression.cljc +++ b/src/propeller/problems/integer_regression.cljc @@ -79,5 +79,4 @@ :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/simple_classification.cljc b/src/propeller/problems/simple_classification.cljc index 1eaa48c..fab4a50 100644 --- a/src/propeller/problems/simple_classification.cljc +++ b/src/propeller/problems/simple_classification.cljc @@ -95,5 +95,4 @@ :umad-rate 0.1 :variation {:umad 1.0 :crossover 0.0} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/simple_regression.cljc b/src/propeller/problems/simple_regression.cljc index 5510eec..cc67fc4 100755 --- a/src/propeller/problems/simple_regression.cljc +++ b/src/propeller/problems/simple_regression.cljc @@ -87,5 +87,4 @@ Given inputs and outputs, find the target function." :umad-rate 0.1 :variation {:umad 0.5 :crossover 0.5} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/software/number_io.cljc b/src/propeller/problems/software/number_io.cljc index ae98f58..e3ced7c 100755 --- a/src/propeller/problems/software/number_io.cljc +++ b/src/propeller/problems/software/number_io.cljc @@ -121,5 +121,4 @@ their sum as a float, and print the result as a float. :umad-rate 0.1 :variation {:umad 0.5 :crossover 0.5} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/software/smallest.cljc b/src/propeller/problems/software/smallest.cljc index 16b8fcd..0edf0ca 100755 --- a/src/propeller/problems/software/smallest.cljc +++ b/src/propeller/problems/software/smallest.cljc @@ -112,5 +112,4 @@ takes as input four ints, computes the smallest, and prints to the screen the sm :umad-rate 0.1 :variation {:umad 0.5 :crossover 0.5} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/string_classification.cljc b/src/propeller/problems/string_classification.cljc index a92271e..7174424 100755 --- a/src/propeller/problems/string_classification.cljc +++ b/src/propeller/problems/string_classification.cljc @@ -107,5 +107,4 @@ Given a string, return true if it contains A, C, G, and T. Else return false." :umad-rate 0.1 :variation {:umad 0.5 :crossover 0.5} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args))))) diff --git a/src/propeller/problems/valiant.cljc b/src/propeller/problems/valiant.cljc index 885a638..e276ad9 100644 --- a/src/propeller/problems/valiant.cljc +++ b/src/propeller/problems/valiant.cljc @@ -93,5 +93,4 @@ :umad-rate 0.1 :variation {:umad 0.5 :crossover 0.5} :elitism false} - (apply hash-map (map #(if (string? %) (read-string %) %) args)))) - (#?(:clj shutdown-agents))) + (apply hash-map (map #(if (string? %) (read-string %) %) args)))))