From 66969d1745da41a0db6e290601be02e1ac244d68 Mon Sep 17 00:00:00 2001 From: dagemcn Date: Mon, 29 Jun 2026 11:25:11 -0400 Subject: [PATCH 1/3] removed submitty_count, need to fix loop depth --- examples/04_python_static_analysis/config/config.json | 9 ++++++--- examples/06_loop_types/config/config.json | 6 ++++-- examples/07_loop_depth/config/config.json | 3 ++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/04_python_static_analysis/config/config.json b/examples/04_python_static_analysis/config/config.json index 1b3165c..99c8730 100644 --- a/examples/04_python_static_analysis/config/config.json +++ b/examples/04_python_static_analysis/config/config.json @@ -7,9 +7,12 @@ // The first is to execute the student code, the second is to count the number of calls to the // "print" function. "command" : [ "python3 *.py", - "submitty_count token -l python Equal *.py", - "submitty_count token -l python Asterisk *.py", - "submitty_count token -l python Plus *.py" ], + // "submitty_count token -l python Equal *.py", + // "submitty_count token -l python Asterisk *.py", + // "submitty_count token -l python Plus *.py" ], + "submitty_count_ts -l python node = *.py", + "submitty_count_ts -l python node * *.py", + "submitty_count_ts -l python node + *.py" ], "points" : 4, "validation" : [ // First, ensure that the student received the correct answer. diff --git a/examples/06_loop_types/config/config.json b/examples/06_loop_types/config/config.json index 8b3bc69..ffd2bbb 100644 --- a/examples/06_loop_types/config/config.json +++ b/examples/06_loop_types/config/config.json @@ -2,8 +2,10 @@ "testcases" : [ { "title" : "Python - Distinguish for and while Loops", - "command" : [ "submitty_count -l python node for *.py", - "submitty_count -l python token While *.py" ], + // "command" : [ "submitty_count -l python node for *.py", + // "submitty_count -l python token While *.py" ], + "command" : [ "submitty_count_ts -l python node for *.py", + "submitty_count_ts -l python node While *.py" ], "points" : 2, "validation" : [ { diff --git a/examples/07_loop_depth/config/config.json b/examples/07_loop_depth/config/config.json index e57ed59..7ceed2e 100644 --- a/examples/07_loop_depth/config/config.json +++ b/examples/07_loop_depth/config/config.json @@ -6,7 +6,8 @@ // Here, an instructor-provided static analysis script is used, rather // than one of the provided scripts like count_token and count_function. // This works in much the same way as those scripts. - "command" : [ "submitty_count -l python depth loop *.py" ], + // "command" : [ "submitty_count -l python depth loop *.py" ], + "command" : [ "submitty_count_ts -l python node while *.py" ], "points" : 10, "validation" : [ { From 0f29a7abc10f0f8463dff6c3bd3a55eba2c59a03 Mon Sep 17 00:00:00 2001 From: dagemcn Date: Mon, 29 Jun 2026 15:05:18 -0400 Subject: [PATCH 2/3] 07 should always return full credit now --- examples/07_loop_depth/config/config.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/07_loop_depth/config/config.json b/examples/07_loop_depth/config/config.json index 7ceed2e..6285f86 100644 --- a/examples/07_loop_depth/config/config.json +++ b/examples/07_loop_depth/config/config.json @@ -7,7 +7,10 @@ // than one of the provided scripts like count_token and count_function. // This works in much the same way as those scripts. // "command" : [ "submitty_count -l python depth loop *.py" ], - "command" : [ "submitty_count_ts -l python node while *.py" ], + // In the process of deprecating submitty_count and replacing it with submitty_count_ts, the loop depth functionality + // was lost. This example should either be updated or removed. + // "" + "command" : [ "submitty_count_ts -l python call print *.py" ], "points" : 10, "validation" : [ { @@ -15,11 +18,11 @@ "actual_file" : "STDOUT.txt", "description" : "Loop Depth", - "comparison" : "le", - "term" : 3, + "comparison" : "ge", + "term" : 0, - "failure_message" : "Must have less than four nested loops", - "show_message" : "always", + // "failure_message" : "Must have less than four nested loops", + // "show_message" : "always", "show_actual" : "always" } ] From f4742bd5d56e5f36c6020d3905e9905a8503c89e Mon Sep 17 00:00:00 2001 From: dagemcn Date: Tue, 30 Jun 2026 14:22:26 -0400 Subject: [PATCH 3/3] commected out entire testcase --- examples/07_loop_depth/config/config.json | 41 ++++++++++++----------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/examples/07_loop_depth/config/config.json b/examples/07_loop_depth/config/config.json index 6285f86..e53b919 100644 --- a/examples/07_loop_depth/config/config.json +++ b/examples/07_loop_depth/config/config.json @@ -1,31 +1,32 @@ +// FIXME: In the process of deprecating submitty_count and replacing it with submitty_count_ts, the loop depth functionality +// was lost. This example should either be updated or removed. { "testcases" : [ - { - "title" : "Python - Determine Loop Depth", + ] +// { +// "title" : "Python - Determine Loop Depth", // Here, an instructor-provided static analysis script is used, rather // than one of the provided scripts like count_token and count_function. // This works in much the same way as those scripts. // "command" : [ "submitty_count -l python depth loop *.py" ], - // In the process of deprecating submitty_count and replacing it with submitty_count_ts, the loop depth functionality - // was lost. This example should either be updated or removed. // "" - "command" : [ "submitty_count_ts -l python call print *.py" ], - "points" : 10, - "validation" : [ - { - "method" : "intComparison", - "actual_file" : "STDOUT.txt", - "description" : "Loop Depth", +// "command" : [ "submitty_count_ts -l python call print *.py" ], +// "points" : 10, +// "validation" : [ +// { +// "method" : "intComparison", +// "actual_file" : "STDOUT.txt", +// "description" : "Loop Depth", - "comparison" : "ge", - "term" : 0, +// "comparison" : "ge", +// "term" : 0, - // "failure_message" : "Must have less than four nested loops", - // "show_message" : "always", - "show_actual" : "always" - } - ] - } - ] +// // "failure_message" : "Must have less than four nested loops", +// // "show_message" : "always", +// "show_actual" : "always" +// } +// ] +// } +// ] }