{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0001","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"2b49210605af66691ff6e8c9b19a69a4742376f16dedfa59ebc4bd8393cf1a5b"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if negative, otherwise 0, then add one. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0002","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"d72b70a400dc3832144dc2eac80cc8ce0f08324063f36287efb727f4c25f92c3"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then convert uppercase ASCII letters to lowercase. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":" code ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0003","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"7c8efc7e37e7026e7e0bcacdf4e2bbdac144ddbe07576c4b102ca139d2c3509d"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0004","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"23c3a9505cbad852e68c1326c8a06bef5b124e8a9bdd7920dd23d5a916d8d991"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0005","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"49f8fdbb60f1cae6b886307f724f98d90548d64b02a6987d9c2249bf9556504f"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then square it. Return the result.","reference_solution":null,"tests":[{"expected":49,"input":3},{"expected":144,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0006","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"5c8c1c0f14dde36a09082a2c21bbb69576eac91998e14b0ada08ea0e0b83a9b0"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"l","input":"Hello"},{"expected":"od","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0007","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"70fb97d201c8a45c58e430961079d3f3a2c4b9a44620a0c67e2a861ea05b161f"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace negative values with zero, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":10,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0008","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"72265c4be681f071a1683acb660cf1fbc7bb30f36caa876f83b45b3629e80342"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"he","input":"Hello"},{"expected":" c","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0009","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"fa0fff9d31a9821ee32d1e5a6dacccc4216da88cd7e98bfb896d27ef389c9e81"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, clamp it to the inclusive range -5 to 5, then double it. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":-4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0010","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"04fce02d3df37668b5ee9fabc2d0441dc7a0eb557350bd486baf253231362acc"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, replace each run of spaces with one space, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":" Co","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0011","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"c01d2ba720481e0e989078c165588703464f0b70d21597c1a89c949b811bab5c"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0012","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"10069624bbc5e4e1a58db9892ea51959ae2c1942957071fd44543ea745a266a8"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"OLLEH","input":"Hello"},{"expected":" EDOC ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0013","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"ef7ed5ce16f609c6cbab57c3b2a39f31823aeb26cc1eea5ddeb91d055acee073"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0014","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"d3aea9cc9e4a27c3e9bac6582ec1b9f9405e860b2a5062e845937c1d8909d0f6"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"ll","input":"Hello"},{"expected":"d ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0015","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"ade7b55151527a3deee5ca1434bee8d379e3bb237dd779de03319398cf7fce4a"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0016","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"6f25c0be7e0f9c5b43ec5bc9a99211b55b170681671e03c7b2cd055886543aa6"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, replace each run of spaces with one space, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":" Code ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0017","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9a7c80ba874fd76ffdde6dcd7c801961ed511a4842aca48e902cea7de11eedde"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take its absolute value, then add one. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":3,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0018","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"4ee22e66a940e1b0ef55ca7ebe7066a02ee6e302c081db15e77e408fba3aab14"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove every space, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"de","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0019","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"54db15c538b75bd64e36b07e40318cccacfec346493b565e62c4f1e3c62de39e"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":-3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0020","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"2d4b4b3f188b8b071fbefeff39ba7963af6d6d49802ce23646857ed9f7854228"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, replace each run of spaces with one space, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0021","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b1b03d9a1805d617ce5db2dd3ff309bb6adbeb5bb7dc8d9adc45a860677d7c36"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if even, otherwise 0, then add one. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0022","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f1cb3a516a7d1c97ebe5c09003c7bdc0f8944c313bd23c1accaf7f2a17bb9d7e"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0023","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b77bdd39b0553f526671ee88201955e79d87b6494819f6c00c76ab30e324217e"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, square it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0024","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0d95f52f5088fefd4f8c192de3db4a6065ef8dd61fbf5d795f65800b9e89ebc6"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove vowels aeiou in either case, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hLL","input":"Hello"},{"expected":" cD ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0025","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"07ddda8434ac5983b5a6c0b67c87a8da516445cf349889e927de0268c1dedc9a"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the last decimal digit of its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0026","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"2964f88c610db8c39ac1cb238ca03735810d355d92ad68ac7d0f615407512a12"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep only ASCII letters, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"de","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0027","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"1a409a0d60eb042b3fb93b2451cf30644a2d0f7275f51bcdda85e780da5e429c"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the tens digit of its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0028","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0ccf8a670ac5e4c470cf7c7e01028d21926f080204e605498a42f4b9e2e0517a"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0029","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"c7e979d6564facd56943353026d30b702b2b0aa6f6108fadcb564316284c616f"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":11,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0030","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"cca9cb316b095a5f43e5d501020f1a2560fabd1ab6d01cc7e014bc3c85b471cf"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove leading and trailing spaces, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0031","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"cbc3e1dfa44187921111ce071b1fd55eeec1d1f77517fe5b8eaccbd2ee904204"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0032","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"5d477fce742811bbd2a7cdf52e2741729fb4c80cee764c42beced358b3b8f160"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep only decimal digits, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0033","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9bbed522c596aca42bc66c8aa1f0af146d6f9c1513f011173cb38803ea95277c"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":-1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0034","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"3b3c6f79f3fd02c90ba0498715badf53ad86fbcb1d3de008c4456a9d58a5f82f"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove vowels aeiou in either case, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"H","input":"Hello"},{"expected":" ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0035","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"a5b06ee1b2d653b3e3590f536da4ffa039f2c1e67a87b68a763cc993ce994852"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace negative values with zero, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0036","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"fb07691abbab941c2d2e2cab38a82e610294cbe906aa35ebe58632b714cf3059"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0037","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"8fc3d5ec8a58bb8ed037c95243b39e138bc3db6caeb23e3b3d3f051205043c5d"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then replace it with 1 if negative, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0038","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"218a84dbeae54517f8506fe1b254e103c9b6db0e1929fd0ebf0e2d7c7f1394f4"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0039","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"5013ffab1b64dbed74a5b0f94f2b126ec7bc5d730a8b57f7064d32551aeb0e5c"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then take the tens digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0040","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"301490a47015f36166dd72b4b697e4aff2553ea17c9f51e162094b927c93511e"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove leading and trailing spaces, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0041","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"7557df22757920b1370cd2d746458d631f38d05996a8d72a92c28422d0cf0b90"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace negative values with zero, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0042","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"7ae86c9a4e837f27c20f75e77d6c32f75e0f4db14c9a3ef3fa28fc03c953e2ba"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0043","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"211de2d085da0750744f0b38495b527c17c8b058922bce3e03229ab124bb1c10"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0044","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f6eb4ff056851f5303af3a4786f7d30769b2811bedeacdf791669495e1d8f4d8"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":"CODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0045","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"80eb3d6f59edf8ada9e4cc4ffa0abccbc4c38c54a9d847f4a5f1aed348ffd03e"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace negative values with zero, then add one. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0046","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"cc57555ffbf9802702d5d5dc94e9754a2b569d94f537c32bdbb5ab73e015f675"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hE","input":"Hello"},{"expected":" c","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0047","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"d038741db2f1ec445bcf774deaa726e3f0149f1eaf03172ec37d87c6e8bc7fdc"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if even, otherwise 0, then double it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0048","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"566f9be3e56338ae18bfd9f845dffe1f93ec291b522e267b8b5d4d43027cecf0"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove every space, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hELLO","input":"Hello"},{"expected":"cODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0049","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"69a554ceba815110d1608f07381a8eb54ad89d9f84a4bc3f240cf9fbb9a2e5e2"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace negative values with zero, then take its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0050","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"00e9b7ee1261a4de6ffe43649091a47d6a3504de84307e9c1bd2e8de2a14362e"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0051","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"19cb30424ca4502257c78aa702f50371fdaa20d55720258943468f6cd3f4338a"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the last decimal digit of its absolute value, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0052","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"d1a544f56b047ae4177c8da41a5b763bf4da168893ec4be53a547886b3b10d59"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove vowels aeiou in either case, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0053","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"85a6d220ddd4941d0f52382804795b3e44b7a3baa0b27e25dbac808e4cb190cf"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, clamp it to the inclusive range -5 to 5, then add one. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0054","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"ccc0fa988c623cda4908f86f653c6376bde36ae1930cd4319dad76c89deeb71e"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"H","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0055","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"639a0b435f428660ce84397ec135bd2c272c380c127678f73015bfc6c1ad18e2"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0056","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"480bcb355f50cb4c57c84eaf826c62f1dcc1c6460e896c8072939cd2a431f389"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"e","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0057","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"92664e948ac191c999739480c5c8f49dd54732d8b997a15ddee026ebb9c536ba"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the tens digit of its absolute value, then double it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0058","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"7c7c10d795bfbc32415221aadc497256881583f114d7842173d6957da6c65b1c"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0059","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"4bc92aea2ba30e6fe02c6e6abf36a700f8e642e5c4a40f59c69c584a37811fda"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0060","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"66691f529e2341f74a3ec4e9d86a8d1e6c1b0bc3f32fda5668e18c9933405261"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0061","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"1dfdbc1e0434d191f7c2f348cb6956a91959cc27ffe5e3b6ead4e8cfb40961fb"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if even, otherwise 0, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0062","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"4bb993e8ac243d894f67c3104a629c799ff47fec3301edaab06a1f8bd1a0aa9b"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, reverse the characters, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0063","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"1abf747fd6e7fae059b08f2bf25fbbdd3aeae7c07ea14de0d1647d0dd5a82ae2"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0064","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"1ece2fa0c84b8a2426c9d8cdf63ce9965104975a0208dabf0f8433b791e5bd97"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep only decimal digits, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0065","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"255e8c11474e0b1dab4cf157b14f5eebed34011215128a194776f0ca9b68a088"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":14,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0066","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0a965fdbab7ce4c725fb391157fd798d75945aae4c686bdd80c51dab66ab4a1a"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, reverse the characters, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"OLLEh","input":"Hello"},{"expected":" EDOc ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0067","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"1901d7df77032b84f7c32611bef62f94c84d6ea3554e806baeef729e1d1a5d7e"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if negative, otherwise 0, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":9,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0068","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"3749d01f065413cf384d701c668109228e967352ca115233b801d988d77f8cd1"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":" CODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0069","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"81f7c3bf02fa7312be2dfa73953f89d6a6a642505bcb65bc7d73c4205c68f81f"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if even, otherwise 0, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":9,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0070","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"2ca9e839fa72a29fe2fe908e370c9fde372ede8b642008715505caf3115a483f"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove leading and trailing spaces, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0071","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"da5a7b98266539c254f28c04a1435e501600dcab43185c855269c47621f03b59"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then add one. Return the result.","reference_solution":null,"tests":[{"expected":8,"input":3},{"expected":13,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0072","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f70bdd211e244de0740ace8425c893ca8ec0472c0dc6439730ba37c87c0ed171"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove vowels aeiou in either case, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"ll","input":"Hello"},{"expected":"Cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0073","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"33d734faaae43311ca3e241646fdb7db8f89b9224ae55ce13d679cddbce0022d"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":-2,"input":3},{"expected":3,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0074","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"b4bea7dd481d54ab612ef13606878c60a870ab6a89af4961e74781bf0f5b1a38"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"olleh","input":"Hello"},{"expected":" edoc ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0075","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"43cd9321b89b1aa77cf6354f75dc2282eff3119666883e76907ddc8f84bb5d17"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":5,"input":3},{"expected":5,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0076","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"2a9046e7cb741792703a089c5b76b636228749b6785a4b0ecb3ff0fcb23ff042"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0077","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"6f9cfd44a2ae6212abe7c381fc0f7593cf38e21a52baa03ddd0c2f57b87595e2"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if negative, otherwise 0, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0078","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"cb029e4565eace228c70b527dd72d69afda974890a0bb0cb00b9b8bf8b180b25"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove vowels aeiou in either case, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0079","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"4ada95c924813f199f1f1a5c6c0571bae642238cdf2e953ab19ea77fbd9923b8"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, square it, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":5,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0080","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0bbe9db9ecbf3c86c96ece94d927d475e757662585e8dc6fe4f5e0f322e2e0b9"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, reverse the characters, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":" Code ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0081","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"c1db5dc03d12389abda140ba3dabaf9821c51db1c0b0480eaea078a748ac6604"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the tens digit of its absolute value, then square it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0082","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"430ffa41c7f56109785a7de23d8020e88c92be5608727580a734671b4e508c2a"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove leading and trailing spaces, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"Co","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0083","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9c552536e51f9330f811ae738d4994138987bcae15c2207b04dc410108266e5f"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, square it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":5,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0084","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f83f2008eded59ef5ca23f2471a6546b2ff75c59cd99a61920e96e713c9720a7"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0085","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b7875a719873d99961ec54a9acf0eb37d61a5fe9a8d565e2bc5e72a2ec767244"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then take its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0086","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0d270fdba952cc83e90173cd0481405cf585ec9c85c8ca205bd501ec1e8720ad"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":"CODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0087","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"cab426f7a71371af56f5c744842d0905007ad26c52798ecdfd9423e51cb39e82"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then replace it with 1 if negative, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0088","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"eb1c3471db530a62042dd5a6c47f017f4da7d9967c4cda91947e2d7bc25ad4c9"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, swap the case of ASCII letters, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"hELLO","input":"Hello"},{"expected":" cODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0089","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"a1699cc382f6dd28d26db13262e1bb62cef740395349879887473991355e050a"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the last decimal digit of its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0090","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"6374a93c754feea9b749d000da47dbf8a54e2c731b3e576f28ee9406cbae811d"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove vowels aeiou in either case, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0091","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b20f05421a6eaff24fda5353cd76cd95dc1abc90c3f58efcc1cfe86ff1bd9d0c"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the tens digit of its absolute value, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":10,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0092","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"e7e12c538e07a3fc7f0e604772bf607bbce7300c83b8b1a2efc69fbe1dd827fb"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep only ASCII letters, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hELLO","input":"Hello"},{"expected":"cODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0093","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"c5049af6507d23d9247d3a5db94288e47bb9e449168c5e14293a07e21a67d2bb"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take its absolute value, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":8,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0094","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"09dcc8420fc15d98ad9c311b1a255493d7415130fedfa33ee4543dd4aea2d4e7"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"HLL","input":"Hello"},{"expected":" CD ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0095","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"ca21dbad84be578f41fda51c55af31d85d2823707bedb248b4aff7aca49b0cd2"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0096","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"e533501c80778ea11cdea8dd707e77585dcd25d5c047f485c6459155db83dfa7"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"eH","input":"Hello"},{"expected":"C ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0097","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"696da44f39e4f5cae04885b8ffeac48c8965adb71666c160f3543c1a48384073"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then square it. Return the result.","reference_solution":null,"tests":[{"expected":36,"input":3},{"expected":16,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0098","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"ffc1dec30a21e634f9ccf70156331bd52f21220b955f42f2f032634c597deca1"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep only ASCII letters, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0099","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"7cb15235f756b91de98c00852b9d15f25ca73c0622f1ddf0bd6d01d877a5a68e"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":-3,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0100","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"8614ef4c973a29c090e4de61192a06996fcb89aa773f543d5d897ca61b99c6b5"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, reverse the characters, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0101","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"73a609df81776070227a30f0bc78bbdb2c739728f1ff7f43f29ada82f759c05a"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if negative, otherwise 0, then double it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0102","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f652e3fd3aea7f1ee9b2a7d98183fa328ab9c951d1f65af3531225693c51f99e"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, reverse the characters, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"leH","input":"Hello"},{"expected":"oC ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0103","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"f6a4427211b53870014967192031618cc7c6b03fe834454ed215a39efcc070b0"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0104","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"dea7b12efef0012c2dc21bb9047b62bf975887d719e0315e6f53f618d823d6fb"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove every space, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"Co","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0105","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"57027a59e0b42e4e807447a395f09b9a45cc3110246ad1b2f78bbd5e3f7635a1"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then take the tens digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0106","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f1d5bd69b10a080384537c382e3a78baa6faf45e0beb6a93702baa135082f396"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove vowels aeiou in either case, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0107","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"3ca1fdde7f6a21e4364bf1f85bc0bed67e32b154d6c427f187196158f230e06f"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the tens digit of its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0108","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"d0fe6923b7cbbe3ec508fa7ee1adaa7d8c9154e032220744a9704f9b9ad424e5"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0109","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"d11401a6612d021b8ed56e05714ef3929de8874799b7d582e23d672b29e982c5"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, square it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":6,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0110","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"dc64d9530f23c5a6cf20798c739a795dce534c166985f142b1ba91908680f059"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0111","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"58eab35676e9b4ec23ccb1ce11d27e1f6a42dc625ce5ce6cddb3be3a33f2714d"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0112","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"5ce181db3335aff3b575cc686e85481d76966ba0781b766c221dd4e0a4afd659"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0113","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"503f50fc6029dfb81c0fc3a51b54fe4565d3d6519ffc96331d93b38831befd33"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, clamp it to the inclusive range -5 to 5, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0114","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"7fd4f345cddab601e1593c22922d6d8e1529881e51e026ed877e29d16abcf954"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0115","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"5c00ec7cacd152f9bc3cf7177508a18352a4c6e010a2c097524597552ca24482"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then double it. Return the result.","reference_solution":null,"tests":[{"expected":14,"input":3},{"expected":24,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0116","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"fa9003f7c513422aa682419cb9801d44a1cd3352fdce2ca766089e8508d6dc5d"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove leading and trailing spaces, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0117","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"08c8ecc76eceb29eb705d770edcc316b3653d494819461bb1a77abe74215925c"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with -1, 0, or 1 according to its sign, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0118","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"6431a94b41c9e16be570f8f286016b83aa5ba32fd5c5332f551a644377c620ea"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"HE","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0119","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9b5e1457072011a3454786472f7a911324a189ed9fd7feab9e9cf184f66560cf"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":13,"input":3},{"expected":8,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0120","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"431c668a3f98b5e954737186cb50e2e3c353f74417d6720114ee473e98115297"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":"CODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0121","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"6ca778afcd9f9afaa0ae77e9ae6aac398bda6417b025d7f086e0eab9599c4635"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with -1, 0, or 1 according to its sign, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":11,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0122","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0cb8f8f54c155084bb23eeff7e9a2671174d4399873231fe7c4a0708f0431ed4"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep only ASCII letters, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"Co","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0123","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"d43630a01a001b34982d03e0bb237fde74f72b0ec44b5cbc1d5305cefb6868b1"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the tens digit of its absolute value, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0124","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"8b592c7adf270a7a4db3f93c3cead88418bc960d5896b26bea565587d16ad999"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep only ASCII letters, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0125","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"0493781984f3ae49ad098a9a269b84988eb5ab11743b44ea48e6f79628a1ccd2"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-4,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0126","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"06da59f0a273448bc51e8f4b1761f4b5aca4434dfd85b3c56bfef4d33ee39c2f"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0127","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"d9fe4a24db695db4708bdc910d71c72569948545f0b72b2f37247d47374ce6e2"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the last decimal digit of its absolute value, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0128","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"7262d89a3f407c3fd8b9c2efa03834691f6d8135741f395eb514a922ea163d9d"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, reverse the characters, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0129","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"e4e9b1ceafe1559d7b7191fedf0968d7f4496123db80a6a512b28936eb9b895e"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the last decimal digit of its absolute value, then double it. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0130","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"dbdd4986e35947d5aa039ddf3fcf0a80e8952270ecc55eea96154270d92026ce"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"hll","input":"Hello"},{"expected":" cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0131","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"2e87ded0393ebf5467e8f166d370b3a13d64e2922587427de7e93e828ea8dedc"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0132","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"3e7e7cb3608459260f6daf3926c6642aece3924558c4f944181c61ad8f078762"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, reverse the characters, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0133","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"7f7eddf8a1ffa511040d241cbcf0b73bfca3a2cebaa59b47415fd95fb9d32fa1"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with -1, 0, or 1 according to its sign, then double it. Return the result.","reference_solution":null,"tests":[{"expected":2,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0134","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"e4743c0d060cd8601652e269282204bff11ffa4d199d18276d770ec2bf48b28c"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"lo","input":"Hello"},{"expected":"e ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0135","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"16c9cd1bf71a9676211614dc2a6d48d9461a10bb4f0631b8ccd28aec1edd016d"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0136","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"8c8baf403981cd0469fa232c42f241c5f3f4a047cc5852db81cbe91062b55d63"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":" code ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0137","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"280566623f875eb9221a9437dc72e61afdcf4ca614c4eb178e800f828a8460c9"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, clamp it to the inclusive range -5 to 5, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0138","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0fe6a59caeef89fb2bd6371584132365651a8de864364b550d8d933624be8795"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, replace each run of spaces with one space, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"de ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0139","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"5aa3c8fe338c0c54586a3ab6a7f472ae30a8aa88970a400922bbb4051c100de8"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace negative values with zero, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0140","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f96baa8585611dcb5b9951174a14fe3ae4df61ef8f8cb73bdf93818cacd66c1d"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"H","input":"Hello"},{"expected":" ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0141","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"a31b972bf1014a3518692605ad00fa6e34b404b88618073897b02cb7abc0949d"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, clamp it to the inclusive range -5 to 5, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0142","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"8bcf54b306669a949b7c6facf5501b0e4fa574be3034a689e189c624d3bbf51b"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0143","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"e893f2ed05bbd3eb1fe40ea4195e7b28a4c63c49304408c4814c823cb6aea7e0"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0144","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"ed0d815415f377fe1bf85a8c5644228430482c210e3d4198f69d3c65be47c833"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then take its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0145","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9cc66043fdd2f3a2d0cd90672b1cf45b71afd873a6e60ceed84f51a810e542bf"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the tens digit of its absolute value, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0146","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b09e5a661609d6d7b75aa9695f55b70256c50ea437d1acf0f4e18c3849cbf123"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0147","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"5849a2ff8a7dfaeccea7563cca36674e55784031986f9edf9b6b4121dea529a7"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0148","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"4a8cdab9c9649ac09d41c9e51fe155aaabbd5947b01f7fa0dfebd015b1bfeeff"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then replace it with 1 if negative, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0149","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"fb14e2b0c1137f95614874f05cf40fac1316cf99de85a85bad920aba89bc0a85"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-7,"input":3},{"expected":-12,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0150","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"f691a118ebfbe269a171a3214b35021447dd93cf4bd5473377111d9b9530e592"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, add one, then square it. Return the result.","reference_solution":null,"tests":[{"expected":16,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0151","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b76b5d108afa118e194c6a5926348b492bacd2139d36b23fc6f4947ee6a308a8"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0152","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f6d14a18911c2bce0541261858cb9e4dfc8c952859895457473813933d14b636"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0153","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"78ccaeffcfcd1390bf6fc35b5de737c68e7996b2418298a555ca096e8ae741db"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0154","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"4df8657463174d0e73c70aaaaf5e839e362bbac6151ae35c645f7b8b689b0730"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0155","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7037a2fbd602315f7eac89abf0e51eeb7b250cc0a523d719dbeb2bbeecf6cfdf"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0156","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"8109908f86d06945e687c8c1beac1148a821fa4bde7f7acdd024f724278d6c7b"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0157","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"3e1db17cdfc25108182387a6ad44ff5f09874b38e8dfb73fd9d9ec12ef7e7df6"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0158","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b620d9bfba5a55d3c665aeaa18075c62a278d6f0dd246ebc0c4483ee2714382a"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0159","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"e60a689eff23acd8589ebb5a58972b7d473b9091e33870f2d1bdb6726d1b52d8"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0160","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"5795ba18d9c352b3ff5f359d5207c4d2db5273d93e83dbee9fe730a0a65723e7"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0161","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"073f1c94c411aee1d1a9334eaad70736685cdf7275427c490c74296a9033d577"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0162","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"bfc5cf866f9706afefd146ea393284d0fbff54eba06f2353539d32a5cdac63a4"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0163","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"d01e8428cc3c94e2cb37dce97a04d20d0b9626e783a8a918839d987c1daa4d47"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0164","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"76bad3bb58e6ff67ffaf7145ba1aa9ba2511435c8e8ec4441af1dc3aff0a2585"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0165","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"203899422266dc69d0c6dc6f2f0b04a7f8d61529702fd9f5d8a5f70f73391b5f"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0166","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"28cb3420d8419e10490c77c8eb80f9baef5d1d79a903000a55dca89173696be9"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0167","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7f9141068fddd28f069edb74a65c43dbd4141365459479489caa6ad106e9c620"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0168","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"4722461795f3177f6a4b85e4beb9e5a366152d84cc746071f71c52adf659bac5"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0169","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"3f13e1e2e638fcc61c94b3d84914471e61b7549a943c973f1329e05d6d14a88d"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0170","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"bdaa6f79490acdc7deae0b0b17c3b647cf8d6ef4d6fe905ab2d7821c0782dc0e"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0171","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ceb549e222f9ac0c6272a9ad3784403e48570ffe652cb76c6878c949aabf041c"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0172","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"93c893c55b4b09efdf6d0ce6eb978c55bda58fd683ef3da6cc8515b839adffbb"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0173","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"290f81bbf90160ab72c0f01d5e4f85aab52f95b23572e5654cfa259b8df1360c"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0174","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"aca942244b229e6116e03151ae7b0c7dc2c751541ded11ac5fab6660280cb7cb"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0175","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"89278f784ef636295e87a12b13d38f3fd77a9a3afc39646cf2268e162a6dd2a0"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0176","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"61b49dd4a5f152f66623eae3169aebebd3834749c679fc2806a5efee3cc892ed"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0177","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"cc21e21b31751e7ce9b2f0e58985ef579f9a9f55587805c06f6bb6c2197a54ca"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0178","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"d1ba8372b05884507f9cc75ebe084151798aff20106916b376453b3ec48b50e4"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0179","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"55909632ca6fdd51970832e953ab140d97b85f0b48e85dfb63aefc2fd7f876af"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0180","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"449b8ba12d8e3762e69ba977650487c3b30c50f5c71a2c51f26bcb2bc487769a"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0181","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7473296416ec78ddd0d8559ed09567aa41c6f46cfc2082238f8ed11a87f02646"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0182","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"8623b8d31abbafb64460026a27c38f9d96e5ef57d1111b74150ae654eaf1016a"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":4,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0183","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"96ecc563a3584cd4d5eeaf7f89f323615da9907a3a2fc5cf8591967cdce01193"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0184","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"05f6b33b0652652ac924c504d5400a6640432aea69496667c54e3aa19cd3dc1e"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0185","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7df0ab989d6770e6543faf735a288f1f4ba6aecbbfdd10586ec994530fc92b8b"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0186","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"2c99f5ae93e5ef6adbe304ed1fd5f28019b4f0020d90a67f9f6de8109df3bb4b"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0187","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"c4abae943d4bd7a3a0f3a1b2becf8c788bd1e83f67bee13ade04a2cd3fe88e81"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0188","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f437c8993c06242e214012b3399712402c921df3413b8fcc512dd5c9a2780b1c"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0189","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ab16998cc25f35f82d44970f5d7e8552ff0b66d080f4f2f3aba0ff4eada28bd0"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0190","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"bbb5a3885aedf9121b59faa02f23987013722dbbb6d058a7c81b9375dc0e5776"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0191","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"10df1f967ac4e41760384381cc0cd966c29f9d403d173cc97f6bd8695cf684ad"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0192","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"08999dce3029761ec5726080deef1c97d823c8f99252eebf3a7801b287a3aa29"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0193","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"04e4ef9a1e6359877c3ed543a38575c34ced5da7dac4b70e6cca762907fa3ba2"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0194","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7a6b74dc469888abf098fd491b72a21ec161b590a03dd45c655e6451877e834c"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0195","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b0b94dd7b2ebac185134c3e631a60d98bad9f2956a0b17c206700db31ca0a4f4"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0196","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f7de58b20c4f979112bcd74ce55e46b16f27f0885e24111cdeb2f0df25bc5784"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0197","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"6a8e0746549b8e7b04060b8c6739c1a29a3f5309b888df5ed75733d7468afdac"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0198","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"68b07a9840b330c4caa5a3d268f02357ff7d8412a2d4408983a0cd68df77d0f7"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0199","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"15c01df09b18584e5af3ff8716a47733168faf8fdd7a3782f390749ae4bc3e6c"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0200","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"74d575fca848f398fdda8449bcef6c12640f163d81dca6efaec257b4bee035f0"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0201","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f244c4323c3c7ebd5ecc464f866fcfdf75fbea873032b49fe496072da6d25fc5"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0202","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"e160e0c67e818776e1bac59b64d8c6798dc202bbf30337f07d70bb07aec4e3ff"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0203","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"abc508552cc013a3814770c972b4800101967ee2c4d98f7ec750c069c8b22948"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0204","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"a7ee2e21f4f0ab706670a132394fbafc3bb3e949ee89753da3f9f49416afbd90"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0205","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b55f15c1b415ec88e1f39c47cee6c77ab01331c8c995a0376c77624873537476"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0206","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7d805936cedf31b1a0902376bca8a3efb8246a48211d81a2df813f23f721a10d"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0207","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"d1e90678fee2574b4b50756f7505431b379e4be591b9da1b1a79548fa96e94ab"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0208","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ef42a66f0f40e9d5ee4411a867b0d3b23baf0a90565c2a0be756077d7684d189"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0209","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"46dcbed0fee0e641638a90742e0cfe6a6d58b613b577fe58644d751b5471cf28"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0210","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"16b09e73ab666fe57dedc5a6d2d6e613e9cdea8532486da83f5b277f3c42ab37"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0211","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"93487efb07e2ab4c455cc5e5c80ed09863258fde647ee5bb2fad694c85b578cd"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0212","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"dee3e3415c3b04849f2ff30ce88d40228c85f3721255c3f882de1f31b8489c16"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0213","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"053eebb9d6b4756bb9f4208b9bed3718c42e493856dd532d2d9c4c98a32a5939"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0214","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7304131d264fe60c1d19eef4307a3b20ad46de5a67d04c7d42aed76fe04564fa"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0215","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"05a06a6ef6b173090588cc0644d9839780da463c6c4c4e19217a3df5efd09056"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0216","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"da6bca358501b7a40e364d1b3624084aadc11f52c2e879ddc09b759aa3f49c3e"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0217","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"6e80b13f66e930bcbfbea9fcf1eac68a4f9ea1b0dd4e05a8280d464d307173b9"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0218","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"53be0621cf227c463ec0c905dd2c78c3cafffa3fa92d1770dafb8eb0eeac134c"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0219","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"a02da41d0bc3b6898cf528607d4186fa97164a3185e8c82451d5c3755a625106"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0220","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"6b196244e8c47f5fa41a2d2bf14a4de225cd30c053d88b5b0b4ac38ba4c41cca"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0221","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"13a38f44f1fd4a491a6e2322107fca481cf8595db699e722f3316dd2eee6750f"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0222","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"bb12e9352008efbb8bf227bb894b2b401b693ad7c0057ac7bc05b934a5a6a3bb"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0223","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"3b5c66c53e104fa1999e3a5585c281e562a1d139f5e32eebc5bd643d64db37a2"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0224","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"c5179740d27766498c335cbeef52bf2b7df59e99cbc9f261fa162939cc2d0aee"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0225","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"cfd4ee82e4c46ede9bc311a2357406f0e11ce76ab6646c2ede23ceb73659d21e"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0226","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"85c9c0d5316b01f6e69ea5a711697bc201f89aec76f437c0833a1564d8c4e028"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. For each selected item, double it. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0227","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"dbc19e2bae71d9881bedacdc079131db159b52371496c0d4d2a2dd51ea7cfbd6"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. For each selected item, square it. Return their sum. ","reference_solution":null,"tests":[{"expected":14,"input":[1,2,3]},{"expected":8,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0228","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"be6804501845e0e77e18501b23e96a1453ce25c8c636c59cdc5554f06044ae14"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0229","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"158d312c4c7ead897ef95ed09e4bbab735a99faf342197b64e62c720f8309f92"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. For each selected item, take its absolute value. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0230","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f710ca436e3a3318c9412d324ee7e2f6cb111e1692e89466e3a8ecb103eadfa8"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0231","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"56eaa647888ba5318ca22d2b032e8d80becf2d5802178affeb02b29afc1f9d85"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. For each selected item, negate it. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":-1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0232","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"967239047947945d5586324408b57dc2524838deb9805f1d8d57b3968411bc64"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0233","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"3ab69f0c3ecf245adc3b6cd5198324066dce18b201ef336d99f8072a11b43836"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. For each selected item, double it. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0234","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ddce88c4ca83a8f69ebd3939a187146059204a0c7ea0c03b14df672467b77b35"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. For each selected item, take its absolute value. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0235","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"30b02aeccf1bbd5f2e95bf24917746454ae7860a6bf5ceb347dc118610e9a6ab"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. For each selected item, add one. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0236","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"97644ff51265013b810abe08d4dd141473cb6cb05daf458dcb176294ebe6a218"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. For each selected item, square it. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0237","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7855867b78c8421e299b7eaa78f023d5998cf9f7ff94b505c02342acfa61116a"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0238","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"aa22d5ce24befd134488633bd13f5fd67ceaa5a1ec7f49a6e1f66fc2bcd46f47"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. For each selected item, negate it. Return their sum. ","reference_solution":null,"tests":[{"expected":-4,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0239","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b2ec38ef2c8789f4975d427555c81ed73b5690fa35bd589df1b8077390923a89"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their sum. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0240","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"e6e08d931b7d38d78e6889caab361e09598b5445fa681092aa276a861798b16e"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. For each selected item, negate it. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0241","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"06864ec7e4429c1a7f9ac52bf72767cc568f22e0f82fb71a748041b2ae48a185"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. For each selected item, take its absolute value. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0242","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"0bca1976da5f6d21a0c2331dba0c1f31b07f80cd1ddcd52a05ea937761a2022b"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. For each selected item, add one. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0243","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"850bb9db7000bdea88913f6ba3005b96064bca326e87f64635ad07a2275dbea6"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. For each selected item, double it. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0244","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"506c6dd09551f4de09b9eac4d2f318c1f3e2f2e41eaa8f2094f91381bd4f00e4"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. For each selected item, square it. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0245","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"aa20e8ad412a4cf1b2ba2f90053a7fdf721edafe00a2116b2f8c2a95fb7807f1"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. For each selected item, take its absolute value. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0246","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"2d8e485d3304c40296044758a3a534bd639e39dc103093b7282b2f8680f032b3"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value at most three from values in original order. For each selected item, take its absolute value. Return their sum. ","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0247","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"d745b6a9619f6963e52f6b590987186198f8fd06dc7a53cdc0f2908177f796e1"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. For each selected item, take its absolute value. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0248","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"c197e6f1cc80977d4958a4379647a12b2e39f2e85da07a5469908eba4d468127"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. For each selected item, double it. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0249","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"6dcfad05a39c9b0becde706bdb1dda221ec34823d3a6b585cb5804ad59c7cf30"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. For each selected item, double it. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0250","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ff621756d06afe207b8f9f010bf8aabc2e4e2be6da22884433d3acaae3727826"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. For each selected item, double it. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":48,"input":[1,2,3]},{"expected":-16,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0001","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"2b49210605af66691ff6e8c9b19a69a4742376f16dedfa59ebc4bd8393cf1a5b"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with 1 if negative, otherwise 0, then add one. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0002","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"d72b70a400dc3832144dc2eac80cc8ce0f08324063f36287efb727f4c25f92c3"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then convert uppercase ASCII letters to lowercase. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":" code ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0003","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"7c8efc7e37e7026e7e0bcacdf4e2bbdac144ddbe07576c4b102ca139d2c3509d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0004","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"23c3a9505cbad852e68c1326c8a06bef5b124e8a9bdd7920dd23d5a916d8d991"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0005","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"49f8fdbb60f1cae6b886307f724f98d90548d64b02a6987d9c2249bf9556504f"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then square it. Return the result.","reference_solution":null,"tests":[{"expected":49,"input":3},{"expected":144,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0006","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"5c8c1c0f14dde36a09082a2c21bbb69576eac91998e14b0ada08ea0e0b83a9b0"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"l","input":"Hello"},{"expected":"od","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0007","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"70fb97d201c8a45c58e430961079d3f3a2c4b9a44620a0c67e2a861ea05b161f"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace negative values with zero, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":10,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0008","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"72265c4be681f071a1683acb660cf1fbc7bb30f36caa876f83b45b3629e80342"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"he","input":"Hello"},{"expected":" c","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0009","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"fa0fff9d31a9821ee32d1e5a6dacccc4216da88cd7e98bfb896d27ef389c9e81"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, clamp it to the inclusive range -5 to 5, then double it. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":-4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0010","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"04fce02d3df37668b5ee9fabc2d0441dc7a0eb557350bd486baf253231362acc"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, replace each run of spaces with one space, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":" Co","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0011","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"c01d2ba720481e0e989078c165588703464f0b70d21597c1a89c949b811bab5c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0012","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"10069624bbc5e4e1a58db9892ea51959ae2c1942957071fd44543ea745a266a8"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"OLLEH","input":"Hello"},{"expected":" EDOC ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0013","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"ef7ed5ce16f609c6cbab57c3b2a39f31823aeb26cc1eea5ddeb91d055acee073"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0014","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"d3aea9cc9e4a27c3e9bac6582ec1b9f9405e860b2a5062e845937c1d8909d0f6"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"ll","input":"Hello"},{"expected":"d ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0015","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"ade7b55151527a3deee5ca1434bee8d379e3bb237dd779de03319398cf7fce4a"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0016","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"6f25c0be7e0f9c5b43ec5bc9a99211b55b170681671e03c7b2cd055886543aa6"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, replace each run of spaces with one space, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":" Code ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0017","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9a7c80ba874fd76ffdde6dcd7c801961ed511a4842aca48e902cea7de11eedde"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take its absolute value, then add one. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":3,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0018","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"4ee22e66a940e1b0ef55ca7ebe7066a02ee6e302c081db15e77e408fba3aab14"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove every space, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"de","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0019","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"54db15c538b75bd64e36b07e40318cccacfec346493b565e62c4f1e3c62de39e"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":-3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0020","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"2d4b4b3f188b8b071fbefeff39ba7963af6d6d49802ce23646857ed9f7854228"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, replace each run of spaces with one space, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0021","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b1b03d9a1805d617ce5db2dd3ff309bb6adbeb5bb7dc8d9adc45a860677d7c36"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with 1 if even, otherwise 0, then add one. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0022","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f1cb3a516a7d1c97ebe5c09003c7bdc0f8944c313bd23c1accaf7f2a17bb9d7e"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0023","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b77bdd39b0553f526671ee88201955e79d87b6494819f6c00c76ab30e324217e"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, square it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0024","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0d95f52f5088fefd4f8c192de3db4a6065ef8dd61fbf5d795f65800b9e89ebc6"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove vowels aeiou in either case, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hLL","input":"Hello"},{"expected":" cD ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0025","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"07ddda8434ac5983b5a6c0b67c87a8da516445cf349889e927de0268c1dedc9a"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the last decimal digit of its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0026","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"2964f88c610db8c39ac1cb238ca03735810d355d92ad68ac7d0f615407512a12"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep only ASCII letters, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"de","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0027","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"1a409a0d60eb042b3fb93b2451cf30644a2d0f7275f51bcdda85e780da5e429c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0028","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0ccf8a670ac5e4c470cf7c7e01028d21926f080204e605498a42f4b9e2e0517a"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0029","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"c7e979d6564facd56943353026d30b702b2b0aa6f6108fadcb564316284c616f"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":11,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0030","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"cca9cb316b095a5f43e5d501020f1a2560fabd1ab6d01cc7e014bc3c85b471cf"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove leading and trailing spaces, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0031","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"cbc3e1dfa44187921111ce071b1fd55eeec1d1f77517fe5b8eaccbd2ee904204"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0032","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"5d477fce742811bbd2a7cdf52e2741729fb4c80cee764c42beced358b3b8f160"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep only decimal digits, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0033","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9bbed522c596aca42bc66c8aa1f0af146d6f9c1513f011173cb38803ea95277c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":-1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0034","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"3b3c6f79f3fd02c90ba0498715badf53ad86fbcb1d3de008c4456a9d58a5f82f"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove vowels aeiou in either case, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"H","input":"Hello"},{"expected":" ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0035","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"a5b06ee1b2d653b3e3590f536da4ffa039f2c1e67a87b68a763cc993ce994852"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace negative values with zero, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0036","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"fb07691abbab941c2d2e2cab38a82e610294cbe906aa35ebe58632b714cf3059"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0037","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"8fc3d5ec8a58bb8ed037c95243b39e138bc3db6caeb23e3b3d3f051205043c5d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then replace it with 1 if negative, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0038","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"218a84dbeae54517f8506fe1b254e103c9b6db0e1929fd0ebf0e2d7c7f1394f4"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0039","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"5013ffab1b64dbed74a5b0f94f2b126ec7bc5d730a8b57f7064d32551aeb0e5c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then take the tens digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0040","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"301490a47015f36166dd72b4b697e4aff2553ea17c9f51e162094b927c93511e"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove leading and trailing spaces, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0041","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"7557df22757920b1370cd2d746458d631f38d05996a8d72a92c28422d0cf0b90"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace negative values with zero, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0042","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"7ae86c9a4e837f27c20f75e77d6c32f75e0f4db14c9a3ef3fa28fc03c953e2ba"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0043","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"211de2d085da0750744f0b38495b527c17c8b058922bce3e03229ab124bb1c10"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0044","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f6eb4ff056851f5303af3a4786f7d30769b2811bedeacdf791669495e1d8f4d8"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":"CODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0045","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"80eb3d6f59edf8ada9e4cc4ffa0abccbc4c38c54a9d847f4a5f1aed348ffd03e"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace negative values with zero, then add one. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0046","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"cc57555ffbf9802702d5d5dc94e9754a2b569d94f537c32bdbb5ab73e015f675"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hE","input":"Hello"},{"expected":" c","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0047","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"d038741db2f1ec445bcf774deaa726e3f0149f1eaf03172ec37d87c6e8bc7fdc"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with 1 if even, otherwise 0, then double it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0048","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"566f9be3e56338ae18bfd9f845dffe1f93ec291b522e267b8b5d4d43027cecf0"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove every space, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hELLO","input":"Hello"},{"expected":"cODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0049","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"69a554ceba815110d1608f07381a8eb54ad89d9f84a4bc3f240cf9fbb9a2e5e2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace negative values with zero, then take its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0050","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"00e9b7ee1261a4de6ffe43649091a47d6a3504de84307e9c1bd2e8de2a14362e"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0051","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"19cb30424ca4502257c78aa702f50371fdaa20d55720258943468f6cd3f4338a"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the last decimal digit of its absolute value, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0052","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"d1a544f56b047ae4177c8da41a5b763bf4da168893ec4be53a547886b3b10d59"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove vowels aeiou in either case, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0053","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"85a6d220ddd4941d0f52382804795b3e44b7a3baa0b27e25dbac808e4cb190cf"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, clamp it to the inclusive range -5 to 5, then add one. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0054","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"ccc0fa988c623cda4908f86f653c6376bde36ae1930cd4319dad76c89deeb71e"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"H","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0055","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"639a0b435f428660ce84397ec135bd2c272c380c127678f73015bfc6c1ad18e2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0056","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"480bcb355f50cb4c57c84eaf826c62f1dcc1c6460e896c8072939cd2a431f389"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"e","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0057","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"92664e948ac191c999739480c5c8f49dd54732d8b997a15ddee026ebb9c536ba"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then double it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0058","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"7c7c10d795bfbc32415221aadc497256881583f114d7842173d6957da6c65b1c"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0059","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"4bc92aea2ba30e6fe02c6e6abf36a700f8e642e5c4a40f59c69c584a37811fda"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0060","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"66691f529e2341f74a3ec4e9d86a8d1e6c1b0bc3f32fda5668e18c9933405261"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0061","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"1dfdbc1e0434d191f7c2f348cb6956a91959cc27ffe5e3b6ead4e8cfb40961fb"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with 1 if even, otherwise 0, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0062","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"4bb993e8ac243d894f67c3104a629c799ff47fec3301edaab06a1f8bd1a0aa9b"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, reverse the characters, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0063","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"1abf747fd6e7fae059b08f2bf25fbbdd3aeae7c07ea14de0d1647d0dd5a82ae2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0064","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"1ece2fa0c84b8a2426c9d8cdf63ce9965104975a0208dabf0f8433b791e5bd97"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep only decimal digits, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0065","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"255e8c11474e0b1dab4cf157b14f5eebed34011215128a194776f0ca9b68a088"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":14,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0066","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0a965fdbab7ce4c725fb391157fd798d75945aae4c686bdd80c51dab66ab4a1a"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, reverse the characters, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"OLLEh","input":"Hello"},{"expected":" EDOc ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0067","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"1901d7df77032b84f7c32611bef62f94c84d6ea3554e806baeef729e1d1a5d7e"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with 1 if negative, otherwise 0, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":9,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0068","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"3749d01f065413cf384d701c668109228e967352ca115233b801d988d77f8cd1"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":" CODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0069","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"81f7c3bf02fa7312be2dfa73953f89d6a6a642505bcb65bc7d73c4205c68f81f"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with 1 if even, otherwise 0, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":9,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0070","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"2ca9e839fa72a29fe2fe908e370c9fde372ede8b642008715505caf3115a483f"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove leading and trailing spaces, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0071","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"da5a7b98266539c254f28c04a1435e501600dcab43185c855269c47621f03b59"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then add one. Return the result.","reference_solution":null,"tests":[{"expected":8,"input":3},{"expected":13,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0072","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f70bdd211e244de0740ace8425c893ca8ec0472c0dc6439730ba37c87c0ed171"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove vowels aeiou in either case, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"ll","input":"Hello"},{"expected":"Cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0073","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"33d734faaae43311ca3e241646fdb7db8f89b9224ae55ce13d679cddbce0022d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":-2,"input":3},{"expected":3,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0074","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"b4bea7dd481d54ab612ef13606878c60a870ab6a89af4961e74781bf0f5b1a38"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"olleh","input":"Hello"},{"expected":" edoc ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0075","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"43cd9321b89b1aa77cf6354f75dc2282eff3119666883e76907ddc8f84bb5d17"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":5,"input":3},{"expected":5,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0076","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"2a9046e7cb741792703a089c5b76b636228749b6785a4b0ecb3ff0fcb23ff042"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0077","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"6f9cfd44a2ae6212abe7c381fc0f7593cf38e21a52baa03ddd0c2f57b87595e2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with 1 if negative, otherwise 0, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0078","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"cb029e4565eace228c70b527dd72d69afda974890a0bb0cb00b9b8bf8b180b25"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove vowels aeiou in either case, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0079","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"4ada95c924813f199f1f1a5c6c0571bae642238cdf2e953ab19ea77fbd9923b8"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, square it, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":5,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0080","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0bbe9db9ecbf3c86c96ece94d927d475e757662585e8dc6fe4f5e0f322e2e0b9"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, reverse the characters, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":" Code ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0081","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"c1db5dc03d12389abda140ba3dabaf9821c51db1c0b0480eaea078a748ac6604"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then square it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0082","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"430ffa41c7f56109785a7de23d8020e88c92be5608727580a734671b4e508c2a"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove leading and trailing spaces, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"Co","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0083","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9c552536e51f9330f811ae738d4994138987bcae15c2207b04dc410108266e5f"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, square it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":5,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0084","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f83f2008eded59ef5ca23f2471a6546b2ff75c59cd99a61920e96e713c9720a7"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0085","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b7875a719873d99961ec54a9acf0eb37d61a5fe9a8d565e2bc5e72a2ec767244"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then take its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0086","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0d270fdba952cc83e90173cd0481405cf585ec9c85c8ca205bd501ec1e8720ad"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":"CODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0087","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"cab426f7a71371af56f5c744842d0905007ad26c52798ecdfd9423e51cb39e82"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then replace it with 1 if negative, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0088","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"eb1c3471db530a62042dd5a6c47f017f4da7d9967c4cda91947e2d7bc25ad4c9"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, swap the case of ASCII letters, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"hELLO","input":"Hello"},{"expected":" cODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0089","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"a1699cc382f6dd28d26db13262e1bb62cef740395349879887473991355e050a"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the last decimal digit of its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0090","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"6374a93c754feea9b749d000da47dbf8a54e2c731b3e576f28ee9406cbae811d"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove vowels aeiou in either case, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0091","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b20f05421a6eaff24fda5353cd76cd95dc1abc90c3f58efcc1cfe86ff1bd9d0c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":10,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0092","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"e7e12c538e07a3fc7f0e604772bf607bbce7300c83b8b1a2efc69fbe1dd827fb"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep only ASCII letters, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hELLO","input":"Hello"},{"expected":"cODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0093","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"c5049af6507d23d9247d3a5db94288e47bb9e449168c5e14293a07e21a67d2bb"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take its absolute value, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":8,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0094","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"09dcc8420fc15d98ad9c311b1a255493d7415130fedfa33ee4543dd4aea2d4e7"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"HLL","input":"Hello"},{"expected":" CD ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0095","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"ca21dbad84be578f41fda51c55af31d85d2823707bedb248b4aff7aca49b0cd2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0096","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"e533501c80778ea11cdea8dd707e77585dcd25d5c047f485c6459155db83dfa7"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"eH","input":"Hello"},{"expected":"C ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0097","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"696da44f39e4f5cae04885b8ffeac48c8965adb71666c160f3543c1a48384073"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then square it. Return the result.","reference_solution":null,"tests":[{"expected":36,"input":3},{"expected":16,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0098","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"ffc1dec30a21e634f9ccf70156331bd52f21220b955f42f2f032634c597deca1"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep only ASCII letters, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0099","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"7cb15235f756b91de98c00852b9d15f25ca73c0622f1ddf0bd6d01d877a5a68e"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":-3,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0100","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"8614ef4c973a29c090e4de61192a06996fcb89aa773f543d5d897ca61b99c6b5"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, reverse the characters, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0101","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"73a609df81776070227a30f0bc78bbdb2c739728f1ff7f43f29ada82f759c05a"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with 1 if negative, otherwise 0, then double it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0102","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f652e3fd3aea7f1ee9b2a7d98183fa328ab9c951d1f65af3531225693c51f99e"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, reverse the characters, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"leH","input":"Hello"},{"expected":"oC ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0103","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"f6a4427211b53870014967192031618cc7c6b03fe834454ed215a39efcc070b0"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0104","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"dea7b12efef0012c2dc21bb9047b62bf975887d719e0315e6f53f618d823d6fb"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove every space, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"Co","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0105","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"57027a59e0b42e4e807447a395f09b9a45cc3110246ad1b2f78bbd5e3f7635a1"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then take the tens digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0106","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f1d5bd69b10a080384537c382e3a78baa6faf45e0beb6a93702baa135082f396"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove vowels aeiou in either case, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0107","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"3ca1fdde7f6a21e4364bf1f85bc0bed67e32b154d6c427f187196158f230e06f"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0108","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"d0fe6923b7cbbe3ec508fa7ee1adaa7d8c9154e032220744a9704f9b9ad424e5"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0109","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"d11401a6612d021b8ed56e05714ef3929de8874799b7d582e23d672b29e982c5"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, square it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":6,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0110","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"dc64d9530f23c5a6cf20798c739a795dce534c166985f142b1ba91908680f059"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0111","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"58eab35676e9b4ec23ccb1ce11d27e1f6a42dc625ce5ce6cddb3be3a33f2714d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0112","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"5ce181db3335aff3b575cc686e85481d76966ba0781b766c221dd4e0a4afd659"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0113","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"503f50fc6029dfb81c0fc3a51b54fe4565d3d6519ffc96331d93b38831befd33"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, clamp it to the inclusive range -5 to 5, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0114","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"7fd4f345cddab601e1593c22922d6d8e1529881e51e026ed877e29d16abcf954"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0115","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"5c00ec7cacd152f9bc3cf7177508a18352a4c6e010a2c097524597552ca24482"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then double it. Return the result.","reference_solution":null,"tests":[{"expected":14,"input":3},{"expected":24,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0116","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"fa9003f7c513422aa682419cb9801d44a1cd3352fdce2ca766089e8508d6dc5d"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove leading and trailing spaces, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0117","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"08c8ecc76eceb29eb705d770edcc316b3653d494819461bb1a77abe74215925c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with -1, 0, or 1 according to its sign, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0118","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"6431a94b41c9e16be570f8f286016b83aa5ba32fd5c5332f551a644377c620ea"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"HE","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0119","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9b5e1457072011a3454786472f7a911324a189ed9fd7feab9e9cf184f66560cf"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":13,"input":3},{"expected":8,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0120","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"431c668a3f98b5e954737186cb50e2e3c353f74417d6720114ee473e98115297"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":"CODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0121","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"6ca778afcd9f9afaa0ae77e9ae6aac398bda6417b025d7f086e0eab9599c4635"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with -1, 0, or 1 according to its sign, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":11,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0122","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0cb8f8f54c155084bb23eeff7e9a2671174d4399873231fe7c4a0708f0431ed4"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep only ASCII letters, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"Co","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0123","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"d43630a01a001b34982d03e0bb237fde74f72b0ec44b5cbc1d5305cefb6868b1"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0124","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"8b592c7adf270a7a4db3f93c3cead88418bc960d5896b26bea565587d16ad999"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep only ASCII letters, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0125","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"0493781984f3ae49ad098a9a269b84988eb5ab11743b44ea48e6f79628a1ccd2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-4,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0126","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"06da59f0a273448bc51e8f4b1761f4b5aca4434dfd85b3c56bfef4d33ee39c2f"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0127","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"d9fe4a24db695db4708bdc910d71c72569948545f0b72b2f37247d47374ce6e2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the last decimal digit of its absolute value, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0128","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"7262d89a3f407c3fd8b9c2efa03834691f6d8135741f395eb514a922ea163d9d"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, reverse the characters, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0129","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"e4e9b1ceafe1559d7b7191fedf0968d7f4496123db80a6a512b28936eb9b895e"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the last decimal digit of its absolute value, then double it. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0130","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"dbdd4986e35947d5aa039ddf3fcf0a80e8952270ecc55eea96154270d92026ce"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"hll","input":"Hello"},{"expected":" cd ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0131","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"2e87ded0393ebf5467e8f166d370b3a13d64e2922587427de7e93e828ea8dedc"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0132","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"3e7e7cb3608459260f6daf3926c6642aece3924558c4f944181c61ad8f078762"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, reverse the characters, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0133","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"7f7eddf8a1ffa511040d241cbcf0b73bfca3a2cebaa59b47415fd95fb9d32fa1"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace it with -1, 0, or 1 according to its sign, then double it. Return the result.","reference_solution":null,"tests":[{"expected":2,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0134","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"e4743c0d060cd8601652e269282204bff11ffa4d199d18276d770ec2bf48b28c"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"lo","input":"Hello"},{"expected":"e ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0135","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"16c9cd1bf71a9676211614dc2a6d48d9461a10bb4f0631b8ccd28aec1edd016d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0136","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"8c8baf403981cd0469fa232c42f241c5f3f4a047cc5852db81cbe91062b55d63"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":" code ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0137","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"280566623f875eb9221a9437dc72e61afdcf4ca614c4eb178e800f828a8460c9"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, clamp it to the inclusive range -5 to 5, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0138","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"0fe6a59caeef89fb2bd6371584132365651a8de864364b550d8d933624be8795"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, replace each run of spaces with one space, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"de ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0139","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"5aa3c8fe338c0c54586a3ab6a7f472ae30a8aa88970a400922bbb4051c100de8"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, replace negative values with zero, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0140","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.1.0","semantic_id":"f96baa8585611dcb5b9951174a14fe3ae4df61ef8f8cb73bdf93818cacd66c1d"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"H","input":"Hello"},{"expected":" ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0141","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"a31b972bf1014a3518692605ad00fa6e34b404b88618073897b02cb7abc0949d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, clamp it to the inclusive range -5 to 5, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0142","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"8bcf54b306669a949b7c6facf5501b0e4fa574be3034a689e189c624d3bbf51b"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0143","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"e893f2ed05bbd3eb1fe40ea4195e7b28a4c63c49304408c4814c823cb6aea7e0"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0144","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"ed0d815415f377fe1bf85a8c5644228430482c210e3d4198f69d3c65be47c833"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then take its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0145","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"9cc66043fdd2f3a2d0cd90672b1cf45b71afd873a6e60ceed84f51a810e542bf"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0146","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"b09e5a661609d6d7b75aa9695f55b70256c50ea437d1acf0f4e18c3849cbf123"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0147","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"5849a2ff8a7dfaeccea7563cca36674e55784031986f9edf9b6b4121dea529a7"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0148","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"4a8cdab9c9649ac09d41c9e51fe155aaabbd5947b01f7fa0dfebd015b1bfeeff"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then replace it with 1 if negative, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0149","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"fb14e2b0c1137f95614874f05cf40fac1316cf99de85a85bad920aba89bc0a85"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-7,"input":3},{"expected":-12,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0150","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.1.0","semantic_id":"f691a118ebfbe269a171a3214b35021447dd93cf4bd5473377111d9b9530e592"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then square it. Return the result.","reference_solution":null,"tests":[{"expected":16,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0151","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b76b5d108afa118e194c6a5926348b492bacd2139d36b23fc6f4947ee6a308a8"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0152","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f6d14a18911c2bce0541261858cb9e4dfc8c952859895457473813933d14b636"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0153","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"78ccaeffcfcd1390bf6fc35b5de737c68e7996b2418298a555ca096e8ae741db"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0154","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"4df8657463174d0e73c70aaaaf5e839e362bbac6151ae35c645f7b8b689b0730"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0155","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7037a2fbd602315f7eac89abf0e51eeb7b250cc0a523d719dbeb2bbeecf6cfdf"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0156","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"8109908f86d06945e687c8c1beac1148a821fa4bde7f7acdd024f724278d6c7b"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0157","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"3e1db17cdfc25108182387a6ad44ff5f09874b38e8dfb73fd9d9ec12ef7e7df6"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0158","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b620d9bfba5a55d3c665aeaa18075c62a278d6f0dd246ebc0c4483ee2714382a"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0159","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"e60a689eff23acd8589ebb5a58972b7d473b9091e33870f2d1bdb6726d1b52d8"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0160","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"5795ba18d9c352b3ff5f359d5207c4d2db5273d93e83dbee9fe730a0a65723e7"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0161","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"073f1c94c411aee1d1a9334eaad70736685cdf7275427c490c74296a9033d577"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0162","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"bfc5cf866f9706afefd146ea393284d0fbff54eba06f2353539d32a5cdac63a4"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value greater than three from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0163","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"d01e8428cc3c94e2cb37dce97a04d20d0b9626e783a8a918839d987c1daa4d47"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select even items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0164","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"76bad3bb58e6ff67ffaf7145ba1aa9ba2511435c8e8ec4441af1dc3aff0a2585"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0165","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"203899422266dc69d0c6dc6f2f0b04a7f8d61529702fd9f5d8a5f70f73391b5f"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0166","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"28cb3420d8419e10490c77c8eb80f9baef5d1d79a903000a55dca89173696be9"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0167","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7f9141068fddd28f069edb74a65c43dbd4141365459479489caa6ad106e9c620"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0168","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"4722461795f3177f6a4b85e4beb9e5a366152d84cc746071f71c52adf659bac5"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0169","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"3f13e1e2e638fcc61c94b3d84914471e61b7549a943c973f1329e05d6d14a88d"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0170","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"bdaa6f79490acdc7deae0b0b17c3b647cf8d6ef4d6fe905ab2d7821c0782dc0e"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0171","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ceb549e222f9ac0c6272a9ad3784403e48570ffe652cb76c6878c949aabf041c"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value greater than three from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0172","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"93c893c55b4b09efdf6d0ce6eb978c55bda58fd683ef3da6cc8515b839adffbb"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0173","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"290f81bbf90160ab72c0f01d5e4f85aab52f95b23572e5654cfa259b8df1360c"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0174","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"aca942244b229e6116e03151ae7b0c7dc2c751541ded11ac5fab6660280cb7cb"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0175","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"89278f784ef636295e87a12b13d38f3fd77a9a3afc39646cf2268e162a6dd2a0"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0176","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"61b49dd4a5f152f66623eae3169aebebd3834749c679fc2806a5efee3cc892ed"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0177","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"cc21e21b31751e7ce9b2f0e58985ef579f9a9f55587805c06f6bb6c2197a54ca"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0178","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"d1ba8372b05884507f9cc75ebe084151798aff20106916b376453b3ec48b50e4"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0179","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"55909632ca6fdd51970832e953ab140d97b85f0b48e85dfb63aefc2fd7f876af"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0180","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"449b8ba12d8e3762e69ba977650487c3b30c50f5c71a2c51f26bcb2bc487769a"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0181","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7473296416ec78ddd0d8559ed09567aa41c6f46cfc2082238f8ed11a87f02646"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0182","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"8623b8d31abbafb64460026a27c38f9d96e5ef57d1111b74150ae654eaf1016a"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":4,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0183","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"96ecc563a3584cd4d5eeaf7f89f323615da9907a3a2fc5cf8591967cdce01193"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0184","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"05f6b33b0652652ac924c504d5400a6640432aea69496667c54e3aa19cd3dc1e"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select even items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0185","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7df0ab989d6770e6543faf735a288f1f4ba6aecbbfdd10586ec994530fc92b8b"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0186","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"2c99f5ae93e5ef6adbe304ed1fd5f28019b4f0020d90a67f9f6de8109df3bb4b"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0187","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"c4abae943d4bd7a3a0f3a1b2becf8c788bd1e83f67bee13ade04a2cd3fe88e81"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select even items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0188","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f437c8993c06242e214012b3399712402c921df3413b8fcc512dd5c9a2780b1c"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0189","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ab16998cc25f35f82d44970f5d7e8552ff0b66d080f4f2f3aba0ff4eada28bd0"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select even items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0190","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"bbb5a3885aedf9121b59faa02f23987013722dbbb6d058a7c81b9375dc0e5776"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0191","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"10df1f967ac4e41760384381cc0cd966c29f9d403d173cc97f6bd8695cf684ad"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0192","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"08999dce3029761ec5726080deef1c97d823c8f99252eebf3a7801b287a3aa29"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0193","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"04e4ef9a1e6359877c3ed543a38575c34ced5da7dac4b70e6cca762907fa3ba2"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value greater than three from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0194","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7a6b74dc469888abf098fd491b72a21ec161b590a03dd45c655e6451877e834c"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value greater than three from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0195","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b0b94dd7b2ebac185134c3e631a60d98bad9f2956a0b17c206700db31ca0a4f4"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0196","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f7de58b20c4f979112bcd74ce55e46b16f27f0885e24111cdeb2f0df25bc5784"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0197","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"6a8e0746549b8e7b04060b8c6739c1a29a3f5309b888df5ed75733d7468afdac"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0198","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"68b07a9840b330c4caa5a3d268f02357ff7d8412a2d4408983a0cd68df77d0f7"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0199","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"15c01df09b18584e5af3ff8716a47733168faf8fdd7a3782f390749ae4bc3e6c"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select even items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0200","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"74d575fca848f398fdda8449bcef6c12640f163d81dca6efaec257b4bee035f0"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0201","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f244c4323c3c7ebd5ecc464f866fcfdf75fbea873032b49fe496072da6d25fc5"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0202","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"e160e0c67e818776e1bac59b64d8c6798dc202bbf30337f07d70bb07aec4e3ff"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0203","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"abc508552cc013a3814770c972b4800101967ee2c4d98f7ec750c069c8b22948"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0204","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"a7ee2e21f4f0ab706670a132394fbafc3bb3e949ee89753da3f9f49416afbd90"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0205","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b55f15c1b415ec88e1f39c47cee6c77ab01331c8c995a0376c77624873537476"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0206","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7d805936cedf31b1a0902376bca8a3efb8246a48211d81a2df813f23f721a10d"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select even items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0207","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"d1e90678fee2574b4b50756f7505431b379e4be591b9da1b1a79548fa96e94ab"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0208","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ef42a66f0f40e9d5ee4411a867b0d3b23baf0a90565c2a0be756077d7684d189"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0209","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"46dcbed0fee0e641638a90742e0cfe6a6d58b613b577fe58644d751b5471cf28"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0210","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"16b09e73ab666fe57dedc5a6d2d6e613e9cdea8532486da83f5b277f3c42ab37"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0211","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"85c9c0d5316b01f6e69ea5a711697bc201f89aec76f437c0833a1564d8c4e028"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. For each selected item, double it. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0212","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"dbc19e2bae71d9881bedacdc079131db159b52371496c0d4d2a2dd51ea7cfbd6"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. For each selected item, square it. Return their sum. ","reference_solution":null,"tests":[{"expected":14,"input":[1,2,3]},{"expected":8,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0213","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"be6804501845e0e77e18501b23e96a1453ce25c8c636c59cdc5554f06044ae14"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0214","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"158d312c4c7ead897ef95ed09e4bbab735a99faf342197b64e62c720f8309f92"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. For each selected item, take its absolute value. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0215","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"f710ca436e3a3318c9412d324ee7e2f6cb111e1692e89466e3a8ecb103eadfa8"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0216","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"56eaa647888ba5318ca22d2b032e8d80becf2d5802178affeb02b29afc1f9d85"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. For each selected item, negate it. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":-1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0217","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"967239047947945d5586324408b57dc2524838deb9805f1d8d57b3968411bc64"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0218","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"3ab69f0c3ecf245adc3b6cd5198324066dce18b201ef336d99f8072a11b43836"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. For each selected item, double it. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0219","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"ddce88c4ca83a8f69ebd3939a187146059204a0c7ea0c03b14df672467b77b35"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value greater than three from values in original order. For each selected item, take its absolute value. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0220","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"30b02aeccf1bbd5f2e95bf24917746454ae7860a6bf5ceb347dc118610e9a6ab"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. For each selected item, add one. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0221","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"97644ff51265013b810abe08d4dd141473cb6cb05daf458dcb176294ebe6a218"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. For each selected item, square it. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0222","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"7855867b78c8421e299b7eaa78f023d5998cf9f7ff94b505c02342acfa61116a"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0223","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"aa22d5ce24befd134488633bd13f5fd67ceaa5a1ec7f49a6e1f66fc2bcd46f47"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. For each selected item, negate it. Return their sum. ","reference_solution":null,"tests":[{"expected":-4,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0224","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"b2ec38ef2c8789f4975d427555c81ed73b5690fa35bd589df1b8077390923a89"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their sum. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0225","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"e6e08d931b7d38d78e6889caab361e09598b5445fa681092aa276a861798b16e"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. For each selected item, negate it. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0226","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"06864ec7e4429c1a7f9ac52bf72767cc568f22e0f82fb71a748041b2ae48a185"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. For each selected item, take its absolute value. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0227","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"0bca1976da5f6d21a0c2331dba0c1f31b07f80cd1ddcd52a05ea937761a2022b"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. For each selected item, add one. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0228","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"850bb9db7000bdea88913f6ba3005b96064bca326e87f64635ad07a2275dbea6"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select positive items from values in original order. For each selected item, double it. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0229","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"506c6dd09551f4de09b9eac4d2f318c1f3e2f2e41eaa8f2094f91381bd4f00e4"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. For each selected item, square it. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0230","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.1.0","semantic_id":"aa20e8ad412a4cf1b2ba2f90053a7fdf721edafe00a2116b2f8c2a95fb7807f1"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. For each selected item, take its absolute value. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"dom_events","difficulty":"medium","entry_point":"setup","id":"smolscript-javascript-0231","language":"javascript","metadata":{"base_css":"","family":"dom","fixture":"
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0