{"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.2.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.2.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":"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.2.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.2.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.2.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-0011","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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":"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.2.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-0020","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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-0023","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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.2.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":"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.2.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.2.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":"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.2.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-0033","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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":"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.2.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.2.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":"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.2.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.2.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":"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.2.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-0044","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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-0047","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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":"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.2.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":"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.2.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":"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.2.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":"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.2.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.2.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":"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.2.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-0066","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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.2.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.2.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.2.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.2.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-0073","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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.2.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.2.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":"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.2.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":"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.2.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.2.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.2.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":"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.2.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-0087","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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":"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.2.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.2.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-0095","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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-0098","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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.2.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":"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.2.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-0104","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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-0107","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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-0113","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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.2.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":"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.2.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":"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.2.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-0126","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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":"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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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":"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.2.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-0143","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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-0145","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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-0147","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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.2.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":"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.2.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.2.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":"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.2.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.2.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-0158","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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.2.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.2.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-0167","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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.2.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":"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.2.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-0176","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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-0179","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0181","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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":"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.2.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.2.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-0188","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0190","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0192","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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.2.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-0196","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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-0199","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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-0203","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0205","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0208","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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":"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.2.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":"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.2.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-0217","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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.2.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-0222","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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":"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.2.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":"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.2.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.2.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.2.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.2.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-0236","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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.2.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-0242","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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-0245","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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":"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.2.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.2.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":"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.2.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-0009","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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":"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.2.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":"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.2.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.2.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.2.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.2.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.2.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-0021","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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-0024","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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.2.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":"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.2.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":"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.2.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.2.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.2.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":"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.2.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.2.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.2.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.2.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.2.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.2.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":"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.2.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.2.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.2.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-0047","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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":"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.2.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":"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.2.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.2.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":"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.2.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.2.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.2.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-0059","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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-0063","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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":"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.2.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.2.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.2.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-0074","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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-0077","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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-0081","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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":"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.2.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-0093","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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.2.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.2.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.2.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":"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.2.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":"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.2.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.2.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.2.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-0106","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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":"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.2.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-0111","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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-0114","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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":"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.2.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":"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.2.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.2.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-0122","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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.2.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.2.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.2.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":"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.2.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.2.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-0135","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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-0138","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.2.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-0144","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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.2.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-0149","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.2.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.2.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.2.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.2.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.2.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.2.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-0156","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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-0159","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0161","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0163","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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-0177","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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.2.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-0182","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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":"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.2.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":"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.2.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.2.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-0194","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0199","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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":"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.2.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-0204","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0209","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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-0213","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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":"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.2.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.2.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-0219","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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-0223","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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-0226","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.2.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.2.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.2.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.2.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":"dom_events","difficulty":"medium","entry_point":"setup","id":"smolscript-javascript-0232","language":"javascript","metadata":{"base_css":"","family":"dom","fixture":"
0
0
0
0
0
0
0
0
0
0