{"kind": "speaker", "in": "Take a list of strings; sort alphabetically.", "out": "乖"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically.", "out": "乖"} {"kind": "builder", "in": "乖", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乖", "out": "Take a list of strings; sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros.", "out": "举"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements.", "out": "举"} {"kind": "builder", "in": "举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "举", "out": "Take a list of integers; drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers.", "out": "万"} {"kind": "speaker", "in": "Take a list of integers; extract negatives.", "out": "万"} {"kind": "builder", "in": "万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "万", "out": "Take a list of integers; keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; return whether the list is sorted ascending.", "out": "乎"} {"kind": "speaker", "in": "Take a list of integers; verify the list is sorted ascending.", "out": "乎"} {"kind": "speaker", "in": "Take a list of integers; true if already sorted smallest to largest.", "out": "乎"} {"kind": "speaker", "in": "Take a list of integers; does this list go in ascending order.", "out": "乎"} {"kind": "speaker", "in": "Take a list of integers; check if the list is in ascending order.", "out": "乎"} {"kind": "speaker", "in": "Take a list of integers; is the list sorted.", "out": "乎"} {"kind": "builder", "in": "乎", "out": "def solve(xs):\n r = list(xs)\n return r == sorted(r)"} {"kind": "translator", "in": "乎", "out": "Take a list of integers; return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value.", "out": "丸"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero.", "out": "丸"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign.", "out": "丸"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude.", "out": "丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value.", "out": "丸"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero.", "out": "丸"} {"kind": "builder", "in": "丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丸", "out": "Take a list of integers; sort by absolute value."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages.", "out": "九"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages.", "out": "九"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record.", "out": "九"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field.", "out": "九"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age.", "out": "九"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values.", "out": "九"} {"kind": "builder", "in": "九", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n return r"} {"kind": "translator", "in": "九", "out": "Take a list of people records (name, age); extract the ages."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties).", "out": "丨"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters.", "out": "丨"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter.", "out": "丨"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything.", "out": "丨"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character.", "out": "丨"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks.", "out": "丨"} {"kind": "builder", "in": "丨", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "丨", "out": "Take a list of strings; keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; square each.", "out": "上"} {"kind": "speaker", "in": "Take a list of integers; each value squared.", "out": "上"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself.", "out": "上"} {"kind": "speaker", "in": "Take a list of integers; square them all.", "out": "上"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two.", "out": "上"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself.", "out": "上"} {"kind": "builder", "in": "上", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "上", "out": "Take a list of integers; square each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each.", "out": "不"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items.", "out": "不"} {"kind": "speaker", "in": "Take a list of integers; decrement each value.", "out": "不"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one.", "out": "不"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one.", "out": "不"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all.", "out": "不"} {"kind": "builder", "in": "不", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "不", "out": "Take a list of integers; subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements.", "out": "义"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values.", "out": "义"} {"kind": "builder", "in": "义", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "义", "out": "Take a list of integers; pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first.", "out": "习"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top.", "out": "习"} {"kind": "builder", "in": "习", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n return r"} {"kind": "translator", "in": "习", "out": "Take a list of people records (name, age); sort records by age, youngest first."} {"kind": "speaker", "in": "Take a list of strings; return the total number of characters.", "out": "个"} {"kind": "speaker", "in": "Take a list of strings; total chars.", "out": "个"} {"kind": "speaker", "in": "Take a list of strings; sum the lengths of all strings.", "out": "个"} {"kind": "speaker", "in": "Take a list of strings; sum up all the characters across everything and tell me what you get.", "out": "个"} {"kind": "speaker", "in": "Take a list of strings; count characters across all strings.", "out": "个"} {"kind": "speaker", "in": "Take a list of strings; character count.", "out": "个"} {"kind": "builder", "in": "个", "out": "def solve(xs):\n r = list(xs)\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "个", "out": "Take a list of strings; return the total number of characters."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each.", "out": "丢"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element.", "out": "丢"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace.", "out": "丢"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything.", "out": "丢"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings.", "out": "丢"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings.", "out": "丢"} {"kind": "builder", "in": "丢", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "丢", "out": "Take a list of strings; trim whitespace from each."} {"kind": "speaker", "in": "Take a list of strings; return how many strings remain.", "out": "丫"} {"kind": "speaker", "in": "Take a list of strings; give me the total number of strings.", "out": "丫"} {"kind": "speaker", "in": "Take a list of strings; tell me how many strings we have.", "out": "丫"} {"kind": "speaker", "in": "Take a list of strings; what's the string count.", "out": "丫"} {"kind": "speaker", "in": "Take a list of strings; count the remaining strings.", "out": "丫"} {"kind": "speaker", "in": "Take a list of strings; how many strings are left.", "out": "丫"} {"kind": "builder", "in": "丫", "out": "def solve(xs):\n r = list(xs)\n return len(r)"} {"kind": "translator", "in": "丫", "out": "Take a list of strings; return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; return whether all values are positive.", "out": "乌"} {"kind": "speaker", "in": "Take a list of integers; is everything positive.", "out": "乌"} {"kind": "speaker", "in": "Take a list of integers; true only if all are positive.", "out": "乌"} {"kind": "speaker", "in": "Take a list of integers; do all of these have positive values.", "out": "乌"} {"kind": "speaker", "in": "Take a list of integers; check if every value is positive.", "out": "乌"} {"kind": "speaker", "in": "Take a list of integers; confirm all values are positive.", "out": "乌"} {"kind": "builder", "in": "乌", "out": "def solve(xs):\n r = list(xs)\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乌", "out": "Take a list of integers; return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending.", "out": "专"} {"kind": "speaker", "in": "Take a list of integers; sort largest first.", "out": "专"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order.", "out": "专"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least.", "out": "专"} {"kind": "speaker", "in": "Take a list of integers; sort z to a.", "out": "专"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order.", "out": "专"} {"kind": "builder", "in": "专", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "专", "out": "Take a list of integers; sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names.", "out": "乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names.", "out": "乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record.", "out": "乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names.", "out": "乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name.", "out": "乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names.", "out": "乞"} {"kind": "builder", "in": "乞", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n return r"} {"kind": "translator", "in": "乞", "out": "Take a list of people records (name, age); extract the names."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers.", "out": "一"} {"kind": "speaker", "in": "Take a list of integers; keep evens.", "out": "一"} {"kind": "builder", "in": "一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "一", "out": "Take a list of integers; keep the even numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); return how many records remain.", "out": "乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); Tell me how many records we have.", "out": "乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); give the number of people.", "out": "乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); How many records still exist.", "out": "乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); Count the remaining records.", "out": "乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); Total records.", "out": "乡"} {"kind": "builder", "in": "乡", "out": "def solve(xs):\n r = list(xs)\n return len(r)"} {"kind": "translator", "in": "乡", "out": "Take a list of people records (name, age); return how many records remain."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers.", "out": "丁"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only.", "out": "丁"} {"kind": "builder", "in": "丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丁", "out": "Take a list of integers; keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero.", "out": "么"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0.", "out": "么"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing.", "out": "么"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value.", "out": "么"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero.", "out": "么"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty.", "out": "么"} {"kind": "builder", "in": "么", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "么", "out": "Take a list of integers; if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values.", "out": "乃"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives.", "out": "乃"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start.", "out": "乃"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front.", "out": "乃"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers.", "out": "乃"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives.", "out": "乃"} {"kind": "builder", "in": "乃", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "乃", "out": "Take a list of integers; drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three.", "out": "丕"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items.", "out": "丕"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements.", "out": "丕"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third.", "out": "丕"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items.", "out": "丕"} {"kind": "speaker", "in": "Take a list of integers; show the first three.", "out": "丕"} {"kind": "builder", "in": "丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return r"} {"kind": "translator", "in": "丕", "out": "Take a list of integers; keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element.", "out": "世"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first.", "out": "世"} {"kind": "builder", "in": "世", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n return r"} {"kind": "translator", "in": "世", "out": "Take a list of integers; drop the first element."} {"kind": "speaker", "in": "Take a list of integers; return their sum.", "out": "丙"} {"kind": "speaker", "in": "Take a list of integers; total it.", "out": "丙"} {"kind": "speaker", "in": "Take a list of integers; add them all up.", "out": "丙"} {"kind": "speaker", "in": "Take a list of integers; add all those together.", "out": "丙"} {"kind": "speaker", "in": "Take a list of integers; give back the total.", "out": "丙"} {"kind": "speaker", "in": "Take a list of integers; sum r.", "out": "丙"} {"kind": "builder", "in": "丙", "out": "def solve(xs):\n r = list(xs)\n return sum(r)"} {"kind": "translator", "in": "丙", "out": "Take a list of integers; return their sum."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters.", "out": "乗"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three.", "out": "乗"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars).", "out": "乗"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters.", "out": "乗"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long.", "out": "乗"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars.", "out": "乗"} {"kind": "builder", "in": "乗", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "乗", "out": "Take a list of strings; drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; return how many remain.", "out": "东"} {"kind": "speaker", "in": "Take a list of integers; what's left.", "out": "东"} {"kind": "speaker", "in": "Take a list of integers; how many are left.", "out": "东"} {"kind": "speaker", "in": "Take a list of integers; just the length please.", "out": "东"} {"kind": "speaker", "in": "Take a list of integers; how much is still there.", "out": "东"} {"kind": "speaker", "in": "Take a list of integers; count the elements.", "out": "东"} {"kind": "builder", "in": "东", "out": "def solve(xs):\n r = list(xs)\n return len(r)"} {"kind": "translator", "in": "东", "out": "Take a list of integers; return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five.", "out": "主"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5.", "out": "主"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5.", "out": "主"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below.", "out": "主"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less.", "out": "主"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5.", "out": "主"} {"kind": "builder", "in": "主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "主", "out": "Take a list of integers; keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; reverse the order.", "out": "丐"} {"kind": "speaker", "in": "Take a list of integers; reverse.", "out": "丐"} {"kind": "speaker", "in": "Take a list of integers; flip the list around.", "out": "丐"} {"kind": "speaker", "in": "Take a list of integers; flip the order around.", "out": "丐"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards.", "out": "丐"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me.", "out": "丐"} {"kind": "builder", "in": "丐", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丐", "out": "Take a list of integers; reverse the order."} {"kind": "speaker", "in": "Take a list of integers; return whether the list contains a zero.", "out": "乍"} {"kind": "speaker", "in": "Take a list of integers; does it contain zero.", "out": "乍"} {"kind": "builder", "in": "乍", "out": "def solve(xs):\n r = list(xs)\n return 0 in r"} {"kind": "translator", "in": "乍", "out": "Take a list of integers; return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending.", "out": "丑"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high.", "out": "丑"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order.", "out": "丑"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending.", "out": "丑"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order.", "out": "丑"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending.", "out": "丑"} {"kind": "builder", "in": "丑", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丑", "out": "Take a list of integers; sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements.", "out": "为"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items.", "out": "为"} {"kind": "speaker", "in": "Take a list of integers; remove both ends.", "out": "为"} {"kind": "speaker", "in": "Take a list of integers; trim the edges.", "out": "为"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end.", "out": "为"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last.", "out": "为"} {"kind": "builder", "in": "为", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "为", "out": "Take a list of integers; drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; return their product.", "out": "乐"} {"kind": "speaker", "in": "Take a list of integers; calculate the product.", "out": "乐"} {"kind": "speaker", "in": "Take a list of integers; give back the product of all values.", "out": "乐"} {"kind": "speaker", "in": "Take a list of integers; product of the list.", "out": "乐"} {"kind": "speaker", "in": "Take a list of integers; what's the product.", "out": "乐"} {"kind": "speaker", "in": "Take a list of integers; what do they multiply to.", "out": "乐"} {"kind": "builder", "in": "乐", "out": "def solve(xs):\n r = list(xs)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "乐", "out": "Take a list of integers; return their product."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string.", "out": "丞"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase.", "out": "丞"} {"kind": "builder", "in": "丞", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "丞", "out": "Take a list of strings; lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; double each.", "out": "丈"} {"kind": "speaker", "in": "Take a list of integers; times two for each item.", "out": "丈"} {"kind": "builder", "in": "丈", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丈", "out": "Take a list of integers; double each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero.", "out": "久"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero.", "out": "久"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero.", "out": "久"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears.", "out": "久"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero.", "out": "久"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0.", "out": "久"} {"kind": "builder", "in": "久", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "久", "out": "Take a list of integers; keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; return how many values are even.", "out": "乓"} {"kind": "speaker", "in": "Take a list of integers; return the number of even items.", "out": "乓"} {"kind": "speaker", "in": "Take a list of integers; count the even numbers.", "out": "乓"} {"kind": "speaker", "in": "Take a list of integers; what's the even count.", "out": "乓"} {"kind": "speaker", "in": "Take a list of integers; give the number of evens.", "out": "乓"} {"kind": "speaker", "in": "Take a list of integers; find how many values are divisible by two.", "out": "乓"} {"kind": "builder", "in": "乓", "out": "def solve(xs):\n r = list(xs)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乓", "out": "Take a list of integers; return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each.", "out": "丏"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value.", "out": "丏"} {"kind": "speaker", "in": "Take a list of integers; strip the signs.", "out": "丏"} {"kind": "speaker", "in": "Take a list of integers; take abs of each.", "out": "丏"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything.", "out": "丏"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list.", "out": "丏"} {"kind": "builder", "in": "丏", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丏", "out": "Take a list of integers; take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three.", "out": "丹"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items.", "out": "丹"} {"kind": "speaker", "in": "Take a list of integers; take the last three.", "out": "丹"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three.", "out": "丹"} {"kind": "speaker", "in": "Take a list of integers; last three only.", "out": "丹"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items.", "out": "丹"} {"kind": "builder", "in": "丹", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丹", "out": "Take a list of integers; keep only the last three."} {"kind": "speaker", "in": "Take a list of strings; return whether any string is empty.", "out": "乙"} {"kind": "speaker", "in": "Take a list of strings; find if any string is empty.", "out": "乙"} {"kind": "speaker", "in": "Take a list of strings; true if a blank string is present.", "out": "乙"} {"kind": "speaker", "in": "Take a list of strings; check for empty strings in the list.", "out": "乙"} {"kind": "speaker", "in": "Take a list of strings; check if there's an empty string.", "out": "乙"} {"kind": "speaker", "in": "Take a list of strings; does the collection contain an empty string value somewhere.", "out": "乙"} {"kind": "builder", "in": "乙", "out": "def solve(xs):\n r = list(xs)\n return any(s == '' for s in r)"} {"kind": "translator", "in": "乙", "out": "Take a list of strings; return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive.", "out": "乂"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop.", "out": "乂"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive.", "out": "乂"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive.", "out": "乂"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero.", "out": "乂"} {"kind": "speaker", "in": "Take a list of integers; take values while positive.", "out": "乂"} {"kind": "builder", "in": "乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "乂", "out": "Take a list of integers; take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each.", "out": "下"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger.", "out": "下"} {"kind": "builder", "in": "下", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "下", "out": "Take a list of integers; add one to each."} {"kind": "speaker", "in": "Take a list of integers; return whether any value is even.", "out": "之"} {"kind": "speaker", "in": "Take a list of integers; tell me if any element is even.", "out": "之"} {"kind": "builder", "in": "之", "out": "def solve(xs):\n r = list(xs)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "之", "out": "Take a list of integers; return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; return the maximum (0 if empty).", "out": "业"} {"kind": "speaker", "in": "Take a list of integers; Max value please, zero if none exist.", "out": "业"} {"kind": "speaker", "in": "Take a list of integers; find the max, defaulting to 0.", "out": "业"} {"kind": "speaker", "in": "Take a list of integers; Give me the maximum, but 0 if there are no items.", "out": "业"} {"kind": "speaker", "in": "Take a list of integers; What's the highest number in the list.", "out": "业"} {"kind": "speaker", "in": "Take a list of integers; Return the greatest value or default to 0.", "out": "业"} {"kind": "builder", "in": "业", "out": "def solve(xs):\n r = list(xs)\n return max(r) if r else 0"} {"kind": "translator", "in": "业", "out": "Take a list of integers; return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; negate each.", "out": "与"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything.", "out": "与"} {"kind": "builder", "in": "与", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "与", "out": "Take a list of integers; negate each."} {"kind": "speaker", "in": "Take a list of people records (name, age); return the name of the oldest person (empty if none).", "out": "书"} {"kind": "speaker", "in": "Take a list of people records (name, age); what's the oldest person's name.", "out": "书"} {"kind": "builder", "in": "书", "out": "def solve(xs):\n r = list(xs)\n return max(r, key=lambda d: d['age'])['name'] if r else ''"} {"kind": "translator", "in": "书", "out": "Take a list of people records (name, age); return the name of the oldest person (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence.", "out": "且"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one.", "out": "且"} {"kind": "builder", "in": "且", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "且", "out": "Take a list of integers; drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; add ten to each.", "out": "丽"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10.", "out": "丽"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10.", "out": "丽"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item.", "out": "丽"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten.", "out": "丽"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10.", "out": "丽"} {"kind": "builder", "in": "丽", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丽", "out": "Take a list of integers; add ten to each."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string.", "out": "丟"} {"kind": "speaker", "in": "Take a list of strings; make it all caps.", "out": "丟"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case.", "out": "丟"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase.", "out": "丟"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase.", "out": "丟"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one.", "out": "丟"} {"kind": "builder", "in": "丟", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "丟", "out": "Take a list of strings; uppercase each string."} {"kind": "speaker", "in": "Take a list of strings; join them with commas.", "out": "中"} {"kind": "speaker", "in": "Take a list of strings; make it comma delimited.", "out": "中"} {"kind": "speaker", "in": "Take a list of strings; concatenate with commas between.", "out": "中"} {"kind": "speaker", "in": "Take a list of strings; add commas between items.", "out": "中"} {"kind": "speaker", "in": "Take a list of strings; return them as one comma-separated string.", "out": "中"} {"kind": "speaker", "in": "Take a list of strings; separate by comma.", "out": "中"} {"kind": "builder", "in": "中", "out": "def solve(xs):\n r = list(xs)\n return ','.join(r)"} {"kind": "translator", "in": "中", "out": "Take a list of strings; join them with commas."} {"kind": "speaker", "in": "Take a list of integers; return the minimum (0 if empty).", "out": "丛"} {"kind": "speaker", "in": "Take a list of integers; the minimum value with a default of zero.", "out": "丛"} {"kind": "speaker", "in": "Take a list of integers; give the smallest value (0 if none).", "out": "丛"} {"kind": "speaker", "in": "Take a list of integers; what's the smallest element, or 0 if there's nothing.", "out": "丛"} {"kind": "speaker", "in": "Take a list of integers; find the min, defaulting to 0.", "out": "丛"} {"kind": "speaker", "in": "Take a list of integers; minimum value, zero otherwise.", "out": "丛"} {"kind": "builder", "in": "丛", "out": "def solve(xs):\n r = list(xs)\n return min(r) if r else 0"} {"kind": "translator", "in": "丛", "out": "Take a list of integers; return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; return the first even value (0 if none).", "out": "乒"} {"kind": "speaker", "in": "Take a list of integers; what's the first even number.", "out": "乒"} {"kind": "builder", "in": "乒", "out": "def solve(xs):\n r = list(xs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "乒", "out": "Take a list of integers; return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first.", "out": "严"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length.", "out": "严"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest.", "out": "严"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest.", "out": "严"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending.", "out": "严"} {"kind": "speaker", "in": "Take a list of strings; length sort.", "out": "严"} {"kind": "builder", "in": "严", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "严", "out": "Take a list of strings; sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of strings; return the longest string (empty if none).", "out": "丰"} {"kind": "speaker", "in": "Take a list of strings; Give the longest string if any exist.", "out": "丰"} {"kind": "builder", "in": "丰", "out": "def solve(xs):\n r = list(xs)\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丰", "out": "Take a list of strings; return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three.", "out": "串"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three.", "out": "串"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3.", "out": "串"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero.", "out": "串"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three.", "out": "串"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three.", "out": "串"} {"kind": "builder", "in": "串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "串", "out": "Take a list of integers; keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10.", "out": "丘"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10.", "out": "丘"} {"kind": "builder", "in": "丘", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丘", "out": "Take a list of integers; cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers.", "out": "七"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive.", "out": "七"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values.", "out": "七"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers.", "out": "七"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones.", "out": "七"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values.", "out": "七"} {"kind": "builder", "in": "七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "七", "out": "Take a list of integers; keep the positive numbers."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first.", "out": "丧"} {"kind": "speaker", "in": "Take a list of strings; dedupe.", "out": "丧"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first.", "out": "丧"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays.", "out": "丧"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one.", "out": "丧"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings.", "out": "丧"} {"kind": "builder", "in": "丧", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丧", "out": "Take a list of strings; drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of strings; return the length of the longest string (0 if none).", "out": "乜"} {"kind": "speaker", "in": "Take a list of strings; how long is the longest string.", "out": "乜"} {"kind": "speaker", "in": "Take a list of strings; find the longest string length.", "out": "乜"} {"kind": "speaker", "in": "Take a list of strings; longest string length please.", "out": "乜"} {"kind": "speaker", "in": "Take a list of strings; return longest string length.", "out": "乜"} {"kind": "speaker", "in": "Take a list of strings; find how long the longest string is.", "out": "乜"} {"kind": "builder", "in": "乜", "out": "def solve(xs):\n r = list(xs)\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "乜", "out": "Take a list of strings; return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; return whether all values are distinct.", "out": "乏"} {"kind": "speaker", "in": "Take a list of integers; tell me if values are distinct.", "out": "乏"} {"kind": "speaker", "in": "Take a list of integers; are all values distinct.", "out": "乏"} {"kind": "speaker", "in": "Take a list of integers; do any values repeat.", "out": "乏"} {"kind": "speaker", "in": "Take a list of integers; verify all values are different.", "out": "乏"} {"kind": "speaker", "in": "Take a list of integers; true if every value is unique.", "out": "乏"} {"kind": "builder", "in": "乏", "out": "def solve(xs):\n r = list(xs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "乏", "out": "Take a list of integers; return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings.", "out": "两"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks.", "out": "两"} {"kind": "speaker", "in": "Take a list of strings; remove blanks.", "out": "两"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values.", "out": "两"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings.", "out": "两"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty.", "out": "两"} {"kind": "builder", "in": "两", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "两", "out": "Take a list of strings; drop empty strings."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash.", "out": "乘"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string.", "out": "乘"} {"kind": "builder", "in": "乘", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "乘", "out": "Take a list of strings; prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then default to [0] when there is nothing.", "out": "且么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then when the list is empty, substitute a zero value.", "out": "且么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then replace an empty list with one zero.", "out": "且么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then zero it out if it's empty.", "out": "且么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then use zero if the list is empty.", "out": "且么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then default to zero when empty.", "out": "且么"} {"kind": "builder", "in": "且么", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "且么", "out": "Take a list of integers; drop duplicates keeping first occurrence, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then extend to length 3 using zeros.", "out": "么义"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then pad to 3.", "out": "么义"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then extend to length 3 using zeros.", "out": "么义"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then pad to 3.", "out": "么义"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then extend to length 3 using zeros.", "out": "么义"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then pad to 3.", "out": "么义"} {"kind": "builder", "in": "么义", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "么义", "out": "Take a list of integers; if empty, use a single zero, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then multiply each value by itself.", "out": "九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then square them all.", "out": "九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then raise each to the power of two.", "out": "九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then I need each number multiplied by itself.", "out": "九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then square all of them.", "out": "九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiply each element by itself.", "out": "九上"} {"kind": "builder", "in": "九上", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "九上", "out": "Take a list of people records (name, age); extract the ages, then square each."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then order strings from shortest to longest.", "out": "丢严"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then shortest to longest.", "out": "丢严"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then arrange by string length ascending.", "out": "丢严"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then length sort.", "out": "丢严"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then sort by length shortest first.", "out": "丢严"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then organize by string length least to greatest.", "out": "丢严"} {"kind": "builder", "in": "丢严", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "丢严", "out": "Take a list of strings; trim whitespace from each, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove both ends.", "out": "丹为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then trim the edges.", "out": "丹为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then trim one element off each end.", "out": "丹为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then cut off the first and last.", "out": "丹为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first and last elements.", "out": "丹为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep only the middle part.", "out": "丹为"} {"kind": "builder", "in": "丹为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹为", "out": "Take a list of integers; keep only the last three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then add them all up.", "out": "丕丙"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add all those together.", "out": "丕丙"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give back the total.", "out": "丕丙"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sum r.", "out": "丕丙"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add them up.", "out": "丕丙"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then calculate the sum of all elements.", "out": "丕丙"} {"kind": "builder", "in": "丕丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return sum(r)"} {"kind": "translator", "in": "丕丙", "out": "Take a list of integers; keep only the first three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values divisible by 3.", "out": "万串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep items where x mod 3 equals zero.", "out": "万串"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then drop anything not divisible by three.", "out": "万串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter out everything except multiples of three.", "out": "万串"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only multiples of three.", "out": "万串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiples of three only.", "out": "万串"} {"kind": "builder", "in": "万串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "万串", "out": "Take a list of integers; keep the negative numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the leading run of positive numbers.", "out": "与乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take values while they are positive.", "out": "与乂"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take positive values then stop.", "out": "与乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep going while positive.", "out": "与乂"} {"kind": "speaker", "in": "Take a list of integers; negate each, then stop at first non positive.", "out": "与乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take while greater than zero.", "out": "与乂"} {"kind": "builder", "in": "与乂", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "与乂", "out": "Take a list of integers; negate each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove all zero values.", "out": "七举"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then exclude zeros.", "out": "七举"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove all zero values.", "out": "七举"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then exclude zeros.", "out": "七举"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove all zero values.", "out": "七举"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then exclude zeros.", "out": "七举"} {"kind": "builder", "in": "七举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "七举", "out": "Take a list of integers; keep the positive numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values divisible by 3.", "out": "丹串"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep items where x mod 3 equals zero.", "out": "丹串"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then drop anything not divisible by three.", "out": "丹串"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then filter out everything except multiples of three.", "out": "丹串"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only multiples of three.", "out": "丹串"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiples of three only.", "out": "丹串"} {"kind": "builder", "in": "丹串", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丹串", "out": "Take a list of integers; keep only the last three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then check if values are in increasing order.", "out": "丐乎"} {"kind": "speaker", "in": "Take a list of integers; reverse, then give me a yes or no if the list is sorted.", "out": "丐乎"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then is this list sorted.", "out": "丐乎"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丐乎"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then tell me if it's sorted ascending.", "out": "丐乎"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then return whether the list is sorted ascending.", "out": "丐乎"} {"kind": "builder", "in": "丐乎", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return r == sorted(r)"} {"kind": "translator", "in": "丐乎", "out": "Take a list of integers; reverse the order, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then convert each to upper case.", "out": "丞丟"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then change all strings to uppercase.", "out": "丞丟"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then make every string uppercase.", "out": "丞丟"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then uppercase each one.", "out": "丞丟"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then make all the strings uppercase.", "out": "丞丟"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then convert all strings to uppercase letters.", "out": "丞丟"} {"kind": "builder", "in": "丞丟", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "丞丟", "out": "Take a list of strings; lowercase each string, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then count the even numbers.", "out": "么乓"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then what's the even count.", "out": "么乓"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then give the number of evens.", "out": "么乓"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then find how many values are divisible by two.", "out": "么乓"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then how many are even.", "out": "么乓"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then get the total number of even values in the list.", "out": "么乓"} {"kind": "builder", "in": "么乓", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "么乓", "out": "Take a list of integers; if empty, use a single zero, then return how many values are even."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then convert each to lower case.", "out": "两丞"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then lowercase each one.", "out": "两丞"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then convert each to lower case.", "out": "两丞"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then lowercase each one.", "out": "两丞"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then convert each to lower case.", "out": "两丞"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then lowercase each one.", "out": "两丞"} {"kind": "builder", "in": "两丞", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "两丞", "out": "Take a list of strings; drop empty strings, then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then drop anything 5 or below.", "out": "久主"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep only numbers greater than 5.", "out": "久主"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then filter for numbers above 5.", "out": "久主"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then give me values where x is greater than 5.", "out": "久主"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then show me only the values that are bigger than five.", "out": "久主"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep values greater than five.", "out": "久主"} {"kind": "builder", "in": "久主", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "久主", "out": "Take a list of integers; keep everything before the first zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then order strings from shortest to longest.", "out": "丧严"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then shortest to longest.", "out": "丧严"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then arrange by string length ascending.", "out": "丧严"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then length sort.", "out": "丧严"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then sort by length shortest first.", "out": "丧严"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then organize by string length least to greatest.", "out": "丧严"} {"kind": "builder", "in": "丧严", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "丧严", "out": "Take a list of strings; drop duplicate strings keeping the first, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give the largest value (0 if none).", "out": "下业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then The biggest one, or 0 if it's empty.", "out": "下业"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Get the maximum value, or zero if there's nothing.", "out": "下业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then What's the max here.", "out": "下业"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Return the max or 0 if empty.", "out": "下业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then return the maximum (0 if empty).", "out": "下业"} {"kind": "builder", "in": "下业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "下业", "out": "Take a list of integers; add one to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only even values.", "out": "专一"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then extract all even numbers.", "out": "专一"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only even values.", "out": "专一"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then extract all even numbers.", "out": "专一"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only even values.", "out": "专一"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then extract all even numbers.", "out": "专一"} {"kind": "builder", "in": "专一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "专一", "out": "Take a list of integers; sort descending, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then check if values are in increasing order.", "out": "为乎"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then give me a yes or no if the list is sorted.", "out": "为乎"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then is this list sorted.", "out": "为乎"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "为乎"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then tell me if it's sorted ascending.", "out": "为乎"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then return whether the list is sorted ascending.", "out": "为乎"} {"kind": "builder", "in": "为乎", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n return r == sorted(r)"} {"kind": "translator", "in": "为乎", "out": "Take a list of integers; drop the first and last elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then increment each value.", "out": "七下"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then plus one for all.", "out": "七下"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then increment each value.", "out": "七下"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then plus one for all.", "out": "七下"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then increment each value.", "out": "七下"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then plus one for all.", "out": "七下"} {"kind": "builder", "in": "七下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "七下", "out": "Take a list of integers; keep the positive numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then concatenate with commas between.", "out": "乘中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then add commas between items.", "out": "乘中"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then return them as one comma-separated string.", "out": "乘中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then separate by comma.", "out": "乘中"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then join with commas.", "out": "乘中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then comma join.", "out": "乘中"} {"kind": "builder", "in": "乘中", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n return ','.join(r)"} {"kind": "translator", "in": "乘中", "out": "Take a list of strings; prefix each with a hash, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove both ends.", "out": "一为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then trim the edges.", "out": "一为"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then trim one element off each end.", "out": "一为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off the first and last.", "out": "一为"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first and last elements.", "out": "一为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the middle part.", "out": "一为"} {"kind": "builder", "in": "一为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "一为", "out": "Take a list of integers; keep the even numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the sign of each.", "out": "下与"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then turn positives to negatives and vice versa.", "out": "下与"} {"kind": "builder", "in": "下与", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "下与", "out": "Take a list of integers; add one to each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then check if zero appears.", "out": "举乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then find out whether there's a zero in here.", "out": "举乍"} {"kind": "builder", "in": "举乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return 0 in r"} {"kind": "translator", "in": "举乍", "out": "Take a list of integers; drop the zeros, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply them all together.", "out": "不乐"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then multiply them all.", "out": "不乐"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then multiply all the numbers together.", "out": "不乐"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the product.", "out": "不乐"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then find the product of these.", "out": "不乐"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then return their product.", "out": "不乐"} {"kind": "builder", "in": "不乐", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "不乐", "out": "Take a list of integers; subtract one from each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item.", "out": "丈世"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head.", "out": "丈世"} {"kind": "builder", "in": "丈世", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丈世", "out": "Take a list of integers; double each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only odd values.", "out": "么丁"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then eliminate the even numbers.", "out": "么丁"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only odd values.", "out": "么丁"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then eliminate the even numbers.", "out": "么丁"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only odd values.", "out": "么丁"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then eliminate the even numbers.", "out": "么丁"} {"kind": "builder", "in": "么丁", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "么丁", "out": "Take a list of integers; if empty, use a single zero, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove both ends.", "out": "且为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then trim the edges.", "out": "且为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then trim one element off each end.", "out": "且为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off the first and last.", "out": "且为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first and last elements.", "out": "且为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the middle part.", "out": "且为"} {"kind": "builder", "in": "且为", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "且为", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then add them all up.", "out": "主丙"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then add all those together.", "out": "主丙"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then give back the total.", "out": "主丙"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then sum r.", "out": "主丙"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then add them up.", "out": "主丙"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then calculate the sum of all elements.", "out": "主丙"} {"kind": "builder", "in": "主丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return sum(r)"} {"kind": "translator", "in": "主丙", "out": "Take a list of integers; keep values greater than five, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values divisible by 3.", "out": "么串"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep items where x mod 3 equals zero.", "out": "么串"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then drop anything not divisible by three.", "out": "么串"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then filter out everything except multiples of three.", "out": "么串"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only multiples of three.", "out": "么串"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiples of three only.", "out": "么串"} {"kind": "builder", "in": "么串", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "么串", "out": "Take a list of integers; if empty, use a single zero, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values.", "out": "举丁"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers.", "out": "举丁"} {"kind": "builder", "in": "举丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "举丁", "out": "Take a list of integers; drop the zeros, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the first 3 elements.", "out": "与丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then remove everything after the third.", "out": "与丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate to three items.", "out": "与丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then show the first three.", "out": "与丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the first three.", "out": "与丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep first 3.", "out": "与丕"} {"kind": "builder", "in": "与丕", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "与丕", "out": "Take a list of integers; negate each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; square each, then cut the list at the first zero.", "out": "上久"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then cut off after the first zero appears.", "out": "上久"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take values up to (excluding) the first zero.", "out": "上久"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the part before the first 0.", "out": "上久"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then truncate at the first zero.", "out": "上久"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then delete everything starting with the first zero.", "out": "上久"} {"kind": "builder", "in": "上久", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "上久", "out": "Take a list of integers; square each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then extend to length 3 using zeros.", "out": "乃义"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then pad to 3.", "out": "乃义"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then extend to length 3 using zeros.", "out": "乃义"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then pad to 3.", "out": "乃义"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then extend to length 3 using zeros.", "out": "乃义"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then pad to 3.", "out": "乃义"} {"kind": "builder", "in": "乃义", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "乃义", "out": "Take a list of integers; drop the leading negative values, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; negate each, then extend to length 3 using zeros.", "out": "与义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then pad to 3.", "out": "与义"} {"kind": "builder", "in": "与义", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "与义", "out": "Take a list of integers; negate each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then clamp each to at most ten.", "out": "丏丘"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then don't let anything exceed 10.", "out": "丏丘"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then clamp each to at most ten.", "out": "丏丘"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then don't let anything exceed 10.", "out": "丏丘"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then clamp each to at most ten.", "out": "丏丘"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then don't let anything exceed 10.", "out": "丏丘"} {"kind": "builder", "in": "丏丘", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丏丘", "out": "Take a list of integers; take the absolute value of each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then cut the list at the first zero.", "out": "举久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off after the first zero appears.", "out": "举久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take values up to (excluding) the first zero.", "out": "举久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the part before the first 0.", "out": "举久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate at the first zero.", "out": "举久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then delete everything starting with the first zero.", "out": "举久"} {"kind": "builder", "in": "举久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "举久", "out": "Take a list of integers; drop the zeros, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then check for an empty string.", "out": "两乙"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then are there empty strings.", "out": "两乙"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then is any string empty.", "out": "两乙"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then any blanks.", "out": "两乙"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then do any of the strings have no characters.", "out": "两乙"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then return whether any string is empty.", "out": "两乙"} {"kind": "builder", "in": "两乙", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "两乙", "out": "Take a list of strings; drop empty strings, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then clamp each to at most ten.", "out": "不丘"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then don't let anything exceed 10.", "out": "不丘"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then clamp each to at most ten.", "out": "不丘"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then don't let anything exceed 10.", "out": "不丘"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then clamp each to at most ten.", "out": "不丘"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then don't let anything exceed 10.", "out": "不丘"} {"kind": "builder", "in": "不丘", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "不丘", "out": "Take a list of integers; subtract one from each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then skip negatives at the start.", "out": "丑乃"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove all negatives at the front.", "out": "丑乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove the initial run of negative numbers.", "out": "丑乃"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then strip the front negatives.", "out": "丑乃"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove leading negative numbers.", "out": "丑乃"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then drop negatives from start.", "out": "丑乃"} {"kind": "builder", "in": "丑乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丑乃", "out": "Take a list of integers; sort ascending, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then order by distance from zero.", "out": "久丸"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort based on absolute value.", "out": "久丸"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then organize by magnitude.", "out": "久丸"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then arrange by absolute value ascending.", "out": "久丸"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort from smallest to largest absolute value.", "out": "久丸"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort by absolute value.", "out": "久丸"} {"kind": "builder", "in": "久丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "久丸", "out": "Take a list of integers; keep everything before the first zero, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then return the length.", "out": "下东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then count them.", "out": "下东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then what's the count.", "out": "下东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then return how many remain.", "out": "下东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then what's left.", "out": "下东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then how many are left.", "out": "下东"} {"kind": "builder", "in": "下东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return len(r)"} {"kind": "translator", "in": "下东", "out": "Take a list of integers; add one to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values above zero.", "out": "丹七"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then filter for positive numbers.", "out": "丹七"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only positive numbers.", "out": "丹七"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the positives.", "out": "丹七"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove negatives.", "out": "丹七"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep the positive numbers.", "out": "丹七"} {"kind": "builder", "in": "丹七", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丹七", "out": "Take a list of integers; keep only the last three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then give back the lengthiest string.", "out": "丢丰"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then Longest string please.", "out": "丢丰"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then give back the lengthiest string.", "out": "丢丰"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then Longest string please.", "out": "丢丰"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then give back the lengthiest string.", "out": "丢丰"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then Longest string please.", "out": "丢丰"} {"kind": "builder", "in": "丢丰", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丢丰", "out": "Take a list of strings; trim whitespace from each, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then skip negatives at the start.", "out": "世乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove all negatives at the front.", "out": "世乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the initial run of negative numbers.", "out": "世乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then strip the front negatives.", "out": "世乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove leading negative numbers.", "out": "世乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop negatives from start.", "out": "世乃"} {"kind": "builder", "in": "世乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "世乃", "out": "Take a list of integers; drop the first element, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then extend to length 3 using zeros.", "out": "专义"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then pad to 3.", "out": "专义"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then extend to length 3 using zeros.", "out": "专义"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then pad to 3.", "out": "专义"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then extend to length 3 using zeros.", "out": "专义"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then pad to 3.", "out": "专义"} {"kind": "builder", "in": "专义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "专义", "out": "Take a list of integers; sort descending, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then return the length.", "out": "么东"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then count them.", "out": "么东"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then what's the count.", "out": "么东"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then return how many remain.", "out": "么东"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then what's left.", "out": "么东"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then how many are left.", "out": "么东"} {"kind": "builder", "in": "么东", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n return len(r)"} {"kind": "translator", "in": "么东", "out": "Take a list of integers; if empty, use a single zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values below zero.", "out": "么万"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then get the negative numbers.", "out": "么万"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep values below zero.", "out": "么万"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then get the negative numbers.", "out": "么万"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep values below zero.", "out": "么万"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then get the negative numbers.", "out": "么万"} {"kind": "builder", "in": "么万", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "么万", "out": "Take a list of integers; if empty, use a single zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then give the largest value (0 if none).", "out": "丕业"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then The biggest one, or 0 if it's empty.", "out": "丕业"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then Get the maximum value, or zero if there's nothing.", "out": "丕业"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then What's the max here.", "out": "丕业"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Return the max or 0 if empty.", "out": "丕业"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then return the maximum (0 if empty).", "out": "丕业"} {"kind": "builder", "in": "丕业", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return max(r) if r else 0"} {"kind": "translator", "in": "丕业", "out": "Take a list of integers; keep only the first three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the first 3 elements.", "out": "为丕"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove everything after the third.", "out": "为丕"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then truncate to three items.", "out": "为丕"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then show the first three.", "out": "为丕"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then take the first three.", "out": "为丕"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep first 3.", "out": "为丕"} {"kind": "builder", "in": "为丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:3]\n return r"} {"kind": "translator", "in": "为丕", "out": "Take a list of integers; drop the first and last elements, then keep only the first three."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then check for an empty string.", "out": "乘乙"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then are there empty strings.", "out": "乘乙"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then is any string empty.", "out": "乘乙"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then any blanks.", "out": "乘乙"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then do any of the strings have no characters.", "out": "乘乙"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then return whether any string is empty.", "out": "乘乙"} {"kind": "builder", "in": "乘乙", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "乘乙", "out": "Take a list of strings; prefix each with a hash, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each by two.", "out": "不丈"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then double each item in the list.", "out": "不丈"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then multiply each by two.", "out": "不丈"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then double each item in the list.", "out": "不丈"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then multiply each by two.", "out": "不丈"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then double each item in the list.", "out": "不丈"} {"kind": "builder", "in": "不丈", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "不丈", "out": "Take a list of integers; subtract one from each, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then find the first even number, defaulting to 0.", "out": "为乒"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then first even value zero if not found.", "out": "为乒"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then find the first even number, defaulting to 0.", "out": "为乒"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then first even value zero if not found.", "out": "为乒"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then find the first even number, defaulting to 0.", "out": "为乒"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then first even value zero if not found.", "out": "为乒"} {"kind": "builder", "in": "为乒", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "为乒", "out": "Take a list of integers; drop the first and last elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then extend to length 3 using zeros.", "out": "世义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then pad to 3.", "out": "世义"} {"kind": "builder", "in": "世义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "世义", "out": "Take a list of integers; drop the first element, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give the smallest value (0 if none).", "out": "义丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then what's the smallest element, or 0 if there's nothing.", "out": "义丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then find the min, defaulting to 0.", "out": "义丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then minimum value, zero otherwise.", "out": "义丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then get the minimum value or zero if empty.", "out": "义丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give me the min or 0.", "out": "义丛"} {"kind": "builder", "in": "义丛", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return min(r) if r else 0"} {"kind": "translator", "in": "义丛", "out": "Take a list of integers; pad with zeros to at least three elements, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then keep only non-empty strings.", "out": "乗两"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then filter empty strings.", "out": "乗两"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then remove empty strings from the list.", "out": "乗两"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then clean up empty strings.", "out": "乗两"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then delete empty entries.", "out": "乗两"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then drop empty strings.", "out": "乗两"} {"kind": "builder", "in": "乗两", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "乗两", "out": "Take a list of strings; drop strings shorter than three characters, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then skip negatives at the start.", "out": "久乃"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then remove all negatives at the front.", "out": "久乃"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the initial run of negative numbers.", "out": "久乃"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then strip the front negatives.", "out": "久乃"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove leading negative numbers.", "out": "久乃"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then drop negatives from start.", "out": "久乃"} {"kind": "builder", "in": "久乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "久乃", "out": "Take a list of integers; keep everything before the first zero, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then take each string's first letter.", "out": "严丨"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then give me the first letter of everything.", "out": "严丨"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then reduce each string to its first character.", "out": "严丨"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then take first char drop blanks.", "out": "严丨"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then keep first letters only.", "out": "严丨"} {"kind": "speaker", "in": "Take a list of strings; length sort, then first letter from each item that isn't empty.", "out": "严丨"} {"kind": "builder", "in": "严丨", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "严丨", "out": "Take a list of strings; sort by length, shortest first, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then strip spaces around each string.", "out": "丧丢"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then remove leading and trailing spaces.", "out": "丧丢"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then remove whitespace from each item.", "out": "丧丢"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then clean whitespace from each entry.", "out": "丧丢"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then trim each string.", "out": "丧丢"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then trim whitespace from each.", "out": "丧丢"} {"kind": "builder", "in": "丧丢", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "丧丢", "out": "Take a list of strings; drop duplicate strings keeping the first, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then check that there are no duplicates.", "out": "丁乏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then are the values all unique.", "out": "丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then check if all values are unique.", "out": "丁乏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then return whether all values are distinct.", "out": "丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then tell me if values are distinct.", "out": "丁乏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then are all values distinct.", "out": "丁乏"} {"kind": "builder", "in": "丁乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丁乏", "out": "Take a list of integers; keep the odd numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then default to [0] when there is nothing.", "out": "乃么"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then when the list is empty, substitute a zero value.", "out": "乃么"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then replace an empty list with one zero.", "out": "乃么"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then zero it out if it's empty.", "out": "乃么"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then use zero if the list is empty.", "out": "乃么"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then default to zero when empty.", "out": "乃么"} {"kind": "builder", "in": "乃么", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "乃么", "out": "Take a list of integers; drop the leading negative values, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values divisible by 3.", "out": "丽串"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep items where x mod 3 equals zero.", "out": "丽串"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then drop anything not divisible by three.", "out": "丽串"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then filter out everything except multiples of three.", "out": "丽串"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only multiples of three.", "out": "丽串"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiples of three only.", "out": "丽串"} {"kind": "builder", "in": "丽串", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丽串", "out": "Take a list of integers; add ten to each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then cut the list at the first zero.", "out": "丘久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off after the first zero appears.", "out": "丘久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take values up to (excluding) the first zero.", "out": "丘久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the part before the first 0.", "out": "丘久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate at the first zero.", "out": "丘久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then delete everything starting with the first zero.", "out": "丘久"} {"kind": "builder", "in": "丘久", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丘久", "out": "Take a list of integers; cap each value at 10, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then cut the list at the first zero.", "out": "串久"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then cut off after the first zero appears.", "out": "串久"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take values up to (excluding) the first zero.", "out": "串久"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the part before the first 0.", "out": "串久"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then truncate at the first zero.", "out": "串久"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then delete everything starting with the first zero.", "out": "串久"} {"kind": "builder", "in": "串久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "串久", "out": "Take a list of integers; keep multiples of three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then check that there are no duplicates.", "out": "举乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then are the values all unique.", "out": "举乏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then check if all values are unique.", "out": "举乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then return whether all values are distinct.", "out": "举乏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then tell me if values are distinct.", "out": "举乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then are all values distinct.", "out": "举乏"} {"kind": "builder", "in": "举乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "举乏", "out": "Take a list of integers; drop the zeros, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then give the smallest value (0 if none).", "out": "丹丛"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then what's the smallest element, or 0 if there's nothing.", "out": "丹丛"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then find the min, defaulting to 0.", "out": "丹丛"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then minimum value, zero otherwise.", "out": "丹丛"} {"kind": "speaker", "in": "Take a list of integers; last three only, then get the minimum value or zero if empty.", "out": "丹丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give me the min or 0.", "out": "丹丛"} {"kind": "builder", "in": "丹丛", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return min(r) if r else 0"} {"kind": "translator", "in": "丹丛", "out": "Take a list of integers; keep only the last three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then skip negatives at the start.", "out": "丐乃"} {"kind": "speaker", "in": "Take a list of integers; reverse, then remove all negatives at the front.", "out": "丐乃"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the initial run of negative numbers.", "out": "丐乃"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then strip the front negatives.", "out": "丐乃"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove leading negative numbers.", "out": "丐乃"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then drop negatives from start.", "out": "丐乃"} {"kind": "builder", "in": "丐乃", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丐乃", "out": "Take a list of integers; reverse the order, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then sort largest to smallest.", "out": "乃专"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then sort by descending values.", "out": "乃专"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then sort from highest to lowest.", "out": "乃专"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then sort descending.", "out": "乃专"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then sort largest first.", "out": "乃专"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort in descending order.", "out": "乃专"} {"kind": "builder", "in": "乃专", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乃专", "out": "Take a list of integers; drop the leading negative values, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything 5 or below.", "out": "丈主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only numbers greater than 5.", "out": "丈主"} {"kind": "speaker", "in": "Take a list of integers; double each, then filter for numbers above 5.", "out": "丈主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me values where x is greater than 5.", "out": "丈主"} {"kind": "speaker", "in": "Take a list of integers; double each, then show me only the values that are bigger than five.", "out": "丈主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep values greater than five.", "out": "丈主"} {"kind": "builder", "in": "丈主", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丈主", "out": "Take a list of integers; double each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then convert each to upper case.", "out": "丨丟"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then change all strings to uppercase.", "out": "丨丟"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then make every string uppercase.", "out": "丨丟"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then uppercase each one.", "out": "丨丟"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then make all the strings uppercase.", "out": "丨丟"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then convert all strings to uppercase letters.", "out": "丨丟"} {"kind": "builder", "in": "丨丟", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "丨丟", "out": "Take a list of strings; keep the first character of each (dropping empties), then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then make every value non-negative.", "out": "不丏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then absolute value for all items.", "out": "不丏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take absolute values.", "out": "不丏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn negatives into positives.", "out": "不丏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then abs each element.", "out": "不丏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the absolute value of each.", "out": "不丏"} {"kind": "builder", "in": "不丏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "不丏", "out": "Take a list of integers; subtract one from each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values above zero.", "out": "乂七"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then filter for positive numbers.", "out": "乂七"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only positive numbers.", "out": "乂七"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the positives.", "out": "乂七"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove negatives.", "out": "乂七"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep the positive numbers.", "out": "乂七"} {"kind": "builder", "in": "乂七", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "乂七", "out": "Take a list of integers; take values while they are positive, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then default to [0] when there is nothing.", "out": "与么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then when the list is empty, substitute a zero value.", "out": "与么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then replace an empty list with one zero.", "out": "与么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then zero it out if it's empty.", "out": "与么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then use zero if the list is empty.", "out": "与么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then default to zero when empty.", "out": "与么"} {"kind": "builder", "in": "与么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与么", "out": "Take a list of integers; negate each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only odd values.", "out": "丕丁"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then eliminate the even numbers.", "out": "丕丁"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only odd values.", "out": "丕丁"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then eliminate the even numbers.", "out": "丕丁"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only odd values.", "out": "丕丁"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then eliminate the even numbers.", "out": "丕丁"} {"kind": "builder", "in": "丕丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丕丁", "out": "Take a list of integers; keep only the first three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then make every value non-negative.", "out": "义丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then absolute value for all items.", "out": "义丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take absolute values.", "out": "义丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn negatives into positives.", "out": "义丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then abs each element.", "out": "义丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the absolute value of each.", "out": "义丏"} {"kind": "builder", "in": "义丏", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "义丏", "out": "Take a list of integers; pad with zeros to at least three elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep the leading run of positive numbers.", "out": "九乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then take values while they are positive.", "out": "九乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take positive values then stop.", "out": "九乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep going while positive.", "out": "九乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then stop at first non positive.", "out": "九乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take while greater than zero.", "out": "九乂"} {"kind": "builder", "in": "九乂", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "九乂", "out": "Take a list of people records (name, age); extract the ages, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then convert each to upper case.", "out": "乖丟"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then change all strings to uppercase.", "out": "乖丟"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then make every string uppercase.", "out": "乖丟"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then uppercase each one.", "out": "乖丟"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then make all the strings uppercase.", "out": "乖丟"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then convert all strings to uppercase letters.", "out": "乖丟"} {"kind": "builder", "in": "乖丟", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "乖丟", "out": "Take a list of strings; sort alphabetically, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers.", "out": "举乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive.", "out": "举乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop.", "out": "举乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive.", "out": "举乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive.", "out": "举乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero.", "out": "举乂"} {"kind": "builder", "in": "举乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "举乂", "out": "Take a list of integers; drop the zeros, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only odd values.", "out": "不丁"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then eliminate the even numbers.", "out": "不丁"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only odd values.", "out": "不丁"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then eliminate the even numbers.", "out": "不丁"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only odd values.", "out": "不丁"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then eliminate the even numbers.", "out": "不丁"} {"kind": "builder", "in": "不丁", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "不丁", "out": "Take a list of integers; subtract one from each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give the smallest value (0 if none).", "out": "丘丛"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then what's the smallest element, or 0 if there's nothing.", "out": "丘丛"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then find the min, defaulting to 0.", "out": "丘丛"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then minimum value, zero otherwise.", "out": "丘丛"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then get the minimum value or zero if empty.", "out": "丘丛"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give me the min or 0.", "out": "丘丛"} {"kind": "builder", "in": "丘丛", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丘丛", "out": "Take a list of integers; cap each value at 10, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values.", "out": "串丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers.", "out": "串丁"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values.", "out": "串丁"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers.", "out": "串丁"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values.", "out": "串丁"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers.", "out": "串丁"} {"kind": "builder", "in": "串丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "串丁", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two.", "out": "上丈"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list.", "out": "上丈"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two.", "out": "上丈"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list.", "out": "上丈"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two.", "out": "上丈"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list.", "out": "上丈"} {"kind": "builder", "in": "上丈", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "上丈", "out": "Take a list of integers; square each, then double each."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then give the maximum string length.", "out": "丨乜"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then max length of all strings.", "out": "丨乜"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then what's the max string length.", "out": "丨乜"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then return the length of the longest string (0 if none).", "out": "丨乜"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then how long is the longest string.", "out": "丨乜"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then find the longest string length.", "out": "丨乜"} {"kind": "builder", "in": "丨乜", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丨乜", "out": "Take a list of strings; keep the first character of each (dropping empties), then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then extend to length 3 using zeros.", "out": "丕义"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then pad to 3.", "out": "丕义"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then extend to length 3 using zeros.", "out": "丕义"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then pad to 3.", "out": "丕义"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then extend to length 3 using zeros.", "out": "丕义"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then pad to 3.", "out": "丕义"} {"kind": "builder", "in": "丕义", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丕义", "out": "Take a list of integers; keep only the first three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then return the length.", "out": "一东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then count them.", "out": "一东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then what's the count.", "out": "一东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then return how many remain.", "out": "一东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then what's left.", "out": "一东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then how many are left.", "out": "一东"} {"kind": "builder", "in": "一东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n return len(r)"} {"kind": "translator", "in": "一东", "out": "Take a list of integers; keep the even numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values below zero.", "out": "丑万"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then get the negative numbers.", "out": "丑万"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep values below zero.", "out": "丑万"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then get the negative numbers.", "out": "丑万"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep values below zero.", "out": "丑万"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then get the negative numbers.", "out": "丑万"} {"kind": "builder", "in": "丑万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丑万", "out": "Take a list of integers; sort ascending, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then add them all up.", "out": "丸丙"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then add all those together.", "out": "丸丙"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then give back the total.", "out": "丸丙"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then sum r.", "out": "丸丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then add them up.", "out": "丸丙"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then calculate the sum of all elements.", "out": "丸丙"} {"kind": "builder", "in": "丸丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return sum(r)"} {"kind": "translator", "in": "丸丙", "out": "Take a list of integers; sort by absolute value, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increase every value by 10.", "out": "为丽"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then add 10 to each item.", "out": "为丽"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then shift each up by ten.", "out": "为丽"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then increase all numbers by 10.", "out": "为丽"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then add 10 to everything.", "out": "为丽"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then give everything a boost of 10.", "out": "为丽"} {"kind": "builder", "in": "为丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "为丽", "out": "Take a list of integers; drop the first and last elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values divisible by 3.", "out": "且串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep items where x mod 3 equals zero.", "out": "且串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything not divisible by three.", "out": "且串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter out everything except multiples of three.", "out": "且串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only multiples of three.", "out": "且串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiples of three only.", "out": "且串"} {"kind": "builder", "in": "且串", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "且串", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the sign of each.", "out": "乂与"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then turn positives to negatives and vice versa.", "out": "乂与"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then flip the sign of each.", "out": "乂与"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then turn positives to negatives and vice versa.", "out": "乂与"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip the sign of each.", "out": "乂与"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then turn positives to negatives and vice versa.", "out": "乂与"} {"kind": "builder", "in": "乂与", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乂与", "out": "Take a list of integers; take values while they are positive, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then check if values are in increasing order.", "out": "丁乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give me a yes or no if the list is sorted.", "out": "丁乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then is this list sorted.", "out": "丁乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丁乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then tell me if it's sorted ascending.", "out": "丁乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then return whether the list is sorted ascending.", "out": "丁乎"} {"kind": "builder", "in": "丁乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丁乎", "out": "Take a list of integers; keep the odd numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item.", "out": "久世"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head.", "out": "久世"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item.", "out": "久世"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head.", "out": "久世"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item.", "out": "久世"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head.", "out": "久世"} {"kind": "builder", "in": "久世", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n return r"} {"kind": "translator", "in": "久世", "out": "Take a list of integers; keep everything before the first zero, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything 5 or below.", "out": "举主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only numbers greater than 5.", "out": "举主"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then filter for numbers above 5.", "out": "举主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give me values where x is greater than 5.", "out": "举主"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then show me only the values that are bigger than five.", "out": "举主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep values greater than five.", "out": "举主"} {"kind": "builder", "in": "举主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "举主", "out": "Take a list of integers; drop the zeros, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply them all together.", "out": "主乐"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then multiply them all.", "out": "主乐"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then multiply all the numbers together.", "out": "主乐"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then get the product.", "out": "主乐"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then find the product of these.", "out": "主乐"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then return their product.", "out": "主乐"} {"kind": "builder", "in": "主乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "主乐", "out": "Take a list of integers; keep values greater than five, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increase every value by 10.", "out": "丑丽"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then add 10 to each item.", "out": "丑丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then shift each up by ten.", "out": "丑丽"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then increase all numbers by 10.", "out": "丑丽"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then add 10 to everything.", "out": "丑丽"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then give everything a boost of 10.", "out": "丑丽"} {"kind": "builder", "in": "丑丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丑丽", "out": "Take a list of integers; sort ascending, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increase every value by 10.", "out": "久丽"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then add 10 to each item.", "out": "久丽"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then shift each up by ten.", "out": "久丽"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then increase all numbers by 10.", "out": "久丽"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then add 10 to everything.", "out": "久丽"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then give everything a boost of 10.", "out": "久丽"} {"kind": "builder", "in": "久丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "久丽", "out": "Take a list of integers; keep everything before the first zero, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then count the even numbers.", "out": "丕乓"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then what's the even count.", "out": "丕乓"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give the number of evens.", "out": "丕乓"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then find how many values are divisible by two.", "out": "丕乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then how many are even.", "out": "丕乓"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then get the total number of even values in the list.", "out": "丕乓"} {"kind": "builder", "in": "丕乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丕乓", "out": "Take a list of integers; keep only the first three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the list around.", "out": "丁丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then flip the order around.", "out": "丁丐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then put the elements backwards.", "out": "丁丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then reverse that for me.", "out": "丁丐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip it backwards.", "out": "丁丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then make it backwards.", "out": "丁丐"} {"kind": "builder", "in": "丁丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丁丐", "out": "Take a list of integers; keep the odd numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; square each, then give the largest value (0 if none).", "out": "上业"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then The biggest one, or 0 if it's empty.", "out": "上业"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then Get the maximum value, or zero if there's nothing.", "out": "上业"} {"kind": "speaker", "in": "Take a list of integers; square them all, then What's the max here.", "out": "上业"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then Return the max or 0 if empty.", "out": "上业"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then return the maximum (0 if empty).", "out": "上业"} {"kind": "builder", "in": "上业", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "上业", "out": "Take a list of integers; square each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then give the largest value (0 if none).", "out": "串业"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then The biggest one, or 0 if it's empty.", "out": "串业"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then Get the maximum value, or zero if there's nothing.", "out": "串业"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then What's the max here.", "out": "串业"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Return the max or 0 if empty.", "out": "串业"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then return the maximum (0 if empty).", "out": "串业"} {"kind": "builder", "in": "串业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "串业", "out": "Take a list of integers; keep multiples of three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then check if zero appears.", "out": "义乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then find out whether there's a zero in here.", "out": "义乍"} {"kind": "builder", "in": "义乍", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return 0 in r"} {"kind": "translator", "in": "义乍", "out": "Take a list of integers; pad with zeros to at least three elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove repeated values.", "out": "串且"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then unique values preserving order.", "out": "串且"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove repeated values.", "out": "串且"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then unique values preserving order.", "out": "串且"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove repeated values.", "out": "串且"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then unique values preserving order.", "out": "串且"} {"kind": "builder", "in": "串且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "串且", "out": "Take a list of integers; keep multiples of three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove both ends.", "out": "丏为"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then trim the edges.", "out": "丏为"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then trim one element off each end.", "out": "丏为"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then cut off the first and last.", "out": "丏为"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first and last elements.", "out": "丏为"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep only the middle part.", "out": "丏为"} {"kind": "builder", "in": "丏为", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丏为", "out": "Take a list of integers; take the absolute value of each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then default to [0] when there is nothing.", "out": "丈么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then when the list is empty, substitute a zero value.", "out": "丈么"} {"kind": "speaker", "in": "Take a list of integers; double each, then replace an empty list with one zero.", "out": "丈么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then zero it out if it's empty.", "out": "丈么"} {"kind": "speaker", "in": "Take a list of integers; double each, then use zero if the list is empty.", "out": "丈么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then default to zero when empty.", "out": "丈么"} {"kind": "builder", "in": "丈么", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丈么", "out": "Take a list of integers; double each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values divisible by 3.", "out": "九串"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep items where x mod 3 equals zero.", "out": "九串"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then drop anything not divisible by three.", "out": "九串"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then filter out everything except multiples of three.", "out": "九串"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only multiples of three.", "out": "九串"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiples of three only.", "out": "九串"} {"kind": "builder", "in": "九串", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "九串", "out": "Take a list of people records (name, age); extract the ages, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; square each, then extend to length 3 using zeros.", "out": "上义"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then pad to 3.", "out": "上义"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then extend to length 3 using zeros.", "out": "上义"} {"kind": "speaker", "in": "Take a list of integers; square them all, then pad to 3.", "out": "上义"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then extend to length 3 using zeros.", "out": "上义"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then pad to 3.", "out": "上义"} {"kind": "builder", "in": "上义", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "上义", "out": "Take a list of integers; square each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then default to [0] when there is nothing.", "out": "丕么"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then when the list is empty, substitute a zero value.", "out": "丕么"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then replace an empty list with one zero.", "out": "丕么"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then zero it out if it's empty.", "out": "丕么"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then use zero if the list is empty.", "out": "丕么"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then default to zero when empty.", "out": "丕么"} {"kind": "builder", "in": "丕么", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丕么", "out": "Take a list of integers; keep only the first three, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the list around.", "out": "七丐"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then flip the order around.", "out": "七丐"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then put the elements backwards.", "out": "七丐"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then reverse that for me.", "out": "七丐"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip it backwards.", "out": "七丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then make it backwards.", "out": "七丐"} {"kind": "builder", "in": "七丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "七丐", "out": "Take a list of integers; keep the positive numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then default to [0] when there is nothing.", "out": "下么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then when the list is empty, substitute a zero value.", "out": "下么"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then replace an empty list with one zero.", "out": "下么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then zero it out if it's empty.", "out": "下么"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then use zero if the list is empty.", "out": "下么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then default to zero when empty.", "out": "下么"} {"kind": "builder", "in": "下么", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "下么", "out": "Take a list of integers; add one to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then add them all up.", "out": "举丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then add all those together.", "out": "举丙"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give back the total.", "out": "举丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sum r.", "out": "举丙"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then add them up.", "out": "举丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then calculate the sum of all elements.", "out": "举丙"} {"kind": "builder", "in": "举丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return sum(r)"} {"kind": "translator", "in": "举丙", "out": "Take a list of integers; drop the zeros, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; negate each, then count the even numbers.", "out": "与乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then what's the even count.", "out": "与乓"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give the number of evens.", "out": "与乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then find how many values are divisible by two.", "out": "与乓"} {"kind": "speaker", "in": "Take a list of integers; negate each, then how many are even.", "out": "与乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the total number of even values in the list.", "out": "与乓"} {"kind": "builder", "in": "与乓", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "与乓", "out": "Take a list of integers; negate each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then find the first even number, defaulting to 0.", "out": "专乒"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then first even value zero if not found.", "out": "专乒"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then find the first even number, defaulting to 0.", "out": "专乒"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then first even value zero if not found.", "out": "专乒"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then find the first even number, defaulting to 0.", "out": "专乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then first even value zero if not found.", "out": "专乒"} {"kind": "builder", "in": "专乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "专乒", "out": "Take a list of integers; sort descending, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then take each string's first letter.", "out": "丧丨"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then give me the first letter of everything.", "out": "丧丨"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then reduce each string to its first character.", "out": "丧丨"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then take first char drop blanks.", "out": "丧丨"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then keep first letters only.", "out": "丧丨"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then first letter from each item that isn't empty.", "out": "丧丨"} {"kind": "builder", "in": "丧丨", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "丧丨", "out": "Take a list of strings; drop duplicate strings keeping the first, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then make every value non-negative.", "out": "主丏"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then absolute value for all items.", "out": "主丏"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take absolute values.", "out": "主丏"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then turn negatives into positives.", "out": "主丏"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then abs each element.", "out": "主丏"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take the absolute value of each.", "out": "主丏"} {"kind": "builder", "in": "主丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "主丏", "out": "Take a list of integers; keep values greater than five, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then count the even numbers.", "out": "且乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then what's the even count.", "out": "且乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then give the number of evens.", "out": "且乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then find how many values are divisible by two.", "out": "且乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then how many are even.", "out": "且乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then get the total number of even values in the list.", "out": "且乓"} {"kind": "builder", "in": "且乓", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "且乓", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each.", "out": "丘与"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa.", "out": "丘与"} {"kind": "builder", "in": "丘与", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丘与", "out": "Take a list of integers; cap each value at 10, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only even values.", "out": "串一"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then extract all even numbers.", "out": "串一"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only even values.", "out": "串一"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then extract all even numbers.", "out": "串一"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only even values.", "out": "串一"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then extract all even numbers.", "out": "串一"} {"kind": "builder", "in": "串一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "串一", "out": "Take a list of integers; keep multiples of three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove repeated values.", "out": "主且"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then unique values preserving order.", "out": "主且"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove repeated values.", "out": "主且"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then unique values preserving order.", "out": "主且"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove repeated values.", "out": "主且"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then unique values preserving order.", "out": "主且"} {"kind": "builder", "in": "主且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "主且", "out": "Take a list of integers; keep values greater than five, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values below zero.", "out": "且万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then get the negative numbers.", "out": "且万"} {"kind": "builder", "in": "且万", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "且万", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort largest to smallest.", "out": "丁专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort by descending values.", "out": "丁专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort from highest to lowest.", "out": "丁专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort descending.", "out": "丁专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort largest first.", "out": "丁专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort in descending order.", "out": "丁专"} {"kind": "builder", "in": "丁专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丁专", "out": "Take a list of integers; keep the odd numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then find the first even number, defaulting to 0.", "out": "义乒"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then first even value zero if not found.", "out": "义乒"} {"kind": "builder", "in": "义乒", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "义乒", "out": "Take a list of integers; pad with zeros to at least three elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then check if values are in increasing order.", "out": "与乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give me a yes or no if the list is sorted.", "out": "与乎"} {"kind": "speaker", "in": "Take a list of integers; negate each, then is this list sorted.", "out": "与乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "与乎"} {"kind": "speaker", "in": "Take a list of integers; negate each, then tell me if it's sorted ascending.", "out": "与乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then return whether the list is sorted ascending.", "out": "与乎"} {"kind": "builder", "in": "与乎", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "与乎", "out": "Take a list of integers; negate each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove repeated values.", "out": "么且"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then unique values preserving order.", "out": "么且"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove repeated values.", "out": "么且"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then unique values preserving order.", "out": "么且"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove repeated values.", "out": "么且"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then unique values preserving order.", "out": "么且"} {"kind": "builder", "in": "么且", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "么且", "out": "Take a list of integers; if empty, use a single zero, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give the smallest value (0 if none).", "out": "丁丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then what's the smallest element, or 0 if there's nothing.", "out": "丁丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then find the min, defaulting to 0.", "out": "丁丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then minimum value, zero otherwise.", "out": "丁丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then get the minimum value or zero if empty.", "out": "丁丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give me the min or 0.", "out": "丁丛"} {"kind": "builder", "in": "丁丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "丁丛", "out": "Take a list of integers; keep the odd numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then give back the lengthiest string.", "out": "丟丰"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then Longest string please.", "out": "丟丰"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then give back the lengthiest string.", "out": "丟丰"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then Longest string please.", "out": "丟丰"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then give back the lengthiest string.", "out": "丟丰"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then Longest string please.", "out": "丟丰"} {"kind": "builder", "in": "丟丰", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丟丰", "out": "Take a list of strings; uppercase each string, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each by two.", "out": "世丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then double each item in the list.", "out": "世丈"} {"kind": "builder", "in": "世丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "世丈", "out": "Take a list of integers; drop the first element, then double each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the list around.", "out": "么丐"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then flip the order around.", "out": "么丐"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then put the elements backwards.", "out": "么丐"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then reverse that for me.", "out": "么丐"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip it backwards.", "out": "么丐"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then make it backwards.", "out": "么丐"} {"kind": "builder", "in": "么丐", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "么丐", "out": "Take a list of integers; if empty, use a single zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increase every value by 10.", "out": "世丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then add 10 to each item.", "out": "世丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then shift each up by ten.", "out": "世丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then increase all numbers by 10.", "out": "世丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then add 10 to everything.", "out": "世丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give everything a boost of 10.", "out": "世丽"} {"kind": "builder", "in": "世丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "世丽", "out": "Take a list of integers; drop the first element, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then skip negatives at the start.", "out": "丽乃"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove all negatives at the front.", "out": "丽乃"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the initial run of negative numbers.", "out": "丽乃"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then strip the front negatives.", "out": "丽乃"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove leading negative numbers.", "out": "丽乃"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then drop negatives from start.", "out": "丽乃"} {"kind": "builder", "in": "丽乃", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丽乃", "out": "Take a list of integers; add ten to each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; negate each, then give the largest value (0 if none).", "out": "与业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then The biggest one, or 0 if it's empty.", "out": "与业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Get the maximum value, or zero if there's nothing.", "out": "与业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then What's the max here.", "out": "与业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Return the max or 0 if empty.", "out": "与业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then return the maximum (0 if empty).", "out": "与业"} {"kind": "builder", "in": "与业", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "与业", "out": "Take a list of integers; negate each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values below zero.", "out": "乃万"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then get the negative numbers.", "out": "乃万"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep values below zero.", "out": "乃万"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then get the negative numbers.", "out": "乃万"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep values below zero.", "out": "乃万"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the negative numbers.", "out": "乃万"} {"kind": "builder", "in": "乃万", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "乃万", "out": "Take a list of integers; drop the leading negative values, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then multiply them all together.", "out": "丈乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiply them all.", "out": "丈乐"} {"kind": "speaker", "in": "Take a list of integers; double each, then multiply all the numbers together.", "out": "丈乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the product.", "out": "丈乐"} {"kind": "speaker", "in": "Take a list of integers; double each, then find the product of these.", "out": "丈乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then return their product.", "out": "丈乐"} {"kind": "builder", "in": "丈乐", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丈乐", "out": "Take a list of integers; double each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then check if zero appears.", "out": "且乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then find out whether there's a zero in here.", "out": "且乍"} {"kind": "builder", "in": "且乍", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return 0 in r"} {"kind": "translator", "in": "且乍", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then add them all up.", "out": "专丙"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then add all those together.", "out": "专丙"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then give back the total.", "out": "专丙"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then sum r.", "out": "专丙"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then add them up.", "out": "专丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then calculate the sum of all elements.", "out": "专丙"} {"kind": "builder", "in": "专丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return sum(r)"} {"kind": "translator", "in": "专丙", "out": "Take a list of integers; sort descending, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then flip the sign of each.", "out": "丕与"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then turn positives to negatives and vice versa.", "out": "丕与"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then flip the sign of each.", "out": "丕与"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn positives to negatives and vice versa.", "out": "丕与"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then flip the sign of each.", "out": "丕与"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then turn positives to negatives and vice versa.", "out": "丕与"} {"kind": "builder", "in": "丕与", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丕与", "out": "Take a list of integers; keep only the first three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then decrement each value.", "out": "且不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Lower each number by one.", "out": "且不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then reduce each by one.", "out": "且不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Subtract 1 from all.", "out": "且不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Subtract one from each.", "out": "且不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Drop each by one.", "out": "且不"} {"kind": "builder", "in": "且不", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "且不", "out": "Take a list of integers; drop duplicates keeping first occurrence, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then check that there are no duplicates.", "out": "丘乏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then are the values all unique.", "out": "丘乏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then check if all values are unique.", "out": "丘乏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then return whether all values are distinct.", "out": "丘乏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then tell me if values are distinct.", "out": "丘乏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then are all values distinct.", "out": "丘乏"} {"kind": "builder", "in": "丘乏", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丘乏", "out": "Take a list of integers; cap each value at 10, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove both ends.", "out": "举为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then trim the edges.", "out": "举为"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then trim one element off each end.", "out": "举为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off the first and last.", "out": "举为"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first and last elements.", "out": "举为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the middle part.", "out": "举为"} {"kind": "builder", "in": "举为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "举为", "out": "Take a list of integers; drop the zeros, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then take the final 3 elements.", "out": "主丹"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then drop everything except the final three.", "out": "主丹"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then give me the last three elements.", "out": "主丹"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep only the last three.", "out": "主丹"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep the final three items.", "out": "主丹"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take the last three.", "out": "主丹"} {"kind": "builder", "in": "主丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "主丹", "out": "Take a list of integers; keep values greater than five, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply them all together.", "out": "久乐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then multiply them all.", "out": "久乐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then multiply all the numbers together.", "out": "久乐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then get the product.", "out": "久乐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then find the product of these.", "out": "久乐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then return their product.", "out": "久乐"} {"kind": "builder", "in": "久乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "久乐", "out": "Take a list of integers; keep everything before the first zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the list around.", "out": "万丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then flip the order around.", "out": "万丐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then put the elements backwards.", "out": "万丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then reverse that for me.", "out": "万丐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip it backwards.", "out": "万丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then make it backwards.", "out": "万丐"} {"kind": "builder", "in": "万丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "万丐", "out": "Take a list of integers; keep the negative numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value.", "out": "且下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all.", "out": "且下"} {"kind": "builder", "in": "且下", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "且下", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then check if values are in increasing order.", "out": "丸乎"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then give me a yes or no if the list is sorted.", "out": "丸乎"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then is this list sorted.", "out": "丸乎"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丸乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then tell me if it's sorted ascending.", "out": "丸乎"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then return whether the list is sorted ascending.", "out": "丸乎"} {"kind": "builder", "in": "丸乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return r == sorted(r)"} {"kind": "translator", "in": "丸乎", "out": "Take a list of integers; sort by absolute value, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values.", "out": "且丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers.", "out": "且丁"} {"kind": "builder", "in": "且丁", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "且丁", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then order by distance from zero.", "out": "专丸"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then sort based on absolute value.", "out": "专丸"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then organize by magnitude.", "out": "专丸"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then arrange by absolute value ascending.", "out": "专丸"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then sort from smallest to largest absolute value.", "out": "专丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort by absolute value.", "out": "专丸"} {"kind": "builder", "in": "专丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "专丸", "out": "Take a list of integers; sort descending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply them all together.", "out": "且乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiply them all.", "out": "且乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply all the numbers together.", "out": "且乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then get the product.", "out": "且乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then find the product of these.", "out": "且乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then return their product.", "out": "且乐"} {"kind": "builder", "in": "且乐", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return __import__('math').prod(r)"} {"kind": "translator", "in": "且乐", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep the leading run of positive numbers.", "out": "丑乂"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then take values while they are positive.", "out": "丑乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take positive values then stop.", "out": "丑乂"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep going while positive.", "out": "丑乂"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then stop at first non positive.", "out": "丑乂"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take while greater than zero.", "out": "丑乂"} {"kind": "builder", "in": "丑乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丑乂", "out": "Take a list of integers; sort ascending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove all zero values.", "out": "丸举"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then exclude zeros.", "out": "丸举"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove all zero values.", "out": "丸举"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then exclude zeros.", "out": "丸举"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove all zero values.", "out": "丸举"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then exclude zeros.", "out": "丸举"} {"kind": "builder", "in": "丸举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丸举", "out": "Take a list of integers; sort by absolute value, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then make every value non-negative.", "out": "丸丏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then absolute value for all items.", "out": "丸丏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take absolute values.", "out": "丸丏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn negatives into positives.", "out": "丸丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then abs each element.", "out": "丸丏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the absolute value of each.", "out": "丸丏"} {"kind": "builder", "in": "丸丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丸丏", "out": "Take a list of integers; sort by absolute value, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep values divisible by 3.", "out": "丕串"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then keep items where x mod 3 equals zero.", "out": "丕串"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then drop anything not divisible by three.", "out": "丕串"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then filter out everything except multiples of three.", "out": "丕串"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only multiples of three.", "out": "丕串"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then multiples of three only.", "out": "丕串"} {"kind": "builder", "in": "丕串", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丕串", "out": "Take a list of integers; keep only the first three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then count the even numbers.", "out": "丏乓"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then what's the even count.", "out": "丏乓"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then give the number of evens.", "out": "丏乓"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then find how many values are divisible by two.", "out": "丏乓"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then how many are even.", "out": "丏乓"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then get the total number of even values in the list.", "out": "丏乓"} {"kind": "builder", "in": "丏乓", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丏乓", "out": "Take a list of integers; take the absolute value of each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around.", "out": "下丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around.", "out": "下丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards.", "out": "下丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me.", "out": "下丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards.", "out": "下丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards.", "out": "下丐"} {"kind": "builder", "in": "下丐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "下丐", "out": "Take a list of integers; add one to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then concatenate with commas between.", "out": "丨中"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then add commas between items.", "out": "丨中"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then return them as one comma-separated string.", "out": "丨中"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then separate by comma.", "out": "丨中"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then join with commas.", "out": "丨中"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then comma join.", "out": "丨中"} {"kind": "builder", "in": "丨中", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n return ','.join(r)"} {"kind": "translator", "in": "丨中", "out": "Take a list of strings; keep the first character of each (dropping empties), then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; double each, then order by distance from zero.", "out": "丈丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort based on absolute value.", "out": "丈丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then organize by magnitude.", "out": "丈丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then arrange by absolute value ascending.", "out": "丈丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from smallest to largest absolute value.", "out": "丈丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by absolute value.", "out": "丈丸"} {"kind": "builder", "in": "丈丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丈丸", "out": "Take a list of integers; double each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then give the largest value (0 if none).", "out": "丸业"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then The biggest one, or 0 if it's empty.", "out": "丸业"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then Get the maximum value, or zero if there's nothing.", "out": "丸业"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then What's the max here.", "out": "丸业"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Return the max or 0 if empty.", "out": "丸业"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then return the maximum (0 if empty).", "out": "丸业"} {"kind": "builder", "in": "丸业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return max(r) if r else 0"} {"kind": "translator", "in": "丸业", "out": "Take a list of integers; sort by absolute value, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then check if there is an even number.", "out": "丹之"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then find out whether any value is divisible by 2.", "out": "丹之"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then check if there is an even number.", "out": "丹之"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then find out whether any value is divisible by 2.", "out": "丹之"} {"kind": "speaker", "in": "Take a list of integers; last three only, then check if there is an even number.", "out": "丹之"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then find out whether any value is divisible by 2.", "out": "丹之"} {"kind": "builder", "in": "丹之", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丹之", "out": "Take a list of integers; keep only the last three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then count the even numbers.", "out": "丐乓"} {"kind": "speaker", "in": "Take a list of integers; reverse, then what's the even count.", "out": "丐乓"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then give the number of evens.", "out": "丐乓"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then find how many values are divisible by two.", "out": "丐乓"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then how many are even.", "out": "丐乓"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then get the total number of even values in the list.", "out": "丐乓"} {"kind": "builder", "in": "丐乓", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丐乓", "out": "Take a list of integers; reverse the order, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then check if every number is above zero.", "out": "万乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then verify that all values exceed zero.", "out": "万乌"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then are all values positive.", "out": "万乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then are they all above zero.", "out": "万乌"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then tell me if all numbers are greater than zero.", "out": "万乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then return whether all values are positive.", "out": "万乌"} {"kind": "builder", "in": "万乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "万乌", "out": "Take a list of integers; keep the negative numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then take the first 3 elements.", "out": "丑丕"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove everything after the third.", "out": "丑丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then truncate to three items.", "out": "丑丕"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then show the first three.", "out": "丑丕"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then take the first three.", "out": "丑丕"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep first 3.", "out": "丑丕"} {"kind": "builder", "in": "丑丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:3]\n return r"} {"kind": "translator", "in": "丑丕", "out": "Take a list of integers; sort ascending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove repeated values.", "out": "丏且"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then unique values preserving order.", "out": "丏且"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove repeated values.", "out": "丏且"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then unique values preserving order.", "out": "丏且"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove repeated values.", "out": "丏且"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then unique values preserving order.", "out": "丏且"} {"kind": "builder", "in": "丏且", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丏且", "out": "Take a list of integers; take the absolute value of each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values above zero.", "out": "丈七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter for positive numbers.", "out": "丈七"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only positive numbers.", "out": "丈七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positives.", "out": "丈七"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove negatives.", "out": "丈七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positive numbers.", "out": "丈七"} {"kind": "builder", "in": "丈七", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丈七", "out": "Take a list of integers; double each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then check that there are no duplicates.", "out": "义乏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then are the values all unique.", "out": "义乏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then check if all values are unique.", "out": "义乏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then return whether all values are distinct.", "out": "义乏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then tell me if values are distinct.", "out": "义乏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then are all values distinct.", "out": "义乏"} {"kind": "builder", "in": "义乏", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return len(r) == len(set(r))"} {"kind": "translator", "in": "义乏", "out": "Take a list of integers; pad with zeros to at least three elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start.", "out": "九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front.", "out": "九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers.", "out": "九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives.", "out": "九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers.", "out": "九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start.", "out": "九乃"} {"kind": "builder", "in": "九乃", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "九乃", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove all zero values.", "out": "乂举"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then exclude zeros.", "out": "乂举"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove all zero values.", "out": "乂举"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then exclude zeros.", "out": "乂举"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove all zero values.", "out": "乂举"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then exclude zeros.", "out": "乂举"} {"kind": "builder", "in": "乂举", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乂举", "out": "Take a list of integers; take values while they are positive, then drop the zeros."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then take each string's first letter.", "out": "丟丨"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then give me the first letter of everything.", "out": "丟丨"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then reduce each string to its first character.", "out": "丟丨"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then take first char drop blanks.", "out": "丟丨"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then keep first letters only.", "out": "丟丨"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then first letter from each item that isn't empty.", "out": "丟丨"} {"kind": "builder", "in": "丟丨", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "丟丨", "out": "Take a list of strings; uppercase each string, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort largest to smallest.", "out": "主专"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort by descending values.", "out": "主专"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then sort from highest to lowest.", "out": "主专"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then sort descending.", "out": "主专"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort largest first.", "out": "主专"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort in descending order.", "out": "主专"} {"kind": "builder", "in": "主专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "主专", "out": "Take a list of integers; keep values greater than five, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then check if there is an even number.", "out": "举之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then find out whether any value is divisible by 2.", "out": "举之"} {"kind": "builder", "in": "举之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "举之", "out": "Take a list of integers; drop the zeros, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; double each, then check if zero appears.", "out": "丈乍"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then find out whether there's a zero in here.", "out": "丈乍"} {"kind": "builder", "in": "丈乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return 0 in r"} {"kind": "translator", "in": "丈乍", "out": "Take a list of integers; double each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then skip negatives at the start.", "out": "为乃"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove all negatives at the front.", "out": "为乃"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the initial run of negative numbers.", "out": "为乃"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then strip the front negatives.", "out": "为乃"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove leading negative numbers.", "out": "为乃"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then drop negatives from start.", "out": "为乃"} {"kind": "builder", "in": "为乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "为乃", "out": "Take a list of integers; drop the first and last elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then check that there are no duplicates.", "out": "串乏"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then are the values all unique.", "out": "串乏"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then check if all values are unique.", "out": "串乏"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then return whether all values are distinct.", "out": "串乏"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then tell me if values are distinct.", "out": "串乏"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then are all values distinct.", "out": "串乏"} {"kind": "builder", "in": "串乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "串乏", "out": "Take a list of integers; keep multiples of three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort largest to smallest.", "out": "万专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort by descending values.", "out": "万专"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort from highest to lowest.", "out": "万专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort descending.", "out": "万专"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort largest first.", "out": "万专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort in descending order.", "out": "万专"} {"kind": "builder", "in": "万专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "万专", "out": "Take a list of integers; keep the negative numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add them all up.", "out": "下丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add all those together.", "out": "下丙"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give back the total.", "out": "下丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sum r.", "out": "下丙"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add them up.", "out": "下丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then calculate the sum of all elements.", "out": "下丙"} {"kind": "builder", "in": "下丙", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return sum(r)"} {"kind": "translator", "in": "下丙", "out": "Take a list of integers; add one to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values divisible by 3.", "out": "丸串"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep items where x mod 3 equals zero.", "out": "丸串"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then drop anything not divisible by three.", "out": "丸串"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then filter out everything except multiples of three.", "out": "丸串"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only multiples of three.", "out": "丸串"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiples of three only.", "out": "丸串"} {"kind": "builder", "in": "丸串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丸串", "out": "Take a list of integers; sort by absolute value, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then check if values are in increasing order.", "out": "一乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me a yes or no if the list is sorted.", "out": "一乎"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then is this list sorted.", "out": "一乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "一乎"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then tell me if it's sorted ascending.", "out": "一乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then return whether the list is sorted ascending.", "out": "一乎"} {"kind": "builder", "in": "一乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n return r == sorted(r)"} {"kind": "translator", "in": "一乎", "out": "Take a list of integers; keep the even numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then drop anything 5 or below.", "out": "为主"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then keep only numbers greater than 5.", "out": "为主"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then filter for numbers above 5.", "out": "为主"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then give me values where x is greater than 5.", "out": "为主"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then show me only the values that are bigger than five.", "out": "为主"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep values greater than five.", "out": "为主"} {"kind": "builder", "in": "为主", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "为主", "out": "Take a list of integers; drop the first and last elements, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then give back the lengthiest string.", "out": "严丰"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then Longest string please.", "out": "严丰"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then give back the lengthiest string.", "out": "严丰"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then Longest string please.", "out": "严丰"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then give back the lengthiest string.", "out": "严丰"} {"kind": "speaker", "in": "Take a list of strings; length sort, then Longest string please.", "out": "严丰"} {"kind": "builder", "in": "严丰", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "严丰", "out": "Take a list of strings; sort by length, shortest first, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero.", "out": "丕丸"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value.", "out": "丕丸"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude.", "out": "丕丸"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending.", "out": "丕丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value.", "out": "丕丸"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value.", "out": "丕丸"} {"kind": "builder", "in": "丕丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丕丸", "out": "Take a list of integers; keep only the first three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then return the length.", "out": "七东"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then count them.", "out": "七东"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then what's the count.", "out": "七东"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then return how many remain.", "out": "七东"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then what's left.", "out": "七东"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then how many are left.", "out": "七东"} {"kind": "builder", "in": "七东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return len(r)"} {"kind": "translator", "in": "七东", "out": "Take a list of integers; keep the positive numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove all zero values.", "out": "专举"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then exclude zeros.", "out": "专举"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove all zero values.", "out": "专举"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then exclude zeros.", "out": "专举"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove all zero values.", "out": "专举"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then exclude zeros.", "out": "专举"} {"kind": "builder", "in": "专举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "专举", "out": "Take a list of integers; sort descending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then keep only non-empty strings.", "out": "丨两"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then filter empty strings.", "out": "丨两"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then remove empty strings from the list.", "out": "丨两"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then clean up empty strings.", "out": "丨两"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then delete empty entries.", "out": "丨两"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then drop empty strings.", "out": "丨两"} {"kind": "builder", "in": "丨两", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "丨两", "out": "Take a list of strings; keep the first character of each (dropping empties), then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero.", "out": "丹万"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers.", "out": "丹万"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero.", "out": "丹万"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers.", "out": "丹万"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero.", "out": "丹万"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers.", "out": "丹万"} {"kind": "builder", "in": "丹万", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丹万", "out": "Take a list of integers; keep only the last three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then default to [0] when there is nothing.", "out": "丘么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then when the list is empty, substitute a zero value.", "out": "丘么"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then replace an empty list with one zero.", "out": "丘么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then zero it out if it's empty.", "out": "丘么"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then use zero if the list is empty.", "out": "丘么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then default to zero when empty.", "out": "丘么"} {"kind": "builder", "in": "丘么", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丘么", "out": "Take a list of integers; cap each value at 10, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values divisible by 3.", "out": "乃串"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep items where x mod 3 equals zero.", "out": "乃串"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then drop anything not divisible by three.", "out": "乃串"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then filter out everything except multiples of three.", "out": "乃串"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only multiples of three.", "out": "乃串"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiples of three only.", "out": "乃串"} {"kind": "builder", "in": "乃串", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "乃串", "out": "Take a list of integers; drop the leading negative values, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then check if values are in increasing order.", "out": "下乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me a yes or no if the list is sorted.", "out": "下乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then is this list sorted.", "out": "下乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "下乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then tell me if it's sorted ascending.", "out": "下乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then return whether the list is sorted ascending.", "out": "下乎"} {"kind": "builder", "in": "下乎", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "下乎", "out": "Take a list of integers; add one to each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten.", "out": "丈丘"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10.", "out": "丈丘"} {"kind": "builder", "in": "丈丘", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丈丘", "out": "Take a list of integers; double each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then sort smallest to largest.", "out": "为丑"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Ascending sort.", "out": "为丑"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then Sort this ascending.", "out": "为丑"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Sort lowest to highest.", "out": "为丑"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then Arrange from smallest to largest.", "out": "为丑"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort ascending.", "out": "为丑"} {"kind": "builder", "in": "为丑", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "为丑", "out": "Take a list of integers; drop the first and last elements, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value.", "out": "丘下"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all.", "out": "丘下"} {"kind": "builder", "in": "丘下", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丘下", "out": "Take a list of integers; cap each value at 10, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values.", "out": "与一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers.", "out": "与一"} {"kind": "builder", "in": "与一", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "与一", "out": "Take a list of integers; negate each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then check if there is an even number.", "out": "丈之"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then find out whether any value is divisible by 2.", "out": "丈之"} {"kind": "builder", "in": "丈之", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丈之", "out": "Take a list of integers; double each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values below zero.", "out": "一万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then get the negative numbers.", "out": "一万"} {"kind": "builder", "in": "一万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "一万", "out": "Take a list of integers; keep the even numbers, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then check if values are in increasing order.", "out": "乃乎"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then give me a yes or no if the list is sorted.", "out": "乃乎"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then is this list sorted.", "out": "乃乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "乃乎"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then tell me if it's sorted ascending.", "out": "乃乎"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then return whether the list is sorted ascending.", "out": "乃乎"} {"kind": "builder", "in": "乃乎", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r == sorted(r)"} {"kind": "translator", "in": "乃乎", "out": "Take a list of integers; drop the leading negative values, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then return the length.", "out": "为东"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then count them.", "out": "为东"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then what's the count.", "out": "为东"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then return how many remain.", "out": "为东"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then what's left.", "out": "为东"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then how many are left.", "out": "为东"} {"kind": "builder", "in": "为东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n return len(r)"} {"kind": "translator", "in": "为东", "out": "Take a list of integers; drop the first and last elements, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values below zero.", "out": "专万"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then get the negative numbers.", "out": "专万"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep values below zero.", "out": "专万"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then get the negative numbers.", "out": "专万"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep values below zero.", "out": "专万"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then get the negative numbers.", "out": "专万"} {"kind": "builder", "in": "专万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "专万", "out": "Take a list of integers; sort descending, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then convert each to lower case.", "out": "乘丞"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then lowercase each one.", "out": "乘丞"} {"kind": "builder", "in": "乘丞", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "乘丞", "out": "Take a list of strings; prefix each with a hash, then lowercase each string."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then add them all up.", "out": "九丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then add all those together.", "out": "九丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then give back the total.", "out": "九丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then sum r.", "out": "九丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then add them up.", "out": "九丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then calculate the sum of all elements.", "out": "九丙"} {"kind": "builder", "in": "九丙", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n return sum(r)"} {"kind": "translator", "in": "九丙", "out": "Take a list of people records (name, age); extract the ages, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each value by itself.", "out": "丕上"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then square them all.", "out": "丕上"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then raise each to the power of two.", "out": "丕上"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then I need each number multiplied by itself.", "out": "丕上"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then square all of them.", "out": "丕上"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then multiply each element by itself.", "out": "丕上"} {"kind": "builder", "in": "丕上", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丕上", "out": "Take a list of integers; keep only the first three, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then return the length.", "out": "串东"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then count them.", "out": "串东"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then what's the count.", "out": "串东"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then return how many remain.", "out": "串东"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then what's left.", "out": "串东"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then how many are left.", "out": "串东"} {"kind": "builder", "in": "串东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return len(r)"} {"kind": "translator", "in": "串东", "out": "Take a list of integers; keep multiples of three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the sign of each.", "out": "不与"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then turn positives to negatives and vice versa.", "out": "不与"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then flip the sign of each.", "out": "不与"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn positives to negatives and vice versa.", "out": "不与"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip the sign of each.", "out": "不与"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then turn positives to negatives and vice versa.", "out": "不与"} {"kind": "builder", "in": "不与", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "不与", "out": "Take a list of integers; subtract one from each, then negate each."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then add '#' to the start of each string.", "out": "丧乘"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then make each one start with a hash.", "out": "丧乘"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then add '#' to the start of each string.", "out": "丧乘"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then make each one start with a hash.", "out": "丧乘"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then add '#' to the start of each string.", "out": "丧乘"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then make each one start with a hash.", "out": "丧乘"} {"kind": "builder", "in": "丧乘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "丧乘", "out": "Take a list of strings; drop duplicate strings keeping the first, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply them all together.", "out": "丕乐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then multiply them all.", "out": "丕乐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply all the numbers together.", "out": "丕乐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then get the product.", "out": "丕乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then find the product of these.", "out": "丕乐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then return their product.", "out": "丕乐"} {"kind": "builder", "in": "丕乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丕乐", "out": "Take a list of integers; keep only the first three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then check if values are in increasing order.", "out": "专乎"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then give me a yes or no if the list is sorted.", "out": "专乎"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then is this list sorted.", "out": "专乎"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "专乎"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then tell me if it's sorted ascending.", "out": "专乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then return whether the list is sorted ascending.", "out": "专乎"} {"kind": "builder", "in": "专乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return r == sorted(r)"} {"kind": "translator", "in": "专乎", "out": "Take a list of integers; sort descending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the first 3 elements.", "out": "丘丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then remove everything after the third.", "out": "丘丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate to three items.", "out": "丘丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then show the first three.", "out": "丘丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the first three.", "out": "丘丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep first 3.", "out": "丘丕"} {"kind": "builder", "in": "丘丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘丕", "out": "Take a list of integers; cap each value at 10, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then check if there is an even number.", "out": "下之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then find out whether any value is divisible by 2.", "out": "下之"} {"kind": "builder", "in": "下之", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "下之", "out": "Take a list of integers; add one to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep only odd values.", "out": "主丁"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then eliminate the even numbers.", "out": "主丁"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only odd values.", "out": "主丁"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then eliminate the even numbers.", "out": "主丁"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only odd values.", "out": "主丁"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then eliminate the even numbers.", "out": "主丁"} {"kind": "builder", "in": "主丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "主丁", "out": "Take a list of integers; keep values greater than five, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then skip negatives at the start.", "out": "七乃"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove all negatives at the front.", "out": "七乃"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the initial run of negative numbers.", "out": "七乃"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then strip the front negatives.", "out": "七乃"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove leading negative numbers.", "out": "七乃"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then drop negatives from start.", "out": "七乃"} {"kind": "builder", "in": "七乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "七乃", "out": "Take a list of integers; keep the positive numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the list around.", "out": "丈丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then flip the order around.", "out": "丈丐"} {"kind": "speaker", "in": "Take a list of integers; double each, then put the elements backwards.", "out": "丈丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then reverse that for me.", "out": "丈丐"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip it backwards.", "out": "丈丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then make it backwards.", "out": "丈丐"} {"kind": "builder", "in": "丈丐", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丈丐", "out": "Take a list of integers; double each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the final 3 elements.", "out": "丐丹"} {"kind": "speaker", "in": "Take a list of integers; reverse, then drop everything except the final three.", "out": "丐丹"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then give me the last three elements.", "out": "丐丹"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep only the last three.", "out": "丐丹"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep the final three items.", "out": "丐丹"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the last three.", "out": "丐丹"} {"kind": "builder", "in": "丐丹", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丐丹", "out": "Take a list of integers; reverse the order, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; square each, then add them all up.", "out": "上丙"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then add all those together.", "out": "上丙"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give back the total.", "out": "上丙"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sum r.", "out": "上丙"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then add them up.", "out": "上丙"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then calculate the sum of all elements.", "out": "上丙"} {"kind": "builder", "in": "上丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return sum(r)"} {"kind": "translator", "in": "上丙", "out": "Take a list of integers; square each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then decrement each value.", "out": "专不"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Lower each number by one.", "out": "专不"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then reduce each by one.", "out": "专不"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Subtract 1 from all.", "out": "专不"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then Subtract one from each.", "out": "专不"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then Drop each by one.", "out": "专不"} {"kind": "builder", "in": "专不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "专不", "out": "Take a list of integers; sort descending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then count the even numbers.", "out": "不乓"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then what's the even count.", "out": "不乓"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give the number of evens.", "out": "不乓"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then find how many values are divisible by two.", "out": "不乓"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then how many are even.", "out": "不乓"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the total number of even values in the list.", "out": "不乓"} {"kind": "builder", "in": "不乓", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "不乓", "out": "Take a list of integers; subtract one from each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove repeated values.", "out": "不且"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then unique values preserving order.", "out": "不且"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove repeated values.", "out": "不且"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then unique values preserving order.", "out": "不且"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove repeated values.", "out": "不且"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then unique values preserving order.", "out": "不且"} {"kind": "builder", "in": "不且", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "不且", "out": "Take a list of integers; subtract one from each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values divisible by 3.", "out": "丑串"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep items where x mod 3 equals zero.", "out": "丑串"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then drop anything not divisible by three.", "out": "丑串"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then filter out everything except multiples of three.", "out": "丑串"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only multiples of three.", "out": "丑串"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then multiples of three only.", "out": "丑串"} {"kind": "builder", "in": "丑串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丑串", "out": "Take a list of integers; sort ascending, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values.", "out": "与丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers.", "out": "与丁"} {"kind": "builder", "in": "与丁", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "与丁", "out": "Take a list of integers; negate each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest to smallest.", "out": "一专"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by descending values.", "out": "一专"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from highest to lowest.", "out": "一专"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort descending.", "out": "一专"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest first.", "out": "一专"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort in descending order.", "out": "一专"} {"kind": "builder", "in": "一专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "一专", "out": "Take a list of integers; keep the even numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then keep only non-empty strings.", "out": "乞两"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then filter empty strings.", "out": "乞两"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove empty strings from the list.", "out": "乞两"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then clean up empty strings.", "out": "乞两"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then delete empty entries.", "out": "乞两"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then drop empty strings.", "out": "乞两"} {"kind": "builder", "in": "乞两", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "乞两", "out": "Take a list of people records (name, age); extract the names, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below.", "out": "不主"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5.", "out": "不主"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5.", "out": "不主"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5.", "out": "不主"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five.", "out": "不主"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five.", "out": "不主"} {"kind": "builder", "in": "不主", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "不主", "out": "Take a list of integers; subtract one from each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest to smallest.", "out": "义专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by descending values.", "out": "义专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from highest to lowest.", "out": "义专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort descending.", "out": "义专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest first.", "out": "义专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort in descending order.", "out": "义专"} {"kind": "builder", "in": "义专", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "义专", "out": "Take a list of integers; pad with zeros to at least three elements, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the sign of each.", "out": "为与"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then turn positives to negatives and vice versa.", "out": "为与"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then flip the sign of each.", "out": "为与"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn positives to negatives and vice versa.", "out": "为与"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip the sign of each.", "out": "为与"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then turn positives to negatives and vice versa.", "out": "为与"} {"kind": "builder", "in": "为与", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "为与", "out": "Take a list of integers; drop the first and last elements, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then find the first even number, defaulting to 0.", "out": "举乒"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then first even value zero if not found.", "out": "举乒"} {"kind": "builder", "in": "举乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "举乒", "out": "Take a list of integers; drop the zeros, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value.", "out": "一下"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all.", "out": "一下"} {"kind": "builder", "in": "一下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "一下", "out": "Take a list of integers; keep the even numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value.", "out": "义下"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all.", "out": "义下"} {"kind": "builder", "in": "义下", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "义下", "out": "Take a list of integers; pad with zeros to at least three elements, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then cut the list at the first zero.", "out": "乃久"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then cut off after the first zero appears.", "out": "乃久"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take values up to (excluding) the first zero.", "out": "乃久"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the part before the first 0.", "out": "乃久"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then truncate at the first zero.", "out": "乃久"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then delete everything starting with the first zero.", "out": "乃久"} {"kind": "builder", "in": "乃久", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "乃久", "out": "Take a list of integers; drop the leading negative values, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then check if there is an even number.", "out": "么之"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then find out whether any value is divisible by 2.", "out": "么之"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then check if there is an even number.", "out": "么之"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then find out whether any value is divisible by 2.", "out": "么之"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then check if there is an even number.", "out": "么之"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then find out whether any value is divisible by 2.", "out": "么之"} {"kind": "builder", "in": "么之", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "么之", "out": "Take a list of integers; if empty, use a single zero, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then count the records.", "out": "习乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Get the length of records.", "out": "习乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then How many records are left.", "out": "习乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Display the number of remaining records.", "out": "习乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then Show me the total number of records.", "out": "习乡"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then return how many records remain.", "out": "习乡"} {"kind": "builder", "in": "习乡", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n return len(r)"} {"kind": "translator", "in": "习乡", "out": "Take a list of people records (name, age); sort records by age, youngest first, then return how many records remain."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then check if every number is above zero.", "out": "九乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then verify that all values exceed zero.", "out": "九乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then are all values positive.", "out": "九乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then are they all above zero.", "out": "九乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then tell me if all numbers are greater than zero.", "out": "九乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then return whether all values are positive.", "out": "九乌"} {"kind": "builder", "in": "九乌", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "九乌", "out": "Take a list of people records (name, age); extract the ages, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give the smallest value (0 if none).", "out": "万丛"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then what's the smallest element, or 0 if there's nothing.", "out": "万丛"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then find the min, defaulting to 0.", "out": "万丛"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then minimum value, zero otherwise.", "out": "万丛"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then get the minimum value or zero if empty.", "out": "万丛"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then give me the min or 0.", "out": "万丛"} {"kind": "builder", "in": "万丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "万丛", "out": "Take a list of integers; keep the negative numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then find the first even number, defaulting to 0.", "out": "丽乒"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then first even value zero if not found.", "out": "丽乒"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then find the first even number, defaulting to 0.", "out": "丽乒"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then first even value zero if not found.", "out": "丽乒"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then find the first even number, defaulting to 0.", "out": "丽乒"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then first even value zero if not found.", "out": "丽乒"} {"kind": "builder", "in": "丽乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丽乒", "out": "Take a list of integers; add ten to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then sort largest to smallest.", "out": "七专"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort by descending values.", "out": "七专"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then sort from highest to lowest.", "out": "七专"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then sort descending.", "out": "七专"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort largest first.", "out": "七专"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort in descending order.", "out": "七专"} {"kind": "builder", "in": "七专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "七专", "out": "Take a list of integers; keep the positive numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the first 3 elements.", "out": "九丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove everything after the third.", "out": "九丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then truncate to three items.", "out": "九丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then show the first three.", "out": "九丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then take the first three.", "out": "九丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep first 3.", "out": "九丕"} {"kind": "builder", "in": "九丕", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "九丕", "out": "Take a list of people records (name, age); extract the ages, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then add them all up.", "out": "乃丙"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then add all those together.", "out": "乃丙"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give back the total.", "out": "乃丙"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then sum r.", "out": "乃丙"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then add them up.", "out": "乃丙"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then calculate the sum of all elements.", "out": "乃丙"} {"kind": "builder", "in": "乃丙", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return sum(r)"} {"kind": "translator", "in": "乃丙", "out": "Take a list of integers; drop the leading negative values, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the sign of each.", "out": "丏与"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then turn positives to negatives and vice versa.", "out": "丏与"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then flip the sign of each.", "out": "丏与"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then turn positives to negatives and vice versa.", "out": "丏与"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip the sign of each.", "out": "丏与"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then turn positives to negatives and vice versa.", "out": "丏与"} {"kind": "builder", "in": "丏与", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丏与", "out": "Take a list of integers; take the absolute value of each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then check if values are in increasing order.", "out": "主乎"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then give me a yes or no if the list is sorted.", "out": "主乎"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then is this list sorted.", "out": "主乎"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "主乎"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then tell me if it's sorted ascending.", "out": "主乎"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then return whether the list is sorted ascending.", "out": "主乎"} {"kind": "builder", "in": "主乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return r == sorted(r)"} {"kind": "translator", "in": "主乎", "out": "Take a list of integers; keep values greater than five, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then make every value non-negative.", "out": "丽丏"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then absolute value for all items.", "out": "丽丏"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take absolute values.", "out": "丽丏"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn negatives into positives.", "out": "丽丏"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then abs each element.", "out": "丽丏"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the absolute value of each.", "out": "丽丏"} {"kind": "builder", "in": "丽丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丽丏", "out": "Take a list of integers; add ten to each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values.", "out": "举一"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers.", "out": "举一"} {"kind": "builder", "in": "举一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "举一", "out": "Take a list of integers; drop the zeros, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give the largest value (0 if none).", "out": "丁业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then The biggest one, or 0 if it's empty.", "out": "丁业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Get the maximum value, or zero if there's nothing.", "out": "丁业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then What's the max here.", "out": "丁业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Return the max or 0 if empty.", "out": "丁业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then return the maximum (0 if empty).", "out": "丁业"} {"kind": "builder", "in": "丁业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丁业", "out": "Take a list of integers; keep the odd numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then add them all up.", "out": "与丙"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then add all those together.", "out": "与丙"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give back the total.", "out": "与丙"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sum r.", "out": "与丙"} {"kind": "speaker", "in": "Take a list of integers; negate each, then add them up.", "out": "与丙"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then calculate the sum of all elements.", "out": "与丙"} {"kind": "builder", "in": "与丙", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return sum(r)"} {"kind": "translator", "in": "与丙", "out": "Take a list of integers; negate each, then return their sum."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values above zero.", "out": "九七"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then filter for positive numbers.", "out": "九七"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only positive numbers.", "out": "九七"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the positives.", "out": "九七"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove negatives.", "out": "九七"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep the positive numbers.", "out": "九七"} {"kind": "builder", "in": "九七", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "九七", "out": "Take a list of people records (name, age); extract the ages, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the list around.", "out": "主丐"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then flip the order around.", "out": "主丐"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then put the elements backwards.", "out": "主丐"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then reverse that for me.", "out": "主丐"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip it backwards.", "out": "主丐"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then make it backwards.", "out": "主丐"} {"kind": "builder", "in": "主丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "主丐", "out": "Take a list of integers; keep values greater than five, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then skip negatives at the start.", "out": "举乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove all negatives at the front.", "out": "举乃"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the initial run of negative numbers.", "out": "举乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then strip the front negatives.", "out": "举乃"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove leading negative numbers.", "out": "举乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop negatives from start.", "out": "举乃"} {"kind": "builder", "in": "举乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "举乃", "out": "Take a list of integers; drop the zeros, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each value by itself.", "out": "主上"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then square them all.", "out": "主上"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then raise each to the power of two.", "out": "主上"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then I need each number multiplied by itself.", "out": "主上"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then square all of them.", "out": "主上"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiply each element by itself.", "out": "主上"} {"kind": "builder", "in": "主上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "主上", "out": "Take a list of integers; keep values greater than five, then square each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove both ends.", "out": "丘为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then trim the edges.", "out": "丘为"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then trim one element off each end.", "out": "丘为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off the first and last.", "out": "丘为"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first and last elements.", "out": "丘为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the middle part.", "out": "丘为"} {"kind": "builder", "in": "丘为", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丘为", "out": "Take a list of integers; cap each value at 10, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increase every value by 10.", "out": "举丽"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then add 10 to each item.", "out": "举丽"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then shift each up by ten.", "out": "举丽"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then increase all numbers by 10.", "out": "举丽"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then add 10 to everything.", "out": "举丽"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give everything a boost of 10.", "out": "举丽"} {"kind": "builder", "in": "举丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "举丽", "out": "Take a list of integers; drop the zeros, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then default to [0] when there is nothing.", "out": "义么"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then when the list is empty, substitute a zero value.", "out": "义么"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then replace an empty list with one zero.", "out": "义么"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then zero it out if it's empty.", "out": "义么"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then use zero if the list is empty.", "out": "义么"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then default to zero when empty.", "out": "义么"} {"kind": "builder", "in": "义么", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "义么", "out": "Take a list of integers; pad with zeros to at least three elements, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then take the first 3 elements.", "out": "主丕"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then remove everything after the third.", "out": "主丕"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then truncate to three items.", "out": "主丕"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then show the first three.", "out": "主丕"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then take the first three.", "out": "主丕"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep first 3.", "out": "主丕"} {"kind": "builder", "in": "主丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:3]\n return r"} {"kind": "translator", "in": "主丕", "out": "Take a list of integers; keep values greater than five, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; double each, then increase every value by 10.", "out": "丈丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then add 10 to each item.", "out": "丈丽"} {"kind": "speaker", "in": "Take a list of integers; double each, then shift each up by ten.", "out": "丈丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then increase all numbers by 10.", "out": "丈丽"} {"kind": "speaker", "in": "Take a list of integers; double each, then add 10 to everything.", "out": "丈丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give everything a boost of 10.", "out": "丈丽"} {"kind": "builder", "in": "丈丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丈丽", "out": "Take a list of integers; double each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then give the smallest value (0 if none).", "out": "久丛"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then what's the smallest element, or 0 if there's nothing.", "out": "久丛"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then find the min, defaulting to 0.", "out": "久丛"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then minimum value, zero otherwise.", "out": "久丛"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then get the minimum value or zero if empty.", "out": "久丛"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then give me the min or 0.", "out": "久丛"} {"kind": "builder", "in": "久丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n return min(r) if r else 0"} {"kind": "translator", "in": "久丛", "out": "Take a list of integers; keep everything before the first zero, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten.", "out": "丽丘"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10.", "out": "丽丘"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten.", "out": "丽丘"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10.", "out": "丽丘"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten.", "out": "丽丘"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10.", "out": "丽丘"} {"kind": "builder", "in": "丽丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丽丘", "out": "Take a list of integers; add ten to each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers.", "out": "且乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive.", "out": "且乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop.", "out": "且乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive.", "out": "且乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive.", "out": "且乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero.", "out": "且乂"} {"kind": "builder", "in": "且乂", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "且乂", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then give the smallest value (0 if none).", "out": "主丛"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then what's the smallest element, or 0 if there's nothing.", "out": "主丛"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then find the min, defaulting to 0.", "out": "主丛"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then minimum value, zero otherwise.", "out": "主丛"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then get the minimum value or zero if empty.", "out": "主丛"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then give me the min or 0.", "out": "主丛"} {"kind": "builder", "in": "主丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return min(r) if r else 0"} {"kind": "translator", "in": "主丛", "out": "Take a list of integers; keep values greater than five, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values.", "out": "下丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers.", "out": "下丁"} {"kind": "builder", "in": "下丁", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "下丁", "out": "Take a list of integers; add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then multiply each value by itself.", "out": "丹上"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then square them all.", "out": "丹上"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then raise each to the power of two.", "out": "丹上"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then I need each number multiplied by itself.", "out": "丹上"} {"kind": "speaker", "in": "Take a list of integers; last three only, then square all of them.", "out": "丹上"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiply each element by itself.", "out": "丹上"} {"kind": "builder", "in": "丹上", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丹上", "out": "Take a list of integers; keep only the last three, then square each."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then concatenate with commas between.", "out": "丞中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then add commas between items.", "out": "丞中"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then return them as one comma-separated string.", "out": "丞中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then separate by comma.", "out": "丞中"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then join with commas.", "out": "丞中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then comma join.", "out": "丞中"} {"kind": "builder", "in": "丞中", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n return ','.join(r)"} {"kind": "translator", "in": "丞中", "out": "Take a list of strings; lowercase each string, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply them all together.", "out": "与乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiply them all.", "out": "与乐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply all the numbers together.", "out": "与乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the product.", "out": "与乐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then find the product of these.", "out": "与乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then return their product.", "out": "与乐"} {"kind": "builder", "in": "与乐", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "与乐", "out": "Take a list of integers; negate each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only odd values.", "out": "七丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then eliminate the even numbers.", "out": "七丁"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only odd values.", "out": "七丁"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then eliminate the even numbers.", "out": "七丁"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only odd values.", "out": "七丁"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then eliminate the even numbers.", "out": "七丁"} {"kind": "builder", "in": "七丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "七丁", "out": "Take a list of integers; keep the positive numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero.", "out": "丑丸"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value.", "out": "丑丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude.", "out": "丑丸"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending.", "out": "丑丸"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value.", "out": "丑丸"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value.", "out": "丑丸"} {"kind": "builder", "in": "丑丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丑丸", "out": "Take a list of integers; sort ascending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then convert each to upper case.", "out": "乘丟"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then change all strings to uppercase.", "out": "乘丟"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then make every string uppercase.", "out": "乘丟"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then uppercase each one.", "out": "乘丟"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then make all the strings uppercase.", "out": "乘丟"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then convert all strings to uppercase letters.", "out": "乘丟"} {"kind": "builder", "in": "乘丟", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "乘丟", "out": "Take a list of strings; prefix each with a hash, then uppercase each string."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then check if there is an even number.", "out": "九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then find out whether any value is divisible by 2.", "out": "九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then check if there is an even number.", "out": "九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then find out whether any value is divisible by 2.", "out": "九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then check if there is an even number.", "out": "九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then find out whether any value is divisible by 2.", "out": "九之"} {"kind": "builder", "in": "九之", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "九之", "out": "Take a list of people records (name, age); extract the ages, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort largest to smallest.", "out": "串专"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then sort by descending values.", "out": "串专"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then sort from highest to lowest.", "out": "串专"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then sort descending.", "out": "串专"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then sort largest first.", "out": "串专"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort in descending order.", "out": "串专"} {"kind": "builder", "in": "串专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "串专", "out": "Take a list of integers; keep multiples of three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then check if there is an even number.", "out": "专之"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then find out whether any value is divisible by 2.", "out": "专之"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then check if there is an even number.", "out": "专之"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then find out whether any value is divisible by 2.", "out": "专之"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then check if there is an even number.", "out": "专之"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then find out whether any value is divisible by 2.", "out": "专之"} {"kind": "builder", "in": "专之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "专之", "out": "Take a list of integers; sort descending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then check that there are no duplicates.", "out": "为乏"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then are the values all unique.", "out": "为乏"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then check if all values are unique.", "out": "为乏"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then return whether all values are distinct.", "out": "为乏"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then tell me if values are distinct.", "out": "为乏"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then are all values distinct.", "out": "为乏"} {"kind": "builder", "in": "为乏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "为乏", "out": "Take a list of integers; drop the first and last elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then make every value non-negative.", "out": "丕丏"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then absolute value for all items.", "out": "丕丏"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take absolute values.", "out": "丕丏"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn negatives into positives.", "out": "丕丏"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then abs each element.", "out": "丕丏"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the absolute value of each.", "out": "丕丏"} {"kind": "builder", "in": "丕丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丕丏", "out": "Take a list of integers; keep only the first three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then find the first even number, defaulting to 0.", "out": "主乒"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then first even value zero if not found.", "out": "主乒"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then find the first even number, defaulting to 0.", "out": "主乒"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then first even value zero if not found.", "out": "主乒"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then find the first even number, defaulting to 0.", "out": "主乒"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then first even value zero if not found.", "out": "主乒"} {"kind": "builder", "in": "主乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "主乒", "out": "Take a list of integers; keep values greater than five, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then check that there are no duplicates.", "out": "久乏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then are the values all unique.", "out": "久乏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then check if all values are unique.", "out": "久乏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then return whether all values are distinct.", "out": "久乏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then tell me if values are distinct.", "out": "久乏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then are all values distinct.", "out": "久乏"} {"kind": "builder", "in": "久乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n return len(r) == len(set(r))"} {"kind": "translator", "in": "久乏", "out": "Take a list of integers; keep everything before the first zero, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then find the first even number, defaulting to 0.", "out": "丐乒"} {"kind": "speaker", "in": "Take a list of integers; reverse, then first even value zero if not found.", "out": "丐乒"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then find the first even number, defaulting to 0.", "out": "丐乒"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then first even value zero if not found.", "out": "丐乒"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then find the first even number, defaulting to 0.", "out": "丐乒"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then first even value zero if not found.", "out": "丐乒"} {"kind": "builder", "in": "丐乒", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丐乒", "out": "Take a list of integers; reverse the order, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then remove repeated strings.", "out": "两丧"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then keep unique strings first appearance.", "out": "两丧"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then eliminate repeated strings preserve first occurrence.", "out": "两丧"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then drop duplicate strings keeping the first.", "out": "两丧"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then dedupe.", "out": "两丧"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then remove duplicate strings keep first.", "out": "两丧"} {"kind": "builder", "in": "两丧", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "两丧", "out": "Take a list of strings; drop empty strings, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each value by itself.", "out": "串上"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then square them all.", "out": "串上"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then raise each to the power of two.", "out": "串上"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then I need each number multiplied by itself.", "out": "串上"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then square all of them.", "out": "串上"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then multiply each element by itself.", "out": "串上"} {"kind": "builder", "in": "串上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "串上", "out": "Take a list of integers; keep multiples of three, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then find the first even number, defaulting to 0.", "out": "万乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then first even value zero if not found.", "out": "万乒"} {"kind": "builder", "in": "万乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "万乒", "out": "Take a list of integers; keep the negative numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort largest to smallest.", "out": "丐专"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort by descending values.", "out": "丐专"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then sort from highest to lowest.", "out": "丐专"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then sort descending.", "out": "丐专"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort largest first.", "out": "丐专"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort in descending order.", "out": "丐专"} {"kind": "builder", "in": "丐专", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丐专", "out": "Take a list of integers; reverse the order, then sort descending."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then convert each to upper case.", "out": "丧丟"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then change all strings to uppercase.", "out": "丧丟"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then make every string uppercase.", "out": "丧丟"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then uppercase each one.", "out": "丧丟"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then make all the strings uppercase.", "out": "丧丟"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then convert all strings to uppercase letters.", "out": "丧丟"} {"kind": "builder", "in": "丧丟", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "丧丟", "out": "Take a list of strings; drop duplicate strings keeping the first, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then return the length.", "out": "丐东"} {"kind": "speaker", "in": "Take a list of integers; reverse, then count them.", "out": "丐东"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then what's the count.", "out": "丐东"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then return how many remain.", "out": "丐东"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then what's left.", "out": "丐东"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then how many are left.", "out": "丐东"} {"kind": "builder", "in": "丐东", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return len(r)"} {"kind": "translator", "in": "丐东", "out": "Take a list of integers; reverse the order, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then cut the list at the first zero.", "out": "下久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off after the first zero appears.", "out": "下久"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take values up to (excluding) the first zero.", "out": "下久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the part before the first 0.", "out": "下久"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate at the first zero.", "out": "下久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then delete everything starting with the first zero.", "out": "下久"} {"kind": "builder", "in": "下久", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "下久", "out": "Take a list of integers; add one to each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the first 3 elements.", "out": "一丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then remove everything after the third.", "out": "一丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then truncate to three items.", "out": "一丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then show the first three.", "out": "一丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the first three.", "out": "一丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep first 3.", "out": "一丕"} {"kind": "builder", "in": "一丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "一丕", "out": "Take a list of integers; keep the even numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten.", "out": "丁丘"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10.", "out": "丁丘"} {"kind": "builder", "in": "丁丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丁丘", "out": "Take a list of integers; keep the odd numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the final 3 elements.", "out": "么丹"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then drop everything except the final three.", "out": "么丹"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then give me the last three elements.", "out": "么丹"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep only the last three.", "out": "么丹"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep the final three items.", "out": "么丹"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the last three.", "out": "么丹"} {"kind": "builder", "in": "么丹", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "么丹", "out": "Take a list of integers; if empty, use a single zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then find the first even number, defaulting to 0.", "out": "下乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then first even value zero if not found.", "out": "下乒"} {"kind": "builder", "in": "下乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "下乒", "out": "Take a list of integers; add one to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then strip spaces around each string.", "out": "乘丢"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then remove leading and trailing spaces.", "out": "乘丢"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then remove whitespace from each item.", "out": "乘丢"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then clean whitespace from each entry.", "out": "乘丢"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then trim each string.", "out": "乘丢"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then trim whitespace from each.", "out": "乘丢"} {"kind": "builder", "in": "乘丢", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "乘丢", "out": "Take a list of strings; prefix each with a hash, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then give the maximum string length.", "out": "丟乜"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then max length of all strings.", "out": "丟乜"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then what's the max string length.", "out": "丟乜"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then return the length of the longest string (0 if none).", "out": "丟乜"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then how long is the longest string.", "out": "丟乜"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then find the longest string length.", "out": "丟乜"} {"kind": "builder", "in": "丟乜", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丟乜", "out": "Take a list of strings; uppercase each string, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then check if zero appears.", "out": "世乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then find out whether there's a zero in here.", "out": "世乍"} {"kind": "builder", "in": "世乍", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n return 0 in r"} {"kind": "translator", "in": "世乍", "out": "Take a list of integers; drop the first element, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then count the even numbers.", "out": "丹乓"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then what's the even count.", "out": "丹乓"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then give the number of evens.", "out": "丹乓"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then find how many values are divisible by two.", "out": "丹乓"} {"kind": "speaker", "in": "Take a list of integers; last three only, then how many are even.", "out": "丹乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the total number of even values in the list.", "out": "丹乓"} {"kind": "builder", "in": "丹乓", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丹乓", "out": "Take a list of integers; keep only the last three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only even values.", "out": "万一"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then extract all even numbers.", "out": "万一"} {"kind": "builder", "in": "万一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "万一", "out": "Take a list of integers; keep the negative numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10.", "out": "么丽"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item.", "out": "么丽"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten.", "out": "么丽"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10.", "out": "么丽"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything.", "out": "么丽"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10.", "out": "么丽"} {"kind": "builder", "in": "么丽", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "么丽", "out": "Take a list of integers; if empty, use a single zero, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then check if values are in increasing order.", "out": "丘乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give me a yes or no if the list is sorted.", "out": "丘乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then is this list sorted.", "out": "丘乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丘乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then tell me if it's sorted ascending.", "out": "丘乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then return whether the list is sorted ascending.", "out": "丘乎"} {"kind": "builder", "in": "丘乎", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丘乎", "out": "Take a list of integers; cap each value at 10, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then keep only non-empty strings.", "out": "丢两"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then filter empty strings.", "out": "丢两"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then remove empty strings from the list.", "out": "丢两"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then clean up empty strings.", "out": "丢两"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then delete empty entries.", "out": "丢两"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then drop empty strings.", "out": "丢两"} {"kind": "builder", "in": "丢两", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "丢两", "out": "Take a list of strings; trim whitespace from each, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep only even values.", "out": "主一"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then extract all even numbers.", "out": "主一"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only even values.", "out": "主一"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then extract all even numbers.", "out": "主一"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only even values.", "out": "主一"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then extract all even numbers.", "out": "主一"} {"kind": "builder", "in": "主一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "主一", "out": "Take a list of integers; keep values greater than five, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increment each value.", "out": "丑下"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then plus one for all.", "out": "丑下"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then increment each value.", "out": "丑下"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then plus one for all.", "out": "丑下"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then increment each value.", "out": "丑下"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then plus one for all.", "out": "丑下"} {"kind": "builder", "in": "丑下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丑下", "out": "Take a list of integers; sort ascending, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values divisible by 3.", "out": "为串"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then keep items where x mod 3 equals zero.", "out": "为串"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then drop anything not divisible by three.", "out": "为串"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then filter out everything except multiples of three.", "out": "为串"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only multiples of three.", "out": "为串"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiples of three only.", "out": "为串"} {"kind": "builder", "in": "为串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "为串", "out": "Take a list of integers; drop the first and last elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then sort smallest to largest.", "out": "七丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Ascending sort.", "out": "七丑"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then Sort this ascending.", "out": "七丑"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Sort lowest to highest.", "out": "七丑"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Arrange from smallest to largest.", "out": "七丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort ascending.", "out": "七丑"} {"kind": "builder", "in": "七丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "七丑", "out": "Take a list of integers; keep the positive numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then keep only non-empty strings.", "out": "严两"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then filter empty strings.", "out": "严两"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then remove empty strings from the list.", "out": "严两"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then clean up empty strings.", "out": "严两"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then delete empty entries.", "out": "严两"} {"kind": "speaker", "in": "Take a list of strings; length sort, then drop empty strings.", "out": "严两"} {"kind": "builder", "in": "严两", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "严两", "out": "Take a list of strings; sort by length, shortest first, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values above zero.", "out": "上七"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then filter for positive numbers.", "out": "上七"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only positive numbers.", "out": "上七"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the positives.", "out": "上七"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove negatives.", "out": "上七"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep the positive numbers.", "out": "上七"} {"kind": "builder", "in": "上七", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "上七", "out": "Take a list of integers; square each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values.", "out": "丁举"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros.", "out": "丁举"} {"kind": "builder", "in": "丁举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丁举", "out": "Take a list of integers; keep the odd numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values.", "out": "一且"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order.", "out": "一且"} {"kind": "builder", "in": "一且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "一且", "out": "Take a list of integers; keep the even numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then check for an empty string.", "out": "乖乙"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then are there empty strings.", "out": "乖乙"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then is any string empty.", "out": "乖乙"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then any blanks.", "out": "乖乙"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then do any of the strings have no characters.", "out": "乖乙"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then return whether any string is empty.", "out": "乖乙"} {"kind": "builder", "in": "乖乙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return any(s == '' for s in r)"} {"kind": "translator", "in": "乖乙", "out": "Take a list of strings; sort alphabetically, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the final 3 elements.", "out": "不丹"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then drop everything except the final three.", "out": "不丹"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give me the last three elements.", "out": "不丹"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep only the last three.", "out": "不丹"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep the final three items.", "out": "不丹"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the last three.", "out": "不丹"} {"kind": "builder", "in": "不丹", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "不丹", "out": "Take a list of integers; subtract one from each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values above zero.", "out": "世七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter for positive numbers.", "out": "世七"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only positive numbers.", "out": "世七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positives.", "out": "世七"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove negatives.", "out": "世七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positive numbers.", "out": "世七"} {"kind": "builder", "in": "世七", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "世七", "out": "Take a list of integers; drop the first element, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then add '#' to the start of each string.", "out": "乞乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then make each one start with a hash.", "out": "乞乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then add '#' to the start of each string.", "out": "乞乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then make each one start with a hash.", "out": "乞乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then add '#' to the start of each string.", "out": "乞乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then make each one start with a hash.", "out": "乞乘"} {"kind": "builder", "in": "乞乘", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "乞乘", "out": "Take a list of people records (name, age); extract the names, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then count the strings.", "out": "乗丫"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then return how many strings remain.", "out": "乗丫"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then give me the total number of strings.", "out": "乗丫"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then tell me how many strings we have.", "out": "乗丫"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then what's the string count.", "out": "乗丫"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then count the remaining strings.", "out": "乗丫"} {"kind": "builder", "in": "乗丫", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n return len(r)"} {"kind": "translator", "in": "乗丫", "out": "Take a list of strings; drop strings shorter than three characters, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then default to [0] when there is nothing.", "out": "丁么"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then when the list is empty, substitute a zero value.", "out": "丁么"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then replace an empty list with one zero.", "out": "丁么"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then zero it out if it's empty.", "out": "丁么"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then use zero if the list is empty.", "out": "丁么"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then default to zero when empty.", "out": "丁么"} {"kind": "builder", "in": "丁么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丁么", "out": "Take a list of integers; keep the odd numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then find the first even number, defaulting to 0.", "out": "丕乒"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then first even value zero if not found.", "out": "丕乒"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then find the first even number, defaulting to 0.", "out": "丕乒"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then first even value zero if not found.", "out": "丕乒"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then find the first even number, defaulting to 0.", "out": "丕乒"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then first even value zero if not found.", "out": "丕乒"} {"kind": "builder", "in": "丕乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丕乒", "out": "Take a list of integers; keep only the first three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove both ends.", "out": "乂为"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then trim the edges.", "out": "乂为"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then trim one element off each end.", "out": "乂为"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then cut off the first and last.", "out": "乂为"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first and last elements.", "out": "乂为"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep only the middle part.", "out": "乂为"} {"kind": "builder", "in": "乂为", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乂为", "out": "Take a list of integers; take values while they are positive, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then convert each to lower case.", "out": "乗丞"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then lowercase each one.", "out": "乗丞"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then convert each to lower case.", "out": "乗丞"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then lowercase each one.", "out": "乗丞"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then convert each to lower case.", "out": "乗丞"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then lowercase each one.", "out": "乗丞"} {"kind": "builder", "in": "乗丞", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "乗丞", "out": "Take a list of strings; drop strings shorter than three characters, then lowercase each string."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then concatenate with commas between.", "out": "两中"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then add commas between items.", "out": "两中"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then return them as one comma-separated string.", "out": "两中"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then separate by comma.", "out": "两中"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then join with commas.", "out": "两中"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then comma join.", "out": "两中"} {"kind": "builder", "in": "两中", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n return ','.join(r)"} {"kind": "translator", "in": "两中", "out": "Take a list of strings; drop empty strings, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then check if values are in increasing order.", "out": "丑乎"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then give me a yes or no if the list is sorted.", "out": "丑乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then is this list sorted.", "out": "丑乎"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丑乎"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then tell me if it's sorted ascending.", "out": "丑乎"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then return whether the list is sorted ascending.", "out": "丑乎"} {"kind": "builder", "in": "丑乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return r == sorted(r)"} {"kind": "translator", "in": "丑乎", "out": "Take a list of integers; sort ascending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then skip negatives at the start.", "out": "丕乃"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then remove all negatives at the front.", "out": "丕乃"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the initial run of negative numbers.", "out": "丕乃"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then strip the front negatives.", "out": "丕乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove leading negative numbers.", "out": "丕乃"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then drop negatives from start.", "out": "丕乃"} {"kind": "builder", "in": "丕乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丕乃", "out": "Take a list of integers; keep only the first three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove repeated values.", "out": "丸且"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then unique values preserving order.", "out": "丸且"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove repeated values.", "out": "丸且"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then unique values preserving order.", "out": "丸且"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove repeated values.", "out": "丸且"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then unique values preserving order.", "out": "丸且"} {"kind": "builder", "in": "丸且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丸且", "out": "Take a list of integers; sort by absolute value, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then check if values are in increasing order.", "out": "乂乎"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then give me a yes or no if the list is sorted.", "out": "乂乎"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then is this list sorted.", "out": "乂乎"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "乂乎"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then tell me if it's sorted ascending.", "out": "乂乎"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then return whether the list is sorted ascending.", "out": "乂乎"} {"kind": "builder", "in": "乂乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r == sorted(r)"} {"kind": "translator", "in": "乂乎", "out": "Take a list of integers; take values while they are positive, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then make every value non-negative.", "out": "九丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then absolute value for all items.", "out": "九丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take absolute values.", "out": "九丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn negatives into positives.", "out": "九丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then abs each element.", "out": "九丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the absolute value of each.", "out": "九丏"} {"kind": "builder", "in": "九丏", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "九丏", "out": "Take a list of people records (name, age); extract the ages, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then skip negatives at the start.", "out": "丘乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then remove all negatives at the front.", "out": "丘乃"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the initial run of negative numbers.", "out": "丘乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then strip the front negatives.", "out": "丘乃"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove leading negative numbers.", "out": "丘乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop negatives from start.", "out": "丘乃"} {"kind": "builder", "in": "丘乃", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丘乃", "out": "Take a list of integers; cap each value at 10, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove both ends.", "out": "丐为"} {"kind": "speaker", "in": "Take a list of integers; reverse, then trim the edges.", "out": "丐为"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then trim one element off each end.", "out": "丐为"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then cut off the first and last.", "out": "丐为"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first and last elements.", "out": "丐为"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep only the middle part.", "out": "丐为"} {"kind": "builder", "in": "丐为", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丐为", "out": "Take a list of integers; reverse the order, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then skip negatives at the start.", "out": "主乃"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then remove all negatives at the front.", "out": "主乃"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the initial run of negative numbers.", "out": "主乃"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then strip the front negatives.", "out": "主乃"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove leading negative numbers.", "out": "主乃"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then drop negatives from start.", "out": "主乃"} {"kind": "builder", "in": "主乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "主乃", "out": "Take a list of integers; keep values greater than five, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then count the even numbers.", "out": "下乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then what's the even count.", "out": "下乓"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give the number of evens.", "out": "下乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then find how many values are divisible by two.", "out": "下乓"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then how many are even.", "out": "下乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the total number of even values in the list.", "out": "下乓"} {"kind": "builder", "in": "下乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "下乓", "out": "Take a list of integers; add one to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the leading run of positive numbers.", "out": "世乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take values while they are positive.", "out": "世乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take positive values then stop.", "out": "世乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep going while positive.", "out": "世乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then stop at first non positive.", "out": "世乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take while greater than zero.", "out": "世乂"} {"kind": "builder", "in": "世乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "世乂", "out": "Take a list of integers; drop the first element, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then order by distance from zero.", "out": "九丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort based on absolute value.", "out": "九丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then organize by magnitude.", "out": "九丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then arrange by absolute value ascending.", "out": "九丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort from smallest to largest absolute value.", "out": "九丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort by absolute value.", "out": "九丸"} {"kind": "builder", "in": "九丸", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "九丸", "out": "Take a list of people records (name, age); extract the ages, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then drop anything 5 or below.", "out": "丕主"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then keep only numbers greater than 5.", "out": "丕主"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then filter for numbers above 5.", "out": "丕主"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then give me values where x is greater than 5.", "out": "丕主"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then show me only the values that are bigger than five.", "out": "丕主"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep values greater than five.", "out": "丕主"} {"kind": "builder", "in": "丕主", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丕主", "out": "Take a list of integers; keep only the first three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the sign of each.", "out": "丽与"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then turn positives to negatives and vice versa.", "out": "丽与"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then flip the sign of each.", "out": "丽与"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn positives to negatives and vice versa.", "out": "丽与"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip the sign of each.", "out": "丽与"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then turn positives to negatives and vice versa.", "out": "丽与"} {"kind": "builder", "in": "丽与", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丽与", "out": "Take a list of integers; add ten to each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros.", "out": "且义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3.", "out": "且义"} {"kind": "builder", "in": "且义", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "且义", "out": "Take a list of integers; drop duplicates keeping first occurrence, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then concatenate with commas between.", "out": "丢中"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then add commas between items.", "out": "丢中"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then return them as one comma-separated string.", "out": "丢中"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then separate by comma.", "out": "丢中"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then join with commas.", "out": "丢中"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then comma join.", "out": "丢中"} {"kind": "builder", "in": "丢中", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n return ','.join(r)"} {"kind": "translator", "in": "丢中", "out": "Take a list of strings; trim whitespace from each, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the final 3 elements.", "out": "丁丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop everything except the final three.", "out": "丁丹"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give me the last three elements.", "out": "丁丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the last three.", "out": "丁丹"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the final three items.", "out": "丁丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the last three.", "out": "丁丹"} {"kind": "builder", "in": "丁丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丁丹", "out": "Take a list of integers; keep the odd numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then extend to length 3 using zeros.", "out": "乂义"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then pad to 3.", "out": "乂义"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then extend to length 3 using zeros.", "out": "乂义"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then pad to 3.", "out": "乂义"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then extend to length 3 using zeros.", "out": "乂义"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then pad to 3.", "out": "乂义"} {"kind": "builder", "in": "乂义", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "乂义", "out": "Take a list of integers; take values while they are positive, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then check that there are no duplicates.", "out": "丽乏"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then are the values all unique.", "out": "丽乏"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then check if all values are unique.", "out": "丽乏"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then return whether all values are distinct.", "out": "丽乏"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then tell me if values are distinct.", "out": "丽乏"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then are all values distinct.", "out": "丽乏"} {"kind": "builder", "in": "丽乏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丽乏", "out": "Take a list of integers; add ten to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply them all together.", "out": "举乐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiply them all.", "out": "举乐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply all the numbers together.", "out": "举乐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the product.", "out": "举乐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then find the product of these.", "out": "举乐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then return their product.", "out": "举乐"} {"kind": "builder", "in": "举乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "举乐", "out": "Take a list of integers; drop the zeros, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then clamp each to at most ten.", "out": "为丘"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then don't let anything exceed 10.", "out": "为丘"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then clamp each to at most ten.", "out": "为丘"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then don't let anything exceed 10.", "out": "为丘"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then clamp each to at most ten.", "out": "为丘"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then don't let anything exceed 10.", "out": "为丘"} {"kind": "builder", "in": "为丘", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "为丘", "out": "Take a list of integers; drop the first and last elements, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then check if values are in increasing order.", "out": "丽乎"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then give me a yes or no if the list is sorted.", "out": "丽乎"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then is this list sorted.", "out": "丽乎"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丽乎"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then tell me if it's sorted ascending.", "out": "丽乎"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then return whether the list is sorted ascending.", "out": "丽乎"} {"kind": "builder", "in": "丽乎", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丽乎", "out": "Take a list of integers; add ten to each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then drop anything 5 or below.", "out": "丽主"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep only numbers greater than 5.", "out": "丽主"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then filter for numbers above 5.", "out": "丽主"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then give me values where x is greater than 5.", "out": "丽主"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then show me only the values that are bigger than five.", "out": "丽主"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep values greater than five.", "out": "丽主"} {"kind": "builder", "in": "丽主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丽主", "out": "Take a list of integers; add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then give the smallest value (0 if none).", "out": "乃丛"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then what's the smallest element, or 0 if there's nothing.", "out": "乃丛"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then find the min, defaulting to 0.", "out": "乃丛"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then minimum value, zero otherwise.", "out": "乃丛"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then get the minimum value or zero if empty.", "out": "乃丛"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then give me the min or 0.", "out": "乃丛"} {"kind": "builder", "in": "乃丛", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return min(r) if r else 0"} {"kind": "translator", "in": "乃丛", "out": "Take a list of integers; drop the leading negative values, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then decrement each value.", "out": "么不"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Lower each number by one.", "out": "么不"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then reduce each by one.", "out": "么不"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Subtract 1 from all.", "out": "么不"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Subtract one from each.", "out": "么不"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Drop each by one.", "out": "么不"} {"kind": "builder", "in": "么不", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "么不", "out": "Take a list of integers; if empty, use a single zero, then subtract one from each."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then count the strings.", "out": "严丫"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then return how many strings remain.", "out": "严丫"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then give me the total number of strings.", "out": "严丫"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then tell me how many strings we have.", "out": "严丫"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then what's the string count.", "out": "严丫"} {"kind": "speaker", "in": "Take a list of strings; length sort, then count the remaining strings.", "out": "严丫"} {"kind": "builder", "in": "严丫", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n return len(r)"} {"kind": "translator", "in": "严丫", "out": "Take a list of strings; sort by length, shortest first, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then check that there are no duplicates.", "out": "丑乏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then are the values all unique.", "out": "丑乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then check if all values are unique.", "out": "丑乏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then return whether all values are distinct.", "out": "丑乏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then tell me if values are distinct.", "out": "丑乏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then are all values distinct.", "out": "丑乏"} {"kind": "builder", "in": "丑乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丑乏", "out": "Take a list of integers; sort ascending, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increment each value.", "out": "丏下"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then plus one for all.", "out": "丏下"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then increment each value.", "out": "丏下"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then plus one for all.", "out": "丏下"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then increment each value.", "out": "丏下"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then plus one for all.", "out": "丏下"} {"kind": "builder", "in": "丏下", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丏下", "out": "Take a list of integers; take the absolute value of each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything 5 or below.", "out": "义主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only numbers greater than 5.", "out": "义主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then filter for numbers above 5.", "out": "义主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give me values where x is greater than 5.", "out": "义主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then show me only the values that are bigger than five.", "out": "义主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep values greater than five.", "out": "义主"} {"kind": "builder", "in": "义主", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "义主", "out": "Take a list of integers; pad with zeros to at least three elements, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then order the strings A to Z.", "out": "丧乖"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then make it alphabetical.", "out": "丧乖"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then order the strings A to Z.", "out": "丧乖"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then make it alphabetical.", "out": "丧乖"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then order the strings A to Z.", "out": "丧乖"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then make it alphabetical.", "out": "丧乖"} {"kind": "builder", "in": "丧乖", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丧乖", "out": "Take a list of strings; drop duplicate strings keeping the first, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the sign of each.", "out": "丸与"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then turn positives to negatives and vice versa.", "out": "丸与"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then flip the sign of each.", "out": "丸与"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn positives to negatives and vice versa.", "out": "丸与"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip the sign of each.", "out": "丸与"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then turn positives to negatives and vice versa.", "out": "丸与"} {"kind": "builder", "in": "丸与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丸与", "out": "Take a list of integers; sort by absolute value, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first 3 elements.", "out": "举丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove everything after the third.", "out": "举丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate to three items.", "out": "举丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then show the first three.", "out": "举丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first three.", "out": "举丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep first 3.", "out": "举丕"} {"kind": "builder", "in": "举丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "举丕", "out": "Take a list of integers; drop the zeros, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then return the length.", "out": "万东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then count them.", "out": "万东"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then what's the count.", "out": "万东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then return how many remain.", "out": "万东"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then what's left.", "out": "万东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then how many are left.", "out": "万东"} {"kind": "builder", "in": "万东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return len(r)"} {"kind": "translator", "in": "万东", "out": "Take a list of integers; keep the negative numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then convert each to upper case.", "out": "两丟"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then change all strings to uppercase.", "out": "两丟"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then make every string uppercase.", "out": "两丟"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then uppercase each one.", "out": "两丟"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then make all the strings uppercase.", "out": "两丟"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then convert all strings to uppercase letters.", "out": "两丟"} {"kind": "builder", "in": "两丟", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "两丟", "out": "Take a list of strings; drop empty strings, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each value by itself.", "out": "专上"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then square them all.", "out": "专上"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then raise each to the power of two.", "out": "专上"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then I need each number multiplied by itself.", "out": "专上"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then square all of them.", "out": "专上"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiply each element by itself.", "out": "专上"} {"kind": "builder", "in": "专上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "专上", "out": "Take a list of integers; sort descending, then square each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove repeated values.", "out": "丐且"} {"kind": "speaker", "in": "Take a list of integers; reverse, then unique values preserving order.", "out": "丐且"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove repeated values.", "out": "丐且"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then unique values preserving order.", "out": "丐且"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove repeated values.", "out": "丐且"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then unique values preserving order.", "out": "丐且"} {"kind": "builder", "in": "丐且", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丐且", "out": "Take a list of integers; reverse the order, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increment each value.", "out": "乃下"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then plus one for all.", "out": "乃下"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then increment each value.", "out": "乃下"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then plus one for all.", "out": "乃下"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then increment each value.", "out": "乃下"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then plus one for all.", "out": "乃下"} {"kind": "builder", "in": "乃下", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "乃下", "out": "Take a list of integers; drop the leading negative values, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then cut the list at the first zero.", "out": "丽久"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then cut off after the first zero appears.", "out": "丽久"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take values up to (excluding) the first zero.", "out": "丽久"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the part before the first 0.", "out": "丽久"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then truncate at the first zero.", "out": "丽久"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then delete everything starting with the first zero.", "out": "丽久"} {"kind": "builder", "in": "丽久", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丽久", "out": "Take a list of integers; add ten to each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values below zero.", "out": "丽万"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then get the negative numbers.", "out": "丽万"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep values below zero.", "out": "丽万"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then get the negative numbers.", "out": "丽万"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep values below zero.", "out": "丽万"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then get the negative numbers.", "out": "丽万"} {"kind": "builder", "in": "丽万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丽万", "out": "Take a list of integers; add ten to each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove all zero values.", "out": "上举"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then exclude zeros.", "out": "上举"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove all zero values.", "out": "上举"} {"kind": "speaker", "in": "Take a list of integers; square them all, then exclude zeros.", "out": "上举"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove all zero values.", "out": "上举"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then exclude zeros.", "out": "上举"} {"kind": "builder", "in": "上举", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "上举", "out": "Take a list of integers; square each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then decrement each value.", "out": "串不"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Lower each number by one.", "out": "串不"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then reduce each by one.", "out": "串不"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Subtract 1 from all.", "out": "串不"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Subtract one from each.", "out": "串不"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Drop each by one.", "out": "串不"} {"kind": "builder", "in": "串不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "串不", "out": "Take a list of integers; keep multiples of three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then sum the lengths of all strings.", "out": "乖个"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then sum up all the characters across everything and tell me what you get.", "out": "乖个"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then count characters across all strings.", "out": "乖个"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then character count.", "out": "乖个"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then count all the characters.", "out": "乖个"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then total number of characters.", "out": "乖个"} {"kind": "builder", "in": "乖个", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "乖个", "out": "Take a list of strings; sort alphabetically, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply them all together.", "out": "下乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiply them all.", "out": "下乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply all the numbers together.", "out": "下乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the product.", "out": "下乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then find the product of these.", "out": "下乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then return their product.", "out": "下乐"} {"kind": "builder", "in": "下乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "下乐", "out": "Take a list of integers; add one to each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then check if zero appears.", "out": "丑乍"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then find out whether there's a zero in here.", "out": "丑乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then check if zero appears.", "out": "丑乍"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then find out whether there's a zero in here.", "out": "丑乍"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then check if zero appears.", "out": "丑乍"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then find out whether there's a zero in here.", "out": "丑乍"} {"kind": "builder", "in": "丑乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return 0 in r"} {"kind": "translator", "in": "丑乍", "out": "Take a list of integers; sort ascending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then cut the list at the first zero.", "out": "且久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off after the first zero appears.", "out": "且久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take values up to (excluding) the first zero.", "out": "且久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the part before the first 0.", "out": "且久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate at the first zero.", "out": "且久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then delete everything starting with the first zero.", "out": "且久"} {"kind": "builder", "in": "且久", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "且久", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values.", "out": "丕举"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros.", "out": "丕举"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values.", "out": "丕举"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros.", "out": "丕举"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values.", "out": "丕举"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros.", "out": "丕举"} {"kind": "builder", "in": "丕举", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丕举", "out": "Take a list of integers; keep only the first three, then drop the zeros."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then remove repeated strings.", "out": "乗丧"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then keep unique strings first appearance.", "out": "乗丧"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then eliminate repeated strings preserve first occurrence.", "out": "乗丧"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then drop duplicate strings keeping the first.", "out": "乗丧"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then dedupe.", "out": "乗丧"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then remove duplicate strings keep first.", "out": "乗丧"} {"kind": "builder", "in": "乗丧", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乗丧", "out": "Take a list of strings; drop strings shorter than three characters, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then return the length.", "out": "乂东"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then count them.", "out": "乂东"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then what's the count.", "out": "乂东"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then return how many remain.", "out": "乂东"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then what's left.", "out": "乂东"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then how many are left.", "out": "乂东"} {"kind": "builder", "in": "乂东", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return len(r)"} {"kind": "translator", "in": "乂东", "out": "Take a list of integers; take values while they are positive, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove the first item.", "out": "丐世"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Remove head.", "out": "丐世"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the first item.", "out": "丐世"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Remove head.", "out": "丐世"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first item.", "out": "丐世"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then Remove head.", "out": "丐世"} {"kind": "builder", "in": "丐世", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:]\n return r"} {"kind": "translator", "in": "丐世", "out": "Take a list of integers; reverse the order, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then take the final 3 elements.", "out": "丑丹"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then drop everything except the final three.", "out": "丑丹"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then give me the last three elements.", "out": "丑丹"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep only the last three.", "out": "丑丹"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep the final three items.", "out": "丑丹"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the last three.", "out": "丑丹"} {"kind": "builder", "in": "丑丹", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丑丹", "out": "Take a list of integers; sort ascending, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the first 3 elements.", "out": "么丕"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove everything after the third.", "out": "么丕"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then truncate to three items.", "out": "么丕"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then show the first three.", "out": "么丕"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then take the first three.", "out": "么丕"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep first 3.", "out": "么丕"} {"kind": "builder", "in": "么丕", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "么丕", "out": "Take a list of integers; if empty, use a single zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increase every value by 10.", "out": "丁丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then add 10 to each item.", "out": "丁丽"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then shift each up by ten.", "out": "丁丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then increase all numbers by 10.", "out": "丁丽"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then add 10 to everything.", "out": "丁丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give everything a boost of 10.", "out": "丁丽"} {"kind": "builder", "in": "丁丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丁丽", "out": "Take a list of integers; keep the odd numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then give the smallest value (0 if none).", "out": "专丛"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then what's the smallest element, or 0 if there's nothing.", "out": "专丛"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then find the min, defaulting to 0.", "out": "专丛"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then minimum value, zero otherwise.", "out": "专丛"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then get the minimum value or zero if empty.", "out": "专丛"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then give me the min or 0.", "out": "专丛"} {"kind": "builder", "in": "专丛", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return min(r) if r else 0"} {"kind": "translator", "in": "专丛", "out": "Take a list of integers; sort descending, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then order the strings A to Z.", "out": "乗乖"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then make it alphabetical.", "out": "乗乖"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then order the strings A to Z.", "out": "乗乖"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then make it alphabetical.", "out": "乗乖"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then order the strings A to Z.", "out": "乗乖"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then make it alphabetical.", "out": "乗乖"} {"kind": "builder", "in": "乗乖", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乗乖", "out": "Take a list of strings; drop strings shorter than three characters, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then decrement each value.", "out": "丸不"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Lower each number by one.", "out": "丸不"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then reduce each by one.", "out": "丸不"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Subtract 1 from all.", "out": "丸不"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Subtract one from each.", "out": "丸不"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Drop each by one.", "out": "丸不"} {"kind": "builder", "in": "丸不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丸不", "out": "Take a list of integers; sort by absolute value, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then count the even numbers.", "out": "为乓"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then what's the even count.", "out": "为乓"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give the number of evens.", "out": "为乓"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then find how many values are divisible by two.", "out": "为乓"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then how many are even.", "out": "为乓"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the total number of even values in the list.", "out": "为乓"} {"kind": "builder", "in": "为乓", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "为乓", "out": "Take a list of integers; drop the first and last elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then check if zero appears.", "out": "丸乍"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then find out whether there's a zero in here.", "out": "丸乍"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then check if zero appears.", "out": "丸乍"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then find out whether there's a zero in here.", "out": "丸乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then check if zero appears.", "out": "丸乍"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then find out whether there's a zero in here.", "out": "丸乍"} {"kind": "builder", "in": "丸乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return 0 in r"} {"kind": "translator", "in": "丸乍", "out": "Take a list of integers; sort by absolute value, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only odd values.", "out": "上丁"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then eliminate the even numbers.", "out": "上丁"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only odd values.", "out": "上丁"} {"kind": "speaker", "in": "Take a list of integers; square them all, then eliminate the even numbers.", "out": "上丁"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only odd values.", "out": "上丁"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then eliminate the even numbers.", "out": "上丁"} {"kind": "builder", "in": "上丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "上丁", "out": "Take a list of integers; square each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each by two.", "out": "乃丈"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then double each item in the list.", "out": "乃丈"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then multiply each by two.", "out": "乃丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then double each item in the list.", "out": "乃丈"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then multiply each by two.", "out": "乃丈"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then double each item in the list.", "out": "乃丈"} {"kind": "builder", "in": "乃丈", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乃丈", "out": "Take a list of integers; drop the leading negative values, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then find the first even number, defaulting to 0.", "out": "丹乒"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then first even value zero if not found.", "out": "丹乒"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then find the first even number, defaulting to 0.", "out": "丹乒"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then first even value zero if not found.", "out": "丹乒"} {"kind": "speaker", "in": "Take a list of integers; last three only, then find the first even number, defaulting to 0.", "out": "丹乒"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then first even value zero if not found.", "out": "丹乒"} {"kind": "builder", "in": "丹乒", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丹乒", "out": "Take a list of integers; keep only the last three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then extend to length 3 using zeros.", "out": "串义"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then pad to 3.", "out": "串义"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then extend to length 3 using zeros.", "out": "串义"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then pad to 3.", "out": "串义"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then extend to length 3 using zeros.", "out": "串义"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then pad to 3.", "out": "串义"} {"kind": "builder", "in": "串义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "串义", "out": "Take a list of integers; keep multiples of three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then check if there is an even number.", "out": "丑之"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then find out whether any value is divisible by 2.", "out": "丑之"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then check if there is an even number.", "out": "丑之"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then find out whether any value is divisible by 2.", "out": "丑之"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then check if there is an even number.", "out": "丑之"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then find out whether any value is divisible by 2.", "out": "丑之"} {"kind": "builder", "in": "丑之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丑之", "out": "Take a list of integers; sort ascending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort largest to smallest.", "out": "丏专"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort by descending values.", "out": "丏专"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then sort from highest to lowest.", "out": "丏专"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then sort descending.", "out": "丏专"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort largest first.", "out": "丏专"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort in descending order.", "out": "丏专"} {"kind": "builder", "in": "丏专", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丏专", "out": "Take a list of integers; take the absolute value of each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero.", "out": "七久"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears.", "out": "七久"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero.", "out": "七久"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0.", "out": "七久"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero.", "out": "七久"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero.", "out": "七久"} {"kind": "builder", "in": "七久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "七久", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove all zero values.", "out": "串举"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then exclude zeros.", "out": "串举"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove all zero values.", "out": "串举"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then exclude zeros.", "out": "串举"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove all zero values.", "out": "串举"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then exclude zeros.", "out": "串举"} {"kind": "builder", "in": "串举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "串举", "out": "Take a list of integers; keep multiples of three, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove all zero values.", "out": "主举"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then exclude zeros.", "out": "主举"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove all zero values.", "out": "主举"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then exclude zeros.", "out": "主举"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove all zero values.", "out": "主举"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then exclude zeros.", "out": "主举"} {"kind": "builder", "in": "主举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "主举", "out": "Take a list of integers; keep values greater than five, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort smallest to largest.", "out": "丁丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Ascending sort.", "out": "丁丑"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Sort this ascending.", "out": "丁丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Sort lowest to highest.", "out": "丁丑"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Arrange from smallest to largest.", "out": "丁丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort ascending.", "out": "丁丑"} {"kind": "builder", "in": "丁丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丁丑", "out": "Take a list of integers; keep the odd numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then decrement each value.", "out": "丕不"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Lower each number by one.", "out": "丕不"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then reduce each by one.", "out": "丕不"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Subtract 1 from all.", "out": "丕不"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Subtract one from each.", "out": "丕不"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Drop each by one.", "out": "丕不"} {"kind": "builder", "in": "丕不", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丕不", "out": "Take a list of integers; keep only the first three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then clamp each to at most ten.", "out": "乂丘"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then don't let anything exceed 10.", "out": "乂丘"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then clamp each to at most ten.", "out": "乂丘"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then don't let anything exceed 10.", "out": "乂丘"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then clamp each to at most ten.", "out": "乂丘"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then don't let anything exceed 10.", "out": "乂丘"} {"kind": "builder", "in": "乂丘", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "乂丘", "out": "Take a list of integers; take values while they are positive, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then strip spaces around each string.", "out": "乗丢"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then remove leading and trailing spaces.", "out": "乗丢"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then remove whitespace from each item.", "out": "乗丢"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then clean whitespace from each entry.", "out": "乗丢"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then trim each string.", "out": "乗丢"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then trim whitespace from each.", "out": "乗丢"} {"kind": "builder", "in": "乗丢", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "乗丢", "out": "Take a list of strings; drop strings shorter than three characters, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values divisible by 3.", "out": "丁串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep items where x mod 3 equals zero.", "out": "丁串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then drop anything not divisible by three.", "out": "丁串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter out everything except multiples of three.", "out": "丁串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only multiples of three.", "out": "丁串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiples of three only.", "out": "丁串"} {"kind": "builder", "in": "丁串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丁串", "out": "Take a list of integers; keep the odd numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; square each, then increase every value by 10.", "out": "上丽"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then add 10 to each item.", "out": "上丽"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then shift each up by ten.", "out": "上丽"} {"kind": "speaker", "in": "Take a list of integers; square them all, then increase all numbers by 10.", "out": "上丽"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then add 10 to everything.", "out": "上丽"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then give everything a boost of 10.", "out": "上丽"} {"kind": "builder", "in": "上丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "上丽", "out": "Take a list of integers; square each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then return the length.", "out": "丏东"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then count them.", "out": "丏东"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then what's the count.", "out": "丏东"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then return how many remain.", "out": "丏东"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then what's left.", "out": "丏东"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then how many are left.", "out": "丏东"} {"kind": "builder", "in": "丏东", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return len(r)"} {"kind": "translator", "in": "丏东", "out": "Take a list of integers; take the absolute value of each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values.", "out": "下且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order.", "out": "下且"} {"kind": "builder", "in": "下且", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "下且", "out": "Take a list of integers; add one to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep the leading run of positive numbers.", "out": "为乂"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then take values while they are positive.", "out": "为乂"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take positive values then stop.", "out": "为乂"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep going while positive.", "out": "为乂"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then stop at first non positive.", "out": "为乂"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take while greater than zero.", "out": "为乂"} {"kind": "builder", "in": "为乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "为乂", "out": "Take a list of integers; drop the first and last elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything 5 or below.", "out": "一主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only numbers greater than 5.", "out": "一主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then filter for numbers above 5.", "out": "一主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me values where x is greater than 5.", "out": "一主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then show me only the values that are bigger than five.", "out": "一主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep values greater than five.", "out": "一主"} {"kind": "builder", "in": "一主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "一主", "out": "Take a list of integers; keep the even numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then extend to length 3 using zeros.", "out": "九义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then pad to 3.", "out": "九义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then extend to length 3 using zeros.", "out": "九义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then pad to 3.", "out": "九义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then extend to length 3 using zeros.", "out": "九义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then pad to 3.", "out": "九义"} {"kind": "builder", "in": "九义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九义", "out": "Take a list of people records (name, age); extract the ages, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then check if there is an even number.", "out": "乂之"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then find out whether any value is divisible by 2.", "out": "乂之"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then check if there is an even number.", "out": "乂之"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then find out whether any value is divisible by 2.", "out": "乂之"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then check if there is an even number.", "out": "乂之"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then find out whether any value is divisible by 2.", "out": "乂之"} {"kind": "builder", "in": "乂之", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乂之", "out": "Take a list of integers; take values while they are positive, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove both ends.", "out": "乃为"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then trim the edges.", "out": "乃为"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then trim one element off each end.", "out": "乃为"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then cut off the first and last.", "out": "乃为"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first and last elements.", "out": "乃为"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep only the middle part.", "out": "乃为"} {"kind": "builder", "in": "乃为", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乃为", "out": "Take a list of integers; drop the leading negative values, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then check if values are in increasing order.", "out": "丹乎"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then give me a yes or no if the list is sorted.", "out": "丹乎"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then is this list sorted.", "out": "丹乎"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丹乎"} {"kind": "speaker", "in": "Take a list of integers; last three only, then tell me if it's sorted ascending.", "out": "丹乎"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then return whether the list is sorted ascending.", "out": "丹乎"} {"kind": "builder", "in": "丹乎", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return r == sorted(r)"} {"kind": "translator", "in": "丹乎", "out": "Take a list of integers; keep only the last three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove repeated values.", "out": "久且"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then unique values preserving order.", "out": "久且"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove repeated values.", "out": "久且"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then unique values preserving order.", "out": "久且"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove repeated values.", "out": "久且"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then unique values preserving order.", "out": "久且"} {"kind": "builder", "in": "久且", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "久且", "out": "Take a list of integers; keep everything before the first zero, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply them all together.", "out": "一乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiply them all.", "out": "一乐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply all the numbers together.", "out": "一乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then get the product.", "out": "一乐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then find the product of these.", "out": "一乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then return their product.", "out": "一乐"} {"kind": "builder", "in": "一乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "一乐", "out": "Take a list of integers; keep the even numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero.", "out": "不七"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers.", "out": "不七"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers.", "out": "不七"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives.", "out": "不七"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives.", "out": "不七"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers.", "out": "不七"} {"kind": "builder", "in": "不七", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "不七", "out": "Take a list of integers; subtract one from each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then check that there are no duplicates.", "out": "万乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then are the values all unique.", "out": "万乏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then check if all values are unique.", "out": "万乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then return whether all values are distinct.", "out": "万乏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then tell me if values are distinct.", "out": "万乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then are all values distinct.", "out": "万乏"} {"kind": "builder", "in": "万乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "万乏", "out": "Take a list of integers; keep the negative numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove repeated values.", "out": "丹且"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then unique values preserving order.", "out": "丹且"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove repeated values.", "out": "丹且"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then unique values preserving order.", "out": "丹且"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove repeated values.", "out": "丹且"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then unique values preserving order.", "out": "丹且"} {"kind": "builder", "in": "丹且", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丹且", "out": "Take a list of integers; keep only the last three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values above zero.", "out": "万七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter for positive numbers.", "out": "万七"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only positive numbers.", "out": "万七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positives.", "out": "万七"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove negatives.", "out": "万七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positive numbers.", "out": "万七"} {"kind": "builder", "in": "万七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "万七", "out": "Take a list of integers; keep the negative numbers, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then multiply each by two.", "out": "丏丈"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then double each item in the list.", "out": "丏丈"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then multiply each by two.", "out": "丏丈"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then double each item in the list.", "out": "丏丈"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then multiply each by two.", "out": "丏丈"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then double each item in the list.", "out": "丏丈"} {"kind": "builder", "in": "丏丈", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丏丈", "out": "Take a list of integers; take the absolute value of each, then double each."} {"kind": "speaker", "in": "Take a list of integers; double each, then add them all up.", "out": "丈丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then add all those together.", "out": "丈丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then give back the total.", "out": "丈丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sum r.", "out": "丈丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then add them up.", "out": "丈丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then calculate the sum of all elements.", "out": "丈丙"} {"kind": "builder", "in": "丈丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return sum(r)"} {"kind": "translator", "in": "丈丙", "out": "Take a list of integers; double each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then decrement each value.", "out": "下不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Lower each number by one.", "out": "下不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then reduce each by one.", "out": "下不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Subtract 1 from all.", "out": "下不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Subtract one from each.", "out": "下不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Drop each by one.", "out": "下不"} {"kind": "builder", "in": "下不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "下不", "out": "Take a list of integers; add one to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then make every value non-negative.", "out": "丐丏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then absolute value for all items.", "out": "丐丏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take absolute values.", "out": "丐丏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn negatives into positives.", "out": "丐丏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then abs each element.", "out": "丐丏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the absolute value of each.", "out": "丐丏"} {"kind": "builder", "in": "丐丏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丐丏", "out": "Take a list of integers; reverse the order, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then check that there are no duplicates.", "out": "丈乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then are the values all unique.", "out": "丈乏"} {"kind": "speaker", "in": "Take a list of integers; double each, then check if all values are unique.", "out": "丈乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then return whether all values are distinct.", "out": "丈乏"} {"kind": "speaker", "in": "Take a list of integers; double each, then tell me if values are distinct.", "out": "丈乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then are all values distinct.", "out": "丈乏"} {"kind": "builder", "in": "丈乏", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丈乏", "out": "Take a list of integers; double each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove both ends.", "out": "丽为"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then trim the edges.", "out": "丽为"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then trim one element off each end.", "out": "丽为"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then cut off the first and last.", "out": "丽为"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first and last elements.", "out": "丽为"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep only the middle part.", "out": "丽为"} {"kind": "builder", "in": "丽为", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丽为", "out": "Take a list of integers; add ten to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero.", "out": "义万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers.", "out": "义万"} {"kind": "builder", "in": "义万", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "义万", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then check if zero appears.", "out": "万乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then find out whether there's a zero in here.", "out": "万乍"} {"kind": "builder", "in": "万乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return 0 in r"} {"kind": "translator", "in": "万乍", "out": "Take a list of integers; keep the negative numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then make every value non-negative.", "out": "专丏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then absolute value for all items.", "out": "专丏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take absolute values.", "out": "专丏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then turn negatives into positives.", "out": "专丏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then abs each element.", "out": "专丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the absolute value of each.", "out": "专丏"} {"kind": "builder", "in": "专丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "专丏", "out": "Take a list of integers; sort descending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then return the length.", "out": "专东"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then count them.", "out": "专东"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then what's the count.", "out": "专东"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then return how many remain.", "out": "专东"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then what's left.", "out": "专东"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then how many are left.", "out": "专东"} {"kind": "builder", "in": "专东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return len(r)"} {"kind": "translator", "in": "专东", "out": "Take a list of integers; sort descending, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything 5 or below.", "out": "与主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only numbers greater than 5.", "out": "与主"} {"kind": "speaker", "in": "Take a list of integers; negate each, then filter for numbers above 5.", "out": "与主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give me values where x is greater than 5.", "out": "与主"} {"kind": "speaker", "in": "Take a list of integers; negate each, then show me only the values that are bigger than five.", "out": "与主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep values greater than five.", "out": "与主"} {"kind": "builder", "in": "与主", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "与主", "out": "Take a list of integers; negate each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then order the strings A to Z.", "out": "丟乖"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then make it alphabetical.", "out": "丟乖"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then order the strings A to Z.", "out": "丟乖"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then make it alphabetical.", "out": "丟乖"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then order the strings A to Z.", "out": "丟乖"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then make it alphabetical.", "out": "丟乖"} {"kind": "builder", "in": "丟乖", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丟乖", "out": "Take a list of strings; uppercase each string, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then find the first even number, defaulting to 0.", "out": "丸乒"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then first even value zero if not found.", "out": "丸乒"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then find the first even number, defaulting to 0.", "out": "丸乒"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then first even value zero if not found.", "out": "丸乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then find the first even number, defaulting to 0.", "out": "丸乒"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then first even value zero if not found.", "out": "丸乒"} {"kind": "builder", "in": "丸乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丸乒", "out": "Take a list of integers; sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then add them all up.", "out": "七丙"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then add all those together.", "out": "七丙"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then give back the total.", "out": "七丙"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then sum r.", "out": "七丙"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then add them up.", "out": "七丙"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then calculate the sum of all elements.", "out": "七丙"} {"kind": "builder", "in": "七丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return sum(r)"} {"kind": "translator", "in": "七丙", "out": "Take a list of integers; keep the positive numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; double each, then give the largest value (0 if none).", "out": "丈业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then The biggest one, or 0 if it's empty.", "out": "丈业"} {"kind": "speaker", "in": "Take a list of integers; double each, then Get the maximum value, or zero if there's nothing.", "out": "丈业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then What's the max here.", "out": "丈业"} {"kind": "speaker", "in": "Take a list of integers; double each, then Return the max or 0 if empty.", "out": "丈业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then return the maximum (0 if empty).", "out": "丈业"} {"kind": "builder", "in": "丈业", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丈业", "out": "Take a list of integers; double each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increment each value.", "out": "世下"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then plus one for all.", "out": "世下"} {"kind": "builder", "in": "世下", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "世下", "out": "Take a list of integers; drop the first element, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort largest to smallest.", "out": "举专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by descending values.", "out": "举专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from highest to lowest.", "out": "举专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort descending.", "out": "举专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort largest first.", "out": "举专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort in descending order.", "out": "举专"} {"kind": "builder", "in": "举专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "举专", "out": "Take a list of integers; drop the zeros, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort smallest to largest.", "out": "世丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Ascending sort.", "out": "世丑"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Sort this ascending.", "out": "世丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Sort lowest to highest.", "out": "世丑"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Arrange from smallest to largest.", "out": "世丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort ascending.", "out": "世丑"} {"kind": "builder", "in": "世丑", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "世丑", "out": "Take a list of integers; drop the first element, then sort ascending."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then remove repeated strings.", "out": "丟丧"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then keep unique strings first appearance.", "out": "丟丧"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then eliminate repeated strings preserve first occurrence.", "out": "丟丧"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then drop duplicate strings keeping the first.", "out": "丟丧"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then dedupe.", "out": "丟丧"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then remove duplicate strings keep first.", "out": "丟丧"} {"kind": "builder", "in": "丟丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丟丧", "out": "Take a list of strings; uppercase each string, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then give the largest value (0 if none).", "out": "七业"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then The biggest one, or 0 if it's empty.", "out": "七业"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then Get the maximum value, or zero if there's nothing.", "out": "七业"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then What's the max here.", "out": "七业"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Return the max or 0 if empty.", "out": "七业"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then return the maximum (0 if empty).", "out": "七业"} {"kind": "builder", "in": "七业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "七业", "out": "Take a list of integers; keep the positive numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort smallest to largest.", "out": "九丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Ascending sort.", "out": "九丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then Sort this ascending.", "out": "九丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Sort lowest to highest.", "out": "九丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Arrange from smallest to largest.", "out": "九丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort ascending.", "out": "九丑"} {"kind": "builder", "in": "九丑", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "九丑", "out": "Take a list of people records (name, age); extract the ages, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give the largest value (0 if none).", "out": "义业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then The biggest one, or 0 if it's empty.", "out": "义业"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Get the maximum value, or zero if there's nothing.", "out": "义业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then What's the max here.", "out": "义业"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Return the max or 0 if empty.", "out": "义业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then return the maximum (0 if empty).", "out": "义业"} {"kind": "builder", "in": "义业", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return max(r) if r else 0"} {"kind": "translator", "in": "义业", "out": "Take a list of integers; pad with zeros to at least three elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item.", "out": "一世"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head.", "out": "一世"} {"kind": "builder", "in": "一世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "一世", "out": "Take a list of integers; keep the even numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then decrement each value.", "out": "丑不"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then Lower each number by one.", "out": "丑不"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then reduce each by one.", "out": "丑不"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then Subtract 1 from all.", "out": "丑不"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then Subtract one from each.", "out": "丑不"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then Drop each by one.", "out": "丑不"} {"kind": "builder", "in": "丑不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丑不", "out": "Take a list of integers; sort ascending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only odd values.", "out": "久丁"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then eliminate the even numbers.", "out": "久丁"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only odd values.", "out": "久丁"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then eliminate the even numbers.", "out": "久丁"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only odd values.", "out": "久丁"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then eliminate the even numbers.", "out": "久丁"} {"kind": "builder", "in": "久丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "久丁", "out": "Take a list of integers; keep everything before the first zero, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then check if every number is above zero.", "out": "上乌"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then verify that all values exceed zero.", "out": "上乌"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then are all values positive.", "out": "上乌"} {"kind": "speaker", "in": "Take a list of integers; square them all, then are they all above zero.", "out": "上乌"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then tell me if all numbers are greater than zero.", "out": "上乌"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then return whether all values are positive.", "out": "上乌"} {"kind": "builder", "in": "上乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "上乌", "out": "Take a list of integers; square each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then check if zero appears.", "out": "下乍"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then find out whether there's a zero in here.", "out": "下乍"} {"kind": "builder", "in": "下乍", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "下乍", "out": "Take a list of integers; add one to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then keep only strings of length 3 or more.", "out": "乘乗"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then get rid of short ones.", "out": "乘乗"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then remove strings with less than three characters.", "out": "乘乗"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then remove all strings under three characters in length.", "out": "乘乗"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then filter out short strings under three chars.", "out": "乘乗"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then drop strings shorter than three characters.", "out": "乘乗"} {"kind": "builder", "in": "乘乗", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "乘乗", "out": "Take a list of strings; prefix each with a hash, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values below zero.", "out": "丈万"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the negative numbers.", "out": "丈万"} {"kind": "builder", "in": "丈万", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丈万", "out": "Take a list of integers; double each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the sign of each.", "out": "久与"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then turn positives to negatives and vice versa.", "out": "久与"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then flip the sign of each.", "out": "久与"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn positives to negatives and vice versa.", "out": "久与"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip the sign of each.", "out": "久与"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then turn positives to negatives and vice versa.", "out": "久与"} {"kind": "builder", "in": "久与", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "久与", "out": "Take a list of integers; keep everything before the first zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only even values.", "out": "丕一"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then extract all even numbers.", "out": "丕一"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only even values.", "out": "丕一"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then extract all even numbers.", "out": "丕一"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only even values.", "out": "丕一"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then extract all even numbers.", "out": "丕一"} {"kind": "builder", "in": "丕一", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丕一", "out": "Take a list of integers; keep only the first three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then check if zero appears.", "out": "丹乍"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then find out whether there's a zero in here.", "out": "丹乍"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then check if zero appears.", "out": "丹乍"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then find out whether there's a zero in here.", "out": "丹乍"} {"kind": "speaker", "in": "Take a list of integers; last three only, then check if zero appears.", "out": "丹乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then find out whether there's a zero in here.", "out": "丹乍"} {"kind": "builder", "in": "丹乍", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return 0 in r"} {"kind": "translator", "in": "丹乍", "out": "Take a list of integers; keep only the last three, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values.", "out": "丁且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order.", "out": "丁且"} {"kind": "builder", "in": "丁且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丁且", "out": "Take a list of integers; keep the odd numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order strings from shortest to longest.", "out": "丞严"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then shortest to longest.", "out": "丞严"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then arrange by string length ascending.", "out": "丞严"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then length sort.", "out": "丞严"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then sort by length shortest first.", "out": "丞严"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then organize by string length least to greatest.", "out": "丞严"} {"kind": "builder", "in": "丞严", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "丞严", "out": "Take a list of strings; lowercase each string, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then check if zero appears.", "out": "乃乍"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then find out whether there's a zero in here.", "out": "乃乍"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then check if zero appears.", "out": "乃乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then find out whether there's a zero in here.", "out": "乃乍"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then check if zero appears.", "out": "乃乍"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then find out whether there's a zero in here.", "out": "乃乍"} {"kind": "builder", "in": "乃乍", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return 0 in r"} {"kind": "translator", "in": "乃乍", "out": "Take a list of integers; drop the leading negative values, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then default to [0] when there is nothing.", "out": "乂么"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then when the list is empty, substitute a zero value.", "out": "乂么"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then replace an empty list with one zero.", "out": "乂么"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then zero it out if it's empty.", "out": "乂么"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then use zero if the list is empty.", "out": "乂么"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then default to zero when empty.", "out": "乂么"} {"kind": "builder", "in": "乂么", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "乂么", "out": "Take a list of integers; take values while they are positive, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero.", "out": "丘万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers.", "out": "丘万"} {"kind": "builder", "in": "丘万", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丘万", "out": "Take a list of integers; cap each value at 10, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increase every value by 10.", "out": "丘丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then add 10 to each item.", "out": "丘丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then shift each up by ten.", "out": "丘丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then increase all numbers by 10.", "out": "丘丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then add 10 to everything.", "out": "丘丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give everything a boost of 10.", "out": "丘丽"} {"kind": "builder", "in": "丘丽", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丘丽", "out": "Take a list of integers; cap each value at 10, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove the first item.", "out": "丕世"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Remove head.", "out": "丕世"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the first item.", "out": "丕世"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Remove head.", "out": "丕世"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first item.", "out": "丕世"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Remove head.", "out": "丕世"} {"kind": "builder", "in": "丕世", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丕世", "out": "Take a list of integers; keep only the first three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort smallest to largest.", "out": "义丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Ascending sort.", "out": "义丑"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Sort this ascending.", "out": "义丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Sort lowest to highest.", "out": "义丑"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Arrange from smallest to largest.", "out": "义丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort ascending.", "out": "义丑"} {"kind": "builder", "in": "义丑", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "义丑", "out": "Take a list of integers; pad with zeros to at least three elements, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then extend to length 3 using zeros.", "out": "不义"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then pad to 3.", "out": "不义"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then extend to length 3 using zeros.", "out": "不义"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then pad to 3.", "out": "不义"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then extend to length 3 using zeros.", "out": "不义"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then pad to 3.", "out": "不义"} {"kind": "builder", "in": "不义", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "不义", "out": "Take a list of integers; subtract one from each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then clamp each to at most ten.", "out": "丸丘"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then don't let anything exceed 10.", "out": "丸丘"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then clamp each to at most ten.", "out": "丸丘"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then don't let anything exceed 10.", "out": "丸丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then clamp each to at most ten.", "out": "丸丘"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then don't let anything exceed 10.", "out": "丸丘"} {"kind": "builder", "in": "丸丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丸丘", "out": "Take a list of integers; sort by absolute value, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then find the first even number, defaulting to 0.", "out": "乂乒"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then first even value zero if not found.", "out": "乂乒"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then find the first even number, defaulting to 0.", "out": "乂乒"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then first even value zero if not found.", "out": "乂乒"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then find the first even number, defaulting to 0.", "out": "乂乒"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then first even value zero if not found.", "out": "乂乒"} {"kind": "builder", "in": "乂乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "乂乒", "out": "Take a list of integers; take values while they are positive, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; square each, then return the length.", "out": "上东"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then count them.", "out": "上东"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then what's the count.", "out": "上东"} {"kind": "speaker", "in": "Take a list of integers; square them all, then return how many remain.", "out": "上东"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then what's left.", "out": "上东"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then how many are left.", "out": "上东"} {"kind": "builder", "in": "上东", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return len(r)"} {"kind": "translator", "in": "上东", "out": "Take a list of integers; square each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values above zero.", "out": "丐七"} {"kind": "speaker", "in": "Take a list of integers; reverse, then filter for positive numbers.", "out": "丐七"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only positive numbers.", "out": "丐七"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the positives.", "out": "丐七"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove negatives.", "out": "丐七"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep the positive numbers.", "out": "丐七"} {"kind": "builder", "in": "丐七", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丐七", "out": "Take a list of integers; reverse the order, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then check if there is an even number.", "out": "一之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then find out whether any value is divisible by 2.", "out": "一之"} {"kind": "builder", "in": "一之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "一之", "out": "Take a list of integers; keep the even numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros.", "out": "丁义"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3.", "out": "丁义"} {"kind": "builder", "in": "丁义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丁义", "out": "Take a list of integers; keep the odd numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values above zero.", "out": "为七"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then filter for positive numbers.", "out": "为七"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only positive numbers.", "out": "为七"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the positives.", "out": "为七"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove negatives.", "out": "为七"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep the positive numbers.", "out": "为七"} {"kind": "builder", "in": "为七", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "为七", "out": "Take a list of integers; drop the first and last elements, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only even values.", "out": "乃一"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then extract all even numbers.", "out": "乃一"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only even values.", "out": "乃一"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then extract all even numbers.", "out": "乃一"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only even values.", "out": "乃一"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then extract all even numbers.", "out": "乃一"} {"kind": "builder", "in": "乃一", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "乃一", "out": "Take a list of integers; drop the leading negative values, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then skip negatives at the start.", "out": "万乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then remove all negatives at the front.", "out": "万乃"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the initial run of negative numbers.", "out": "万乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then strip the front negatives.", "out": "万乃"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove leading negative numbers.", "out": "万乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop negatives from start.", "out": "万乃"} {"kind": "builder", "in": "万乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "万乃", "out": "Take a list of integers; keep the negative numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then check if every number is above zero.", "out": "世乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then verify that all values exceed zero.", "out": "世乌"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then are all values positive.", "out": "世乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then are they all above zero.", "out": "世乌"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then tell me if all numbers are greater than zero.", "out": "世乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then return whether all values are positive.", "out": "世乌"} {"kind": "builder", "in": "世乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "世乌", "out": "Take a list of integers; drop the first element, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then return the length.", "out": "丈东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then count them.", "out": "丈东"} {"kind": "speaker", "in": "Take a list of integers; double each, then what's the count.", "out": "丈东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then return how many remain.", "out": "丈东"} {"kind": "speaker", "in": "Take a list of integers; double each, then what's left.", "out": "丈东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then how many are left.", "out": "丈东"} {"kind": "builder", "in": "丈东", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return len(r)"} {"kind": "translator", "in": "丈东", "out": "Take a list of integers; double each, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then remove repeated strings.", "out": "丢丧"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then keep unique strings first appearance.", "out": "丢丧"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then eliminate repeated strings preserve first occurrence.", "out": "丢丧"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then drop duplicate strings keeping the first.", "out": "丢丧"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then dedupe.", "out": "丢丧"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then remove duplicate strings keep first.", "out": "丢丧"} {"kind": "builder", "in": "丢丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丢丧", "out": "Take a list of strings; trim whitespace from each, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10.", "out": "且丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item.", "out": "且丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten.", "out": "且丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10.", "out": "且丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything.", "out": "且丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10.", "out": "且丽"} {"kind": "builder", "in": "且丽", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "且丽", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each value by itself.", "out": "举上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then square them all.", "out": "举上"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then raise each to the power of two.", "out": "举上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then I need each number multiplied by itself.", "out": "举上"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then square all of them.", "out": "举上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiply each element by itself.", "out": "举上"} {"kind": "builder", "in": "举上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "举上", "out": "Take a list of integers; drop the zeros, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the name field from each record.", "out": "习乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Grab the names.", "out": "习乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's name.", "out": "习乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then List the names.", "out": "习乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then Extract the names.", "out": "习乞"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Get the name field.", "out": "习乞"} {"kind": "builder", "in": "习乞", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['name'] for d in r]\n return r"} {"kind": "translator", "in": "习乞", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the names."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then add them all up.", "out": "万丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then add all those together.", "out": "万丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give back the total.", "out": "万丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sum r.", "out": "万丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then add them up.", "out": "万丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then calculate the sum of all elements.", "out": "万丙"} {"kind": "builder", "in": "万丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return sum(r)"} {"kind": "translator", "in": "万丙", "out": "Take a list of integers; keep the negative numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then convert each to lower case.", "out": "丨丞"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then lowercase each one.", "out": "丨丞"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then convert each to lower case.", "out": "丨丞"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then lowercase each one.", "out": "丨丞"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then convert each to lower case.", "out": "丨丞"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then lowercase each one.", "out": "丨丞"} {"kind": "builder", "in": "丨丞", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "丨丞", "out": "Take a list of strings; keep the first character of each (dropping empties), then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then default to [0] when there is nothing.", "out": "七么"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then when the list is empty, substitute a zero value.", "out": "七么"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then replace an empty list with one zero.", "out": "七么"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then zero it out if it's empty.", "out": "七么"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then use zero if the list is empty.", "out": "七么"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then default to zero when empty.", "out": "七么"} {"kind": "builder", "in": "七么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "七么", "out": "Take a list of integers; keep the positive numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then keep only strings of length 3 or more.", "out": "乞乗"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then get rid of short ones.", "out": "乞乗"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove strings with less than three characters.", "out": "乞乗"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then remove all strings under three characters in length.", "out": "乞乗"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then filter out short strings under three chars.", "out": "乞乗"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then drop strings shorter than three characters.", "out": "乞乗"} {"kind": "builder", "in": "乞乗", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "乞乗", "out": "Take a list of people records (name, age); extract the names, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then default to [0] when there is nothing.", "out": "丑么"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then when the list is empty, substitute a zero value.", "out": "丑么"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then replace an empty list with one zero.", "out": "丑么"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then zero it out if it's empty.", "out": "丑么"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then use zero if the list is empty.", "out": "丑么"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then default to zero when empty.", "out": "丑么"} {"kind": "builder", "in": "丑么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丑么", "out": "Take a list of integers; sort ascending, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then check if every number is above zero.", "out": "主乌"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then verify that all values exceed zero.", "out": "主乌"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then are all values positive.", "out": "主乌"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then are they all above zero.", "out": "主乌"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then tell me if all numbers are greater than zero.", "out": "主乌"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then return whether all values are positive.", "out": "主乌"} {"kind": "builder", "in": "主乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "主乌", "out": "Take a list of integers; keep values greater than five, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort smallest to largest.", "out": "下丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Ascending sort.", "out": "下丑"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Sort this ascending.", "out": "下丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Sort lowest to highest.", "out": "下丑"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Arrange from smallest to largest.", "out": "下丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort ascending.", "out": "下丑"} {"kind": "builder", "in": "下丑", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "下丑", "out": "Take a list of integers; add one to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then make every value non-negative.", "out": "且丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then absolute value for all items.", "out": "且丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take absolute values.", "out": "且丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn negatives into positives.", "out": "且丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then abs each element.", "out": "且丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the absolute value of each.", "out": "且丏"} {"kind": "builder", "in": "且丏", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "且丏", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then give the largest value (0 if none).", "out": "不业"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then The biggest one, or 0 if it's empty.", "out": "不业"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then Get the maximum value, or zero if there's nothing.", "out": "不业"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then What's the max here.", "out": "不业"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then Return the max or 0 if empty.", "out": "不业"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then return the maximum (0 if empty).", "out": "不业"} {"kind": "builder", "in": "不业", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "不业", "out": "Take a list of integers; subtract one from each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then check if every number is above zero.", "out": "举乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then verify that all values exceed zero.", "out": "举乌"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then are all values positive.", "out": "举乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then are they all above zero.", "out": "举乌"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then tell me if all numbers are greater than zero.", "out": "举乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then return whether all values are positive.", "out": "举乌"} {"kind": "builder", "in": "举乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "举乌", "out": "Take a list of integers; drop the zeros, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then cut the list at the first zero.", "out": "九久"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then cut off after the first zero appears.", "out": "九久"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take values up to (excluding) the first zero.", "out": "九久"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the part before the first 0.", "out": "九久"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then truncate at the first zero.", "out": "九久"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then delete everything starting with the first zero.", "out": "九久"} {"kind": "builder", "in": "九久", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "九久", "out": "Take a list of people records (name, age); extract the ages, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only even values.", "out": "不一"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then extract all even numbers.", "out": "不一"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only even values.", "out": "不一"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then extract all even numbers.", "out": "不一"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only even values.", "out": "不一"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then extract all even numbers.", "out": "不一"} {"kind": "builder", "in": "不一", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "不一", "out": "Take a list of integers; subtract one from each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then keep only strings of length 3 or more.", "out": "丧乗"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then get rid of short ones.", "out": "丧乗"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then remove strings with less than three characters.", "out": "丧乗"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then remove all strings under three characters in length.", "out": "丧乗"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then filter out short strings under three chars.", "out": "丧乗"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then drop strings shorter than three characters.", "out": "丧乗"} {"kind": "builder", "in": "丧乗", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "丧乗", "out": "Take a list of strings; drop duplicate strings keeping the first, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then decrement each value.", "out": "义不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Lower each number by one.", "out": "义不"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then reduce each by one.", "out": "义不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Subtract 1 from all.", "out": "义不"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Subtract one from each.", "out": "义不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Drop each by one.", "out": "义不"} {"kind": "builder", "in": "义不", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "义不", "out": "Take a list of integers; pad with zeros to at least three elements, then subtract one from each."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then strip spaces around each string.", "out": "两丢"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then remove leading and trailing spaces.", "out": "两丢"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then remove whitespace from each item.", "out": "两丢"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then clean whitespace from each entry.", "out": "两丢"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then trim each string.", "out": "两丢"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then trim whitespace from each.", "out": "两丢"} {"kind": "builder", "in": "两丢", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "两丢", "out": "Take a list of strings; drop empty strings, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then convert each to lower case.", "out": "丧丞"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then lowercase each one.", "out": "丧丞"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then convert each to lower case.", "out": "丧丞"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then lowercase each one.", "out": "丧丞"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then convert each to lower case.", "out": "丧丞"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then lowercase each one.", "out": "丧丞"} {"kind": "builder", "in": "丧丞", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "丧丞", "out": "Take a list of strings; drop duplicate strings keeping the first, then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then return the length.", "out": "丽东"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then count them.", "out": "丽东"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then what's the count.", "out": "丽东"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then return how many remain.", "out": "丽东"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then what's left.", "out": "丽东"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then how many are left.", "out": "丽东"} {"kind": "builder", "in": "丽东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return len(r)"} {"kind": "translator", "in": "丽东", "out": "Take a list of integers; add ten to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements.", "out": "义丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three.", "out": "义丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements.", "out": "义丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three.", "out": "义丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items.", "out": "义丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three.", "out": "义丹"} {"kind": "builder", "in": "义丹", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "义丹", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; square each, then check if zero appears.", "out": "上乍"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then find out whether there's a zero in here.", "out": "上乍"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then check if zero appears.", "out": "上乍"} {"kind": "speaker", "in": "Take a list of integers; square them all, then find out whether there's a zero in here.", "out": "上乍"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then check if zero appears.", "out": "上乍"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then find out whether there's a zero in here.", "out": "上乍"} {"kind": "builder", "in": "上乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return 0 in r"} {"kind": "translator", "in": "上乍", "out": "Take a list of integers; square each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort smallest to largest.", "out": "上丑"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Ascending sort.", "out": "上丑"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then Sort this ascending.", "out": "上丑"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Sort lowest to highest.", "out": "上丑"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then Arrange from smallest to largest.", "out": "上丑"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort ascending.", "out": "上丑"} {"kind": "builder", "in": "上丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "上丑", "out": "Take a list of integers; square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values divisible by 3.", "out": "丈串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep items where x mod 3 equals zero.", "out": "丈串"} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything not divisible by three.", "out": "丈串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter out everything except multiples of three.", "out": "丈串"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only multiples of three.", "out": "丈串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiples of three only.", "out": "丈串"} {"kind": "builder", "in": "丈串", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丈串", "out": "Take a list of integers; double each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort largest to smallest.", "out": "丕专"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort by descending values.", "out": "丕专"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then sort from highest to lowest.", "out": "丕专"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sort descending.", "out": "丕专"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort largest first.", "out": "丕专"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort in descending order.", "out": "丕专"} {"kind": "builder", "in": "丕专", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丕专", "out": "Take a list of integers; keep only the first three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then make every value non-negative.", "out": "丑丏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then absolute value for all items.", "out": "丑丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take absolute values.", "out": "丑丏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn negatives into positives.", "out": "丑丏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then abs each element.", "out": "丑丏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the absolute value of each.", "out": "丑丏"} {"kind": "builder", "in": "丑丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丑丏", "out": "Take a list of integers; sort ascending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then check if zero appears.", "out": "丏乍"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then find out whether there's a zero in here.", "out": "丏乍"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then check if zero appears.", "out": "丏乍"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then find out whether there's a zero in here.", "out": "丏乍"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then check if zero appears.", "out": "丏乍"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then find out whether there's a zero in here.", "out": "丏乍"} {"kind": "builder", "in": "丏乍", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return 0 in r"} {"kind": "translator", "in": "丏乍", "out": "Take a list of integers; take the absolute value of each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only even values.", "out": "丘一"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then extract all even numbers.", "out": "丘一"} {"kind": "builder", "in": "丘一", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丘一", "out": "Take a list of integers; cap each value at 10, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below.", "out": "丏主"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5.", "out": "丏主"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5.", "out": "丏主"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5.", "out": "丏主"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five.", "out": "丏主"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five.", "out": "丏主"} {"kind": "builder", "in": "丏主", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丏主", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then make every value non-negative.", "out": "世丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then absolute value for all items.", "out": "世丏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take absolute values.", "out": "世丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn negatives into positives.", "out": "世丏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then abs each element.", "out": "世丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the absolute value of each.", "out": "世丏"} {"kind": "builder", "in": "世丏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "世丏", "out": "Take a list of integers; drop the first element, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two.", "out": "且丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list.", "out": "且丈"} {"kind": "builder", "in": "且丈", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "且丈", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the final 3 elements.", "out": "久丹"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then drop everything except the final three.", "out": "久丹"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then give me the last three elements.", "out": "久丹"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep only the last three.", "out": "久丹"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep the final three items.", "out": "久丹"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the last three.", "out": "久丹"} {"kind": "builder", "in": "久丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "久丹", "out": "Take a list of integers; keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only even values.", "out": "久一"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then extract all even numbers.", "out": "久一"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only even values.", "out": "久一"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then extract all even numbers.", "out": "久一"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only even values.", "out": "久一"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then extract all even numbers.", "out": "久一"} {"kind": "builder", "in": "久一", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "久一", "out": "Take a list of integers; keep everything before the first zero, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then check if every number is above zero.", "out": "不乌"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then verify that all values exceed zero.", "out": "不乌"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then are all values positive.", "out": "不乌"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then are they all above zero.", "out": "不乌"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then tell me if all numbers are greater than zero.", "out": "不乌"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then return whether all values are positive.", "out": "不乌"} {"kind": "builder", "in": "不乌", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "不乌", "out": "Take a list of integers; subtract one from each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove all zero values.", "out": "久举"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then exclude zeros.", "out": "久举"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove all zero values.", "out": "久举"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then exclude zeros.", "out": "久举"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove all zero values.", "out": "久举"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then exclude zeros.", "out": "久举"} {"kind": "builder", "in": "久举", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "久举", "out": "Take a list of integers; keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then check if every number is above zero.", "out": "乃乌"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then verify that all values exceed zero.", "out": "乃乌"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then are all values positive.", "out": "乃乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then are they all above zero.", "out": "乃乌"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then tell me if all numbers are greater than zero.", "out": "乃乌"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then return whether all values are positive.", "out": "乃乌"} {"kind": "builder", "in": "乃乌", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乃乌", "out": "Take a list of integers; drop the leading negative values, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increment each value.", "out": "专下"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then plus one for all.", "out": "专下"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then increment each value.", "out": "专下"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then plus one for all.", "out": "专下"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then increment each value.", "out": "专下"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then plus one for all.", "out": "专下"} {"kind": "builder", "in": "专下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "专下", "out": "Take a list of integers; sort descending, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only even values.", "out": "义一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then extract all even numbers.", "out": "义一"} {"kind": "builder", "in": "义一", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "义一", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then add them all up.", "out": "义丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then add all those together.", "out": "义丙"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give back the total.", "out": "义丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sum r.", "out": "义丙"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then add them up.", "out": "义丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then calculate the sum of all elements.", "out": "义丙"} {"kind": "builder", "in": "义丙", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return sum(r)"} {"kind": "translator", "in": "义丙", "out": "Take a list of integers; pad with zeros to at least three elements, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value.", "out": "与下"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all.", "out": "与下"} {"kind": "builder", "in": "与下", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "与下", "out": "Take a list of integers; negate each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then multiply them all together.", "out": "丽乐"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then multiply them all.", "out": "丽乐"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then multiply all the numbers together.", "out": "丽乐"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then get the product.", "out": "丽乐"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then find the product of these.", "out": "丽乐"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then return their product.", "out": "丽乐"} {"kind": "builder", "in": "丽乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丽乐", "out": "Take a list of integers; add ten to each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the first 3 elements.", "out": "久丕"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then remove everything after the third.", "out": "久丕"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then truncate to three items.", "out": "久丕"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then show the first three.", "out": "久丕"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then take the first three.", "out": "久丕"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep first 3.", "out": "久丕"} {"kind": "builder", "in": "久丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:3]\n return r"} {"kind": "translator", "in": "久丕", "out": "Take a list of integers; keep everything before the first zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each value by itself.", "out": "为上"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then square them all.", "out": "为上"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then raise each to the power of two.", "out": "为上"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then I need each number multiplied by itself.", "out": "为上"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then square all of them.", "out": "为上"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiply each element by itself.", "out": "为上"} {"kind": "builder", "in": "为上", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "为上", "out": "Take a list of integers; drop the first and last elements, then square each."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then keep only strings of length 3 or more.", "out": "两乗"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then get rid of short ones.", "out": "两乗"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then remove strings with less than three characters.", "out": "两乗"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then remove all strings under three characters in length.", "out": "两乗"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then filter out short strings under three chars.", "out": "两乗"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then drop strings shorter than three characters.", "out": "两乗"} {"kind": "builder", "in": "两乗", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "两乗", "out": "Take a list of strings; drop empty strings, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value.", "out": "主下"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all.", "out": "主下"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value.", "out": "主下"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all.", "out": "主下"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value.", "out": "主下"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all.", "out": "主下"} {"kind": "builder", "in": "主下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "主下", "out": "Take a list of integers; keep values greater than five, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each by two.", "out": "丁丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then double each item in the list.", "out": "丁丈"} {"kind": "builder", "in": "丁丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丁丈", "out": "Take a list of integers; keep the odd numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements.", "out": "义丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third.", "out": "义丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items.", "out": "义丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three.", "out": "义丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three.", "out": "义丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3.", "out": "义丕"} {"kind": "builder", "in": "义丕", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n return r"} {"kind": "translator", "in": "义丕", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then count the even numbers.", "out": "七乓"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then what's the even count.", "out": "七乓"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then give the number of evens.", "out": "七乓"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then find how many values are divisible by two.", "out": "七乓"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then how many are even.", "out": "七乓"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then get the total number of even values in the list.", "out": "七乓"} {"kind": "builder", "in": "七乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "七乓", "out": "Take a list of integers; keep the positive numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then give the largest value (0 if none).", "out": "一业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then The biggest one, or 0 if it's empty.", "out": "一业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Get the maximum value, or zero if there's nothing.", "out": "一业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then What's the max here.", "out": "一业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Return the max or 0 if empty.", "out": "一业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then return the maximum (0 if empty).", "out": "一业"} {"kind": "builder", "in": "一业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "一业", "out": "Take a list of integers; keep the even numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; double each, then find the first even number, defaulting to 0.", "out": "丈乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then first even value zero if not found.", "out": "丈乒"} {"kind": "builder", "in": "丈乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丈乒", "out": "Take a list of integers; double each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove both ends.", "out": "丑为"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then trim the edges.", "out": "丑为"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then trim one element off each end.", "out": "丑为"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then cut off the first and last.", "out": "丑为"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first and last elements.", "out": "丑为"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep only the middle part.", "out": "丑为"} {"kind": "builder", "in": "丑为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丑为", "out": "Take a list of integers; sort ascending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then add '#' to the start of each string.", "out": "两乘"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then make each one start with a hash.", "out": "两乘"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then add '#' to the start of each string.", "out": "两乘"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then make each one start with a hash.", "out": "两乘"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then add '#' to the start of each string.", "out": "两乘"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then make each one start with a hash.", "out": "两乘"} {"kind": "builder", "in": "两乘", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "两乘", "out": "Take a list of strings; drop empty strings, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then check for an empty string.", "out": "丨乙"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then are there empty strings.", "out": "丨乙"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then is any string empty.", "out": "丨乙"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then any blanks.", "out": "丨乙"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then do any of the strings have no characters.", "out": "丨乙"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then return whether any string is empty.", "out": "丨乙"} {"kind": "builder", "in": "丨乙", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丨乙", "out": "Take a list of strings; keep the first character of each (dropping empties), then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values divisible by 3.", "out": "丘串"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep items where x mod 3 equals zero.", "out": "丘串"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then drop anything not divisible by three.", "out": "丘串"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter out everything except multiples of three.", "out": "丘串"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only multiples of three.", "out": "丘串"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiples of three only.", "out": "丘串"} {"kind": "builder", "in": "丘串", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丘串", "out": "Take a list of integers; cap each value at 10, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero.", "out": "世万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers.", "out": "世万"} {"kind": "builder", "in": "世万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "世万", "out": "Take a list of integers; drop the first element, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then check if there is an even number.", "out": "主之"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then find out whether any value is divisible by 2.", "out": "主之"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then check if there is an even number.", "out": "主之"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then find out whether any value is divisible by 2.", "out": "主之"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then check if there is an even number.", "out": "主之"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then find out whether any value is divisible by 2.", "out": "主之"} {"kind": "builder", "in": "主之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "主之", "out": "Take a list of integers; keep values greater than five, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then order the strings A to Z.", "out": "乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then make it alphabetical.", "out": "乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then order the strings A to Z.", "out": "乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then make it alphabetical.", "out": "乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then order the strings A to Z.", "out": "乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then make it alphabetical.", "out": "乞乖"} {"kind": "builder", "in": "乞乖", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乞乖", "out": "Take a list of people records (name, age); extract the names, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values divisible by 3.", "out": "七串"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep items where x mod 3 equals zero.", "out": "七串"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then drop anything not divisible by three.", "out": "七串"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then filter out everything except multiples of three.", "out": "七串"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only multiples of three.", "out": "七串"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then multiples of three only.", "out": "七串"} {"kind": "builder", "in": "七串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "七串", "out": "Take a list of integers; keep the positive numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each.", "out": "世与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa.", "out": "世与"} {"kind": "builder", "in": "世与", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "世与", "out": "Take a list of integers; drop the first element, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then check if there is an even number.", "out": "七之"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then find out whether any value is divisible by 2.", "out": "七之"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then check if there is an even number.", "out": "七之"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then find out whether any value is divisible by 2.", "out": "七之"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then check if there is an even number.", "out": "七之"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then find out whether any value is divisible by 2.", "out": "七之"} {"kind": "builder", "in": "七之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "七之", "out": "Take a list of integers; keep the positive numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each value by itself.", "out": "久上"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then square them all.", "out": "久上"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then raise each to the power of two.", "out": "久上"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then I need each number multiplied by itself.", "out": "久上"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then square all of them.", "out": "久上"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiply each element by itself.", "out": "久上"} {"kind": "builder", "in": "久上", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "久上", "out": "Take a list of integers; keep everything before the first zero, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then check if every number is above zero.", "out": "且乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then verify that all values exceed zero.", "out": "且乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then are all values positive.", "out": "且乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then are they all above zero.", "out": "且乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then tell me if all numbers are greater than zero.", "out": "且乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then return whether all values are positive.", "out": "且乌"} {"kind": "builder", "in": "且乌", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "且乌", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest to smallest.", "out": "下专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by descending values.", "out": "下专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from highest to lowest.", "out": "下专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort descending.", "out": "下专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest first.", "out": "下专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort in descending order.", "out": "下专"} {"kind": "builder", "in": "下专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "下专", "out": "Take a list of integers; add one to each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep the leading run of positive numbers.", "out": "么乂"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then take values while they are positive.", "out": "么乂"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take positive values then stop.", "out": "么乂"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep going while positive.", "out": "么乂"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then stop at first non positive.", "out": "么乂"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take while greater than zero.", "out": "么乂"} {"kind": "builder", "in": "么乂", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "么乂", "out": "Take a list of integers; if empty, use a single zero, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then give the smallest value (0 if none).", "out": "上丛"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then what's the smallest element, or 0 if there's nothing.", "out": "上丛"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then find the min, defaulting to 0.", "out": "上丛"} {"kind": "speaker", "in": "Take a list of integers; square them all, then minimum value, zero otherwise.", "out": "上丛"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then get the minimum value or zero if empty.", "out": "上丛"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then give me the min or 0.", "out": "上丛"} {"kind": "builder", "in": "上丛", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "上丛", "out": "Take a list of integers; square each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then take the final 3 elements.", "out": "丸丹"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then drop everything except the final three.", "out": "丸丹"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then give me the last three elements.", "out": "丸丹"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep only the last three.", "out": "丸丹"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep the final three items.", "out": "丸丹"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the last three.", "out": "丸丹"} {"kind": "builder", "in": "丸丹", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丸丹", "out": "Take a list of integers; sort by absolute value, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then take the first 3 elements.", "out": "丹丕"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove everything after the third.", "out": "丹丕"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then truncate to three items.", "out": "丹丕"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then show the first three.", "out": "丹丕"} {"kind": "speaker", "in": "Take a list of integers; last three only, then take the first three.", "out": "丹丕"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep first 3.", "out": "丹丕"} {"kind": "builder", "in": "丹丕", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丹丕", "out": "Take a list of integers; keep only the last three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then increment each value.", "out": "丽下"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then plus one for all.", "out": "丽下"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then increment each value.", "out": "丽下"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then plus one for all.", "out": "丽下"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then increment each value.", "out": "丽下"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then plus one for all.", "out": "丽下"} {"kind": "builder", "in": "丽下", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丽下", "out": "Take a list of integers; add ten to each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then cut the list at the first zero.", "out": "丸久"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then cut off after the first zero appears.", "out": "丸久"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take values up to (excluding) the first zero.", "out": "丸久"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the part before the first 0.", "out": "丸久"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then truncate at the first zero.", "out": "丸久"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then delete everything starting with the first zero.", "out": "丸久"} {"kind": "builder", "in": "丸久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丸久", "out": "Take a list of integers; sort by absolute value, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep the leading run of positive numbers.", "out": "上乂"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then take values while they are positive.", "out": "上乂"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take positive values then stop.", "out": "上乂"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep going while positive.", "out": "上乂"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then stop at first non positive.", "out": "上乂"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take while greater than zero.", "out": "上乂"} {"kind": "builder", "in": "上乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "上乂", "out": "Take a list of integers; square each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then give the smallest value (0 if none).", "out": "么丛"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then what's the smallest element, or 0 if there's nothing.", "out": "么丛"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then find the min, defaulting to 0.", "out": "么丛"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then minimum value, zero otherwise.", "out": "么丛"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then get the minimum value or zero if empty.", "out": "么丛"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give me the min or 0.", "out": "么丛"} {"kind": "builder", "in": "么丛", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n return min(r) if r else 0"} {"kind": "translator", "in": "么丛", "out": "Take a list of integers; if empty, use a single zero, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below.", "out": "串主"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5.", "out": "串主"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5.", "out": "串主"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5.", "out": "串主"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five.", "out": "串主"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five.", "out": "串主"} {"kind": "builder", "in": "串主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "串主", "out": "Take a list of integers; keep multiples of three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then order strings from shortest to longest.", "out": "两严"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then shortest to longest.", "out": "两严"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then arrange by string length ascending.", "out": "两严"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then length sort.", "out": "两严"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then sort by length shortest first.", "out": "两严"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then organize by string length least to greatest.", "out": "两严"} {"kind": "builder", "in": "两严", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "两严", "out": "Take a list of strings; drop empty strings, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove repeated values.", "out": "万且"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then unique values preserving order.", "out": "万且"} {"kind": "builder", "in": "万且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "万且", "out": "Take a list of integers; keep the negative numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then check if values are in increasing order.", "out": "久乎"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then give me a yes or no if the list is sorted.", "out": "久乎"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then is this list sorted.", "out": "久乎"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "久乎"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then tell me if it's sorted ascending.", "out": "久乎"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then return whether the list is sorted ascending.", "out": "久乎"} {"kind": "builder", "in": "久乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n return r == sorted(r)"} {"kind": "translator", "in": "久乎", "out": "Take a list of integers; keep everything before the first zero, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then check that there are no duplicates.", "out": "专乏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then are the values all unique.", "out": "专乏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then check if all values are unique.", "out": "专乏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then return whether all values are distinct.", "out": "专乏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then tell me if values are distinct.", "out": "专乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then are all values distinct.", "out": "专乏"} {"kind": "builder", "in": "专乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "专乏", "out": "Take a list of integers; sort descending, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then give the smallest value (0 if none).", "out": "丑丛"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then what's the smallest element, or 0 if there's nothing.", "out": "丑丛"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then find the min, defaulting to 0.", "out": "丑丛"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then minimum value, zero otherwise.", "out": "丑丛"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then get the minimum value or zero if empty.", "out": "丑丛"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then give me the min or 0.", "out": "丑丛"} {"kind": "builder", "in": "丑丛", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return min(r) if r else 0"} {"kind": "translator", "in": "丑丛", "out": "Take a list of integers; sort ascending, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then multiply each value by itself.", "out": "丽上"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then square them all.", "out": "丽上"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then raise each to the power of two.", "out": "丽上"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then I need each number multiplied by itself.", "out": "丽上"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then square all of them.", "out": "丽上"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiply each element by itself.", "out": "丽上"} {"kind": "builder", "in": "丽上", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丽上", "out": "Take a list of integers; add ten to each, then square each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then multiply each value by itself.", "out": "丑上"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then square them all.", "out": "丑上"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then raise each to the power of two.", "out": "丑上"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then I need each number multiplied by itself.", "out": "丑上"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then square all of them.", "out": "丑上"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then multiply each element by itself.", "out": "丑上"} {"kind": "builder", "in": "丑上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丑上", "out": "Take a list of integers; sort ascending, then square each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then check if every number is above zero.", "out": "丘乌"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then verify that all values exceed zero.", "out": "丘乌"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then are all values positive.", "out": "丘乌"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then are they all above zero.", "out": "丘乌"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then tell me if all numbers are greater than zero.", "out": "丘乌"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then return whether all values are positive.", "out": "丘乌"} {"kind": "builder", "in": "丘乌", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丘乌", "out": "Take a list of integers; cap each value at 10, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values above zero.", "out": "且七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter for positive numbers.", "out": "且七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only positive numbers.", "out": "且七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positives.", "out": "且七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove negatives.", "out": "且七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positive numbers.", "out": "且七"} {"kind": "builder", "in": "且七", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "且七", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values.", "out": "丈且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order.", "out": "丈且"} {"kind": "builder", "in": "丈且", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丈且", "out": "Take a list of integers; double each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then extend to length 3 using zeros.", "out": "丹义"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then pad to 3.", "out": "丹义"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then extend to length 3 using zeros.", "out": "丹义"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then pad to 3.", "out": "丹义"} {"kind": "speaker", "in": "Take a list of integers; last three only, then extend to length 3 using zeros.", "out": "丹义"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then pad to 3.", "out": "丹义"} {"kind": "builder", "in": "丹义", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丹义", "out": "Take a list of integers; keep only the last three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item.", "out": "主世"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head.", "out": "主世"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item.", "out": "主世"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head.", "out": "主世"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item.", "out": "主世"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head.", "out": "主世"} {"kind": "builder", "in": "主世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n return r"} {"kind": "translator", "in": "主世", "out": "Take a list of integers; keep values greater than five, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then give the largest value (0 if none).", "out": "丽业"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then The biggest one, or 0 if it's empty.", "out": "丽业"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then Get the maximum value, or zero if there's nothing.", "out": "丽业"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then What's the max here.", "out": "丽业"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Return the max or 0 if empty.", "out": "丽业"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then return the maximum (0 if empty).", "out": "丽业"} {"kind": "builder", "in": "丽业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丽业", "out": "Take a list of integers; add ten to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then default to [0] when there is nothing.", "out": "举么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then when the list is empty, substitute a zero value.", "out": "举么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then replace an empty list with one zero.", "out": "举么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then zero it out if it's empty.", "out": "举么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then use zero if the list is empty.", "out": "举么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then default to zero when empty.", "out": "举么"} {"kind": "builder", "in": "举么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "举么", "out": "Take a list of integers; drop the zeros, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then give the smallest value (0 if none).", "out": "丕丛"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then what's the smallest element, or 0 if there's nothing.", "out": "丕丛"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then find the min, defaulting to 0.", "out": "丕丛"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then minimum value, zero otherwise.", "out": "丕丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then get the minimum value or zero if empty.", "out": "丕丛"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give me the min or 0.", "out": "丕丛"} {"kind": "builder", "in": "丕丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return min(r) if r else 0"} {"kind": "translator", "in": "丕丛", "out": "Take a list of integers; keep only the first three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then give the largest value (0 if none).", "out": "为业"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then The biggest one, or 0 if it's empty.", "out": "为业"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then Get the maximum value, or zero if there's nothing.", "out": "为业"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then What's the max here.", "out": "为业"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then Return the max or 0 if empty.", "out": "为业"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then return the maximum (0 if empty).", "out": "为业"} {"kind": "builder", "in": "为业", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n return max(r) if r else 0"} {"kind": "translator", "in": "为业", "out": "Take a list of integers; drop the first and last elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove the first item.", "out": "不世"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Remove head.", "out": "不世"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the first item.", "out": "不世"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Remove head.", "out": "不世"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove the first item.", "out": "不世"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then Remove head.", "out": "不世"} {"kind": "builder", "in": "不世", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "不世", "out": "Take a list of integers; subtract one from each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then multiply them all together.", "out": "丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then multiply them all.", "out": "丹乐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then multiply all the numbers together.", "out": "丹乐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the product.", "out": "丹乐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then find the product of these.", "out": "丹乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then return their product.", "out": "丹乐"} {"kind": "builder", "in": "丹乐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丹乐", "out": "Take a list of integers; keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; square each, then check if there is an even number.", "out": "上之"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then find out whether any value is divisible by 2.", "out": "上之"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then check if there is an even number.", "out": "上之"} {"kind": "speaker", "in": "Take a list of integers; square them all, then find out whether any value is divisible by 2.", "out": "上之"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then check if there is an even number.", "out": "上之"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then find out whether any value is divisible by 2.", "out": "上之"} {"kind": "builder", "in": "上之", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "上之", "out": "Take a list of integers; square each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increment each value.", "out": "久下"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then plus one for all.", "out": "久下"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then increment each value.", "out": "久下"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then plus one for all.", "out": "久下"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then increment each value.", "out": "久下"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then plus one for all.", "out": "久下"} {"kind": "builder", "in": "久下", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "久下", "out": "Take a list of integers; keep everything before the first zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then check if there is an even number.", "out": "丸之"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then find out whether any value is divisible by 2.", "out": "丸之"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then check if there is an even number.", "out": "丸之"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then find out whether any value is divisible by 2.", "out": "丸之"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then check if there is an even number.", "out": "丸之"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then find out whether any value is divisible by 2.", "out": "丸之"} {"kind": "builder", "in": "丸之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丸之", "out": "Take a list of integers; sort by absolute value, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then order by distance from zero.", "out": "丹丸"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort based on absolute value.", "out": "丹丸"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then organize by magnitude.", "out": "丹丸"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then arrange by absolute value ascending.", "out": "丹丸"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort from smallest to largest absolute value.", "out": "丹丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort by absolute value.", "out": "丹丸"} {"kind": "builder", "in": "丹丸", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丹丸", "out": "Take a list of integers; keep only the last three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then concatenate with commas between.", "out": "乖中"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then add commas between items.", "out": "乖中"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then return them as one comma-separated string.", "out": "乖中"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then separate by comma.", "out": "乖中"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then join with commas.", "out": "乖中"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then comma join.", "out": "乖中"} {"kind": "builder", "in": "乖中", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return ','.join(r)"} {"kind": "translator", "in": "乖中", "out": "Take a list of strings; sort alphabetically, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero.", "out": "丁万"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers.", "out": "丁万"} {"kind": "builder", "in": "丁万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丁万", "out": "Take a list of integers; keep the odd numbers, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then cut the list at the first zero.", "out": "义久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off after the first zero appears.", "out": "义久"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take values up to (excluding) the first zero.", "out": "义久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the part before the first 0.", "out": "义久"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate at the first zero.", "out": "义久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then delete everything starting with the first zero.", "out": "义久"} {"kind": "builder", "in": "义久", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "义久", "out": "Take a list of integers; pad with zeros to at least three elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then clamp each to at most ten.", "out": "久丘"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then don't let anything exceed 10.", "out": "久丘"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then clamp each to at most ten.", "out": "久丘"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then don't let anything exceed 10.", "out": "久丘"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then clamp each to at most ten.", "out": "久丘"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then don't let anything exceed 10.", "out": "久丘"} {"kind": "builder", "in": "久丘", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "久丘", "out": "Take a list of integers; keep everything before the first zero, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two.", "out": "丐丈"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list.", "out": "丐丈"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two.", "out": "丐丈"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list.", "out": "丐丈"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two.", "out": "丐丈"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list.", "out": "丐丈"} {"kind": "builder", "in": "丐丈", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丐丈", "out": "Take a list of integers; reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort smallest to largest.", "out": "丹丑"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Ascending sort.", "out": "丹丑"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then Sort this ascending.", "out": "丹丑"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Sort lowest to highest.", "out": "丹丑"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Arrange from smallest to largest.", "out": "丹丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort ascending.", "out": "丹丑"} {"kind": "builder", "in": "丹丑", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丹丑", "out": "Take a list of integers; keep only the last three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then skip negatives at the start.", "out": "丁乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove all negatives at the front.", "out": "丁乃"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the initial run of negative numbers.", "out": "丁乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then strip the front negatives.", "out": "丁乃"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove leading negative numbers.", "out": "丁乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop negatives from start.", "out": "丁乃"} {"kind": "builder", "in": "丁乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丁乃", "out": "Take a list of integers; keep the odd numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then return the length.", "out": "且东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then count them.", "out": "且东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then what's the count.", "out": "且东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then return how many remain.", "out": "且东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then what's left.", "out": "且东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then how many are left.", "out": "且东"} {"kind": "builder", "in": "且东", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return len(r)"} {"kind": "translator", "in": "且东", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then check for an empty string.", "out": "严乙"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then are there empty strings.", "out": "严乙"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then is any string empty.", "out": "严乙"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then any blanks.", "out": "严乙"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then do any of the strings have no characters.", "out": "严乙"} {"kind": "speaker", "in": "Take a list of strings; length sort, then return whether any string is empty.", "out": "严乙"} {"kind": "builder", "in": "严乙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n return any(s == '' for s in r)"} {"kind": "translator", "in": "严乙", "out": "Take a list of strings; sort by length, shortest first, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only even values.", "out": "丐一"} {"kind": "speaker", "in": "Take a list of integers; reverse, then extract all even numbers.", "out": "丐一"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only even values.", "out": "丐一"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then extract all even numbers.", "out": "丐一"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only even values.", "out": "丐一"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then extract all even numbers.", "out": "丐一"} {"kind": "builder", "in": "丐一", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丐一", "out": "Take a list of integers; reverse the order, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero.", "out": "世丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value.", "out": "世丸"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude.", "out": "世丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending.", "out": "世丸"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value.", "out": "世丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value.", "out": "世丸"} {"kind": "builder", "in": "世丸", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "世丸", "out": "Take a list of integers; drop the first element, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep the leading run of positive numbers.", "out": "久乂"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then take values while they are positive.", "out": "久乂"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take positive values then stop.", "out": "久乂"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep going while positive.", "out": "久乂"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then stop at first non positive.", "out": "久乂"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take while greater than zero.", "out": "久乂"} {"kind": "builder", "in": "久乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "久乂", "out": "Take a list of integers; keep everything before the first zero, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values.", "out": "一举"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros.", "out": "一举"} {"kind": "builder", "in": "一举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "一举", "out": "Take a list of integers; keep the even numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values divisible by 3.", "out": "上串"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep items where x mod 3 equals zero.", "out": "上串"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then drop anything not divisible by three.", "out": "上串"} {"kind": "speaker", "in": "Take a list of integers; square them all, then filter out everything except multiples of three.", "out": "上串"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only multiples of three.", "out": "上串"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then multiples of three only.", "out": "上串"} {"kind": "builder", "in": "上串", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "上串", "out": "Take a list of integers; square each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first 3 elements.", "out": "丁丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove everything after the third.", "out": "丁丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate to three items.", "out": "丁丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then show the first three.", "out": "丁丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first three.", "out": "丁丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep first 3.", "out": "丁丕"} {"kind": "builder", "in": "丁丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丁丕", "out": "Take a list of integers; keep the odd numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then check if there is an even number.", "out": "丽之"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then find out whether any value is divisible by 2.", "out": "丽之"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then check if there is an even number.", "out": "丽之"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then find out whether any value is divisible by 2.", "out": "丽之"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then check if there is an even number.", "out": "丽之"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then find out whether any value is divisible by 2.", "out": "丽之"} {"kind": "builder", "in": "丽之", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丽之", "out": "Take a list of integers; add ten to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then concatenate with commas between.", "out": "严中"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then add commas between items.", "out": "严中"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then return them as one comma-separated string.", "out": "严中"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then separate by comma.", "out": "严中"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then join with commas.", "out": "严中"} {"kind": "speaker", "in": "Take a list of strings; length sort, then comma join.", "out": "严中"} {"kind": "builder", "in": "严中", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n return ','.join(r)"} {"kind": "translator", "in": "严中", "out": "Take a list of strings; sort by length, shortest first, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two.", "out": "义丈"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list.", "out": "义丈"} {"kind": "builder", "in": "义丈", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "义丈", "out": "Take a list of integers; pad with zeros to at least three elements, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove the first item.", "out": "丑世"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then Remove head.", "out": "丑世"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove the first item.", "out": "丑世"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then Remove head.", "out": "丑世"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first item.", "out": "丑世"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then Remove head.", "out": "丑世"} {"kind": "builder", "in": "丑世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:]\n return r"} {"kind": "translator", "in": "丑世", "out": "Take a list of integers; sort ascending, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove the first item.", "out": "丸世"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Remove head.", "out": "丸世"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the first item.", "out": "丸世"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Remove head.", "out": "丸世"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first item.", "out": "丸世"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Remove head.", "out": "丸世"} {"kind": "builder", "in": "丸世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:]\n return r"} {"kind": "translator", "in": "丸世", "out": "Take a list of integers; sort by absolute value, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then drop anything 5 or below.", "out": "专主"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then keep only numbers greater than 5.", "out": "专主"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then filter for numbers above 5.", "out": "专主"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then give me values where x is greater than 5.", "out": "专主"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then show me only the values that are bigger than five.", "out": "专主"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then keep values greater than five.", "out": "专主"} {"kind": "builder", "in": "专主", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "专主", "out": "Take a list of integers; sort descending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around.", "out": "丽丐"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around.", "out": "丽丐"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards.", "out": "丽丐"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me.", "out": "丽丐"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards.", "out": "丽丐"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards.", "out": "丽丐"} {"kind": "builder", "in": "丽丐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丽丐", "out": "Take a list of integers; add ten to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then sum the lengths of all strings.", "out": "乗个"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then sum up all the characters across everything and tell me what you get.", "out": "乗个"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then count characters across all strings.", "out": "乗个"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then character count.", "out": "乗个"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then count all the characters.", "out": "乗个"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then total number of characters.", "out": "乗个"} {"kind": "builder", "in": "乗个", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "乗个", "out": "Take a list of strings; drop strings shorter than three characters, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values divisible by 3.", "out": "专串"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then keep items where x mod 3 equals zero.", "out": "专串"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then drop anything not divisible by three.", "out": "专串"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then filter out everything except multiples of three.", "out": "专串"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only multiples of three.", "out": "专串"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiples of three only.", "out": "专串"} {"kind": "builder", "in": "专串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "专串", "out": "Take a list of integers; sort descending, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each value by itself.", "out": "丸上"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then square them all.", "out": "丸上"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then raise each to the power of two.", "out": "丸上"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then I need each number multiplied by itself.", "out": "丸上"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then square all of them.", "out": "丸上"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiply each element by itself.", "out": "丸上"} {"kind": "builder", "in": "丸上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丸上", "out": "Take a list of integers; sort by absolute value, then square each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort smallest to largest.", "out": "丸丑"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Ascending sort.", "out": "丸丑"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then Sort this ascending.", "out": "丸丑"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Sort lowest to highest.", "out": "丸丑"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Arrange from smallest to largest.", "out": "丸丑"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort ascending.", "out": "丸丑"} {"kind": "builder", "in": "丸丑", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丸丑", "out": "Take a list of integers; sort by absolute value, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then default to [0] when there is nothing.", "out": "丽么"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then when the list is empty, substitute a zero value.", "out": "丽么"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then replace an empty list with one zero.", "out": "丽么"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then zero it out if it's empty.", "out": "丽么"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then use zero if the list is empty.", "out": "丽么"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then default to zero when empty.", "out": "丽么"} {"kind": "builder", "in": "丽么", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丽么", "out": "Take a list of integers; add ten to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove both ends.", "out": "么为"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then trim the edges.", "out": "么为"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then trim one element off each end.", "out": "么为"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then cut off the first and last.", "out": "么为"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first and last elements.", "out": "么为"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep only the middle part.", "out": "么为"} {"kind": "builder", "in": "么为", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "么为", "out": "Take a list of integers; if empty, use a single zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values.", "out": "世丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers.", "out": "世丁"} {"kind": "builder", "in": "世丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "世丁", "out": "Take a list of integers; drop the first element, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then take each string's first letter.", "out": "丞丨"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then give me the first letter of everything.", "out": "丞丨"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then reduce each string to its first character.", "out": "丞丨"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then take first char drop blanks.", "out": "丞丨"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then keep first letters only.", "out": "丞丨"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then first letter from each item that isn't empty.", "out": "丞丨"} {"kind": "builder", "in": "丞丨", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "丞丨", "out": "Take a list of strings; lowercase each string, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the final 3 elements.", "out": "万丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop everything except the final three.", "out": "万丹"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give me the last three elements.", "out": "万丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the last three.", "out": "万丹"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the final three items.", "out": "万丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the last three.", "out": "万丹"} {"kind": "builder", "in": "万丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "万丹", "out": "Take a list of integers; keep the negative numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then count the even numbers.", "out": "丑乓"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then what's the even count.", "out": "丑乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then give the number of evens.", "out": "丑乓"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then find how many values are divisible by two.", "out": "丑乓"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then how many are even.", "out": "丑乓"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then get the total number of even values in the list.", "out": "丑乓"} {"kind": "builder", "in": "丑乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丑乓", "out": "Take a list of integers; sort ascending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort smallest to largest.", "out": "丐丑"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Ascending sort.", "out": "丐丑"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then Sort this ascending.", "out": "丐丑"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Sort lowest to highest.", "out": "丐丑"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then Arrange from smallest to largest.", "out": "丐丑"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort ascending.", "out": "丐丑"} {"kind": "builder", "in": "丐丑", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丐丑", "out": "Take a list of integers; reverse the order, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the list around.", "out": "久丐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then flip the order around.", "out": "久丐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then put the elements backwards.", "out": "久丐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then reverse that for me.", "out": "久丐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip it backwards.", "out": "久丐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then make it backwards.", "out": "久丐"} {"kind": "builder", "in": "久丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "久丐", "out": "Take a list of integers; keep everything before the first zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values.", "out": "世且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order.", "out": "世且"} {"kind": "builder", "in": "世且", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "世且", "out": "Take a list of integers; drop the first element, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then strip spaces around each string.", "out": "严丢"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then remove leading and trailing spaces.", "out": "严丢"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then remove whitespace from each item.", "out": "严丢"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then clean whitespace from each entry.", "out": "严丢"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then trim each string.", "out": "严丢"} {"kind": "speaker", "in": "Take a list of strings; length sort, then trim whitespace from each.", "out": "严丢"} {"kind": "builder", "in": "严丢", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "严丢", "out": "Take a list of strings; sort by length, shortest first, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then multiply them all together.", "out": "九乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then multiply them all.", "out": "九乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then multiply all the numbers together.", "out": "九乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then get the product.", "out": "九乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then find the product of these.", "out": "九乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then return their product.", "out": "九乐"} {"kind": "builder", "in": "九乐", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "九乐", "out": "Take a list of people records (name, age); extract the ages, then return their product."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the final 3 elements.", "out": "九丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then drop everything except the final three.", "out": "九丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then give me the last three elements.", "out": "九丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep only the last three.", "out": "九丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep the final three items.", "out": "九丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the last three.", "out": "九丹"} {"kind": "builder", "in": "九丹", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "九丹", "out": "Take a list of people records (name, age); extract the ages, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then order by distance from zero.", "out": "丘丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort based on absolute value.", "out": "丘丸"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then organize by magnitude.", "out": "丘丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then arrange by absolute value ascending.", "out": "丘丸"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from smallest to largest absolute value.", "out": "丘丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by absolute value.", "out": "丘丸"} {"kind": "builder", "in": "丘丸", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丘丸", "out": "Take a list of integers; cap each value at 10, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then count the even numbers.", "out": "举乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then what's the even count.", "out": "举乓"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give the number of evens.", "out": "举乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then find how many values are divisible by two.", "out": "举乓"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then how many are even.", "out": "举乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the total number of even values in the list.", "out": "举乓"} {"kind": "builder", "in": "举乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "举乓", "out": "Take a list of integers; drop the zeros, then return how many values are even."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then order the strings A to Z.", "out": "丢乖"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then make it alphabetical.", "out": "丢乖"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then order the strings A to Z.", "out": "丢乖"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then make it alphabetical.", "out": "丢乖"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then order the strings A to Z.", "out": "丢乖"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then make it alphabetical.", "out": "丢乖"} {"kind": "builder", "in": "丢乖", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丢乖", "out": "Take a list of strings; trim whitespace from each, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each value by itself.", "out": "不上"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then square them all.", "out": "不上"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then raise each to the power of two.", "out": "不上"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then I need each number multiplied by itself.", "out": "不上"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then square all of them.", "out": "不上"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiply each element by itself.", "out": "不上"} {"kind": "builder", "in": "不上", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "不上", "out": "Take a list of integers; subtract one from each, then square each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values.", "out": "义丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers.", "out": "义丁"} {"kind": "builder", "in": "义丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义丁", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values above zero.", "out": "丽七"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then filter for positive numbers.", "out": "丽七"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only positive numbers.", "out": "丽七"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the positives.", "out": "丽七"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove negatives.", "out": "丽七"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep the positive numbers.", "out": "丽七"} {"kind": "builder", "in": "丽七", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丽七", "out": "Take a list of integers; add ten to each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values divisible by 3.", "out": "丐串"} {"kind": "speaker", "in": "Take a list of integers; reverse, then keep items where x mod 3 equals zero.", "out": "丐串"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then drop anything not divisible by three.", "out": "丐串"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then filter out everything except multiples of three.", "out": "丐串"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only multiples of three.", "out": "丐串"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiples of three only.", "out": "丐串"} {"kind": "builder", "in": "丐串", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丐串", "out": "Take a list of integers; reverse the order, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then order the strings A to Z.", "out": "丨乖"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make it alphabetical.", "out": "丨乖"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then order the strings A to Z.", "out": "丨乖"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make it alphabetical.", "out": "丨乖"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then order the strings A to Z.", "out": "丨乖"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make it alphabetical.", "out": "丨乖"} {"kind": "builder", "in": "丨乖", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丨乖", "out": "Take a list of strings; keep the first character of each (dropping empties), then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything 5 or below.", "out": "且主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only numbers greater than 5.", "out": "且主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then filter for numbers above 5.", "out": "且主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give me values where x is greater than 5.", "out": "且主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then show me only the values that are bigger than five.", "out": "且主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep values greater than five.", "out": "且主"} {"kind": "builder", "in": "且主", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "且主", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; square each, then clamp each to at most ten.", "out": "上丘"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then don't let anything exceed 10.", "out": "上丘"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then clamp each to at most ten.", "out": "上丘"} {"kind": "speaker", "in": "Take a list of integers; square them all, then don't let anything exceed 10.", "out": "上丘"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then clamp each to at most ten.", "out": "上丘"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then don't let anything exceed 10.", "out": "上丘"} {"kind": "builder", "in": "上丘", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "上丘", "out": "Take a list of integers; square each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values.", "out": "丘丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers.", "out": "丘丁"} {"kind": "builder", "in": "丘丁", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丘丁", "out": "Take a list of integers; cap each value at 10, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give the largest value (0 if none).", "out": "万业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then The biggest one, or 0 if it's empty.", "out": "万业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Get the maximum value, or zero if there's nothing.", "out": "万业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then What's the max here.", "out": "万业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Return the max or 0 if empty.", "out": "万业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then return the maximum (0 if empty).", "out": "万业"} {"kind": "builder", "in": "万业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "万业", "out": "Take a list of integers; keep the negative numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove repeated values.", "out": "举且"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then unique values preserving order.", "out": "举且"} {"kind": "builder", "in": "举且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "举且", "out": "Take a list of integers; drop the zeros, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the list around.", "out": "不丐"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then flip the order around.", "out": "不丐"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then put the elements backwards.", "out": "不丐"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then reverse that for me.", "out": "不丐"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip it backwards.", "out": "不丐"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then make it backwards.", "out": "不丐"} {"kind": "builder", "in": "不丐", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "不丐", "out": "Take a list of integers; subtract one from each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove all zero values.", "out": "为举"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then exclude zeros.", "out": "为举"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove all zero values.", "out": "为举"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then exclude zeros.", "out": "为举"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove all zero values.", "out": "为举"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then exclude zeros.", "out": "为举"} {"kind": "builder", "in": "为举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "为举", "out": "Take a list of integers; drop the first and last elements, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest.", "out": "举丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort.", "out": "举丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending.", "out": "举丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest.", "out": "举丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest.", "out": "举丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending.", "out": "举丑"} {"kind": "builder", "in": "举丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "举丑", "out": "Take a list of integers; drop the zeros, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then cut the list at the first zero.", "out": "丁久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off after the first zero appears.", "out": "丁久"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take values up to (excluding) the first zero.", "out": "丁久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the part before the first 0.", "out": "丁久"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate at the first zero.", "out": "丁久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then delete everything starting with the first zero.", "out": "丁久"} {"kind": "builder", "in": "丁久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丁久", "out": "Take a list of integers; keep the odd numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep the leading run of positive numbers.", "out": "丹乂"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then take values while they are positive.", "out": "丹乂"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take positive values then stop.", "out": "丹乂"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep going while positive.", "out": "丹乂"} {"kind": "speaker", "in": "Take a list of integers; last three only, then stop at first non positive.", "out": "丹乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take while greater than zero.", "out": "丹乂"} {"kind": "builder", "in": "丹乂", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丹乂", "out": "Take a list of integers; keep only the last three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then take each string's first letter.", "out": "乞丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then give me the first letter of everything.", "out": "乞丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then reduce each string to its first character.", "out": "乞丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then take first char drop blanks.", "out": "乞丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then keep first letters only.", "out": "乞丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then first letter from each item that isn't empty.", "out": "乞丨"} {"kind": "builder", "in": "乞丨", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乞丨", "out": "Take a list of people records (name, age); extract the names, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values below zero.", "out": "主万"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then get the negative numbers.", "out": "主万"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep values below zero.", "out": "主万"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then get the negative numbers.", "out": "主万"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep values below zero.", "out": "主万"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then get the negative numbers.", "out": "主万"} {"kind": "builder", "in": "主万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "主万", "out": "Take a list of integers; keep values greater than five, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values.", "out": "万丁"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers.", "out": "万丁"} {"kind": "builder", "in": "万丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "万丁", "out": "Take a list of integers; keep the negative numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the sign of each.", "out": "串与"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then turn positives to negatives and vice versa.", "out": "串与"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then flip the sign of each.", "out": "串与"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn positives to negatives and vice versa.", "out": "串与"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip the sign of each.", "out": "串与"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then turn positives to negatives and vice versa.", "out": "串与"} {"kind": "builder", "in": "串与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "串与", "out": "Take a list of integers; keep multiples of three, then negate each."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then convert each to upper case.", "out": "丢丟"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then change all strings to uppercase.", "out": "丢丟"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then make every string uppercase.", "out": "丢丟"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then uppercase each one.", "out": "丢丟"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then make all the strings uppercase.", "out": "丢丟"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then convert all strings to uppercase letters.", "out": "丢丟"} {"kind": "builder", "in": "丢丟", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "丢丟", "out": "Take a list of strings; trim whitespace from each, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values above zero.", "out": "串七"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then filter for positive numbers.", "out": "串七"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only positive numbers.", "out": "串七"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the positives.", "out": "串七"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove negatives.", "out": "串七"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep the positive numbers.", "out": "串七"} {"kind": "builder", "in": "串七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "串七", "out": "Take a list of integers; keep multiples of three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then check that there are no duplicates.", "out": "丹乏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then are the values all unique.", "out": "丹乏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then check if all values are unique.", "out": "丹乏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then return whether all values are distinct.", "out": "丹乏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then tell me if values are distinct.", "out": "丹乏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then are all values distinct.", "out": "丹乏"} {"kind": "builder", "in": "丹乏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丹乏", "out": "Take a list of integers; keep only the last three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then order the strings A to Z.", "out": "严乖"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then make it alphabetical.", "out": "严乖"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then order the strings A to Z.", "out": "严乖"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then make it alphabetical.", "out": "严乖"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then order the strings A to Z.", "out": "严乖"} {"kind": "speaker", "in": "Take a list of strings; length sort, then make it alphabetical.", "out": "严乖"} {"kind": "builder", "in": "严乖", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "严乖", "out": "Take a list of strings; sort by length, shortest first, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then multiply each by two.", "out": "丹丈"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then double each item in the list.", "out": "丹丈"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then multiply each by two.", "out": "丹丈"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then double each item in the list.", "out": "丹丈"} {"kind": "speaker", "in": "Take a list of integers; last three only, then multiply each by two.", "out": "丹丈"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then double each item in the list.", "out": "丹丈"} {"kind": "builder", "in": "丹丈", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丹丈", "out": "Take a list of integers; keep only the last three, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the sign of each.", "out": "七与"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then turn positives to negatives and vice versa.", "out": "七与"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then flip the sign of each.", "out": "七与"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn positives to negatives and vice versa.", "out": "七与"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip the sign of each.", "out": "七与"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then turn positives to negatives and vice versa.", "out": "七与"} {"kind": "builder", "in": "七与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "七与", "out": "Take a list of integers; keep the positive numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then check if values are in increasing order.", "out": "举乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give me a yes or no if the list is sorted.", "out": "举乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then is this list sorted.", "out": "举乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "举乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then tell me if it's sorted ascending.", "out": "举乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then return whether the list is sorted ascending.", "out": "举乎"} {"kind": "builder", "in": "举乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "举乎", "out": "Take a list of integers; drop the zeros, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then sort smallest to largest.", "out": "不丑"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Ascending sort.", "out": "不丑"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then Sort this ascending.", "out": "不丑"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Sort lowest to highest.", "out": "不丑"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then Arrange from smallest to largest.", "out": "不丑"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then sort ascending.", "out": "不丑"} {"kind": "builder", "in": "不丑", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "不丑", "out": "Take a list of integers; subtract one from each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values above zero.", "out": "丏七"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then filter for positive numbers.", "out": "丏七"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only positive numbers.", "out": "丏七"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the positives.", "out": "丏七"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove negatives.", "out": "丏七"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep the positive numbers.", "out": "丏七"} {"kind": "builder", "in": "丏七", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丏七", "out": "Take a list of integers; take the absolute value of each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros.", "out": "为义"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3.", "out": "为义"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros.", "out": "为义"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3.", "out": "为义"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros.", "out": "为义"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3.", "out": "为义"} {"kind": "builder", "in": "为义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "为义", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then drop anything 5 or below.", "out": "七主"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep only numbers greater than 5.", "out": "七主"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then filter for numbers above 5.", "out": "七主"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then give me values where x is greater than 5.", "out": "七主"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then show me only the values that are bigger than five.", "out": "七主"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep values greater than five.", "out": "七主"} {"kind": "builder", "in": "七主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "七主", "out": "Take a list of integers; keep the positive numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then remove repeated strings.", "out": "严丧"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then keep unique strings first appearance.", "out": "严丧"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then eliminate repeated strings preserve first occurrence.", "out": "严丧"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then drop duplicate strings keeping the first.", "out": "严丧"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then dedupe.", "out": "严丧"} {"kind": "speaker", "in": "Take a list of strings; length sort, then remove duplicate strings keep first.", "out": "严丧"} {"kind": "builder", "in": "严丧", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "严丧", "out": "Take a list of strings; sort by length, shortest first, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers.", "out": "义乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive.", "out": "义乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop.", "out": "义乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive.", "out": "义乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive.", "out": "义乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero.", "out": "义乂"} {"kind": "builder", "in": "义乂", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "义乂", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then check if values are in increasing order.", "out": "丕乎"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then give me a yes or no if the list is sorted.", "out": "丕乎"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then is this list sorted.", "out": "丕乎"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丕乎"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then tell me if it's sorted ascending.", "out": "丕乎"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then return whether the list is sorted ascending.", "out": "丕乎"} {"kind": "builder", "in": "丕乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return r == sorted(r)"} {"kind": "translator", "in": "丕乎", "out": "Take a list of integers; keep only the first three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then give the smallest value (0 if none).", "out": "且丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then what's the smallest element, or 0 if there's nothing.", "out": "且丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then find the min, defaulting to 0.", "out": "且丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then minimum value, zero otherwise.", "out": "且丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then get the minimum value or zero if empty.", "out": "且丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give me the min or 0.", "out": "且丛"} {"kind": "builder", "in": "且丛", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "且丛", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then decrement each value.", "out": "丐不"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Lower each number by one.", "out": "丐不"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then reduce each by one.", "out": "丐不"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Subtract 1 from all.", "out": "丐不"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then Subtract one from each.", "out": "丐不"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then Drop each by one.", "out": "丐不"} {"kind": "builder", "in": "丐不", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丐不", "out": "Take a list of integers; reverse the order, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements.", "out": "下丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three.", "out": "下丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements.", "out": "下丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three.", "out": "下丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items.", "out": "下丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three.", "out": "下丹"} {"kind": "builder", "in": "下丹", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "下丹", "out": "Take a list of integers; add one to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only even values.", "out": "么一"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then extract all even numbers.", "out": "么一"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only even values.", "out": "么一"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then extract all even numbers.", "out": "么一"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only even values.", "out": "么一"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then extract all even numbers.", "out": "么一"} {"kind": "builder", "in": "么一", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "么一", "out": "Take a list of integers; if empty, use a single zero, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values divisible by 3.", "out": "主串"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then keep items where x mod 3 equals zero.", "out": "主串"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then drop anything not divisible by three.", "out": "主串"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then filter out everything except multiples of three.", "out": "主串"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only multiples of three.", "out": "主串"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiples of three only.", "out": "主串"} {"kind": "builder", "in": "主串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "主串", "out": "Take a list of integers; keep values greater than five, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove all zero values.", "out": "么举"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then exclude zeros.", "out": "么举"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove all zero values.", "out": "么举"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then exclude zeros.", "out": "么举"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove all zero values.", "out": "么举"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then exclude zeros.", "out": "么举"} {"kind": "builder", "in": "么举", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "么举", "out": "Take a list of integers; if empty, use a single zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two.", "out": "万丈"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list.", "out": "万丈"} {"kind": "builder", "in": "万丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "万丈", "out": "Take a list of integers; keep the negative numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the final 3 elements.", "out": "一丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop everything except the final three.", "out": "一丹"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then give me the last three elements.", "out": "一丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the last three.", "out": "一丹"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the final three items.", "out": "一丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the last three.", "out": "一丹"} {"kind": "builder", "in": "一丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "一丹", "out": "Take a list of integers; keep the even numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increment each value.", "out": "不下"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then plus one for all.", "out": "不下"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then increment each value.", "out": "不下"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then plus one for all.", "out": "不下"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then increment each value.", "out": "不下"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then plus one for all.", "out": "不下"} {"kind": "builder", "in": "不下", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "不下", "out": "Take a list of integers; subtract one from each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then clamp each to at most ten.", "out": "丐丘"} {"kind": "speaker", "in": "Take a list of integers; reverse, then don't let anything exceed 10.", "out": "丐丘"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then clamp each to at most ten.", "out": "丐丘"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then don't let anything exceed 10.", "out": "丐丘"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then clamp each to at most ten.", "out": "丐丘"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then don't let anything exceed 10.", "out": "丐丘"} {"kind": "builder", "in": "丐丘", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丐丘", "out": "Take a list of integers; reverse the order, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then check that there are no duplicates.", "out": "且乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then are the values all unique.", "out": "且乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then check if all values are unique.", "out": "且乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then return whether all values are distinct.", "out": "且乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then tell me if values are distinct.", "out": "且乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then are all values distinct.", "out": "且乏"} {"kind": "builder", "in": "且乏", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "且乏", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then sort largest to smallest.", "out": "乂专"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort by descending values.", "out": "乂专"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then sort from highest to lowest.", "out": "乂专"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then sort descending.", "out": "乂专"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort largest first.", "out": "乂专"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort in descending order.", "out": "乂专"} {"kind": "builder", "in": "乂专", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乂专", "out": "Take a list of integers; take values while they are positive, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then cut the list at the first zero.", "out": "专久"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then cut off after the first zero appears.", "out": "专久"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take values up to (excluding) the first zero.", "out": "专久"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep the part before the first 0.", "out": "专久"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then truncate at the first zero.", "out": "专久"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then delete everything starting with the first zero.", "out": "专久"} {"kind": "builder", "in": "专久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "专久", "out": "Take a list of integers; sort descending, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove the first item.", "out": "七世"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Remove head.", "out": "七世"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the first item.", "out": "七世"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Remove head.", "out": "七世"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first item.", "out": "七世"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Remove head.", "out": "七世"} {"kind": "builder", "in": "七世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "七世", "out": "Take a list of integers; keep the positive numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then return the length.", "out": "丘东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then count them.", "out": "丘东"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then what's the count.", "out": "丘东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then return how many remain.", "out": "丘东"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then what's left.", "out": "丘东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then how many are left.", "out": "丘东"} {"kind": "builder", "in": "丘东", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return len(r)"} {"kind": "translator", "in": "丘东", "out": "Take a list of integers; cap each value at 10, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then check if zero appears.", "out": "丐乍"} {"kind": "speaker", "in": "Take a list of integers; reverse, then find out whether there's a zero in here.", "out": "丐乍"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then check if zero appears.", "out": "丐乍"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then find out whether there's a zero in here.", "out": "丐乍"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then check if zero appears.", "out": "丐乍"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then find out whether there's a zero in here.", "out": "丐乍"} {"kind": "builder", "in": "丐乍", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return 0 in r"} {"kind": "translator", "in": "丐乍", "out": "Take a list of integers; reverse the order, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then make every value non-negative.", "out": "么丏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then absolute value for all items.", "out": "么丏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take absolute values.", "out": "么丏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn negatives into positives.", "out": "么丏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then abs each element.", "out": "么丏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the absolute value of each.", "out": "么丏"} {"kind": "builder", "in": "么丏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "么丏", "out": "Take a list of integers; if empty, use a single zero, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove both ends.", "out": "世为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then trim the edges.", "out": "世为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then trim one element off each end.", "out": "世为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off the first and last.", "out": "世为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the first and last elements.", "out": "世为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the middle part.", "out": "世为"} {"kind": "builder", "in": "世为", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "世为", "out": "Take a list of integers; drop the first element, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then find the first even number, defaulting to 0.", "out": "且乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then first even value zero if not found.", "out": "且乒"} {"kind": "builder", "in": "且乒", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "且乒", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then skip negatives at the start.", "out": "不乃"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove all negatives at the front.", "out": "不乃"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the initial run of negative numbers.", "out": "不乃"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then strip the front negatives.", "out": "不乃"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove leading negative numbers.", "out": "不乃"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then drop negatives from start.", "out": "不乃"} {"kind": "builder", "in": "不乃", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "不乃", "out": "Take a list of integers; subtract one from each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply them all together.", "out": "七乐"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then multiply them all.", "out": "七乐"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then multiply all the numbers together.", "out": "七乐"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then get the product.", "out": "七乐"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then find the product of these.", "out": "七乐"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then return their product.", "out": "七乐"} {"kind": "builder", "in": "七乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "七乐", "out": "Take a list of integers; keep the positive numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then extend to length 3 using zeros.", "out": "丽义"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then pad to 3.", "out": "丽义"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then extend to length 3 using zeros.", "out": "丽义"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then pad to 3.", "out": "丽义"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then extend to length 3 using zeros.", "out": "丽义"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then pad to 3.", "out": "丽义"} {"kind": "builder", "in": "丽义", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丽义", "out": "Take a list of integers; add ten to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then give back the lengthiest string.", "out": "乞丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then Longest string please.", "out": "乞丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then give back the lengthiest string.", "out": "乞丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then Longest string please.", "out": "乞丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then give back the lengthiest string.", "out": "乞丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then Longest string please.", "out": "乞丰"} {"kind": "builder", "in": "乞丰", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "乞丰", "out": "Take a list of people records (name, age); extract the names, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then convert each to upper case.", "out": "严丟"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then change all strings to uppercase.", "out": "严丟"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then make every string uppercase.", "out": "严丟"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then uppercase each one.", "out": "严丟"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then make all the strings uppercase.", "out": "严丟"} {"kind": "speaker", "in": "Take a list of strings; length sort, then convert all strings to uppercase letters.", "out": "严丟"} {"kind": "builder", "in": "严丟", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "严丟", "out": "Take a list of strings; sort by length, shortest first, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then find the first even number, defaulting to 0.", "out": "世乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then first even value zero if not found.", "out": "世乒"} {"kind": "builder", "in": "世乒", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "世乒", "out": "Take a list of integers; drop the first element, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then clamp each to at most ten.", "out": "主丘"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then don't let anything exceed 10.", "out": "主丘"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then clamp each to at most ten.", "out": "主丘"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then don't let anything exceed 10.", "out": "主丘"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then clamp each to at most ten.", "out": "主丘"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then don't let anything exceed 10.", "out": "主丘"} {"kind": "builder", "in": "主丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "主丘", "out": "Take a list of integers; keep values greater than five, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values above zero.", "out": "一七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter for positive numbers.", "out": "一七"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only positive numbers.", "out": "一七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the positives.", "out": "一七"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove negatives.", "out": "一七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the positive numbers.", "out": "一七"} {"kind": "builder", "in": "一七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "一七", "out": "Take a list of integers; keep the even numbers, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove repeated values.", "out": "乂且"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then unique values preserving order.", "out": "乂且"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove repeated values.", "out": "乂且"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then unique values preserving order.", "out": "乂且"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove repeated values.", "out": "乂且"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then unique values preserving order.", "out": "乂且"} {"kind": "builder", "in": "乂且", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乂且", "out": "Take a list of integers; take values while they are positive, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the final 3 elements.", "out": "丘丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop everything except the final three.", "out": "丘丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give me the last three elements.", "out": "丘丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the last three.", "out": "丘丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the final three items.", "out": "丘丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the last three.", "out": "丘丹"} {"kind": "builder", "in": "丘丹", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丘丹", "out": "Take a list of integers; cap each value at 10, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove the first item.", "out": "专世"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Remove head.", "out": "专世"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the first item.", "out": "专世"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Remove head.", "out": "专世"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove the first item.", "out": "专世"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then Remove head.", "out": "专世"} {"kind": "builder", "in": "专世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[1:]\n return r"} {"kind": "translator", "in": "专世", "out": "Take a list of integers; sort descending, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then make every value non-negative.", "out": "七丏"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then absolute value for all items.", "out": "七丏"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take absolute values.", "out": "七丏"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn negatives into positives.", "out": "七丏"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then abs each element.", "out": "七丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the absolute value of each.", "out": "七丏"} {"kind": "builder", "in": "七丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "七丏", "out": "Take a list of integers; keep the positive numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then check if every number is above zero.", "out": "丑乌"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then verify that all values exceed zero.", "out": "丑乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then are all values positive.", "out": "丑乌"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then are they all above zero.", "out": "丑乌"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then tell me if all numbers are greater than zero.", "out": "丑乌"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then return whether all values are positive.", "out": "丑乌"} {"kind": "builder", "in": "丑乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丑乌", "out": "Take a list of integers; sort ascending, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply them all together.", "out": "丘乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiply them all.", "out": "丘乐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply all the numbers together.", "out": "丘乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the product.", "out": "丘乐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then find the product of these.", "out": "丘乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then return their product.", "out": "丘乐"} {"kind": "builder", "in": "丘乐", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丘乐", "out": "Take a list of integers; cap each value at 10, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then take the first 3 elements.", "out": "串丕"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then remove everything after the third.", "out": "串丕"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then truncate to three items.", "out": "串丕"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then show the first three.", "out": "串丕"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then take the first three.", "out": "串丕"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep first 3.", "out": "串丕"} {"kind": "builder", "in": "串丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "串丕", "out": "Take a list of integers; keep multiples of three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten.", "out": "且丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10.", "out": "且丘"} {"kind": "builder", "in": "且丘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "且丘", "out": "Take a list of integers; drop duplicates keeping first occurrence, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros.", "out": "举义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3.", "out": "举义"} {"kind": "builder", "in": "举义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "举义", "out": "Take a list of integers; drop the zeros, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then count the strings.", "out": "两丫"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then return how many strings remain.", "out": "两丫"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then give me the total number of strings.", "out": "两丫"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then tell me how many strings we have.", "out": "两丫"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then what's the string count.", "out": "两丫"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then count the remaining strings.", "out": "两丫"} {"kind": "builder", "in": "两丫", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n return len(r)"} {"kind": "translator", "in": "两丫", "out": "Take a list of strings; drop empty strings, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove repeated strings.", "out": "乖丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then keep unique strings first appearance.", "out": "乖丧"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then eliminate repeated strings preserve first occurrence.", "out": "乖丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop duplicate strings keeping the first.", "out": "乖丧"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then dedupe.", "out": "乖丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove duplicate strings keep first.", "out": "乖丧"} {"kind": "builder", "in": "乖丧", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乖丧", "out": "Take a list of strings; sort alphabetically, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove repeated values.", "out": "九且"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then unique values preserving order.", "out": "九且"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove repeated values.", "out": "九且"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then unique values preserving order.", "out": "九且"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove repeated values.", "out": "九且"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then unique values preserving order.", "out": "九且"} {"kind": "builder", "in": "九且", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "九且", "out": "Take a list of people records (name, age); extract the ages, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then make every value non-negative.", "out": "举丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then absolute value for all items.", "out": "举丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take absolute values.", "out": "举丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn negatives into positives.", "out": "举丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then abs each element.", "out": "举丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the absolute value of each.", "out": "举丏"} {"kind": "builder", "in": "举丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举丏", "out": "Take a list of integers; drop the zeros, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep only non-empty strings.", "out": "乖两"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then filter empty strings.", "out": "乖两"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove empty strings from the list.", "out": "乖两"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then clean up empty strings.", "out": "乖两"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then delete empty entries.", "out": "乖两"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop empty strings.", "out": "乖两"} {"kind": "builder", "in": "乖两", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "乖两", "out": "Take a list of strings; sort alphabetically, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give the largest value (0 if none).", "out": "丘业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then The biggest one, or 0 if it's empty.", "out": "丘业"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Get the maximum value, or zero if there's nothing.", "out": "丘业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then What's the max here.", "out": "丘业"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Return the max or 0 if empty.", "out": "丘业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then return the maximum (0 if empty).", "out": "丘业"} {"kind": "builder", "in": "丘业", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丘业", "out": "Take a list of integers; cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then order by distance from zero.", "out": "义丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort based on absolute value.", "out": "义丸"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then organize by magnitude.", "out": "义丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then arrange by absolute value ascending.", "out": "义丸"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from smallest to largest absolute value.", "out": "义丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by absolute value.", "out": "义丸"} {"kind": "builder", "in": "义丸", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "义丸", "out": "Take a list of integers; pad with zeros to at least three elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort smallest to largest.", "out": "么丑"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Ascending sort.", "out": "么丑"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then Sort this ascending.", "out": "么丑"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Sort lowest to highest.", "out": "么丑"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Arrange from smallest to largest.", "out": "么丑"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort ascending.", "out": "么丑"} {"kind": "builder", "in": "么丑", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "么丑", "out": "Take a list of integers; if empty, use a single zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply them all together.", "out": "万乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiply them all.", "out": "万乐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply all the numbers together.", "out": "万乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then get the product.", "out": "万乐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then find the product of these.", "out": "万乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then return their product.", "out": "万乐"} {"kind": "builder", "in": "万乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "万乐", "out": "Take a list of integers; keep the negative numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values divisible by 3.", "out": "世串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep items where x mod 3 equals zero.", "out": "世串"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then drop anything not divisible by three.", "out": "世串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter out everything except multiples of three.", "out": "世串"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only multiples of three.", "out": "世串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiples of three only.", "out": "世串"} {"kind": "builder", "in": "世串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "世串", "out": "Take a list of integers; drop the first element, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort smallest to largest.", "out": "丕丑"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Ascending sort.", "out": "丕丑"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then Sort this ascending.", "out": "丕丑"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Sort lowest to highest.", "out": "丕丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Arrange from smallest to largest.", "out": "丕丑"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort ascending.", "out": "丕丑"} {"kind": "builder", "in": "丕丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丕丑", "out": "Take a list of integers; keep only the first three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then check if zero appears.", "out": "七乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then find out whether there's a zero in here.", "out": "七乍"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then check if zero appears.", "out": "七乍"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then find out whether there's a zero in here.", "out": "七乍"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then check if zero appears.", "out": "七乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then find out whether there's a zero in here.", "out": "七乍"} {"kind": "builder", "in": "七乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return 0 in r"} {"kind": "translator", "in": "七乍", "out": "Take a list of integers; keep the positive numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then sort smallest to largest.", "out": "乃丑"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Ascending sort.", "out": "乃丑"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then Sort this ascending.", "out": "乃丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Sort lowest to highest.", "out": "乃丑"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then Arrange from smallest to largest.", "out": "乃丑"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort ascending.", "out": "乃丑"} {"kind": "builder", "in": "乃丑", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乃丑", "out": "Take a list of integers; drop the leading negative values, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then extend to length 3 using zeros.", "out": "七义"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then pad to 3.", "out": "七义"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then extend to length 3 using zeros.", "out": "七义"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then pad to 3.", "out": "七义"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then extend to length 3 using zeros.", "out": "七义"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then pad to 3.", "out": "七义"} {"kind": "builder", "in": "七义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "七义", "out": "Take a list of integers; keep the positive numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then cut the list at the first zero.", "out": "丈久"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off after the first zero appears.", "out": "丈久"} {"kind": "speaker", "in": "Take a list of integers; double each, then take values up to (excluding) the first zero.", "out": "丈久"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the part before the first 0.", "out": "丈久"} {"kind": "speaker", "in": "Take a list of integers; double each, then truncate at the first zero.", "out": "丈久"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then delete everything starting with the first zero.", "out": "丈久"} {"kind": "builder", "in": "丈久", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丈久", "out": "Take a list of integers; double each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then cut the list at the first zero.", "out": "么久"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then cut off after the first zero appears.", "out": "么久"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take values up to (excluding) the first zero.", "out": "么久"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the part before the first 0.", "out": "么久"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then truncate at the first zero.", "out": "么久"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then delete everything starting with the first zero.", "out": "么久"} {"kind": "builder", "in": "么久", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "么久", "out": "Take a list of integers; if empty, use a single zero, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then count the even numbers.", "out": "主乓"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then what's the even count.", "out": "主乓"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then give the number of evens.", "out": "主乓"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then find how many values are divisible by two.", "out": "主乓"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then how many are even.", "out": "主乓"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then get the total number of even values in the list.", "out": "主乓"} {"kind": "builder", "in": "主乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "主乓", "out": "Take a list of integers; keep values greater than five, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero.", "out": "举万"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers.", "out": "举万"} {"kind": "builder", "in": "举万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "举万", "out": "Take a list of integers; drop the zeros, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values above zero.", "out": "久七"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then filter for positive numbers.", "out": "久七"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only positive numbers.", "out": "久七"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep the positives.", "out": "久七"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove negatives.", "out": "久七"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep the positive numbers.", "out": "久七"} {"kind": "builder", "in": "久七", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "久七", "out": "Take a list of integers; keep everything before the first zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then make every value non-negative.", "out": "上丏"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then absolute value for all items.", "out": "上丏"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take absolute values.", "out": "上丏"} {"kind": "speaker", "in": "Take a list of integers; square them all, then turn negatives into positives.", "out": "上丏"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then abs each element.", "out": "上丏"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the absolute value of each.", "out": "上丏"} {"kind": "builder", "in": "上丏", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "上丏", "out": "Take a list of integers; square each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then order strings from shortest to longest.", "out": "乘严"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then shortest to longest.", "out": "乘严"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then arrange by string length ascending.", "out": "乘严"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then length sort.", "out": "乘严"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then sort by length shortest first.", "out": "乘严"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then organize by string length least to greatest.", "out": "乘严"} {"kind": "builder", "in": "乘严", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "乘严", "out": "Take a list of strings; prefix each with a hash, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative.", "out": "与丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items.", "out": "与丏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values.", "out": "与丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives.", "out": "与丏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element.", "out": "与丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each.", "out": "与丏"} {"kind": "builder", "in": "与丏", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "与丏", "out": "Take a list of integers; negate each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each by two.", "out": "乂丈"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then double each item in the list.", "out": "乂丈"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then multiply each by two.", "out": "乂丈"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then double each item in the list.", "out": "乂丈"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then multiply each by two.", "out": "乂丈"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then double each item in the list.", "out": "乂丈"} {"kind": "builder", "in": "乂丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乂丈", "out": "Take a list of integers; take values while they are positive, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then make every value non-negative.", "out": "一丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then absolute value for all items.", "out": "一丏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take absolute values.", "out": "一丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn negatives into positives.", "out": "一丏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then abs each element.", "out": "一丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the absolute value of each.", "out": "一丏"} {"kind": "builder", "in": "一丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "一丏", "out": "Take a list of integers; keep the even numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then give the smallest value (0 if none).", "out": "丐丛"} {"kind": "speaker", "in": "Take a list of integers; reverse, then what's the smallest element, or 0 if there's nothing.", "out": "丐丛"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then find the min, defaulting to 0.", "out": "丐丛"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then minimum value, zero otherwise.", "out": "丐丛"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then get the minimum value or zero if empty.", "out": "丐丛"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give me the min or 0.", "out": "丐丛"} {"kind": "builder", "in": "丐丛", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "丐丛", "out": "Take a list of integers; reverse the order, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then add '#' to the start of each string.", "out": "丟乘"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then make each one start with a hash.", "out": "丟乘"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then add '#' to the start of each string.", "out": "丟乘"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then make each one start with a hash.", "out": "丟乘"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then add '#' to the start of each string.", "out": "丟乘"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then make each one start with a hash.", "out": "丟乘"} {"kind": "builder", "in": "丟乘", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "丟乘", "out": "Take a list of strings; uppercase each string, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then return the length.", "out": "丁东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then count them.", "out": "丁东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then what's the count.", "out": "丁东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then return how many remain.", "out": "丁东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then what's left.", "out": "丁东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then how many are left.", "out": "丁东"} {"kind": "builder", "in": "丁东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n return len(r)"} {"kind": "translator", "in": "丁东", "out": "Take a list of integers; keep the odd numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then order by distance from zero.", "out": "且丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort based on absolute value.", "out": "且丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then organize by magnitude.", "out": "且丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then arrange by absolute value ascending.", "out": "且丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort from smallest to largest absolute value.", "out": "且丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort by absolute value.", "out": "且丸"} {"kind": "builder", "in": "且丸", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "且丸", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then find the first even number, defaulting to 0.", "out": "丘乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then first even value zero if not found.", "out": "丘乒"} {"kind": "builder", "in": "丘乒", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丘乒", "out": "Take a list of integers; cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then take each string's first letter.", "out": "乖丨"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then give me the first letter of everything.", "out": "乖丨"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then reduce each string to its first character.", "out": "乖丨"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then take first char drop blanks.", "out": "乖丨"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep first letters only.", "out": "乖丨"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then first letter from each item that isn't empty.", "out": "乖丨"} {"kind": "builder", "in": "乖丨", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乖丨", "out": "Take a list of strings; sort alphabetically, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values above zero.", "out": "丸七"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then filter for positive numbers.", "out": "丸七"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only positive numbers.", "out": "丸七"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the positives.", "out": "丸七"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove negatives.", "out": "丸七"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep the positive numbers.", "out": "丸七"} {"kind": "builder", "in": "丸七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丸七", "out": "Take a list of integers; sort by absolute value, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply them all together.", "out": "为乐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then multiply them all.", "out": "为乐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then multiply all the numbers together.", "out": "为乐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the product.", "out": "为乐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then find the product of these.", "out": "为乐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then return their product.", "out": "为乐"} {"kind": "builder", "in": "为乐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "为乐", "out": "Take a list of integers; drop the first and last elements, then return their product."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements.", "out": "乂丕"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third.", "out": "乂丕"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items.", "out": "乂丕"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three.", "out": "乂丕"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three.", "out": "乂丕"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3.", "out": "乂丕"} {"kind": "builder", "in": "乂丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return r"} {"kind": "translator", "in": "乂丕", "out": "Take a list of integers; take values while they are positive, then keep only the first three."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then keep only strings of length 3 or more.", "out": "丨乗"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then get rid of short ones.", "out": "丨乗"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then remove strings with less than three characters.", "out": "丨乗"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then remove all strings under three characters in length.", "out": "丨乗"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then filter out short strings under three chars.", "out": "丨乗"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then drop strings shorter than three characters.", "out": "丨乗"} {"kind": "builder", "in": "丨乗", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "丨乗", "out": "Take a list of strings; keep the first character of each (dropping empties), then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values below zero.", "out": "丏万"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then get the negative numbers.", "out": "丏万"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep values below zero.", "out": "丏万"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then get the negative numbers.", "out": "丏万"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep values below zero.", "out": "丏万"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then get the negative numbers.", "out": "丏万"} {"kind": "builder", "in": "丏万", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丏万", "out": "Take a list of integers; take the absolute value of each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest to smallest.", "out": "丘专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by descending values.", "out": "丘专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from highest to lowest.", "out": "丘专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort descending.", "out": "丘专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest first.", "out": "丘专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort in descending order.", "out": "丘专"} {"kind": "builder", "in": "丘专", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丘专", "out": "Take a list of integers; cap each value at 10, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increase every value by 10.", "out": "不丽"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then add 10 to each item.", "out": "不丽"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then shift each up by ten.", "out": "不丽"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then increase all numbers by 10.", "out": "不丽"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then add 10 to everything.", "out": "不丽"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then give everything a boost of 10.", "out": "不丽"} {"kind": "builder", "in": "不丽", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "不丽", "out": "Take a list of integers; subtract one from each, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then add '#' to the start of each string.", "out": "丨乘"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make each one start with a hash.", "out": "丨乘"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then add '#' to the start of each string.", "out": "丨乘"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make each one start with a hash.", "out": "丨乘"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then add '#' to the start of each string.", "out": "丨乘"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make each one start with a hash.", "out": "丨乘"} {"kind": "builder", "in": "丨乘", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "丨乘", "out": "Take a list of strings; keep the first character of each (dropping empties), then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each value by itself.", "out": "世上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then square them all.", "out": "世上"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then raise each to the power of two.", "out": "世上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then I need each number multiplied by itself.", "out": "世上"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then square all of them.", "out": "世上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiply each element by itself.", "out": "世上"} {"kind": "builder", "in": "世上", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "世上", "out": "Take a list of integers; drop the first element, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort largest to smallest.", "out": "丹专"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort by descending values.", "out": "丹专"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then sort from highest to lowest.", "out": "丹专"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then sort descending.", "out": "丹专"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort largest first.", "out": "丹专"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort in descending order.", "out": "丹专"} {"kind": "builder", "in": "丹专", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丹专", "out": "Take a list of integers; keep only the last three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove all zero values.", "out": "丐举"} {"kind": "speaker", "in": "Take a list of integers; reverse, then exclude zeros.", "out": "丐举"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove all zero values.", "out": "丐举"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then exclude zeros.", "out": "丐举"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove all zero values.", "out": "丐举"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then exclude zeros.", "out": "丐举"} {"kind": "builder", "in": "丐举", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丐举", "out": "Take a list of integers; reverse the order, then drop the zeros."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then decrement each value.", "out": "九不"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Lower each number by one.", "out": "九不"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then reduce each by one.", "out": "九不"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Subtract 1 from all.", "out": "九不"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Subtract one from each.", "out": "九不"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Drop each by one.", "out": "九不"} {"kind": "builder", "in": "九不", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "九不", "out": "Take a list of people records (name, age); extract the ages, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then count the even numbers.", "out": "乂乓"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then what's the even count.", "out": "乂乓"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give the number of evens.", "out": "乂乓"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then find how many values are divisible by two.", "out": "乂乓"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then how many are even.", "out": "乂乓"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then get the total number of even values in the list.", "out": "乂乓"} {"kind": "builder", "in": "乂乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乂乓", "out": "Take a list of integers; take values while they are positive, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each by two.", "out": "串丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then double each item in the list.", "out": "串丈"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then multiply each by two.", "out": "串丈"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then double each item in the list.", "out": "串丈"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then multiply each by two.", "out": "串丈"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then double each item in the list.", "out": "串丈"} {"kind": "builder", "in": "串丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "串丈", "out": "Take a list of integers; keep multiples of three, then double each."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then check for an empty string.", "out": "丞乙"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then are there empty strings.", "out": "丞乙"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then is any string empty.", "out": "丞乙"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then any blanks.", "out": "丞乙"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then do any of the strings have no characters.", "out": "丞乙"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then return whether any string is empty.", "out": "丞乙"} {"kind": "builder", "in": "丞乙", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丞乙", "out": "Take a list of strings; lowercase each string, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then give back the lengthiest string.", "out": "乖丰"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then Longest string please.", "out": "乖丰"} {"kind": "builder", "in": "乖丰", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "乖丰", "out": "Take a list of strings; sort alphabetically, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then extend to length 3 using zeros.", "out": "久义"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then pad to 3.", "out": "久义"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then extend to length 3 using zeros.", "out": "久义"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then pad to 3.", "out": "久义"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then extend to length 3 using zeros.", "out": "久义"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then pad to 3.", "out": "久义"} {"kind": "builder", "in": "久义", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "久义", "out": "Take a list of integers; keep everything before the first zero, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values below zero.", "out": "丐万"} {"kind": "speaker", "in": "Take a list of integers; reverse, then get the negative numbers.", "out": "丐万"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep values below zero.", "out": "丐万"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then get the negative numbers.", "out": "丐万"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep values below zero.", "out": "丐万"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then get the negative numbers.", "out": "丐万"} {"kind": "builder", "in": "丐万", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丐万", "out": "Take a list of integers; reverse the order, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then order by distance from zero.", "out": "一丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort based on absolute value.", "out": "一丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then organize by magnitude.", "out": "一丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then arrange by absolute value ascending.", "out": "一丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from smallest to largest absolute value.", "out": "一丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by absolute value.", "out": "一丸"} {"kind": "builder", "in": "一丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "一丸", "out": "Take a list of integers; keep the even numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten.", "out": "世丘"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10.", "out": "世丘"} {"kind": "builder", "in": "世丘", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "世丘", "out": "Take a list of integers; drop the first element, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the sign of each.", "out": "么与"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then turn positives to negatives and vice versa.", "out": "么与"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then flip the sign of each.", "out": "么与"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn positives to negatives and vice versa.", "out": "么与"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip the sign of each.", "out": "么与"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then turn positives to negatives and vice versa.", "out": "么与"} {"kind": "builder", "in": "么与", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "么与", "out": "Take a list of integers; if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each.", "out": "丁与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa.", "out": "丁与"} {"kind": "builder", "in": "丁与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丁与", "out": "Take a list of integers; keep the odd numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then count the even numbers.", "out": "丘乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then what's the even count.", "out": "丘乓"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give the number of evens.", "out": "丘乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then find how many values are divisible by two.", "out": "丘乓"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then how many are even.", "out": "丘乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the total number of even values in the list.", "out": "丘乓"} {"kind": "builder", "in": "丘乓", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丘乓", "out": "Take a list of integers; cap each value at 10, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero.", "out": "丐久"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears.", "out": "丐久"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero.", "out": "丐久"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0.", "out": "丐久"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero.", "out": "丐久"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero.", "out": "丐久"} {"kind": "builder", "in": "丐久", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丐久", "out": "Take a list of integers; reverse the order, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then order by distance from zero.", "out": "丏丸"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort based on absolute value.", "out": "丏丸"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then organize by magnitude.", "out": "丏丸"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then arrange by absolute value ascending.", "out": "丏丸"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort from smallest to largest absolute value.", "out": "丏丸"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort by absolute value.", "out": "丏丸"} {"kind": "builder", "in": "丏丸", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丏丸", "out": "Take a list of integers; take the absolute value of each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then give the smallest value (0 if none).", "out": "不丛"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then what's the smallest element, or 0 if there's nothing.", "out": "不丛"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then find the min, defaulting to 0.", "out": "不丛"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then minimum value, zero otherwise.", "out": "不丛"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then get the minimum value or zero if empty.", "out": "不丛"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then give me the min or 0.", "out": "不丛"} {"kind": "builder", "in": "不丛", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "不丛", "out": "Take a list of integers; subtract one from each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then sort smallest to largest.", "out": "乂丑"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Ascending sort.", "out": "乂丑"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then Sort this ascending.", "out": "乂丑"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Sort lowest to highest.", "out": "乂丑"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then Arrange from smallest to largest.", "out": "乂丑"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort ascending.", "out": "乂丑"} {"kind": "builder", "in": "乂丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乂丑", "out": "Take a list of integers; take values while they are positive, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values above zero.", "out": "下七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter for positive numbers.", "out": "下七"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only positive numbers.", "out": "下七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positives.", "out": "下七"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove negatives.", "out": "下七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positive numbers.", "out": "下七"} {"kind": "builder", "in": "下七", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "下七", "out": "Take a list of integers; add one to each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then make every value non-negative.", "out": "下丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then absolute value for all items.", "out": "下丏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take absolute values.", "out": "下丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then turn negatives into positives.", "out": "下丏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then abs each element.", "out": "下丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the absolute value of each.", "out": "下丏"} {"kind": "builder", "in": "下丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "下丏", "out": "Take a list of integers; add one to each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values.", "out": "且一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers.", "out": "且一"} {"kind": "builder", "in": "且一", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "且一", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero.", "out": "与万"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers.", "out": "与万"} {"kind": "builder", "in": "与万", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "与万", "out": "Take a list of integers; negate each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then skip negatives at the start.", "out": "上乃"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove all negatives at the front.", "out": "上乃"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the initial run of negative numbers.", "out": "上乃"} {"kind": "speaker", "in": "Take a list of integers; square them all, then strip the front negatives.", "out": "上乃"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove leading negative numbers.", "out": "上乃"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then drop negatives from start.", "out": "上乃"} {"kind": "builder", "in": "上乃", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "上乃", "out": "Take a list of integers; square each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then make every value non-negative.", "out": "万丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then absolute value for all items.", "out": "万丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take absolute values.", "out": "万丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn negatives into positives.", "out": "万丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then abs each element.", "out": "万丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the absolute value of each.", "out": "万丏"} {"kind": "builder", "in": "万丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "万丏", "out": "Take a list of integers; keep the negative numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then default to [0] when there is nothing.", "out": "万么"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then when the list is empty, substitute a zero value.", "out": "万么"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then replace an empty list with one zero.", "out": "万么"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then zero it out if it's empty.", "out": "万么"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then use zero if the list is empty.", "out": "万么"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then default to zero when empty.", "out": "万么"} {"kind": "builder", "in": "万么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "万么", "out": "Take a list of integers; keep the negative numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove both ends.", "out": "久为"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then trim the edges.", "out": "久为"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then trim one element off each end.", "out": "久为"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then cut off the first and last.", "out": "久为"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first and last elements.", "out": "久为"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep only the middle part.", "out": "久为"} {"kind": "builder", "in": "久为", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "久为", "out": "Take a list of integers; keep everything before the first zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values.", "out": "丈一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers.", "out": "丈一"} {"kind": "builder", "in": "丈一", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丈一", "out": "Take a list of integers; double each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then check if values are in increasing order.", "out": "不乎"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then give me a yes or no if the list is sorted.", "out": "不乎"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then is this list sorted.", "out": "不乎"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "不乎"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then tell me if it's sorted ascending.", "out": "不乎"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then return whether the list is sorted ascending.", "out": "不乎"} {"kind": "builder", "in": "不乎", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "不乎", "out": "Take a list of integers; subtract one from each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing.", "out": "九么"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value.", "out": "九么"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero.", "out": "九么"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty.", "out": "九么"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty.", "out": "九么"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty.", "out": "九么"} {"kind": "builder", "in": "九么", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "九么", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values.", "out": "且举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros.", "out": "且举"} {"kind": "builder", "in": "且举", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "且举", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then increase every value by 10.", "out": "七丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then add 10 to each item.", "out": "七丽"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then shift each up by ten.", "out": "七丽"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then increase all numbers by 10.", "out": "七丽"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then add 10 to everything.", "out": "七丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then give everything a boost of 10.", "out": "七丽"} {"kind": "builder", "in": "七丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "七丽", "out": "Take a list of integers; keep the positive numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values below zero.", "out": "七万"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then get the negative numbers.", "out": "七万"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep values below zero.", "out": "七万"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then get the negative numbers.", "out": "七万"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep values below zero.", "out": "七万"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then get the negative numbers.", "out": "七万"} {"kind": "builder", "in": "七万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "七万", "out": "Take a list of integers; keep the positive numbers, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then decrement each value.", "out": "世不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Lower each number by one.", "out": "世不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then reduce each by one.", "out": "世不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Subtract 1 from all.", "out": "世不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Subtract one from each.", "out": "世不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Drop each by one.", "out": "世不"} {"kind": "builder", "in": "世不", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "世不", "out": "Take a list of integers; drop the first element, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; double each, then skip negatives at the start.", "out": "丈乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then remove all negatives at the front.", "out": "丈乃"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the initial run of negative numbers.", "out": "丈乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then strip the front negatives.", "out": "丈乃"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove leading negative numbers.", "out": "丈乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop negatives from start.", "out": "丈乃"} {"kind": "builder", "in": "丈乃", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丈乃", "out": "Take a list of integers; double each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item.", "out": "与世"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head.", "out": "与世"} {"kind": "builder", "in": "与世", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "与世", "out": "Take a list of integers; negate each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort smallest to largest.", "out": "丘丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Ascending sort.", "out": "丘丑"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Sort this ascending.", "out": "丘丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Sort lowest to highest.", "out": "丘丑"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Arrange from smallest to largest.", "out": "丘丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort ascending.", "out": "丘丑"} {"kind": "builder", "in": "丘丑", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丘丑", "out": "Take a list of integers; cap each value at 10, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increment each value.", "out": "丕下"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then plus one for all.", "out": "丕下"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then increment each value.", "out": "丕下"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then plus one for all.", "out": "丕下"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then increment each value.", "out": "丕下"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then plus one for all.", "out": "丕下"} {"kind": "builder", "in": "丕下", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丕下", "out": "Take a list of integers; keep only the first three, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero.", "out": "丸万"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers.", "out": "丸万"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero.", "out": "丸万"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers.", "out": "丸万"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero.", "out": "丸万"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers.", "out": "丸万"} {"kind": "builder", "in": "丸万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丸万", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each.", "out": "举与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa.", "out": "举与"} {"kind": "builder", "in": "举与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "举与", "out": "Take a list of integers; drop the zeros, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each by two.", "out": "专丈"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then double each item in the list.", "out": "专丈"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then multiply each by two.", "out": "专丈"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then double each item in the list.", "out": "专丈"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then multiply each by two.", "out": "专丈"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then double each item in the list.", "out": "专丈"} {"kind": "builder", "in": "专丈", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "专丈", "out": "Take a list of integers; sort descending, then double each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove both ends.", "out": "与为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then trim the edges.", "out": "与为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then trim one element off each end.", "out": "与为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off the first and last.", "out": "与为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first and last elements.", "out": "与为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the middle part.", "out": "与为"} {"kind": "builder", "in": "与为", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "与为", "out": "Take a list of integers; negate each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort smallest to largest.", "out": "丏丑"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Ascending sort.", "out": "丏丑"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then Sort this ascending.", "out": "丏丑"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Sort lowest to highest.", "out": "丏丑"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Arrange from smallest to largest.", "out": "丏丑"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort ascending.", "out": "丏丑"} {"kind": "builder", "in": "丏丑", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丏丑", "out": "Take a list of integers; take the absolute value of each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the first 3 elements.", "out": "上丕"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove everything after the third.", "out": "上丕"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then truncate to three items.", "out": "上丕"} {"kind": "speaker", "in": "Take a list of integers; square them all, then show the first three.", "out": "上丕"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then take the first three.", "out": "上丕"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep first 3.", "out": "上丕"} {"kind": "builder", "in": "上丕", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "上丕", "out": "Take a list of integers; square each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then skip negatives at the start.", "out": "一乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then remove all negatives at the front.", "out": "一乃"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the initial run of negative numbers.", "out": "一乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then strip the front negatives.", "out": "一乃"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove leading negative numbers.", "out": "一乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop negatives from start.", "out": "一乃"} {"kind": "builder", "in": "一乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "一乃", "out": "Take a list of integers; keep the even numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then order by distance from zero.", "out": "主丸"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort based on absolute value.", "out": "主丸"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then organize by magnitude.", "out": "主丸"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then arrange by absolute value ascending.", "out": "主丸"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort from smallest to largest absolute value.", "out": "主丸"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort by absolute value.", "out": "主丸"} {"kind": "builder", "in": "主丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "主丸", "out": "Take a list of integers; keep values greater than five, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything 5 or below.", "out": "下主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only numbers greater than 5.", "out": "下主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then filter for numbers above 5.", "out": "下主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me values where x is greater than 5.", "out": "下主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then show me only the values that are bigger than five.", "out": "下主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep values greater than five.", "out": "下主"} {"kind": "builder", "in": "下主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "下主", "out": "Take a list of integers; add one to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then give the maximum string length.", "out": "丢乜"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then max length of all strings.", "out": "丢乜"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then what's the max string length.", "out": "丢乜"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then return the length of the longest string (0 if none).", "out": "丢乜"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then how long is the longest string.", "out": "丢乜"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then find the longest string length.", "out": "丢乜"} {"kind": "builder", "in": "丢乜", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丢乜", "out": "Take a list of strings; trim whitespace from each, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then check if there is an even number.", "out": "与之"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then find out whether any value is divisible by 2.", "out": "与之"} {"kind": "builder", "in": "与之", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "与之", "out": "Take a list of integers; negate each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then find who is oldest and give their name.", "out": "习书"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then return oldest person name.", "out": "习书"} {"kind": "builder", "in": "习书", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n return max(r, key=lambda d: d['age'])['name'] if r else ''"} {"kind": "translator", "in": "习书", "out": "Take a list of people records (name, age); sort records by age, youngest first, then return the name of the oldest person (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then check if values are in increasing order.", "out": "七乎"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then give me a yes or no if the list is sorted.", "out": "七乎"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then is this list sorted.", "out": "七乎"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "七乎"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then tell me if it's sorted ascending.", "out": "七乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then return whether the list is sorted ascending.", "out": "七乎"} {"kind": "builder", "in": "七乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return r == sorted(r)"} {"kind": "translator", "in": "七乎", "out": "Take a list of integers; keep the positive numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then drop anything 5 or below.", "out": "丑主"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep only numbers greater than 5.", "out": "丑主"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then filter for numbers above 5.", "out": "丑主"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then give me values where x is greater than 5.", "out": "丑主"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then show me only the values that are bigger than five.", "out": "丑主"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep values greater than five.", "out": "丑主"} {"kind": "builder", "in": "丑主", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丑主", "out": "Take a list of integers; sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself.", "out": "乃上"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all.", "out": "乃上"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two.", "out": "乃上"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself.", "out": "乃上"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them.", "out": "乃上"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself.", "out": "乃上"} {"kind": "builder", "in": "乃上", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "乃上", "out": "Take a list of integers; drop the leading negative values, then square each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increase every value by 10.", "out": "乂丽"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then add 10 to each item.", "out": "乂丽"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then shift each up by ten.", "out": "乂丽"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then increase all numbers by 10.", "out": "乂丽"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then add 10 to everything.", "out": "乂丽"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then give everything a boost of 10.", "out": "乂丽"} {"kind": "builder", "in": "乂丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乂丽", "out": "Take a list of integers; take values while they are positive, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; square each, then find the first even number, defaulting to 0.", "out": "上乒"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then first even value zero if not found.", "out": "上乒"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then find the first even number, defaulting to 0.", "out": "上乒"} {"kind": "speaker", "in": "Take a list of integers; square them all, then first even value zero if not found.", "out": "上乒"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then find the first even number, defaulting to 0.", "out": "上乒"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then first even value zero if not found.", "out": "上乒"} {"kind": "builder", "in": "上乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "上乒", "out": "Take a list of integers; square each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then drop anything 5 or below.", "out": "乂主"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep only numbers greater than 5.", "out": "乂主"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then filter for numbers above 5.", "out": "乂主"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then give me values where x is greater than 5.", "out": "乂主"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then show me only the values that are bigger than five.", "out": "乂主"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep values greater than five.", "out": "乂主"} {"kind": "builder", "in": "乂主", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乂主", "out": "Take a list of integers; take values while they are positive, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then check if zero appears.", "out": "么乍"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then find out whether there's a zero in here.", "out": "么乍"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then check if zero appears.", "out": "么乍"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then find out whether there's a zero in here.", "out": "么乍"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then check if zero appears.", "out": "么乍"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then find out whether there's a zero in here.", "out": "么乍"} {"kind": "builder", "in": "么乍", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n return 0 in r"} {"kind": "translator", "in": "么乍", "out": "Take a list of integers; if empty, use a single zero, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then keep only strings of length 3 or more.", "out": "丟乗"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then get rid of short ones.", "out": "丟乗"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove strings with less than three characters.", "out": "丟乗"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then remove all strings under three characters in length.", "out": "丟乗"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then filter out short strings under three chars.", "out": "丟乗"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then drop strings shorter than three characters.", "out": "丟乗"} {"kind": "builder", "in": "丟乗", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "丟乗", "out": "Take a list of strings; uppercase each string, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then give the largest value (0 if none).", "out": "丏业"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then The biggest one, or 0 if it's empty.", "out": "丏业"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then Get the maximum value, or zero if there's nothing.", "out": "丏业"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then What's the max here.", "out": "丏业"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Return the max or 0 if empty.", "out": "丏业"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then return the maximum (0 if empty).", "out": "丏业"} {"kind": "builder", "in": "丏业", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丏业", "out": "Take a list of integers; take the absolute value of each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each value by itself.", "out": "么上"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then square them all.", "out": "么上"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then raise each to the power of two.", "out": "么上"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then I need each number multiplied by itself.", "out": "么上"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then square all of them.", "out": "么上"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiply each element by itself.", "out": "么上"} {"kind": "builder", "in": "么上", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "么上", "out": "Take a list of integers; if empty, use a single zero, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the sign of each.", "out": "一与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn positives to negatives and vice versa.", "out": "一与"} {"kind": "builder", "in": "一与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "一与", "out": "Take a list of integers; keep the even numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then decrement each value.", "out": "万不"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Lower each number by one.", "out": "万不"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then reduce each by one.", "out": "万不"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Subtract 1 from all.", "out": "万不"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Subtract one from each.", "out": "万不"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Drop each by one.", "out": "万不"} {"kind": "builder", "in": "万不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "万不", "out": "Take a list of integers; keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the list around.", "out": "丹丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then flip the order around.", "out": "丹丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then put the elements backwards.", "out": "丹丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then reverse that for me.", "out": "丹丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip it backwards.", "out": "丹丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then make it backwards.", "out": "丹丐"} {"kind": "builder", "in": "丹丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹丐", "out": "Take a list of integers; keep only the last three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then check if zero appears.", "out": "丘乍"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then find out whether there's a zero in here.", "out": "丘乍"} {"kind": "builder", "in": "丘乍", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return 0 in r"} {"kind": "translator", "in": "丘乍", "out": "Take a list of integers; cap each value at 10, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then flip the list around.", "out": "上丐"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then flip the order around.", "out": "上丐"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then put the elements backwards.", "out": "上丐"} {"kind": "speaker", "in": "Take a list of integers; square them all, then reverse that for me.", "out": "上丐"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then flip it backwards.", "out": "上丐"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then make it backwards.", "out": "上丐"} {"kind": "builder", "in": "上丐", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "上丐", "out": "Take a list of integers; square each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then clamp each to at most ten.", "out": "么丘"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then don't let anything exceed 10.", "out": "么丘"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then clamp each to at most ten.", "out": "么丘"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then don't let anything exceed 10.", "out": "么丘"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then clamp each to at most ten.", "out": "么丘"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then don't let anything exceed 10.", "out": "么丘"} {"kind": "builder", "in": "么丘", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "么丘", "out": "Take a list of integers; if empty, use a single zero, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove repeated values.", "out": "上且"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then unique values preserving order.", "out": "上且"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove repeated values.", "out": "上且"} {"kind": "speaker", "in": "Take a list of integers; square them all, then unique values preserving order.", "out": "上且"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove repeated values.", "out": "上且"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then unique values preserving order.", "out": "上且"} {"kind": "builder", "in": "上且", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "上且", "out": "Take a list of integers; square each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values.", "out": "万举"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros.", "out": "万举"} {"kind": "builder", "in": "万举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "万举", "out": "Take a list of integers; keep the negative numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the list around.", "out": "世丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then flip the order around.", "out": "世丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then put the elements backwards.", "out": "世丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then reverse that for me.", "out": "世丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip it backwards.", "out": "世丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then make it backwards.", "out": "世丐"} {"kind": "builder", "in": "世丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "世丐", "out": "Take a list of integers; drop the first element, then reverse the order."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then keep only non-empty strings.", "out": "乘两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then filter empty strings.", "out": "乘两"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then remove empty strings from the list.", "out": "乘两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then clean up empty strings.", "out": "乘两"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then delete empty entries.", "out": "乘两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then drop empty strings.", "out": "乘两"} {"kind": "builder", "in": "乘两", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "乘两", "out": "Take a list of strings; prefix each with a hash, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove the first item.", "out": "丏世"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Remove head.", "out": "丏世"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove the first item.", "out": "丏世"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Remove head.", "out": "丏世"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first item.", "out": "丏世"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Remove head.", "out": "丏世"} {"kind": "builder", "in": "丏世", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丏世", "out": "Take a list of integers; take the absolute value of each, then drop the first element."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then give the maximum string length.", "out": "乘乜"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then max length of all strings.", "out": "乘乜"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then what's the max string length.", "out": "乘乜"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then return the length of the longest string (0 if none).", "out": "乘乜"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then how long is the longest string.", "out": "乘乜"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then find the longest string length.", "out": "乘乜"} {"kind": "builder", "in": "乘乜", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "乘乜", "out": "Take a list of strings; prefix each with a hash, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort smallest to largest.", "out": "一丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Ascending sort.", "out": "一丑"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Sort this ascending.", "out": "一丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Sort lowest to highest.", "out": "一丑"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Arrange from smallest to largest.", "out": "一丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort ascending.", "out": "一丑"} {"kind": "builder", "in": "一丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "一丑", "out": "Take a list of integers; keep the even numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the final 3 elements.", "out": "丈丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop everything except the final three.", "out": "丈丹"} {"kind": "speaker", "in": "Take a list of integers; double each, then give me the last three elements.", "out": "丈丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the last three.", "out": "丈丹"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the final three items.", "out": "丈丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the last three.", "out": "丈丹"} {"kind": "builder", "in": "丈丹", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丈丹", "out": "Take a list of integers; double each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then check that there are no duplicates.", "out": "与乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then are the values all unique.", "out": "与乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then check if all values are unique.", "out": "与乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then return whether all values are distinct.", "out": "与乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then tell me if values are distinct.", "out": "与乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then are all values distinct.", "out": "与乏"} {"kind": "builder", "in": "与乏", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "与乏", "out": "Take a list of integers; negate each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; negate each, then check if every number is above zero.", "out": "与乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then verify that all values exceed zero.", "out": "与乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then are all values positive.", "out": "与乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then are they all above zero.", "out": "与乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then tell me if all numbers are greater than zero.", "out": "与乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then return whether all values are positive.", "out": "与乌"} {"kind": "builder", "in": "与乌", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "与乌", "out": "Take a list of integers; negate each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then check for an empty string.", "out": "丧乙"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then are there empty strings.", "out": "丧乙"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then is any string empty.", "out": "丧乙"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then any blanks.", "out": "丧乙"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then do any of the strings have no characters.", "out": "丧乙"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then return whether any string is empty.", "out": "丧乙"} {"kind": "builder", "in": "丧乙", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丧乙", "out": "Take a list of strings; drop duplicate strings keeping the first, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then check for an empty string.", "out": "丟乙"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then are there empty strings.", "out": "丟乙"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then is any string empty.", "out": "丟乙"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then any blanks.", "out": "丟乙"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then do any of the strings have no characters.", "out": "丟乙"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then return whether any string is empty.", "out": "丟乙"} {"kind": "builder", "in": "丟乙", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丟乙", "out": "Take a list of strings; uppercase each string, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start.", "out": "乂乃"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front.", "out": "乂乃"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers.", "out": "乂乃"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives.", "out": "乂乃"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers.", "out": "乂乃"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start.", "out": "乂乃"} {"kind": "builder", "in": "乂乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "乂乃", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then check if values are in increasing order.", "out": "串乎"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then give me a yes or no if the list is sorted.", "out": "串乎"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then is this list sorted.", "out": "串乎"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "串乎"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then tell me if it's sorted ascending.", "out": "串乎"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then return whether the list is sorted ascending.", "out": "串乎"} {"kind": "builder", "in": "串乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return r == sorted(r)"} {"kind": "translator", "in": "串乎", "out": "Take a list of integers; keep multiples of three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then check if there is an even number.", "out": "丁之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then find out whether any value is divisible by 2.", "out": "丁之"} {"kind": "builder", "in": "丁之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丁之", "out": "Take a list of integers; keep the odd numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only even values.", "out": "丏一"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then extract all even numbers.", "out": "丏一"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only even values.", "out": "丏一"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then extract all even numbers.", "out": "丏一"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only even values.", "out": "丏一"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then extract all even numbers.", "out": "丏一"} {"kind": "builder", "in": "丏一", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丏一", "out": "Take a list of integers; take the absolute value of each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increase every value by 10.", "out": "义丽"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then add 10 to each item.", "out": "义丽"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then shift each up by ten.", "out": "义丽"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then increase all numbers by 10.", "out": "义丽"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then add 10 to everything.", "out": "义丽"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give everything a boost of 10.", "out": "义丽"} {"kind": "builder", "in": "义丽", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "义丽", "out": "Take a list of integers; pad with zeros to at least three elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give the smallest value (0 if none).", "out": "下丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then what's the smallest element, or 0 if there's nothing.", "out": "下丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then find the min, defaulting to 0.", "out": "下丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then minimum value, zero otherwise.", "out": "下丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then get the minimum value or zero if empty.", "out": "下丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me the min or 0.", "out": "下丛"} {"kind": "builder", "in": "下丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "下丛", "out": "Take a list of integers; add one to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply them all together.", "out": "乂乐"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then multiply them all.", "out": "乂乐"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then multiply all the numbers together.", "out": "乂乐"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then get the product.", "out": "乂乐"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then find the product of these.", "out": "乂乐"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then return their product.", "out": "乂乐"} {"kind": "builder", "in": "乂乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "乂乐", "out": "Take a list of integers; take values while they are positive, then return their product."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove repeated values.", "out": "与且"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then unique values preserving order.", "out": "与且"} {"kind": "builder", "in": "与且", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "与且", "out": "Take a list of integers; negate each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start.", "out": "专乃"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front.", "out": "专乃"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers.", "out": "专乃"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives.", "out": "专乃"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers.", "out": "专乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start.", "out": "专乃"} {"kind": "builder", "in": "专乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "专乃", "out": "Take a list of integers; sort descending, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values above zero.", "out": "义七"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter for positive numbers.", "out": "义七"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only positive numbers.", "out": "义七"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positives.", "out": "义七"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove negatives.", "out": "义七"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positive numbers.", "out": "义七"} {"kind": "builder", "in": "义七", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "义七", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then clamp each to at most ten.", "out": "丹丘"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then don't let anything exceed 10.", "out": "丹丘"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then clamp each to at most ten.", "out": "丹丘"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then don't let anything exceed 10.", "out": "丹丘"} {"kind": "speaker", "in": "Take a list of integers; last three only, then clamp each to at most ten.", "out": "丹丘"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then don't let anything exceed 10.", "out": "丹丘"} {"kind": "builder", "in": "丹丘", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丹丘", "out": "Take a list of integers; keep only the last three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then count the strings.", "out": "丟丫"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then return how many strings remain.", "out": "丟丫"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then give me the total number of strings.", "out": "丟丫"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then tell me how many strings we have.", "out": "丟丫"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then what's the string count.", "out": "丟丫"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then count the remaining strings.", "out": "丟丫"} {"kind": "builder", "in": "丟丫", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n return len(r)"} {"kind": "translator", "in": "丟丫", "out": "Take a list of strings; uppercase each string, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep only odd values.", "out": "丑丁"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then eliminate the even numbers.", "out": "丑丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only odd values.", "out": "丑丁"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then eliminate the even numbers.", "out": "丑丁"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only odd values.", "out": "丑丁"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then eliminate the even numbers.", "out": "丑丁"} {"kind": "builder", "in": "丑丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丑丁", "out": "Take a list of integers; sort ascending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then give the largest value (0 if none).", "out": "丑业"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then The biggest one, or 0 if it's empty.", "out": "丑业"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then Get the maximum value, or zero if there's nothing.", "out": "丑业"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then What's the max here.", "out": "丑业"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then Return the max or 0 if empty.", "out": "丑业"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then return the maximum (0 if empty).", "out": "丑业"} {"kind": "builder", "in": "丑业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return max(r) if r else 0"} {"kind": "translator", "in": "丑业", "out": "Take a list of integers; sort ascending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then extend to length 3 using zeros.", "out": "一义"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then pad to 3.", "out": "一义"} {"kind": "builder", "in": "一义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "一义", "out": "Take a list of integers; keep the even numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then count the strings.", "out": "乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then return how many strings remain.", "out": "乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then give me the total number of strings.", "out": "乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then tell me how many strings we have.", "out": "乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then what's the string count.", "out": "乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then count the remaining strings.", "out": "乞丫"} {"kind": "builder", "in": "乞丫", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n return len(r)"} {"kind": "translator", "in": "乞丫", "out": "Take a list of people records (name, age); extract the names, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove repeated values.", "out": "丽且"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then unique values preserving order.", "out": "丽且"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove repeated values.", "out": "丽且"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then unique values preserving order.", "out": "丽且"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove repeated values.", "out": "丽且"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then unique values preserving order.", "out": "丽且"} {"kind": "builder", "in": "丽且", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丽且", "out": "Take a list of integers; add ten to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then give back the lengthiest string.", "out": "丨丰"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then Longest string please.", "out": "丨丰"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then give back the lengthiest string.", "out": "丨丰"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then Longest string please.", "out": "丨丰"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then give back the lengthiest string.", "out": "丨丰"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then Longest string please.", "out": "丨丰"} {"kind": "builder", "in": "丨丰", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丨丰", "out": "Take a list of strings; keep the first character of each (dropping empties), then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then order by distance from zero.", "out": "七丸"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort based on absolute value.", "out": "七丸"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then organize by magnitude.", "out": "七丸"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then arrange by absolute value ascending.", "out": "七丸"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort from smallest to largest absolute value.", "out": "七丸"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort by absolute value.", "out": "七丸"} {"kind": "builder", "in": "七丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "七丸", "out": "Take a list of integers; keep the positive numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increment each value.", "out": "么下"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then plus one for all.", "out": "么下"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then increment each value.", "out": "么下"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then plus one for all.", "out": "么下"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then increment each value.", "out": "么下"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then plus one for all.", "out": "么下"} {"kind": "builder", "in": "么下", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "么下", "out": "Take a list of integers; if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then convert each to lower case.", "out": "乞丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then lowercase each one.", "out": "乞丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then convert each to lower case.", "out": "乞丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then lowercase each one.", "out": "乞丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then convert each to lower case.", "out": "乞丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then lowercase each one.", "out": "乞丞"} {"kind": "builder", "in": "乞丞", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "乞丞", "out": "Take a list of people records (name, age); extract the names, then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep the leading run of positive numbers.", "out": "丸乂"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then take values while they are positive.", "out": "丸乂"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take positive values then stop.", "out": "丸乂"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep going while positive.", "out": "丸乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then stop at first non positive.", "out": "丸乂"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take while greater than zero.", "out": "丸乂"} {"kind": "builder", "in": "丸乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丸乂", "out": "Take a list of integers; sort by absolute value, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then check if values are in increasing order.", "out": "么乎"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then give me a yes or no if the list is sorted.", "out": "么乎"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then is this list sorted.", "out": "么乎"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "么乎"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then tell me if it's sorted ascending.", "out": "么乎"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then return whether the list is sorted ascending.", "out": "么乎"} {"kind": "builder", "in": "么乎", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n return r == sorted(r)"} {"kind": "translator", "in": "么乎", "out": "Take a list of integers; if empty, use a single zero, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then check if there is an even number.", "out": "丐之"} {"kind": "speaker", "in": "Take a list of integers; reverse, then find out whether any value is divisible by 2.", "out": "丐之"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then check if there is an even number.", "out": "丐之"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then find out whether any value is divisible by 2.", "out": "丐之"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then check if there is an even number.", "out": "丐之"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then find out whether any value is divisible by 2.", "out": "丐之"} {"kind": "builder", "in": "丐之", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丐之", "out": "Take a list of integers; reverse the order, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then return the length.", "out": "丕东"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then count them.", "out": "丕东"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then what's the count.", "out": "丕东"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then return how many remain.", "out": "丕东"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then what's left.", "out": "丕东"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then how many are left.", "out": "丕东"} {"kind": "builder", "in": "丕东", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n return len(r)"} {"kind": "translator", "in": "丕东", "out": "Take a list of integers; keep only the first three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then default to [0] when there is nothing.", "out": "为么"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then when the list is empty, substitute a zero value.", "out": "为么"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then replace an empty list with one zero.", "out": "为么"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then zero it out if it's empty.", "out": "为么"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then use zero if the list is empty.", "out": "为么"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then default to zero when empty.", "out": "为么"} {"kind": "builder", "in": "为么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "为么", "out": "Take a list of integers; drop the first and last elements, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then cut the list at the first zero.", "out": "万久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off after the first zero appears.", "out": "万久"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take values up to (excluding) the first zero.", "out": "万久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the part before the first 0.", "out": "万久"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate at the first zero.", "out": "万久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then delete everything starting with the first zero.", "out": "万久"} {"kind": "builder", "in": "万久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "万久", "out": "Take a list of integers; keep the negative numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then check that there are no duplicates.", "out": "七乏"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then are the values all unique.", "out": "七乏"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then check if all values are unique.", "out": "七乏"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then return whether all values are distinct.", "out": "七乏"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then tell me if values are distinct.", "out": "七乏"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then are all values distinct.", "out": "七乏"} {"kind": "builder", "in": "七乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "七乏", "out": "Take a list of integers; keep the positive numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then check if there is an even number.", "out": "不之"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then find out whether any value is divisible by 2.", "out": "不之"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then check if there is an even number.", "out": "不之"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then find out whether any value is divisible by 2.", "out": "不之"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then check if there is an even number.", "out": "不之"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then find out whether any value is divisible by 2.", "out": "不之"} {"kind": "builder", "in": "不之", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "不之", "out": "Take a list of integers; subtract one from each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero.", "out": "为万"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers.", "out": "为万"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero.", "out": "为万"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers.", "out": "为万"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero.", "out": "为万"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers.", "out": "为万"} {"kind": "builder", "in": "为万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "为万", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then default to [0] when there is nothing.", "out": "丐么"} {"kind": "speaker", "in": "Take a list of integers; reverse, then when the list is empty, substitute a zero value.", "out": "丐么"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then replace an empty list with one zero.", "out": "丐么"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then zero it out if it's empty.", "out": "丐么"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then use zero if the list is empty.", "out": "丐么"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then default to zero when empty.", "out": "丐么"} {"kind": "builder", "in": "丐么", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丐么", "out": "Take a list of integers; reverse the order, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add them all up.", "out": "且丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add all those together.", "out": "且丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then give back the total.", "out": "且丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sum r.", "out": "且丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add them up.", "out": "且丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then calculate the sum of all elements.", "out": "且丙"} {"kind": "builder", "in": "且丙", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return sum(r)"} {"kind": "translator", "in": "且丙", "out": "Take a list of integers; drop duplicates keeping first occurrence, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then make every value non-negative.", "out": "丹丏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then absolute value for all items.", "out": "丹丏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take absolute values.", "out": "丹丏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn negatives into positives.", "out": "丹丏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then abs each element.", "out": "丹丏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take the absolute value of each.", "out": "丹丏"} {"kind": "builder", "in": "丹丏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丹丏", "out": "Take a list of integers; keep only the last three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values above zero.", "out": "主七"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then filter for positive numbers.", "out": "主七"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only positive numbers.", "out": "主七"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the positives.", "out": "主七"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove negatives.", "out": "主七"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep the positive numbers.", "out": "主七"} {"kind": "builder", "in": "主七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "主七", "out": "Take a list of integers; keep values greater than five, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values above zero.", "out": "丘七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter for positive numbers.", "out": "丘七"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only positive numbers.", "out": "丘七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positives.", "out": "丘七"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove negatives.", "out": "丘七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positive numbers.", "out": "丘七"} {"kind": "builder", "in": "丘七", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丘七", "out": "Take a list of integers; cap each value at 10, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each.", "out": "九与"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa.", "out": "九与"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each.", "out": "九与"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa.", "out": "九与"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each.", "out": "九与"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa.", "out": "九与"} {"kind": "builder", "in": "九与", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "九与", "out": "Take a list of people records (name, age); extract the ages, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then return the length.", "out": "举东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then count them.", "out": "举东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then what's the count.", "out": "举东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then return how many remain.", "out": "举东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then what's left.", "out": "举东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then how many are left.", "out": "举东"} {"kind": "builder", "in": "举东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return len(r)"} {"kind": "translator", "in": "举东", "out": "Take a list of integers; drop the zeros, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; square each, then order by distance from zero.", "out": "上丸"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort based on absolute value.", "out": "上丸"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then organize by magnitude.", "out": "上丸"} {"kind": "speaker", "in": "Take a list of integers; square them all, then arrange by absolute value ascending.", "out": "上丸"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort from smallest to largest absolute value.", "out": "上丸"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort by absolute value.", "out": "上丸"} {"kind": "builder", "in": "上丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "上丸", "out": "Take a list of integers; square each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increase every value by 10.", "out": "丕丽"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add 10 to each item.", "out": "丕丽"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then shift each up by ten.", "out": "丕丽"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then increase all numbers by 10.", "out": "丕丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add 10 to everything.", "out": "丕丽"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give everything a boost of 10.", "out": "丕丽"} {"kind": "builder", "in": "丕丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丕丽", "out": "Take a list of integers; keep only the first three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements.", "out": "丕丹"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three.", "out": "丕丹"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements.", "out": "丕丹"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three.", "out": "丕丹"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items.", "out": "丕丹"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three.", "out": "丕丹"} {"kind": "builder", "in": "丕丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丕丹", "out": "Take a list of integers; keep only the first three, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the sign of each.", "out": "乃与"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then turn positives to negatives and vice versa.", "out": "乃与"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then flip the sign of each.", "out": "乃与"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn positives to negatives and vice versa.", "out": "乃与"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip the sign of each.", "out": "乃与"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then turn positives to negatives and vice versa.", "out": "乃与"} {"kind": "builder", "in": "乃与", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乃与", "out": "Take a list of integers; drop the leading negative values, then negate each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values divisible by 3.", "out": "义串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep items where x mod 3 equals zero.", "out": "义串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything not divisible by three.", "out": "义串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter out everything except multiples of three.", "out": "义串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only multiples of three.", "out": "义串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiples of three only.", "out": "义串"} {"kind": "builder", "in": "义串", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "义串", "out": "Take a list of integers; pad with zeros to at least three elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each value by itself.", "out": "义上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then square them all.", "out": "义上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then raise each to the power of two.", "out": "义上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then I need each number multiplied by itself.", "out": "义上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then square all of them.", "out": "义上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiply each element by itself.", "out": "义上"} {"kind": "builder", "in": "义上", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "义上", "out": "Take a list of integers; pad with zeros to at least three elements, then square each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then order by distance from zero.", "out": "下丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort based on absolute value.", "out": "下丸"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then organize by magnitude.", "out": "下丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then arrange by absolute value ascending.", "out": "下丸"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from smallest to largest absolute value.", "out": "下丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by absolute value.", "out": "下丸"} {"kind": "builder", "in": "下丸", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "下丸", "out": "Take a list of integers; add one to each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then count the strings.", "out": "乘丫"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then return how many strings remain.", "out": "乘丫"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then give me the total number of strings.", "out": "乘丫"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then tell me how many strings we have.", "out": "乘丫"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then what's the string count.", "out": "乘丫"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then count the remaining strings.", "out": "乘丫"} {"kind": "builder", "in": "乘丫", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n return len(r)"} {"kind": "translator", "in": "乘丫", "out": "Take a list of strings; prefix each with a hash, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then sort largest to smallest.", "out": "久专"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort by descending values.", "out": "久专"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then sort from highest to lowest.", "out": "久专"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then sort descending.", "out": "久专"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort largest first.", "out": "久专"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort in descending order.", "out": "久专"} {"kind": "builder", "in": "久专", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "久专", "out": "Take a list of integers; keep everything before the first zero, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value.", "out": "丁下"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all.", "out": "丁下"} {"kind": "builder", "in": "丁下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丁下", "out": "Take a list of integers; keep the odd numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item.", "out": "九世"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head.", "out": "九世"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item.", "out": "九世"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head.", "out": "九世"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item.", "out": "九世"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head.", "out": "九世"} {"kind": "builder", "in": "九世", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "九世", "out": "Take a list of people records (name, age); extract the ages, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the list around.", "out": "丸丐"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then flip the order around.", "out": "丸丐"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then put the elements backwards.", "out": "丸丐"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then reverse that for me.", "out": "丸丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip it backwards.", "out": "丸丐"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then make it backwards.", "out": "丸丐"} {"kind": "builder", "in": "丸丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丸丐", "out": "Take a list of integers; sort by absolute value, then reverse the order."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then remove repeated strings.", "out": "乞丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then keep unique strings first appearance.", "out": "乞丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then eliminate repeated strings preserve first occurrence.", "out": "乞丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then drop duplicate strings keeping the first.", "out": "乞丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then dedupe.", "out": "乞丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then remove duplicate strings keep first.", "out": "乞丧"} {"kind": "builder", "in": "乞丧", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乞丧", "out": "Take a list of people records (name, age); extract the names, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove all zero values.", "out": "丑举"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then exclude zeros.", "out": "丑举"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove all zero values.", "out": "丑举"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then exclude zeros.", "out": "丑举"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove all zero values.", "out": "丑举"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then exclude zeros.", "out": "丑举"} {"kind": "builder", "in": "丑举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丑举", "out": "Take a list of integers; sort ascending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; double each, then check if values are in increasing order.", "out": "丈乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me a yes or no if the list is sorted.", "out": "丈乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then is this list sorted.", "out": "丈乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丈乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then tell me if it's sorted ascending.", "out": "丈乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then return whether the list is sorted ascending.", "out": "丈乎"} {"kind": "builder", "in": "丈乎", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丈乎", "out": "Take a list of integers; double each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two.", "out": "举丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list.", "out": "举丈"} {"kind": "builder", "in": "举丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "举丈", "out": "Take a list of integers; drop the zeros, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then decrement each value.", "out": "主不"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Lower each number by one.", "out": "主不"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then reduce each by one.", "out": "主不"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Subtract 1 from all.", "out": "主不"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Subtract one from each.", "out": "主不"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Drop each by one.", "out": "主不"} {"kind": "builder", "in": "主不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "主不", "out": "Take a list of integers; keep values greater than five, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten.", "out": "丑丘"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10.", "out": "丑丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten.", "out": "丑丘"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10.", "out": "丑丘"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten.", "out": "丑丘"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10.", "out": "丑丘"} {"kind": "builder", "in": "丑丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丑丘", "out": "Take a list of integers; sort ascending, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only odd values.", "out": "丐丁"} {"kind": "speaker", "in": "Take a list of integers; reverse, then eliminate the even numbers.", "out": "丐丁"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only odd values.", "out": "丐丁"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then eliminate the even numbers.", "out": "丐丁"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only odd values.", "out": "丐丁"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then eliminate the even numbers.", "out": "丐丁"} {"kind": "builder", "in": "丐丁", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丐丁", "out": "Take a list of integers; reverse the order, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove the first item.", "out": "串世"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Remove head.", "out": "串世"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove the first item.", "out": "串世"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Remove head.", "out": "串世"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first item.", "out": "串世"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Remove head.", "out": "串世"} {"kind": "builder", "in": "串世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "串世", "out": "Take a list of integers; keep multiples of three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then count the even numbers.", "out": "一乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then what's the even count.", "out": "一乓"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then give the number of evens.", "out": "一乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then find how many values are divisible by two.", "out": "一乓"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then how many are even.", "out": "一乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then get the total number of even values in the list.", "out": "一乓"} {"kind": "builder", "in": "一乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "一乓", "out": "Take a list of integers; keep the even numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; double each, then check if every number is above zero.", "out": "丈乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then verify that all values exceed zero.", "out": "丈乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then are all values positive.", "out": "丈乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then are they all above zero.", "out": "丈乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then tell me if all numbers are greater than zero.", "out": "丈乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then return whether all values are positive.", "out": "丈乌"} {"kind": "builder", "in": "丈乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丈乌", "out": "Take a list of integers; double each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then give the smallest value (0 if none).", "out": "串丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then what's the smallest element, or 0 if there's nothing.", "out": "串丛"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then find the min, defaulting to 0.", "out": "串丛"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then minimum value, zero otherwise.", "out": "串丛"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then get the minimum value or zero if empty.", "out": "串丛"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then give me the min or 0.", "out": "串丛"} {"kind": "builder", "in": "串丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "串丛", "out": "Take a list of integers; keep multiples of three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then drop anything 5 or below.", "out": "乃主"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep only numbers greater than 5.", "out": "乃主"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then filter for numbers above 5.", "out": "乃主"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then give me values where x is greater than 5.", "out": "乃主"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then show me only the values that are bigger than five.", "out": "乃主"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep values greater than five.", "out": "乃主"} {"kind": "builder", "in": "乃主", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乃主", "out": "Take a list of integers; drop the leading negative values, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each value by itself.", "out": "万上"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then square them all.", "out": "万上"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then raise each to the power of two.", "out": "万上"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then I need each number multiplied by itself.", "out": "万上"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then square all of them.", "out": "万上"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiply each element by itself.", "out": "万上"} {"kind": "builder", "in": "万上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "万上", "out": "Take a list of integers; keep the negative numbers, then square each."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then keep only non-empty strings.", "out": "丟两"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then filter empty strings.", "out": "丟两"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove empty strings from the list.", "out": "丟两"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then clean up empty strings.", "out": "丟两"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then delete empty entries.", "out": "丟两"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then drop empty strings.", "out": "丟两"} {"kind": "builder", "in": "丟两", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "丟两", "out": "Take a list of strings; uppercase each string, then drop empty strings."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then concatenate with commas between.", "out": "丧中"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then add commas between items.", "out": "丧中"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then return them as one comma-separated string.", "out": "丧中"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then separate by comma.", "out": "丧中"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then join with commas.", "out": "丧中"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then comma join.", "out": "丧中"} {"kind": "builder", "in": "丧中", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n return ','.join(r)"} {"kind": "translator", "in": "丧中", "out": "Take a list of strings; drop duplicate strings keeping the first, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values divisible by 3.", "out": "不串"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep items where x mod 3 equals zero.", "out": "不串"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then drop anything not divisible by three.", "out": "不串"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then filter out everything except multiples of three.", "out": "不串"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only multiples of three.", "out": "不串"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiples of three only.", "out": "不串"} {"kind": "builder", "in": "不串", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "不串", "out": "Take a list of integers; subtract one from each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then check if every number is above zero.", "out": "串乌"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then verify that all values exceed zero.", "out": "串乌"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then are all values positive.", "out": "串乌"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then are they all above zero.", "out": "串乌"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then tell me if all numbers are greater than zero.", "out": "串乌"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then return whether all values are positive.", "out": "串乌"} {"kind": "builder", "in": "串乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "串乌", "out": "Take a list of integers; keep multiples of three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then check that there are no duplicates.", "out": "丏乏"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then are the values all unique.", "out": "丏乏"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then check if all values are unique.", "out": "丏乏"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then return whether all values are distinct.", "out": "丏乏"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then tell me if values are distinct.", "out": "丏乏"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then are all values distinct.", "out": "丏乏"} {"kind": "builder", "in": "丏乏", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丏乏", "out": "Take a list of integers; take the absolute value of each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10.", "out": "丹丽"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item.", "out": "丹丽"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten.", "out": "丹丽"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10.", "out": "丹丽"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything.", "out": "丹丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10.", "out": "丹丽"} {"kind": "builder", "in": "丹丽", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丹丽", "out": "Take a list of integers; keep only the last three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then take the final 3 elements.", "out": "串丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then drop everything except the final three.", "out": "串丹"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then give me the last three elements.", "out": "串丹"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep only the last three.", "out": "串丹"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep the final three items.", "out": "串丹"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the last three.", "out": "串丹"} {"kind": "builder", "in": "串丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "串丹", "out": "Take a list of integers; keep multiples of three, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then count the even numbers.", "out": "丽乓"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then what's the even count.", "out": "丽乓"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then give the number of evens.", "out": "丽乓"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then find how many values are divisible by two.", "out": "丽乓"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then how many are even.", "out": "丽乓"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then get the total number of even values in the list.", "out": "丽乓"} {"kind": "builder", "in": "丽乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丽乓", "out": "Take a list of integers; add ten to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then check that there are no duplicates.", "out": "世乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then are the values all unique.", "out": "世乏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then check if all values are unique.", "out": "世乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then return whether all values are distinct.", "out": "世乏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then tell me if values are distinct.", "out": "世乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then are all values distinct.", "out": "世乏"} {"kind": "builder", "in": "世乏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "世乏", "out": "Take a list of integers; drop the first element, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then take each string's first letter.", "out": "两丨"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then give me the first letter of everything.", "out": "两丨"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then reduce each string to its first character.", "out": "两丨"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then take first char drop blanks.", "out": "两丨"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then keep first letters only.", "out": "两丨"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then first letter from each item that isn't empty.", "out": "两丨"} {"kind": "builder", "in": "两丨", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "两丨", "out": "Take a list of strings; drop empty strings, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then order strings from shortest to longest.", "out": "丟严"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then shortest to longest.", "out": "丟严"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then arrange by string length ascending.", "out": "丟严"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then length sort.", "out": "丟严"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then sort by length shortest first.", "out": "丟严"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then organize by string length least to greatest.", "out": "丟严"} {"kind": "builder", "in": "丟严", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "丟严", "out": "Take a list of strings; uppercase each string, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then give the maximum string length.", "out": "乗乜"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then max length of all strings.", "out": "乗乜"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then what's the max string length.", "out": "乗乜"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then return the length of the longest string (0 if none).", "out": "乗乜"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then how long is the longest string.", "out": "乗乜"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then find the longest string length.", "out": "乗乜"} {"kind": "builder", "in": "乗乜", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "乗乜", "out": "Take a list of strings; drop strings shorter than three characters, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values.", "out": "丘举"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros.", "out": "丘举"} {"kind": "builder", "in": "丘举", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丘举", "out": "Take a list of integers; cap each value at 10, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increase every value by 10.", "out": "与丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then add 10 to each item.", "out": "与丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then shift each up by ten.", "out": "与丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then increase all numbers by 10.", "out": "与丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then add 10 to everything.", "out": "与丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give everything a boost of 10.", "out": "与丽"} {"kind": "builder", "in": "与丽", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "与丽", "out": "Take a list of integers; negate each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each by two.", "out": "么丈"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then double each item in the list.", "out": "么丈"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then multiply each by two.", "out": "么丈"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then double each item in the list.", "out": "么丈"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then multiply each by two.", "out": "么丈"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then double each item in the list.", "out": "么丈"} {"kind": "builder", "in": "么丈", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "么丈", "out": "Take a list of integers; if empty, use a single zero, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero.", "out": "世久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears.", "out": "世久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero.", "out": "世久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0.", "out": "世久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero.", "out": "世久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero.", "out": "世久"} {"kind": "builder", "in": "世久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "世久", "out": "Take a list of integers; drop the first element, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then find the first even number, defaulting to 0.", "out": "丑乒"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then first even value zero if not found.", "out": "丑乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then find the first even number, defaulting to 0.", "out": "丑乒"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then first even value zero if not found.", "out": "丑乒"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then find the first even number, defaulting to 0.", "out": "丑乒"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then first even value zero if not found.", "out": "丑乒"} {"kind": "builder", "in": "丑乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丑乒", "out": "Take a list of integers; sort ascending, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then check if there is an even number.", "out": "义之"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then find out whether any value is divisible by 2.", "out": "义之"} {"kind": "builder", "in": "义之", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "义之", "out": "Take a list of integers; pad with zeros to at least three elements, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then give the smallest value (0 if none).", "out": "丽丛"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then what's the smallest element, or 0 if there's nothing.", "out": "丽丛"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then find the min, defaulting to 0.", "out": "丽丛"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then minimum value, zero otherwise.", "out": "丽丛"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then get the minimum value or zero if empty.", "out": "丽丛"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then give me the min or 0.", "out": "丽丛"} {"kind": "builder", "in": "丽丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丽丛", "out": "Take a list of integers; add ten to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then order by distance from zero.", "out": "丁丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort based on absolute value.", "out": "丁丸"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then organize by magnitude.", "out": "丁丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then arrange by absolute value ascending.", "out": "丁丸"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort from smallest to largest absolute value.", "out": "丁丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort by absolute value.", "out": "丁丸"} {"kind": "builder", "in": "丁丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丁丸", "out": "Take a list of integers; keep the odd numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then check if every number is above zero.", "out": "七乌"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then verify that all values exceed zero.", "out": "七乌"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then are all values positive.", "out": "七乌"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then are they all above zero.", "out": "七乌"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then tell me if all numbers are greater than zero.", "out": "七乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then return whether all values are positive.", "out": "七乌"} {"kind": "builder", "in": "七乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "七乌", "out": "Take a list of integers; keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then take the final 3 elements.", "out": "专丹"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then drop everything except the final three.", "out": "专丹"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then give me the last three elements.", "out": "专丹"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep only the last three.", "out": "专丹"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep the final three items.", "out": "专丹"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the last three.", "out": "专丹"} {"kind": "builder", "in": "专丹", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "专丹", "out": "Take a list of integers; sort descending, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then check that there are no duplicates.", "out": "丸乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then are the values all unique.", "out": "丸乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then check if all values are unique.", "out": "丸乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then return whether all values are distinct.", "out": "丸乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then tell me if values are distinct.", "out": "丸乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then are all values distinct.", "out": "丸乏"} {"kind": "builder", "in": "丸乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸乏", "out": "Take a list of integers; sort by absolute value, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then find the first even number, defaulting to 0.", "out": "么乒"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then first even value zero if not found.", "out": "么乒"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then find the first even number, defaulting to 0.", "out": "么乒"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then first even value zero if not found.", "out": "么乒"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then find the first even number, defaulting to 0.", "out": "么乒"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then first even value zero if not found.", "out": "么乒"} {"kind": "builder", "in": "么乒", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "么乒", "out": "Take a list of integers; if empty, use a single zero, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below.", "out": "么主"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5.", "out": "么主"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5.", "out": "么主"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5.", "out": "么主"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five.", "out": "么主"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five.", "out": "么主"} {"kind": "builder", "in": "么主", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "么主", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero.", "out": "丹久"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears.", "out": "丹久"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero.", "out": "丹久"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0.", "out": "丹久"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero.", "out": "丹久"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero.", "out": "丹久"} {"kind": "builder", "in": "丹久", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丹久", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then count the even numbers.", "out": "丈乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then what's the even count.", "out": "丈乓"} {"kind": "speaker", "in": "Take a list of integers; double each, then give the number of evens.", "out": "丈乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then find how many values are divisible by two.", "out": "丈乓"} {"kind": "speaker", "in": "Take a list of integers; double each, then how many are even.", "out": "丈乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the total number of even values in the list.", "out": "丈乓"} {"kind": "builder", "in": "丈乓", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丈乓", "out": "Take a list of integers; double each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; negate each, then check if zero appears.", "out": "与乍"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then find out whether there's a zero in here.", "out": "与乍"} {"kind": "builder", "in": "与乍", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n return 0 in r"} {"kind": "translator", "in": "与乍", "out": "Take a list of integers; negate each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only odd values.", "out": "九丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then eliminate the even numbers.", "out": "九丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only odd values.", "out": "九丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then eliminate the even numbers.", "out": "九丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only odd values.", "out": "九丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then eliminate the even numbers.", "out": "九丁"} {"kind": "builder", "in": "九丁", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "九丁", "out": "Take a list of people records (name, age); extract the ages, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then count the even numbers.", "out": "乃乓"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then what's the even count.", "out": "乃乓"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give the number of evens.", "out": "乃乓"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then find how many values are divisible by two.", "out": "乃乓"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then how many are even.", "out": "乃乓"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the total number of even values in the list.", "out": "乃乓"} {"kind": "builder", "in": "乃乓", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乃乓", "out": "Take a list of integers; drop the leading negative values, then return how many values are even."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then sum the lengths of all strings.", "out": "丢个"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then sum up all the characters across everything and tell me what you get.", "out": "丢个"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then count characters across all strings.", "out": "丢个"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then character count.", "out": "丢个"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then count all the characters.", "out": "丢个"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then total number of characters.", "out": "丢个"} {"kind": "builder", "in": "丢个", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "丢个", "out": "Take a list of strings; trim whitespace from each, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep the leading run of positive numbers.", "out": "七乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then take values while they are positive.", "out": "七乂"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take positive values then stop.", "out": "七乂"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep going while positive.", "out": "七乂"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then stop at first non positive.", "out": "七乂"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take while greater than zero.", "out": "七乂"} {"kind": "builder", "in": "七乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "七乂", "out": "Take a list of integers; keep the positive numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values.", "out": "义且"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order.", "out": "义且"} {"kind": "builder", "in": "义且", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "义且", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each value by itself.", "out": "丘上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then square them all.", "out": "丘上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then raise each to the power of two.", "out": "丘上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then I need each number multiplied by itself.", "out": "丘上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then square all of them.", "out": "丘上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiply each element by itself.", "out": "丘上"} {"kind": "builder", "in": "丘上", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丘上", "out": "Take a list of integers; cap each value at 10, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten.", "out": "万丘"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10.", "out": "万丘"} {"kind": "builder", "in": "万丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "万丘", "out": "Take a list of integers; keep the negative numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then check if there is an even number.", "out": "世之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then find out whether any value is divisible by 2.", "out": "世之"} {"kind": "builder", "in": "世之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "世之", "out": "Take a list of integers; drop the first element, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the final 3 elements.", "out": "为丹"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then drop everything except the final three.", "out": "为丹"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give me the last three elements.", "out": "为丹"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep only the last three.", "out": "为丹"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep the final three items.", "out": "为丹"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the last three.", "out": "为丹"} {"kind": "builder", "in": "为丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "为丹", "out": "Take a list of integers; drop the first and last elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then sum the lengths of all strings.", "out": "乘个"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then sum up all the characters across everything and tell me what you get.", "out": "乘个"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then count characters across all strings.", "out": "乘个"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then character count.", "out": "乘个"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then count all the characters.", "out": "乘个"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then total number of characters.", "out": "乘个"} {"kind": "builder", "in": "乘个", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "乘个", "out": "Take a list of strings; prefix each with a hash, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the list around.", "out": "为丐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then flip the order around.", "out": "为丐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then put the elements backwards.", "out": "为丐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then reverse that for me.", "out": "为丐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip it backwards.", "out": "为丐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then make it backwards.", "out": "为丐"} {"kind": "builder", "in": "为丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "为丐", "out": "Take a list of integers; drop the first and last elements, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the list around.", "out": "乂丐"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then flip the order around.", "out": "乂丐"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then put the elements backwards.", "out": "乂丐"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then reverse that for me.", "out": "乂丐"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip it backwards.", "out": "乂丐"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then make it backwards.", "out": "乂丐"} {"kind": "builder", "in": "乂丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "乂丐", "out": "Take a list of integers; take values while they are positive, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort smallest to largest.", "out": "串丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Ascending sort.", "out": "串丑"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then Sort this ascending.", "out": "串丑"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Sort lowest to highest.", "out": "串丑"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Arrange from smallest to largest.", "out": "串丑"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort ascending.", "out": "串丑"} {"kind": "builder", "in": "串丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "串丑", "out": "Take a list of integers; keep multiples of three, then sort ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort largest to smallest.", "out": "九专"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort by descending values.", "out": "九专"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then sort from highest to lowest.", "out": "九专"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then sort descending.", "out": "九专"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort largest first.", "out": "九专"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort in descending order.", "out": "九专"} {"kind": "builder", "in": "九专", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "九专", "out": "Take a list of people records (name, age); extract the ages, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove both ends.", "out": "七为"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then trim the edges.", "out": "七为"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then trim one element off each end.", "out": "七为"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then cut off the first and last.", "out": "七为"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first and last elements.", "out": "七为"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep only the middle part.", "out": "七为"} {"kind": "builder", "in": "七为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "七为", "out": "Take a list of integers; keep the positive numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then make every value non-negative.", "out": "丁丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then absolute value for all items.", "out": "丁丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take absolute values.", "out": "丁丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn negatives into positives.", "out": "丁丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then abs each element.", "out": "丁丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the absolute value of each.", "out": "丁丏"} {"kind": "builder", "in": "丁丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丁丏", "out": "Take a list of integers; keep the odd numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then cut the list at the first zero.", "out": "丑久"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then cut off after the first zero appears.", "out": "丑久"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take values up to (excluding) the first zero.", "out": "丑久"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the part before the first 0.", "out": "丑久"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then truncate at the first zero.", "out": "丑久"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then delete everything starting with the first zero.", "out": "丑久"} {"kind": "builder", "in": "丑久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丑久", "out": "Take a list of integers; sort ascending, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then check if values are in increasing order.", "out": "丏乎"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then give me a yes or no if the list is sorted.", "out": "丏乎"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then is this list sorted.", "out": "丏乎"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "丏乎"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then tell me if it's sorted ascending.", "out": "丏乎"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then return whether the list is sorted ascending.", "out": "丏乎"} {"kind": "builder", "in": "丏乎", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丏乎", "out": "Take a list of integers; take the absolute value of each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then multiply them all together.", "out": "丑乐"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then multiply them all.", "out": "丑乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then multiply all the numbers together.", "out": "丑乐"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then get the product.", "out": "丑乐"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then find the product of these.", "out": "丑乐"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then return their product.", "out": "丑乐"} {"kind": "builder", "in": "丑乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丑乐", "out": "Take a list of integers; sort ascending, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values.", "out": "世举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros.", "out": "世举"} {"kind": "builder", "in": "世举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "世举", "out": "Take a list of integers; drop the first element, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the final 3 elements.", "out": "举丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop everything except the final three.", "out": "举丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give me the last three elements.", "out": "举丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the last three.", "out": "举丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the final three items.", "out": "举丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the last three.", "out": "举丹"} {"kind": "builder", "in": "举丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "举丹", "out": "Take a list of integers; drop the zeros, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increase every value by 10.", "out": "乃丽"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then add 10 to each item.", "out": "乃丽"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then shift each up by ten.", "out": "乃丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then increase all numbers by 10.", "out": "乃丽"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then add 10 to everything.", "out": "乃丽"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then give everything a boost of 10.", "out": "乃丽"} {"kind": "builder", "in": "乃丽", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乃丽", "out": "Take a list of integers; drop the leading negative values, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only odd values.", "out": "丏丁"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then eliminate the even numbers.", "out": "丏丁"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only odd values.", "out": "丏丁"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then eliminate the even numbers.", "out": "丏丁"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only odd values.", "out": "丏丁"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then eliminate the even numbers.", "out": "丏丁"} {"kind": "builder", "in": "丏丁", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丏丁", "out": "Take a list of integers; take the absolute value of each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then multiply each by two.", "out": "丽丈"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then double each item in the list.", "out": "丽丈"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then multiply each by two.", "out": "丽丈"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then double each item in the list.", "out": "丽丈"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then multiply each by two.", "out": "丽丈"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then double each item in the list.", "out": "丽丈"} {"kind": "builder", "in": "丽丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丽丈", "out": "Take a list of integers; add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then check if values are in increasing order.", "out": "万乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then give me a yes or no if the list is sorted.", "out": "万乎"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then is this list sorted.", "out": "万乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then determine whether the list is sorted in ascending order from smallest to largest value.", "out": "万乎"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then tell me if it's sorted ascending.", "out": "万乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then return whether the list is sorted ascending.", "out": "万乎"} {"kind": "builder", "in": "万乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return r == sorted(r)"} {"kind": "translator", "in": "万乎", "out": "Take a list of integers; keep the negative numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then take each string's first letter.", "out": "丢丨"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then give me the first letter of everything.", "out": "丢丨"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then reduce each string to its first character.", "out": "丢丨"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then take first char drop blanks.", "out": "丢丨"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then keep first letters only.", "out": "丢丨"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then first letter from each item that isn't empty.", "out": "丢丨"} {"kind": "builder", "in": "丢丨", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "丢丨", "out": "Take a list of strings; trim whitespace from each, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then give back the lengthiest string.", "out": "丞丰"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then Longest string please.", "out": "丞丰"} {"kind": "builder", "in": "丞丰", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丞丰", "out": "Take a list of strings; lowercase each string, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove all zero values.", "out": "乃举"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then exclude zeros.", "out": "乃举"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove all zero values.", "out": "乃举"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then exclude zeros.", "out": "乃举"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove all zero values.", "out": "乃举"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then exclude zeros.", "out": "乃举"} {"kind": "builder", "in": "乃举", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乃举", "out": "Take a list of integers; drop the leading negative values, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values divisible by 3.", "out": "举串"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep items where x mod 3 equals zero.", "out": "举串"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything not divisible by three.", "out": "举串"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter out everything except multiples of three.", "out": "举串"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only multiples of three.", "out": "举串"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiples of three only.", "out": "举串"} {"kind": "builder", "in": "举串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "举串", "out": "Take a list of integers; drop the zeros, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then check if every number is above zero.", "out": "义乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then verify that all values exceed zero.", "out": "义乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then are all values positive.", "out": "义乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then are they all above zero.", "out": "义乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then tell me if all numbers are greater than zero.", "out": "义乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then return whether all values are positive.", "out": "义乌"} {"kind": "builder", "in": "义乌", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "义乌", "out": "Take a list of integers; pad with zeros to at least three elements, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove both ends.", "out": "专为"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then trim the edges.", "out": "专为"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then trim one element off each end.", "out": "专为"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then cut off the first and last.", "out": "专为"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove the first and last elements.", "out": "专为"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then keep only the middle part.", "out": "专为"} {"kind": "builder", "in": "专为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "专为", "out": "Take a list of integers; sort descending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then drop anything 5 or below.", "out": "万主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only numbers greater than 5.", "out": "万主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then filter for numbers above 5.", "out": "万主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then give me values where x is greater than 5.", "out": "万主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then show me only the values that are bigger than five.", "out": "万主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep values greater than five.", "out": "万主"} {"kind": "builder", "in": "万主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "万主", "out": "Take a list of integers; keep the negative numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then cut the list at the first zero.", "out": "为久"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then cut off after the first zero appears.", "out": "为久"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take values up to (excluding) the first zero.", "out": "为久"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the part before the first 0.", "out": "为久"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then truncate at the first zero.", "out": "为久"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then delete everything starting with the first zero.", "out": "为久"} {"kind": "builder", "in": "为久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "为久", "out": "Take a list of integers; drop the first and last elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove repeated values.", "out": "专且"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then unique values preserving order.", "out": "专且"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove repeated values.", "out": "专且"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then unique values preserving order.", "out": "专且"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove repeated values.", "out": "专且"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then unique values preserving order.", "out": "专且"} {"kind": "builder", "in": "专且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "专且", "out": "Take a list of integers; sort descending, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then decrement each value.", "out": "丽不"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Lower each number by one.", "out": "丽不"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then reduce each by one.", "out": "丽不"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Subtract 1 from all.", "out": "丽不"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Subtract one from each.", "out": "丽不"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Drop each by one.", "out": "丽不"} {"kind": "builder", "in": "丽不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丽不", "out": "Take a list of integers; add ten to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give the largest value (0 if none).", "out": "举业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then The biggest one, or 0 if it's empty.", "out": "举业"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Get the maximum value, or zero if there's nothing.", "out": "举业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then What's the max here.", "out": "举业"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Return the max or 0 if empty.", "out": "举业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then return the maximum (0 if empty).", "out": "举业"} {"kind": "builder", "in": "举业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "举业", "out": "Take a list of integers; drop the zeros, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the final 3 elements.", "out": "与丹"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop everything except the final three.", "out": "与丹"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give me the last three elements.", "out": "与丹"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the last three.", "out": "与丹"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the final three items.", "out": "与丹"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the last three.", "out": "与丹"} {"kind": "builder", "in": "与丹", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "与丹", "out": "Take a list of integers; negate each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values divisible by 3.", "out": "乂串"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep items where x mod 3 equals zero.", "out": "乂串"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then drop anything not divisible by three.", "out": "乂串"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then filter out everything except multiples of three.", "out": "乂串"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only multiples of three.", "out": "乂串"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiples of three only.", "out": "乂串"} {"kind": "builder", "in": "乂串", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "乂串", "out": "Take a list of integers; take values while they are positive, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then sum the lengths of all strings.", "out": "严个"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then sum up all the characters across everything and tell me what you get.", "out": "严个"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then count characters across all strings.", "out": "严个"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then character count.", "out": "严个"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then count all the characters.", "out": "严个"} {"kind": "speaker", "in": "Take a list of strings; length sort, then total number of characters.", "out": "严个"} {"kind": "builder", "in": "严个", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "严个", "out": "Take a list of strings; sort by length, shortest first, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the first 3 elements.", "out": "不丕"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove everything after the third.", "out": "不丕"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then truncate to three items.", "out": "不丕"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then show the first three.", "out": "不丕"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then take the first three.", "out": "不丕"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep first 3.", "out": "不丕"} {"kind": "builder", "in": "不丕", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "不丕", "out": "Take a list of integers; subtract one from each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two.", "out": "下丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list.", "out": "下丈"} {"kind": "builder", "in": "下丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "下丈", "out": "Take a list of integers; add one to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give the smallest value (0 if none).", "out": "举丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then what's the smallest element, or 0 if there's nothing.", "out": "举丛"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then find the min, defaulting to 0.", "out": "举丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then minimum value, zero otherwise.", "out": "举丛"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then get the minimum value or zero if empty.", "out": "举丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give me the min or 0.", "out": "举丛"} {"kind": "builder", "in": "举丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "举丛", "out": "Take a list of integers; drop the zeros, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then add them all up.", "out": "丘丙"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then add all those together.", "out": "丘丙"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give back the total.", "out": "丘丙"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sum r.", "out": "丘丙"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then add them up.", "out": "丘丙"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then calculate the sum of all elements.", "out": "丘丙"} {"kind": "builder", "in": "丘丙", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n return sum(r)"} {"kind": "translator", "in": "丘丙", "out": "Take a list of integers; cap each value at 10, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each.", "out": "丈与"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa.", "out": "丈与"} {"kind": "builder", "in": "丈与", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丈与", "out": "Take a list of integers; double each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove both ends.", "out": "丁为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then trim the edges.", "out": "丁为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then trim one element off each end.", "out": "丁为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off the first and last.", "out": "丁为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first and last elements.", "out": "丁为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the middle part.", "out": "丁为"} {"kind": "builder", "in": "丁为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丁为", "out": "Take a list of integers; keep the odd numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then check if there is an even number.", "out": "丏之"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then find out whether any value is divisible by 2.", "out": "丏之"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then check if there is an even number.", "out": "丏之"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then find out whether any value is divisible by 2.", "out": "丏之"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then check if there is an even number.", "out": "丏之"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then find out whether any value is divisible by 2.", "out": "丏之"} {"kind": "builder", "in": "丏之", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丏之", "out": "Take a list of integers; take the absolute value of each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two.", "out": "丸丈"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list.", "out": "丸丈"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two.", "out": "丸丈"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list.", "out": "丸丈"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two.", "out": "丸丈"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list.", "out": "丸丈"} {"kind": "builder", "in": "丸丈", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丸丈", "out": "Take a list of integers; sort by absolute value, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then order by distance from zero.", "out": "举丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort based on absolute value.", "out": "举丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then organize by magnitude.", "out": "举丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then arrange by absolute value ascending.", "out": "举丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from smallest to largest absolute value.", "out": "举丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by absolute value.", "out": "举丸"} {"kind": "builder", "in": "举丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "举丸", "out": "Take a list of integers; drop the zeros, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then give the largest value (0 if none).", "out": "丐业"} {"kind": "speaker", "in": "Take a list of integers; reverse, then The biggest one, or 0 if it's empty.", "out": "丐业"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then Get the maximum value, or zero if there's nothing.", "out": "丐业"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then What's the max here.", "out": "丐业"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then Return the max or 0 if empty.", "out": "丐业"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then return the maximum (0 if empty).", "out": "丐业"} {"kind": "builder", "in": "丐业", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return max(r) if r else 0"} {"kind": "translator", "in": "丐业", "out": "Take a list of integers; reverse the order, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value.", "out": "串下"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all.", "out": "串下"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value.", "out": "串下"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all.", "out": "串下"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value.", "out": "串下"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all.", "out": "串下"} {"kind": "builder", "in": "串下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "串下", "out": "Take a list of integers; keep multiples of three, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then default to [0] when there is nothing.", "out": "不么"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then when the list is empty, substitute a zero value.", "out": "不么"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then replace an empty list with one zero.", "out": "不么"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then zero it out if it's empty.", "out": "不么"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then use zero if the list is empty.", "out": "不么"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then default to zero when empty.", "out": "不么"} {"kind": "builder", "in": "不么", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "不么", "out": "Take a list of integers; subtract one from each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then give the smallest value (0 if none).", "out": "丸丛"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then what's the smallest element, or 0 if there's nothing.", "out": "丸丛"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then find the min, defaulting to 0.", "out": "丸丛"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then minimum value, zero otherwise.", "out": "丸丛"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then get the minimum value or zero if empty.", "out": "丸丛"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then give me the min or 0.", "out": "丸丛"} {"kind": "builder", "in": "丸丛", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return min(r) if r else 0"} {"kind": "translator", "in": "丸丛", "out": "Take a list of integers; sort by absolute value, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then skip negatives at the start.", "out": "下乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove all negatives at the front.", "out": "下乃"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the initial run of negative numbers.", "out": "下乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then strip the front negatives.", "out": "下乃"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove leading negative numbers.", "out": "下乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop negatives from start.", "out": "下乃"} {"kind": "builder", "in": "下乃", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "下乃", "out": "Take a list of integers; add one to each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove the first item.", "out": "丹世"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Remove head.", "out": "丹世"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the first item.", "out": "丹世"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Remove head.", "out": "丹世"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first item.", "out": "丹世"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Remove head.", "out": "丹世"} {"kind": "builder", "in": "丹世", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丹世", "out": "Take a list of integers; keep only the last three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increase every value by 10.", "out": "专丽"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then add 10 to each item.", "out": "专丽"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then shift each up by ten.", "out": "专丽"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then increase all numbers by 10.", "out": "专丽"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then add 10 to everything.", "out": "专丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then give everything a boost of 10.", "out": "专丽"} {"kind": "builder", "in": "专丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "专丽", "out": "Take a list of integers; sort descending, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove both ends.", "out": "主为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then trim the edges.", "out": "主为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then trim one element off each end.", "out": "主为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then cut off the first and last.", "out": "主为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first and last elements.", "out": "主为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep only the middle part.", "out": "主为"} {"kind": "builder", "in": "主为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主为", "out": "Take a list of integers; keep values greater than five, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values divisible by 3.", "out": "与串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep items where x mod 3 equals zero.", "out": "与串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything not divisible by three.", "out": "与串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter out everything except multiples of three.", "out": "与串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only multiples of three.", "out": "与串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiples of three only.", "out": "与串"} {"kind": "builder", "in": "与串", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "与串", "out": "Take a list of integers; negate each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values divisible by 3.", "out": "下串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep items where x mod 3 equals zero.", "out": "下串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything not divisible by three.", "out": "下串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter out everything except multiples of three.", "out": "下串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only multiples of three.", "out": "下串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiples of three only.", "out": "下串"} {"kind": "builder", "in": "下串", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "下串", "out": "Take a list of integers; add one to each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove both ends.", "out": "丕为"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then trim the edges.", "out": "丕为"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then trim one element off each end.", "out": "丕为"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then cut off the first and last.", "out": "丕为"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first and last elements.", "out": "丕为"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep only the middle part.", "out": "丕为"} {"kind": "builder", "in": "丕为", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丕为", "out": "Take a list of integers; keep only the first three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then count the even numbers.", "out": "专乓"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then what's the even count.", "out": "专乓"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then give the number of evens.", "out": "专乓"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then find how many values are divisible by two.", "out": "专乓"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then how many are even.", "out": "专乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then get the total number of even values in the list.", "out": "专乓"} {"kind": "builder", "in": "专乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "专乓", "out": "Take a list of integers; sort descending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values above zero.", "out": "举七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter for positive numbers.", "out": "举七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only positive numbers.", "out": "举七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positives.", "out": "举七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove negatives.", "out": "举七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positive numbers.", "out": "举七"} {"kind": "builder", "in": "举七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "举七", "out": "Take a list of integers; drop the zeros, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then give the maximum string length.", "out": "乞乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then max length of all strings.", "out": "乞乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then what's the max string length.", "out": "乞乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then return the length of the longest string (0 if none).", "out": "乞乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then how long is the longest string.", "out": "乞乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then find the longest string length.", "out": "乞乜"} {"kind": "builder", "in": "乞乜", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "乞乜", "out": "Take a list of people records (name, age); extract the names, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string.", "out": "乖乘"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash.", "out": "乖乘"} {"kind": "builder", "in": "乖乘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "乖乘", "out": "Take a list of strings; sort alphabetically, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then check if there is an even number.", "out": "久之"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then find out whether any value is divisible by 2.", "out": "久之"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then check if there is an even number.", "out": "久之"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then find out whether any value is divisible by 2.", "out": "久之"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then check if there is an even number.", "out": "久之"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then find out whether any value is divisible by 2.", "out": "久之"} {"kind": "builder", "in": "久之", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "久之", "out": "Take a list of integers; keep everything before the first zero, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only odd values.", "out": "为丁"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then eliminate the even numbers.", "out": "为丁"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only odd values.", "out": "为丁"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then eliminate the even numbers.", "out": "为丁"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only odd values.", "out": "为丁"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then eliminate the even numbers.", "out": "为丁"} {"kind": "builder", "in": "为丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "为丁", "out": "Take a list of integers; drop the first and last elements, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the final 3 elements.", "out": "乂丹"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then drop everything except the final three.", "out": "乂丹"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give me the last three elements.", "out": "乂丹"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep only the last three.", "out": "乂丹"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep the final three items.", "out": "乂丹"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the last three.", "out": "乂丹"} {"kind": "builder", "in": "乂丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "乂丹", "out": "Take a list of integers; take values while they are positive, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values divisible by 3.", "out": "一串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep items where x mod 3 equals zero.", "out": "一串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything not divisible by three.", "out": "一串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter out everything except multiples of three.", "out": "一串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only multiples of three.", "out": "一串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiples of three only.", "out": "一串"} {"kind": "builder", "in": "一串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "一串", "out": "Take a list of integers; keep the even numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then check if there is an even number.", "out": "串之"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then find out whether any value is divisible by 2.", "out": "串之"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then check if there is an even number.", "out": "串之"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then find out whether any value is divisible by 2.", "out": "串之"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then check if there is an even number.", "out": "串之"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then find out whether any value is divisible by 2.", "out": "串之"} {"kind": "builder", "in": "串之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "串之", "out": "Take a list of integers; keep multiples of three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then return the length.", "out": "丹东"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then count them.", "out": "丹东"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then what's the count.", "out": "丹东"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then return how many remain.", "out": "丹东"} {"kind": "speaker", "in": "Take a list of integers; last three only, then what's left.", "out": "丹东"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then how many are left.", "out": "丹东"} {"kind": "builder", "in": "丹东", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n return len(r)"} {"kind": "translator", "in": "丹东", "out": "Take a list of integers; keep only the last three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then count the even numbers.", "out": "义乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then what's the even count.", "out": "义乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give the number of evens.", "out": "义乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then find how many values are divisible by two.", "out": "义乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then how many are even.", "out": "义乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the total number of even values in the list.", "out": "义乓"} {"kind": "builder", "in": "义乓", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "义乓", "out": "Take a list of integers; pad with zeros to at least three elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then remove repeated strings.", "out": "乘丧"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then keep unique strings first appearance.", "out": "乘丧"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then eliminate repeated strings preserve first occurrence.", "out": "乘丧"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then drop duplicate strings keeping the first.", "out": "乘丧"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then dedupe.", "out": "乘丧"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then remove duplicate strings keep first.", "out": "乘丧"} {"kind": "builder", "in": "乘丧", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乘丧", "out": "Take a list of strings; prefix each with a hash, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then check if zero appears.", "out": "乂乍"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then find out whether there's a zero in here.", "out": "乂乍"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then check if zero appears.", "out": "乂乍"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then find out whether there's a zero in here.", "out": "乂乍"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then check if zero appears.", "out": "乂乍"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then find out whether there's a zero in here.", "out": "乂乍"} {"kind": "builder", "in": "乂乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return 0 in r"} {"kind": "translator", "in": "乂乍", "out": "Take a list of integers; take values while they are positive, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the final 3 elements.", "out": "世丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop everything except the final three.", "out": "世丹"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then give me the last three elements.", "out": "世丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the last three.", "out": "世丹"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the final three items.", "out": "世丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the last three.", "out": "世丹"} {"kind": "builder", "in": "世丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "世丹", "out": "Take a list of integers; drop the first element, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then multiply them all together.", "out": "丏乐"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then multiply them all.", "out": "丏乐"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then multiply all the numbers together.", "out": "丏乐"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then get the product.", "out": "丏乐"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then find the product of these.", "out": "丏乐"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then return their product.", "out": "丏乐"} {"kind": "builder", "in": "丏乐", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丏乐", "out": "Take a list of integers; take the absolute value of each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increase every value by 10.", "out": "串丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then add 10 to each item.", "out": "串丽"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then shift each up by ten.", "out": "串丽"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then increase all numbers by 10.", "out": "串丽"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then add 10 to everything.", "out": "串丽"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then give everything a boost of 10.", "out": "串丽"} {"kind": "builder", "in": "串丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "串丽", "out": "Take a list of integers; keep multiples of three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only even values.", "out": "丹一"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then extract all even numbers.", "out": "丹一"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only even values.", "out": "丹一"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then extract all even numbers.", "out": "丹一"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only even values.", "out": "丹一"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then extract all even numbers.", "out": "丹一"} {"kind": "builder", "in": "丹一", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丹一", "out": "Take a list of integers; keep only the last three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then take the first 3 elements.", "out": "专丕"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove everything after the third.", "out": "专丕"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then truncate to three items.", "out": "专丕"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then show the first three.", "out": "专丕"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then take the first three.", "out": "专丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then keep first 3.", "out": "专丕"} {"kind": "builder", "in": "专丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:3]\n return r"} {"kind": "translator", "in": "专丕", "out": "Take a list of integers; sort descending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then return the length.", "out": "丸东"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then count them.", "out": "丸东"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then what's the count.", "out": "丸东"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then return how many remain.", "out": "丸东"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then what's left.", "out": "丸东"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then how many are left.", "out": "丸东"} {"kind": "builder", "in": "丸东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n return len(r)"} {"kind": "translator", "in": "丸东", "out": "Take a list of integers; sort by absolute value, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep the leading run of positive numbers.", "out": "丐乂"} {"kind": "speaker", "in": "Take a list of integers; reverse, then take values while they are positive.", "out": "丐乂"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take positive values then stop.", "out": "丐乂"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep going while positive.", "out": "丐乂"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then stop at first non positive.", "out": "丐乂"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take while greater than zero.", "out": "丐乂"} {"kind": "builder", "in": "丐乂", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丐乂", "out": "Take a list of integers; reverse the order, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero.", "out": "乂丸"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value.", "out": "乂丸"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude.", "out": "乂丸"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending.", "out": "乂丸"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value.", "out": "乂丸"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value.", "out": "乂丸"} {"kind": "builder", "in": "乂丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "乂丸", "out": "Take a list of integers; take values while they are positive, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each by two.", "out": "主丈"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then double each item in the list.", "out": "主丈"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then multiply each by two.", "out": "主丈"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then double each item in the list.", "out": "主丈"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then multiply each by two.", "out": "主丈"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then double each item in the list.", "out": "主丈"} {"kind": "builder", "in": "主丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "主丈", "out": "Take a list of integers; keep values greater than five, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then skip negatives at the start.", "out": "且乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then remove all negatives at the front.", "out": "且乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the initial run of negative numbers.", "out": "且乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then strip the front negatives.", "out": "且乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove leading negative numbers.", "out": "且乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then drop negatives from start.", "out": "且乃"} {"kind": "builder", "in": "且乃", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "且乃", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then add them all up.", "out": "不丙"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then add all those together.", "out": "不丙"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give back the total.", "out": "不丙"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then sum r.", "out": "不丙"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then add them up.", "out": "不丙"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then calculate the sum of all elements.", "out": "不丙"} {"kind": "builder", "in": "不丙", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n return sum(r)"} {"kind": "translator", "in": "不丙", "out": "Take a list of integers; subtract one from each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort largest to smallest.", "out": "上专"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort by descending values.", "out": "上专"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then sort from highest to lowest.", "out": "上专"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sort descending.", "out": "上专"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort largest first.", "out": "上专"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort in descending order.", "out": "上专"} {"kind": "builder", "in": "上专", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "上专", "out": "Take a list of integers; square each, then sort descending."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then strip spaces around each string.", "out": "丨丢"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then remove leading and trailing spaces.", "out": "丨丢"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then remove whitespace from each item.", "out": "丨丢"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then clean whitespace from each entry.", "out": "丨丢"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then trim each string.", "out": "丨丢"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then trim whitespace from each.", "out": "丨丢"} {"kind": "builder", "in": "丨丢", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "丨丢", "out": "Take a list of strings; keep the first character of each (dropping empties), then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then find the first even number, defaulting to 0.", "out": "乃乒"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then first even value zero if not found.", "out": "乃乒"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then find the first even number, defaulting to 0.", "out": "乃乒"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then first even value zero if not found.", "out": "乃乒"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then find the first even number, defaulting to 0.", "out": "乃乒"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then first even value zero if not found.", "out": "乃乒"} {"kind": "builder", "in": "乃乒", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "乃乒", "out": "Take a list of integers; drop the leading negative values, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then check that there are no duplicates.", "out": "丐乏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then are the values all unique.", "out": "丐乏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then check if all values are unique.", "out": "丐乏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then return whether all values are distinct.", "out": "丐乏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then tell me if values are distinct.", "out": "丐乏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then are all values distinct.", "out": "丐乏"} {"kind": "builder", "in": "丐乏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丐乏", "out": "Take a list of integers; reverse the order, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then convert each to upper case.", "out": "乗丟"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then change all strings to uppercase.", "out": "乗丟"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then make every string uppercase.", "out": "乗丟"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then uppercase each one.", "out": "乗丟"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then make all the strings uppercase.", "out": "乗丟"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then convert all strings to uppercase letters.", "out": "乗丟"} {"kind": "builder", "in": "乗丟", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "乗丟", "out": "Take a list of strings; drop strings shorter than three characters, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then find the first even number, defaulting to 0.", "out": "丁乒"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then first even value zero if not found.", "out": "丁乒"} {"kind": "builder", "in": "丁乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丁乒", "out": "Take a list of integers; keep the odd numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first 3 elements.", "out": "世丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove everything after the third.", "out": "世丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate to three items.", "out": "世丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then show the first three.", "out": "世丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first three.", "out": "世丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep first 3.", "out": "世丕"} {"kind": "builder", "in": "世丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "世丕", "out": "Take a list of integers; drop the first element, then keep only the first three."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then sum the lengths of all strings.", "out": "丨个"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then sum up all the characters across everything and tell me what you get.", "out": "丨个"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then count characters across all strings.", "out": "丨个"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then character count.", "out": "丨个"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then count all the characters.", "out": "丨个"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then total number of characters.", "out": "丨个"} {"kind": "builder", "in": "丨个", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "丨个", "out": "Take a list of strings; keep the first character of each (dropping empties), then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then find the first even number, defaulting to 0.", "out": "久乒"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then first even value zero if not found.", "out": "久乒"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then find the first even number, defaulting to 0.", "out": "久乒"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then first even value zero if not found.", "out": "久乒"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then find the first even number, defaulting to 0.", "out": "久乒"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then first even value zero if not found.", "out": "久乒"} {"kind": "builder", "in": "久乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "久乒", "out": "Take a list of integers; keep everything before the first zero, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then count the even numbers.", "out": "串乓"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then what's the even count.", "out": "串乓"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then give the number of evens.", "out": "串乓"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "串乓"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then how many are even.", "out": "串乓"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then get the total number of even values in the list.", "out": "串乓"} {"kind": "builder", "in": "串乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "串乓", "out": "Take a list of integers; keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then skip negatives at the start.", "out": "串乃"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then remove all negatives at the front.", "out": "串乃"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove the initial run of negative numbers.", "out": "串乃"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then strip the front negatives.", "out": "串乃"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove leading negative numbers.", "out": "串乃"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then drop negatives from start.", "out": "串乃"} {"kind": "builder", "in": "串乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "串乃", "out": "Take a list of integers; keep multiples of three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then give the maximum string length.", "out": "丞乜"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then max length of all strings.", "out": "丞乜"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then what's the max string length.", "out": "丞乜"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then return the length of the longest string (0 if none).", "out": "丞乜"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then how long is the longest string.", "out": "丞乜"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then find the longest string length.", "out": "丞乜"} {"kind": "builder", "in": "丞乜", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丞乜", "out": "Take a list of strings; lowercase each string, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then order the strings A to Z.", "out": "乘乖"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then make it alphabetical.", "out": "乘乖"} {"kind": "builder", "in": "乘乖", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乘乖", "out": "Take a list of strings; prefix each with a hash, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep the leading run of positive numbers.", "out": "丕乂"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then take values while they are positive.", "out": "丕乂"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take positive values then stop.", "out": "丕乂"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep going while positive.", "out": "丕乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then stop at first non positive.", "out": "丕乂"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take while greater than zero.", "out": "丕乂"} {"kind": "builder", "in": "丕乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丕乂", "out": "Take a list of integers; keep only the first three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then check if zero appears.", "out": "一乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then find out whether there's a zero in here.", "out": "一乍"} {"kind": "builder", "in": "一乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n return 0 in r"} {"kind": "translator", "in": "一乍", "out": "Take a list of integers; keep the even numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then check if zero appears.", "out": "专乍"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then find out whether there's a zero in here.", "out": "专乍"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then check if zero appears.", "out": "专乍"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then find out whether there's a zero in here.", "out": "专乍"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then check if zero appears.", "out": "专乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then find out whether there's a zero in here.", "out": "专乍"} {"kind": "builder", "in": "专乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return 0 in r"} {"kind": "translator", "in": "专乍", "out": "Take a list of integers; sort descending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the final 3 elements.", "out": "且丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then drop everything except the final three.", "out": "且丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then give me the last three elements.", "out": "且丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the last three.", "out": "且丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the final three items.", "out": "且丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the last three.", "out": "且丹"} {"kind": "builder", "in": "且丹", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "且丹", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep only the last three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increment each value.", "out": "九下"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then plus one for all.", "out": "九下"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then increment each value.", "out": "九下"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then plus one for all.", "out": "九下"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then increment each value.", "out": "九下"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then plus one for all.", "out": "九下"} {"kind": "builder", "in": "九下", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "九下", "out": "Take a list of people records (name, age); extract the ages, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then extend to length 3 using zeros.", "out": "丏义"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then pad to 3.", "out": "丏义"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then extend to length 3 using zeros.", "out": "丏义"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then pad to 3.", "out": "丏义"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then extend to length 3 using zeros.", "out": "丏义"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then pad to 3.", "out": "丏义"} {"kind": "builder", "in": "丏义", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丏义", "out": "Take a list of integers; take the absolute value of each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply them all together.", "out": "专乐"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then multiply them all.", "out": "专乐"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then multiply all the numbers together.", "out": "专乐"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then get the product.", "out": "专乐"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then find the product of these.", "out": "专乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then return their product.", "out": "专乐"} {"kind": "builder", "in": "专乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "专乐", "out": "Take a list of integers; sort descending, then return their product."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values divisible by 3.", "out": "丏串"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep items where x mod 3 equals zero.", "out": "丏串"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then drop anything not divisible by three.", "out": "丏串"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then filter out everything except multiples of three.", "out": "丏串"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only multiples of three.", "out": "丏串"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then multiples of three only.", "out": "丏串"} {"kind": "builder", "in": "丏串", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丏串", "out": "Take a list of integers; take the absolute value of each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then extend to length 3 using zeros.", "out": "丑义"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then pad to 3.", "out": "丑义"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then extend to length 3 using zeros.", "out": "丑义"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then pad to 3.", "out": "丑义"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then extend to length 3 using zeros.", "out": "丑义"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then pad to 3.", "out": "丑义"} {"kind": "builder", "in": "丑义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丑义", "out": "Take a list of integers; sort ascending, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros.", "out": "丘义"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3.", "out": "丘义"} {"kind": "builder", "in": "丘义", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丘义", "out": "Take a list of integers; cap each value at 10, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers.", "out": "主乂"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive.", "out": "主乂"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop.", "out": "主乂"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive.", "out": "主乂"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive.", "out": "主乂"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero.", "out": "主乂"} {"kind": "builder", "in": "主乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "主乂", "out": "Take a list of integers; keep values greater than five, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then check if there is an even number.", "out": "万之"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then find out whether any value is divisible by 2.", "out": "万之"} {"kind": "builder", "in": "万之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "万之", "out": "Take a list of integers; keep the negative numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove both ends.", "out": "九为"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then trim the edges.", "out": "九为"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then trim one element off each end.", "out": "九为"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then cut off the first and last.", "out": "九为"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first and last elements.", "out": "九为"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep only the middle part.", "out": "九为"} {"kind": "builder", "in": "九为", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "九为", "out": "Take a list of people records (name, age); extract the ages, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then give the largest value (0 if none).", "out": "九业"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then The biggest one, or 0 if it's empty.", "out": "九业"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then Get the maximum value, or zero if there's nothing.", "out": "九业"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then What's the max here.", "out": "九业"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Return the max or 0 if empty.", "out": "九业"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then return the maximum (0 if empty).", "out": "九业"} {"kind": "builder", "in": "九业", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "九业", "out": "Take a list of people records (name, age); extract the ages, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove repeated values, then drop anything not divisible by three.", "out": "丕且串"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then unique values preserving order, then filter out everything except multiples of three.", "out": "丕且串"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove repeated values, then keep only multiples of three.", "out": "丕且串"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then unique values preserving order, then multiples of three only.", "out": "丕且串"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove repeated values, then filter for numbers divisible by three.", "out": "丕且串"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then unique values preserving order, then give me only the values divisible by three.", "out": "丕且串"} {"kind": "builder", "in": "丕且串", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丕且串", "out": "Take a list of integers; keep only the first three, then drop duplicates keeping first occurrence, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first 3 elements, then remove the initial run of negative numbers.", "out": "举丕乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove everything after the third, then strip the front negatives.", "out": "举丕乃"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate to three items, then remove leading negative numbers.", "out": "举丕乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then show the first three, then drop negatives from start.", "out": "举丕乃"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first three, then strip negative values from the start.", "out": "举丕乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep first 3, then remove negatives before the first non-negative.", "out": "举丕乃"} {"kind": "builder", "in": "举丕乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "举丕乃", "out": "Take a list of integers; drop the zeros, then keep only the first three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then arrange in increasing order.", "out": "丁丘丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then Organize these ascending.", "out": "丁丘丑"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then Sort in ascending order.", "out": "丁丘丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then I need this sorted ascending.", "out": "丁丘丑"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then Put these in ascending order.", "out": "丁丘丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then sort smallest to largest.", "out": "丁丘丑"} {"kind": "builder", "in": "丁丘丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [min(x, 10) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丁丘丑", "out": "Take a list of integers; keep the odd numbers, then cap each value at 10, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then extend to length 3 using zeros, then truncate to the last three items.", "out": "丐义丹"} {"kind": "speaker", "in": "Take a list of integers; reverse, then pad to 3, then show only the last three.", "out": "丐义丹"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then extend to length 3 using zeros, then remove all but the last three.", "out": "丐义丹"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then pad to 3, then take the final 3 elements.", "out": "丐义丹"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then extend to length 3 using zeros, then drop everything except the final three.", "out": "丐义丹"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then pad to 3, then give me the last three elements.", "out": "丐义丹"} {"kind": "builder", "in": "丐义丹", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丐义丹", "out": "Take a list of integers; reverse the order, then pad with zeros to at least three elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then deduplicate the list.", "out": "丐久且"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then remove repeats.", "out": "丐久且"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then deduplicate the list.", "out": "丐久且"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then remove repeats.", "out": "丐久且"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then deduplicate the list.", "out": "丐久且"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then remove repeats.", "out": "丐久且"} {"kind": "builder", "in": "丐久且", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丐久且", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increase every value by 10, then give back the product of all values.", "out": "世丽乐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then add 10 to each item, then product of the list.", "out": "世丽乐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then shift each up by ten, then what's the product.", "out": "世丽乐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then increase all numbers by 10, then what do they multiply to.", "out": "世丽乐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then add 10 to everything, then give me their product.", "out": "世丽乐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give everything a boost of 10, then multiply them all together.", "out": "世丽乐"} {"kind": "builder", "in": "世丽乐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 10 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "世丽乐", "out": "Take a list of integers; drop the first element, then add ten to each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then drop anything 5 or below, then replace an empty list with one zero.", "out": "久主么"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep only numbers greater than 5, then zero it out if it's empty.", "out": "久主么"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then filter for numbers above 5, then use zero if the list is empty.", "out": "久主么"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then give me values where x is greater than 5, then default to zero when empty.", "out": "久主么"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then show me only the values that are bigger than five, then if there's nothing, put in a zero.", "out": "久主么"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep values greater than five, then if no items, add a zero.", "out": "久主么"} {"kind": "builder", "in": "久主么", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "久主么", "out": "Take a list of integers; keep everything before the first zero, then keep values greater than five, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove both ends, then give back the total.", "out": "专为丙"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then trim the edges, then sum r.", "out": "专为丙"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then trim one element off each end, then add them up.", "out": "专为丙"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then cut off the first and last, then calculate the sum of all elements.", "out": "专为丙"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove the first and last elements, then what's the total.", "out": "专为丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then keep only the middle part, then what do they add up to.", "out": "专为丙"} {"kind": "builder", "in": "专为丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[1:-1]\n return sum(r)"} {"kind": "translator", "in": "专为丙", "out": "Take a list of integers; sort descending, then drop the first and last elements, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values above zero, then find the max, defaulting to 0.", "out": "丸七业"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then filter for positive numbers, then Give me the maximum, but 0 if there are no items.", "out": "丸七业"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only positive numbers, then What's the highest number in the list.", "out": "丸七业"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the positives, then Return the greatest value or default to 0.", "out": "丸七业"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove negatives, then Find the largest element, defaulting to zero.", "out": "丸七业"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep the positive numbers, then give the largest value (0 if none).", "out": "丸七业"} {"kind": "builder", "in": "丸七业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丸七业", "out": "Take a list of integers; sort by absolute value, then keep the positive numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove both ends, then make each twice as big.", "out": "么为丈"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then trim the edges, then multiply each by 2.", "out": "么为丈"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then trim one element off each end, then make each twice as big.", "out": "么为丈"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then cut off the first and last, then multiply each by 2.", "out": "么为丈"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first and last elements, then make each twice as big.", "out": "么为丈"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep only the middle part, then multiply each by 2.", "out": "么为丈"} {"kind": "builder", "in": "么为丈", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:-1]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "么为丈", "out": "Take a list of integers; if empty, use a single zero, then drop the first and last elements, then double each."} {"kind": "speaker", "in": "Take a list of integers; square each, then cut the list at the first zero, then multiply each by -1.", "out": "上久与"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then cut off after the first zero appears, then negate.", "out": "上久与"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take values up to (excluding) the first zero, then multiply each by -1.", "out": "上久与"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the part before the first 0, then negate.", "out": "上久与"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then truncate at the first zero, then multiply each by -1.", "out": "上久与"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then delete everything starting with the first zero, then negate.", "out": "上久与"} {"kind": "builder", "in": "上久与", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "上久与", "out": "Take a list of integers; square each, then keep everything before the first zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then replace an empty list with one zero.", "out": "举丈么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then zero it out if it's empty.", "out": "举丈么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then use zero if the list is empty.", "out": "举丈么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then default to zero when empty.", "out": "举丈么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then if there's nothing, put in a zero.", "out": "举丈么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then if no items, add a zero.", "out": "举丈么"} {"kind": "builder", "in": "举丈么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "举丈么", "out": "Take a list of integers; drop the zeros, then double each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the final 3 elements, then count the elements.", "out": "为丹东"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then drop everything except the final three, then how many items remain.", "out": "为丹东"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give me the last three elements, then tell me the length.", "out": "为丹东"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep only the last three, then return the length.", "out": "为丹东"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep the final three items, then count them.", "out": "为丹东"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the last three, then what's the count.", "out": "为丹东"} {"kind": "builder", "in": "为丹东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[-3:]\n return len(r)"} {"kind": "translator", "in": "为丹东", "out": "Take a list of integers; drop the first and last elements, then keep only the last three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then order by distance from zero, then raise each to the power of two.", "out": "举丸上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort based on absolute value, then I need each number multiplied by itself.", "out": "举丸上"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then organize by magnitude, then square all of them.", "out": "举丸上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then arrange by absolute value ascending, then multiply each element by itself.", "out": "举丸上"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from smallest to largest absolute value, then make each one squared.", "out": "举丸上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by absolute value, then square each value in the list.", "out": "举丸上"} {"kind": "builder", "in": "举丸上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "举丸上", "out": "Take a list of integers; drop the zeros, then sort by absolute value, then square each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then keep only numbers above 5.", "out": "丘万主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then exclude values of 5 and below.", "out": "丘万主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then remove anything 5 or less.", "out": "丘万主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then filter to keep only values above 5.", "out": "丘万主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then get rid of values that aren't greater than five.", "out": "丘万主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then drop anything 5 or below.", "out": "丘万主"} {"kind": "builder", "in": "丘万主", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丘万主", "out": "Take a list of integers; cap each value at 10, then keep the negative numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values above zero, then count the elements.", "out": "丸七东"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then filter for positive numbers, then how many items remain.", "out": "丸七东"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only positive numbers, then tell me the length.", "out": "丸七东"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the positives, then return the length.", "out": "丸七东"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove negatives, then count them.", "out": "丸七东"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep the positive numbers, then what's the count.", "out": "丸七东"} {"kind": "builder", "in": "丸七东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return len(r)"} {"kind": "translator", "in": "丸七东", "out": "Take a list of integers; sort by absolute value, then keep the positive numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values above zero, then arrange in decreasing order.", "out": "丐七专"} {"kind": "speaker", "in": "Take a list of integers; reverse, then filter for positive numbers, then arrange in descending order.", "out": "丐七专"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only positive numbers, then reverse sort.", "out": "丐七专"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the positives, then sort largest to smallest.", "out": "丐七专"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove negatives, then sort by descending values.", "out": "丐七专"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep the positive numbers, then sort from highest to lowest.", "out": "丐七专"} {"kind": "builder", "in": "丐七专", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丐七专", "out": "Take a list of integers; reverse the order, then keep the positive numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values divisible by 3, then arrange in decreasing order.", "out": "且串专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep items where x mod 3 equals zero, then arrange in descending order.", "out": "且串专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything not divisible by three, then reverse sort.", "out": "且串专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter out everything except multiples of three, then sort largest to smallest.", "out": "且串专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only multiples of three, then sort by descending values.", "out": "且串专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiples of three only, then sort from highest to lowest.", "out": "且串专"} {"kind": "builder", "in": "且串专", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "且串专", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep multiples of three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then give the number of evens.", "out": "丐久乓"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then find how many values are divisible by two.", "out": "丐久乓"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then how many are even.", "out": "丐久乓"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then get the total number of even values in the list.", "out": "丐久乓"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then give me the count of even values.", "out": "丐久乓"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then I need to know how many of these are even.", "out": "丐久乓"} {"kind": "builder", "in": "丐久乓", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丐久乓", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then raise each to the power of two.", "out": "丘世上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then I need each number multiplied by itself.", "out": "丘世上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then square all of them.", "out": "丘世上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then multiply each element by itself.", "out": "丘世上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then make each one squared.", "out": "丘世上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then square each value in the list.", "out": "丘世上"} {"kind": "builder", "in": "丘世上", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[1:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丘世上", "out": "Take a list of integers; cap each value at 10, then drop the first element, then square each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then true if every value is unique.", "out": "下且乏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then check for duplicates in the values.", "out": "下且乏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then do all values appear only once.", "out": "下且乏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then check that there are no duplicates.", "out": "下且乏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then are the values all unique.", "out": "下且乏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then check if all values are unique.", "out": "下且乏"} {"kind": "builder", "in": "下且乏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "下且乏", "out": "Take a list of integers; add one to each, then drop duplicates keeping first occurrence, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values below zero, then give back the total.", "out": "九万丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then get the negative numbers, then sum r.", "out": "九万丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep values below zero, then add them up.", "out": "九万丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then get the negative numbers, then calculate the sum of all elements.", "out": "九万丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep values below zero, then what's the total.", "out": "九万丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then get the negative numbers, then what do they add up to.", "out": "九万丙"} {"kind": "builder", "in": "九万丙", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x < 0]\n return sum(r)"} {"kind": "translator", "in": "九万丙", "out": "Take a list of people records (name, age); extract the ages, then keep the negative numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increment each value, then find the min, defaulting to 0.", "out": "丐下丛"} {"kind": "speaker", "in": "Take a list of integers; reverse, then plus one for all, then minimum value, zero otherwise.", "out": "丐下丛"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then increment each value, then get the minimum value or zero if empty.", "out": "丐下丛"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then plus one for all, then give me the min or 0.", "out": "丐下丛"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then increment each value, then return the smallest number, defaulting to 0.", "out": "丐下丛"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then plus one for all, then return smallest or zero if empty.", "out": "丐下丛"} {"kind": "builder", "in": "丐下丛", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丐下丛", "out": "Take a list of integers; reverse the order, then add one to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then arrange in increasing order.", "out": "举与丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then Organize these ascending.", "out": "举与丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then Sort in ascending order.", "out": "举与丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then I need this sorted ascending.", "out": "举与丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then Put these in ascending order.", "out": "举与丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then sort smallest to largest.", "out": "举与丑"} {"kind": "builder", "in": "举与丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "举与丑", "out": "Take a list of integers; drop the zeros, then negate each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything 5 or below, then arrange by magnitude ignoring sign.", "out": "举主丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only numbers greater than 5, then put them in order by magnitude.", "out": "举主丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then filter for numbers above 5, then arrange in order of absolute value.", "out": "举主丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give me values where x is greater than 5, then sort by distance from zero.", "out": "举主丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then show me only the values that are bigger than five, then order by how far from zero.", "out": "举主丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep values greater than five, then order by distance from zero.", "out": "举主丸"} {"kind": "builder", "in": "举主丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "举主丸", "out": "Take a list of integers; drop the zeros, then keep values greater than five, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the sign of each, then true if at least one even value.", "out": "久与之"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then turn positives to negatives and vice versa, then any even.", "out": "久与之"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then flip the sign of each, then true if at least one even value.", "out": "久与之"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn positives to negatives and vice versa, then any even.", "out": "久与之"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip the sign of each, then true if at least one even value.", "out": "久与之"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then turn positives to negatives and vice versa, then any even.", "out": "久与之"} {"kind": "builder", "in": "久与之", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [-x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "久与之", "out": "Take a list of integers; keep everything before the first zero, then negate each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; negate each, then default to [0] when there is nothing, then keep only non-zero numbers.", "out": "与么举"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then when the list is empty, substitute a zero value, then strip the zeros.", "out": "与么举"} {"kind": "speaker", "in": "Take a list of integers; negate each, then replace an empty list with one zero, then keep only non-zero numbers.", "out": "与么举"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then zero it out if it's empty, then strip the zeros.", "out": "与么举"} {"kind": "speaker", "in": "Take a list of integers; negate each, then use zero if the list is empty, then keep only non-zero numbers.", "out": "与么举"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then default to zero when empty, then strip the zeros.", "out": "与么举"} {"kind": "builder", "in": "与么举", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "与么举", "out": "Take a list of integers; negate each, then if empty, use a single zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then clamp each to at most ten, then give the earliest even value or zero.", "out": "九丘乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "九丘乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then clamp each to at most ten, then give the earliest even value or zero.", "out": "九丘乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "九丘乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then clamp each to at most ten, then give the earliest even value or zero.", "out": "九丘乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "九丘乒"} {"kind": "builder", "in": "九丘乒", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "九丘乒", "out": "Take a list of people records (name, age); extract the ages, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then deduplicate the strings.", "out": "乖乘丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then filter out duplicate strings retain first.", "out": "乖乘丧"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then strip duplicates preserve order.", "out": "乖乘丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then remove repeated strings.", "out": "乖乘丧"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then keep unique strings first appearance.", "out": "乖乘丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then eliminate repeated strings preserve first occurrence.", "out": "乖乘丧"} {"kind": "builder", "in": "乖乘丧", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = ['#' + s for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乖乘丧", "out": "Take a list of strings; sort alphabetically, then prefix each with a hash, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then truncate to the last three items.", "out": "丘举丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then show only the last three.", "out": "丘举丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then remove all but the last three.", "out": "丘举丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then take the final 3 elements.", "out": "丘举丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then drop everything except the final three.", "out": "丘举丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then give me the last three elements.", "out": "丘举丹"} {"kind": "builder", "in": "丘举丹", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丘举丹", "out": "Take a list of integers; cap each value at 10, then drop the zeros, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then take the final 3 elements, then drop anything not divisible by three.", "out": "丸丹串"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then drop everything except the final three, then filter out everything except multiples of three.", "out": "丸丹串"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then give me the last three elements, then keep only multiples of three.", "out": "丸丹串"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep only the last three, then multiples of three only.", "out": "丸丹串"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep the final three items, then filter for numbers divisible by three.", "out": "丸丹串"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the last three, then give me only the values divisible by three.", "out": "丸丹串"} {"kind": "builder", "in": "丸丹串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丸丹串", "out": "Take a list of integers; sort by absolute value, then keep only the last three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the sign of each, then find the max, defaulting to 0.", "out": "七与业"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then turn positives to negatives and vice versa, then Give me the maximum, but 0 if there are no items.", "out": "七与业"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then flip the sign of each, then What's the highest number in the list.", "out": "七与业"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn positives to negatives and vice versa, then Return the greatest value or default to 0.", "out": "七与业"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip the sign of each, then Find the largest element, defaulting to zero.", "out": "七与业"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then turn positives to negatives and vice versa, then give the largest value (0 if none).", "out": "七与业"} {"kind": "builder", "in": "七与业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "七与业", "out": "Take a list of integers; keep the positive numbers, then negate each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increment each value, then limit every value to 10.", "out": "不下丘"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then plus one for all, then maximum of 10 for all.", "out": "不下丘"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then increment each value, then limit every value to 10.", "out": "不下丘"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then plus one for all, then maximum of 10 for all.", "out": "不下丘"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then increment each value, then limit every value to 10.", "out": "不下丘"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then plus one for all, then maximum of 10 for all.", "out": "不下丘"} {"kind": "builder", "in": "不下丘", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "不下丘", "out": "Take a list of integers; subtract one from each, then add one to each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only odd values, then trim one element off each end.", "out": "乃丁为"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then eliminate the even numbers, then cut off the first and last.", "out": "乃丁为"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only odd values, then remove the first and last elements.", "out": "乃丁为"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then eliminate the even numbers, then keep only the middle part.", "out": "乃丁为"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only odd values, then drop first and last.", "out": "乃丁为"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then eliminate the even numbers, then eliminate the outermost elements.", "out": "乃丁为"} {"kind": "builder", "in": "乃丁为", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乃丁为", "out": "Take a list of integers; drop the leading negative values, then keep the odd numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values above zero, then count the elements.", "out": "下七东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter for positive numbers, then how many items remain.", "out": "下七东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only positive numbers, then tell me the length.", "out": "下七东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positives, then return the length.", "out": "下七东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove negatives, then count them.", "out": "下七东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positive numbers, then what's the count.", "out": "下七东"} {"kind": "builder", "in": "下七东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 0]\n return len(r)"} {"kind": "translator", "in": "下七东", "out": "Take a list of integers; add one to each, then keep the positive numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then convert each to lower case, then return them as one comma-separated string.", "out": "乗丞中"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then lowercase each one, then separate by comma.", "out": "乗丞中"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then convert each to lower case, then join with commas.", "out": "乗丞中"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then lowercase each one, then comma join.", "out": "乗丞中"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then convert each to lower case, then combine using commas.", "out": "乗丞中"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then lowercase each one, then connect with commas between each item.", "out": "乗丞中"} {"kind": "builder", "in": "乗丞中", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.lower() for s in r]\n return ','.join(r)"} {"kind": "translator", "in": "乗丞中", "out": "Take a list of strings; drop strings shorter than three characters, then lowercase each string, then join them with commas."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove repeated values, then put the elements backwards.", "out": "九且丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then unique values preserving order, then reverse that for me.", "out": "九且丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove repeated values, then flip it backwards.", "out": "九且丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then unique values preserving order, then make it backwards.", "out": "九且丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove repeated values, then reverse the list.", "out": "九且丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then unique values preserving order, then invert the sequence.", "out": "九且丐"} {"kind": "builder", "in": "九且丐", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(dict.fromkeys(r))\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "九且丐", "out": "Take a list of people records (name, age); extract the ages, then drop duplicates keeping first occurrence, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then ensure at least three items by appending zeros.", "out": "万丁义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "万丁义"} {"kind": "builder", "in": "万丁义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "万丁义", "out": "Take a list of integers; keep the negative numbers, then keep the odd numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then order by distance from zero, then give back the product of all values.", "out": "且丸乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort based on absolute value, then product of the list.", "out": "且丸乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then organize by magnitude, then what's the product.", "out": "且丸乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then arrange by absolute value ascending, then what do they multiply to.", "out": "且丸乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort from smallest to largest absolute value, then give me their product.", "out": "且丸乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort by absolute value, then multiply them all together.", "out": "且丸乐"} {"kind": "builder", "in": "且丸乐", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, key=abs)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "且丸乐", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort by absolute value, then return their product."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove all zero values, then drop non-positive values.", "out": "乂举七"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then exclude zeros, then drop the negative numbers.", "out": "乂举七"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove all zero values, then filter out the negative ones.", "out": "乂举七"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then exclude zeros, then remove all negative values.", "out": "乂举七"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove all zero values, then keep positive values only.", "out": "乂举七"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then exclude zeros, then keep values above zero.", "out": "乂举七"} {"kind": "builder", "in": "乂举七", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "乂举七", "out": "Take a list of integers; take values while they are positive, then drop the zeros, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then extend to length 3 using zeros, then give back the total.", "out": "世义丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then pad to 3, then sum r.", "out": "世义丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then extend to length 3 using zeros, then add them up.", "out": "世义丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then pad to 3, then calculate the sum of all elements.", "out": "世义丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then extend to length 3 using zeros, then what's the total.", "out": "世义丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then pad to 3, then what do they add up to.", "out": "世义丙"} {"kind": "builder", "in": "世义丙", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return sum(r)"} {"kind": "translator", "in": "世义丙", "out": "Take a list of integers; drop the first element, then pad with zeros to at least three elements, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the first 3 elements, then true if every value is unique.", "out": "为丕乏"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove everything after the third, then check for duplicates in the values.", "out": "为丕乏"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then truncate to three items, then do all values appear only once.", "out": "为丕乏"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then show the first three, then check that there are no duplicates.", "out": "为丕乏"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then take the first three, then are the values all unique.", "out": "为丕乏"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep first 3, then check if all values are unique.", "out": "为丕乏"} {"kind": "builder", "in": "为丕乏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:3]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "为丕乏", "out": "Take a list of integers; drop the first and last elements, then keep only the first three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then convert each to lower case, then return the number of strings.", "out": "丟丞丫"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then lowercase each one, then count the strings.", "out": "丟丞丫"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then convert each to lower case, then return how many strings remain.", "out": "丟丞丫"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then lowercase each one, then give me the total number of strings.", "out": "丟丞丫"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then convert each to lower case, then tell me how many strings we have.", "out": "丟丞丫"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then lowercase each one, then what's the string count.", "out": "丟丞丫"} {"kind": "builder", "in": "丟丞丫", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s.lower() for s in r]\n return len(r)"} {"kind": "translator", "in": "丟丞丫", "out": "Take a list of strings; uppercase each string, then lowercase each string, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each value by itself, then true if at least one even value.", "out": "一上之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then square them all, then any even.", "out": "一上之"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then raise each to the power of two, then true if at least one even value.", "out": "一上之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then I need each number multiplied by itself, then any even.", "out": "一上之"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then square all of them, then true if at least one even value.", "out": "一上之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiply each element by itself, then any even.", "out": "一上之"} {"kind": "builder", "in": "一上之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "一上之", "out": "Take a list of integers; keep the even numbers, then square each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then limit every value to 10.", "out": "下丽丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then maximum of 10 for all.", "out": "下丽丘"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then limit every value to 10.", "out": "下丽丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then maximum of 10 for all.", "out": "下丽丘"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then limit every value to 10.", "out": "下丽丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then maximum of 10 for all.", "out": "下丽丘"} {"kind": "builder", "in": "下丽丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "下丽丘", "out": "Take a list of integers; add one to each, then add ten to each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then sort largest to smallest, then true only if all are positive.", "out": "为专乌"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort by descending values, then do all of these have positive values.", "out": "为专乌"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then sort from highest to lowest, then check if every value is positive.", "out": "为专乌"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then sort descending, then confirm all values are positive.", "out": "为专乌"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort largest first, then all positive.", "out": "为专乌"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort in descending order, then check if every number is above zero.", "out": "为专乌"} {"kind": "builder", "in": "为专乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, reverse=True)\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "为专乌", "out": "Take a list of integers; drop the first and last elements, then sort descending, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then stop at the first non-positive value.", "out": "么丽乂"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then keep the leading run of positive numbers.", "out": "么丽乂"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then take values while they are positive.", "out": "么丽乂"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then take positive values then stop.", "out": "么丽乂"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then keep going while positive.", "out": "么丽乂"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then stop at first non positive.", "out": "么丽乂"} {"kind": "builder", "in": "么丽乂", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "么丽乂", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then make every value non-negative, then take values up to (excluding) the first zero.", "out": "串丏久"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then absolute value for all items, then keep the part before the first 0.", "out": "串丏久"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take absolute values, then truncate at the first zero.", "out": "串丏久"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn negatives into positives, then delete everything starting with the first zero.", "out": "串丏久"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then abs each element, then remove from the first zero onwards.", "out": "串丏久"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the absolute value of each, then up to but not including the first zero.", "out": "串丏久"} {"kind": "builder", "in": "串丏久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [abs(x) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "串丏久", "out": "Take a list of integers; keep multiples of three, then take the absolute value of each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then ensure at least three items by appending zeros.", "out": "下万义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "下万义"} {"kind": "builder", "in": "下万义", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "下万义", "out": "Take a list of integers; add one to each, then keep the negative numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each by two, then bump each up by one.", "out": "乂丈下"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then double each item in the list, then increment each item.", "out": "乂丈下"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then multiply each by two, then bump each up by one.", "out": "乂丈下"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then double each item in the list, then increment each item.", "out": "乂丈下"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then multiply each by two, then bump each up by one.", "out": "乂丈下"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then double each item in the list, then increment each item.", "out": "乂丈下"} {"kind": "builder", "in": "乂丈下", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "乂丈下", "out": "Take a list of integers; take values while they are positive, then double each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then make every value non-negative, then arrange in increasing order.", "out": "丘丏丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then absolute value for all items, then Organize these ascending.", "out": "丘丏丑"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take absolute values, then Sort in ascending order.", "out": "丘丏丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn negatives into positives, then I need this sorted ascending.", "out": "丘丏丑"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then abs each element, then Put these in ascending order.", "out": "丘丏丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the absolute value of each, then sort smallest to largest.", "out": "丘丏丑"} {"kind": "builder", "in": "丘丏丑", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丘丏丑", "out": "Take a list of integers; cap each value at 10, then take the absolute value of each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove both ends, then remove the initial run of negative numbers.", "out": "主为乃"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then trim the edges, then strip the front negatives.", "out": "主为乃"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then trim one element off each end, then remove leading negative numbers.", "out": "主为乃"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then cut off the first and last, then drop negatives from start.", "out": "主为乃"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first and last elements, then strip negative values from the start.", "out": "主为乃"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep only the middle part, then remove negatives before the first non-negative.", "out": "主为乃"} {"kind": "builder", "in": "主为乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "主为乃", "out": "Take a list of integers; keep values greater than five, then drop the first and last elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then order by distance from zero, then give the earliest even value or zero.", "out": "久丸乒"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "久丸乒"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then organize by magnitude, then give the earliest even value or zero.", "out": "久丸乒"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "久丸乒"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "久丸乒"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort by absolute value, then fetch the first even element, default to 0.", "out": "久丸乒"} {"kind": "builder", "in": "久丸乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "久丸乒", "out": "Take a list of integers; keep everything before the first zero, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the final 3 elements, then remove the initial run of negative numbers.", "out": "一丹乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop everything except the final three, then strip the front negatives.", "out": "一丹乃"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then give me the last three elements, then remove leading negative numbers.", "out": "一丹乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the last three, then drop negatives from start.", "out": "一丹乃"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the final three items, then strip negative values from the start.", "out": "一丹乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the last three, then remove negatives before the first non-negative.", "out": "一丹乃"} {"kind": "builder", "in": "一丹乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "一丹乃", "out": "Take a list of integers; keep the even numbers, then keep only the last three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then true if any value equals zero.", "out": "且丈乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then check for zero.", "out": "且丈乍"} {"kind": "builder", "in": "且丈乍", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n return 0 in r"} {"kind": "translator", "in": "且丈乍", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then sort smallest to largest, then give the number of evens.", "out": "为丑乓"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Ascending sort, then find how many values are divisible by two.", "out": "为丑乓"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then Sort this ascending, then how many are even.", "out": "为丑乓"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Sort lowest to highest, then get the total number of even values in the list.", "out": "为丑乓"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then Arrange from smallest to largest, then give me the count of even values.", "out": "为丑乓"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort ascending, then I need to know how many of these are even.", "out": "为丑乓"} {"kind": "builder", "in": "为丑乓", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "为丑乓", "out": "Take a list of integers; drop the first and last elements, then sort ascending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then skip negatives at the start, then strip the signs.", "out": "丐乃丏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then remove all negatives at the front, then take abs of each.", "out": "丐乃丏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the initial run of negative numbers, then get the absolute value of everything.", "out": "丐乃丏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then strip the front negatives, then apply absolute value to the whole list.", "out": "丐乃丏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove leading negative numbers, then make them all positive.", "out": "丐乃丏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then drop negatives from start, then make every value non-negative.", "out": "丐乃丏"} {"kind": "builder", "in": "丐乃丏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丐乃丏", "out": "Take a list of integers; reverse the order, then drop the leading negative values, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the list around, then count the elements.", "out": "丏丐东"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then flip the order around, then how many items remain.", "out": "丏丐东"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then put the elements backwards, then tell me the length.", "out": "丏丐东"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then reverse that for me, then return the length.", "out": "丏丐东"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip it backwards, then count them.", "out": "丏丐东"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then make it backwards, then what's the count.", "out": "丏丐东"} {"kind": "builder", "in": "丏丐东", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(reversed(r))\n return len(r)"} {"kind": "translator", "in": "丏丐东", "out": "Take a list of integers; take the absolute value of each, then reverse the order, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then drop non-negative values.", "out": "丐丈万"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then drop all positive numbers.", "out": "丐丈万"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then drop non-negative values.", "out": "丐丈万"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then drop all positive numbers.", "out": "丐丈万"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then drop non-negative values.", "out": "丐丈万"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then drop all positive numbers.", "out": "丐丈万"} {"kind": "builder", "in": "丐丈万", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丐丈万", "out": "Take a list of integers; reverse the order, then double each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative, then true only if all are positive.", "out": "与丏乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items, then do all of these have positive values.", "out": "与丏乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values, then check if every value is positive.", "out": "与丏乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives, then confirm all values are positive.", "out": "与丏乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element, then all positive.", "out": "与丏乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each, then check if every number is above zero.", "out": "与丏乌"} {"kind": "builder", "in": "与丏乌", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "与丏乌", "out": "Take a list of integers; negate each, then take the absolute value of each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two, then limit every value to 10.", "out": "上丈丘"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list, then maximum of 10 for all.", "out": "上丈丘"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two, then limit every value to 10.", "out": "上丈丘"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list, then maximum of 10 for all.", "out": "上丈丘"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two, then limit every value to 10.", "out": "上丈丘"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list, then maximum of 10 for all.", "out": "上丈丘"} {"kind": "builder", "in": "上丈丘", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "上丈丘", "out": "Take a list of integers; square each, then double each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increment each value, then drop non-negative values.", "out": "乃下万"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then plus one for all, then drop all positive numbers.", "out": "乃下万"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then increment each value, then drop non-negative values.", "out": "乃下万"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then plus one for all, then drop all positive numbers.", "out": "乃下万"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then increment each value, then drop non-negative values.", "out": "乃下万"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then plus one for all, then drop all positive numbers.", "out": "乃下万"} {"kind": "builder", "in": "乃下万", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "乃下万", "out": "Take a list of integers; drop the leading negative values, then add one to each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then remove the initial run of negative numbers.", "out": "丁举乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then strip the front negatives.", "out": "丁举乃"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then remove leading negative numbers.", "out": "丁举乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then drop negatives from start.", "out": "丁举乃"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then strip negative values from the start.", "out": "丁举乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then remove negatives before the first non-negative.", "out": "丁举乃"} {"kind": "builder", "in": "丁举乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丁举乃", "out": "Take a list of integers; keep the odd numbers, then drop the zeros, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then cut the list at the first zero, then limit every value to 10.", "out": "万久丘"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off after the first zero appears, then maximum of 10 for all.", "out": "万久丘"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take values up to (excluding) the first zero, then limit every value to 10.", "out": "万久丘"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the part before the first 0, then maximum of 10 for all.", "out": "万久丘"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate at the first zero, then limit every value to 10.", "out": "万久丘"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then delete everything starting with the first zero, then maximum of 10 for all.", "out": "万久丘"} {"kind": "builder", "in": "万久丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "万久丘", "out": "Take a list of integers; keep the negative numbers, then keep everything before the first zero, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove the first item, then find the min, defaulting to 0.", "out": "丸世丛"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Remove head, then minimum value, zero otherwise.", "out": "丸世丛"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the first item, then get the minimum value or zero if empty.", "out": "丸世丛"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Remove head, then give me the min or 0.", "out": "丸世丛"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first item, then return the smallest number, defaulting to 0.", "out": "丸世丛"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Remove head, then return smallest or zero if empty.", "out": "丸世丛"} {"kind": "builder", "in": "丸世丛", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:]\n return min(r) if r else 0"} {"kind": "translator", "in": "丸世丛", "out": "Take a list of integers; sort by absolute value, then drop the first element, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then decrement each value, then make each twice as big.", "out": "么不丈"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Lower each number by one, then multiply each by 2.", "out": "么不丈"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then reduce each by one, then make each twice as big.", "out": "么不丈"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Subtract 1 from all, then multiply each by 2.", "out": "么不丈"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Subtract one from each, then make each twice as big.", "out": "么不丈"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Drop each by one, then multiply each by 2.", "out": "么不丈"} {"kind": "builder", "in": "么不丈", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "么不丈", "out": "Take a list of integers; if empty, use a single zero, then subtract one from each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only odd values, then bump each up by one.", "out": "久丁下"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then eliminate the even numbers, then increment each item.", "out": "久丁下"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only odd values, then bump each up by one.", "out": "久丁下"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then eliminate the even numbers, then increment each item.", "out": "久丁下"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only odd values, then bump each up by one.", "out": "久丁下"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then eliminate the even numbers, then increment each item.", "out": "久丁下"} {"kind": "builder", "in": "久丁下", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "久丁下", "out": "Take a list of integers; keep everything before the first zero, then keep the odd numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then shift each up by ten.", "out": "举丑丽"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then increase all numbers by 10.", "out": "举丑丽"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then add 10 to everything.", "out": "举丑丽"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then give everything a boost of 10.", "out": "举丑丽"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then increment each by ten.", "out": "举丑丽"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then add a constant 10 to each.", "out": "举丑丽"} {"kind": "builder", "in": "举丑丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "举丑丽", "out": "Take a list of integers; drop the zeros, then sort ascending, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort largest to smallest, then find the max, defaulting to 0.", "out": "丕专业"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort by descending values, then Give me the maximum, but 0 if there are no items.", "out": "丕专业"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then sort from highest to lowest, then What's the highest number in the list.", "out": "丕专业"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sort descending, then Return the greatest value or default to 0.", "out": "丕专业"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort largest first, then Find the largest element, defaulting to zero.", "out": "丕专业"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort in descending order, then give the largest value (0 if none).", "out": "丕专业"} {"kind": "builder", "in": "丕专业", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, reverse=True)\n return max(r) if r else 0"} {"kind": "translator", "in": "丕专业", "out": "Take a list of integers; keep only the first three, then sort descending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then make every value non-negative, then truncate to three items.", "out": "世丏丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then absolute value for all items, then show the first three.", "out": "世丏丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take absolute values, then take the first three.", "out": "世丏丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn negatives into positives, then keep first 3.", "out": "世丏丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then abs each element, then truncate to first three.", "out": "世丏丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the absolute value of each, then first three.", "out": "世丏丕"} {"kind": "builder", "in": "世丏丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [abs(x) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "世丏丕", "out": "Take a list of integers; drop the first element, then take the absolute value of each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then cut the list at the first zero, then strip the signs.", "out": "丑久丏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then cut off after the first zero appears, then take abs of each.", "out": "丑久丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take values up to (excluding) the first zero, then get the absolute value of everything.", "out": "丑久丏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the part before the first 0, then apply absolute value to the whole list.", "out": "丑久丏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then truncate at the first zero, then make them all positive.", "out": "丑久丏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then delete everything starting with the first zero, then make every value non-negative.", "out": "丑久丏"} {"kind": "builder", "in": "丑久丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丑久丏", "out": "Take a list of integers; sort ascending, then keep everything before the first zero, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increment each value, then keep only non-zero numbers.", "out": "九下举"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then plus one for all, then strip the zeros.", "out": "九下举"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then increment each value, then keep only non-zero numbers.", "out": "九下举"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then plus one for all, then strip the zeros.", "out": "九下举"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then increment each value, then keep only non-zero numbers.", "out": "九下举"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then plus one for all, then strip the zeros.", "out": "九下举"} {"kind": "builder", "in": "九下举", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 1 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "九下举", "out": "Take a list of people records (name, age); extract the ages, then add one to each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then default to [0] when there is nothing, then multiply each by -1.", "out": "丸么与"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then when the list is empty, substitute a zero value, then negate.", "out": "丸么与"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then replace an empty list with one zero, then multiply each by -1.", "out": "丸么与"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then zero it out if it's empty, then negate.", "out": "丸么与"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then use zero if the list is empty, then multiply each by -1.", "out": "丸么与"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then default to zero when empty, then negate.", "out": "丸么与"} {"kind": "builder", "in": "丸么与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丸么与", "out": "Take a list of integers; sort by absolute value, then if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item, then drop non-positive values.", "out": "与世七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head, then drop the negative numbers.", "out": "与世七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item, then filter out the negative ones.", "out": "与世七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head, then remove all negative values.", "out": "与世七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item, then keep positive values only.", "out": "与世七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head, then keep values above zero.", "out": "与世七"} {"kind": "builder", "in": "与世七", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[1:]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "与世七", "out": "Take a list of integers; negate each, then drop the first element, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest to smallest, then true only if all are positive.", "out": "义专乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by descending values, then do all of these have positive values.", "out": "义专乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from highest to lowest, then check if every value is positive.", "out": "义专乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort descending, then confirm all values are positive.", "out": "义专乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest first, then all positive.", "out": "义专乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort in descending order, then check if every number is above zero.", "out": "义专乌"} {"kind": "builder", "in": "义专乌", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "义专乌", "out": "Take a list of integers; pad with zeros to at least three elements, then sort descending, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove both ends, then drop anything not divisible by three.", "out": "世为串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then trim the edges, then filter out everything except multiples of three.", "out": "世为串"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then trim one element off each end, then keep only multiples of three.", "out": "世为串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off the first and last, then multiples of three only.", "out": "世为串"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the first and last elements, then filter for numbers divisible by three.", "out": "世为串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the middle part, then give me only the values divisible by three.", "out": "世为串"} {"kind": "builder", "in": "世为串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[1:-1]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "世为串", "out": "Take a list of integers; drop the first element, then drop the first and last elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the final 3 elements, then find the min, defaulting to 0.", "out": "久丹丛"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then drop everything except the final three, then minimum value, zero otherwise.", "out": "久丹丛"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then give me the last three elements, then get the minimum value or zero if empty.", "out": "久丹丛"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep only the last three, then give me the min or 0.", "out": "久丹丛"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep the final three items, then return the smallest number, defaulting to 0.", "out": "久丹丛"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the last three, then return smallest or zero if empty.", "out": "久丹丛"} {"kind": "builder", "in": "久丹丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return min(r) if r else 0"} {"kind": "translator", "in": "久丹丛", "out": "Take a list of integers; keep everything before the first zero, then keep only the last three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then skip negatives at the start, then trim one element off each end.", "out": "义乃为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove all negatives at the front, then cut off the first and last.", "out": "义乃为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the initial run of negative numbers, then remove the first and last elements.", "out": "义乃为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then strip the front negatives, then keep only the middle part.", "out": "义乃为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove leading negative numbers, then drop first and last.", "out": "义乃为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop negatives from start, then eliminate the outermost elements.", "out": "义乃为"} {"kind": "builder", "in": "义乃为", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "义乃为", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the leading negative values, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the leading run of positive numbers, then deduplicate the list.", "out": "丘乂且"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take values while they are positive, then remove repeats.", "out": "丘乂且"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take positive values then stop, then deduplicate the list.", "out": "丘乂且"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep going while positive, then remove repeats.", "out": "丘乂且"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then stop at first non positive, then deduplicate the list.", "out": "丘乂且"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take while greater than zero, then remove repeats.", "out": "丘乂且"} {"kind": "builder", "in": "丘乂且", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丘乂且", "out": "Take a list of integers; cap each value at 10, then take values while they are positive, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then clamp each to at most ten, then shift each up by ten.", "out": "乃丘丽"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then don't let anything exceed 10, then increase all numbers by 10.", "out": "乃丘丽"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then clamp each to at most ten, then add 10 to everything.", "out": "乃丘丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then don't let anything exceed 10, then give everything a boost of 10.", "out": "乃丘丽"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then clamp each to at most ten, then increment each by ten.", "out": "乃丘丽"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then don't let anything exceed 10, then add a constant 10 to each.", "out": "乃丘丽"} {"kind": "builder", "in": "乃丘丽", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乃丘丽", "out": "Take a list of integers; drop the leading negative values, then cap each value at 10, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then true if any value equals zero.", "out": "丸丈乍"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then check for zero.", "out": "丸丈乍"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then true if any value equals zero.", "out": "丸丈乍"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then check for zero.", "out": "丸丈乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then true if any value equals zero.", "out": "丸丈乍"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then check for zero.", "out": "丸丈乍"} {"kind": "builder", "in": "丸丈乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n return 0 in r"} {"kind": "translator", "in": "丸丈乍", "out": "Take a list of integers; sort by absolute value, then double each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the list around, then count the elements.", "out": "丁丐东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then flip the order around, then how many items remain.", "out": "丁丐东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then put the elements backwards, then tell me the length.", "out": "丁丐东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then reverse that for me, then return the length.", "out": "丁丐东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip it backwards, then count them.", "out": "丁丐东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then make it backwards, then what's the count.", "out": "丁丐东"} {"kind": "builder", "in": "丁丐东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return len(r)"} {"kind": "translator", "in": "丁丐东", "out": "Take a list of integers; keep the odd numbers, then reverse the order, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then give back the product of all values.", "out": "主乂乐"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then product of the list.", "out": "主乂乐"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then what's the product.", "out": "主乂乐"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then what do they multiply to.", "out": "主乂乐"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then give me their product.", "out": "主乂乐"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then multiply them all together.", "out": "主乂乐"} {"kind": "builder", "in": "主乂乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "主乂乐", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then return their product."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten, then reduce each by one.", "out": "丽丘不"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10, then Subtract 1 from all.", "out": "丽丘不"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten, then Subtract one from each.", "out": "丽丘不"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10, then Drop each by one.", "out": "丽丘不"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten, then Decrease all values by one.", "out": "丽丘不"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10, then Remove one from each value.", "out": "丽丘不"} {"kind": "builder", "in": "丽丘不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丽丘不", "out": "Take a list of integers; add ten to each, then cap each value at 10, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only odd values, then true only if all are positive.", "out": "不丁乌"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then eliminate the even numbers, then do all of these have positive values.", "out": "不丁乌"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only odd values, then check if every value is positive.", "out": "不丁乌"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then eliminate the even numbers, then confirm all values are positive.", "out": "不丁乌"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only odd values, then all positive.", "out": "不丁乌"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then eliminate the even numbers, then check if every number is above zero.", "out": "不丁乌"} {"kind": "builder", "in": "不丁乌", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "不丁乌", "out": "Take a list of integers; subtract one from each, then keep the odd numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then arrange by magnitude ignoring sign.", "out": "串主丸"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then put them in order by magnitude.", "out": "串主丸"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then arrange in order of absolute value.", "out": "串主丸"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then sort by distance from zero.", "out": "串主丸"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then order by how far from zero.", "out": "串主丸"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then order by distance from zero.", "out": "串主丸"} {"kind": "builder", "in": "串主丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "串主丸", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort smallest to largest, then drop anything not divisible by three.", "out": "丸丑串"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Ascending sort, then filter out everything except multiples of three.", "out": "丸丑串"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then Sort this ascending, then keep only multiples of three.", "out": "丸丑串"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Sort lowest to highest, then multiples of three only.", "out": "丸丑串"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Arrange from smallest to largest, then filter for numbers divisible by three.", "out": "丸丑串"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort ascending, then give me only the values divisible by three.", "out": "丸丑串"} {"kind": "builder", "in": "丸丑串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丸丑串", "out": "Take a list of integers; sort by absolute value, then sort ascending, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers, then true if already sorted smallest to largest.", "out": "且乂乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive, then does this list go in ascending order.", "out": "且乂乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop, then check if the list is in ascending order.", "out": "且乂乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive, then is the list sorted.", "out": "且乂乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive, then is it sorted.", "out": "且乂乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero, then check if values are in increasing order.", "out": "且乂乎"} {"kind": "builder", "in": "且乂乎", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r == sorted(r)"} {"kind": "translator", "in": "且乂乎", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then skip the first one.", "out": "串丐世"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then Discard the first element.", "out": "串丐世"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then skip the first one.", "out": "串丐世"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then Discard the first element.", "out": "串丐世"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then skip the first one.", "out": "串丐世"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then Discard the first element.", "out": "串丐世"} {"kind": "builder", "in": "串丐世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n r = r[1:]\n return r"} {"kind": "translator", "in": "串丐世", "out": "Take a list of integers; keep multiples of three, then reverse the order, then drop the first element."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then take each string's first letter, then find the longest one, defaulting to empty.", "out": "乘丨丰"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then give me the first letter of everything, then Longest string, or nothing if there isn't one.", "out": "乘丨丰"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then reduce each string to its first character, then find the longest one, defaulting to empty.", "out": "乘丨丰"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then take first char drop blanks, then Longest string, or nothing if there isn't one.", "out": "乘丨丰"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then keep first letters only, then find the longest one, defaulting to empty.", "out": "乘丨丰"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then first letter from each item that isn't empty, then Longest string, or nothing if there isn't one.", "out": "乘丨丰"} {"kind": "builder", "in": "乘丨丰", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s[0] for s in r if s]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "乘丨丰", "out": "Take a list of strings; prefix each with a hash, then keep the first character of each (dropping empties), then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove all zero values, then truncate to three items.", "out": "久举丕"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then exclude zeros, then show the first three.", "out": "久举丕"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove all zero values, then take the first three.", "out": "久举丕"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then exclude zeros, then keep first 3.", "out": "久举丕"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove all zero values, then truncate to first three.", "out": "久举丕"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then exclude zeros, then first three.", "out": "久举丕"} {"kind": "builder", "in": "久举丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "久举丕", "out": "Take a list of integers; keep everything before the first zero, then drop the zeros, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values divisible by 3, then true only if all are positive.", "out": "万串乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep items where x mod 3 equals zero, then do all of these have positive values.", "out": "万串乌"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then drop anything not divisible by three, then check if every value is positive.", "out": "万串乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter out everything except multiples of three, then confirm all values are positive.", "out": "万串乌"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only multiples of three, then all positive.", "out": "万串乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiples of three only, then check if every number is above zero.", "out": "万串乌"} {"kind": "builder", "in": "万串乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 3 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "万串乌", "out": "Take a list of integers; keep the negative numbers, then keep multiples of three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort smallest to largest, then true if any value equals zero.", "out": "么丑乍"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Ascending sort, then check for zero.", "out": "么丑乍"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then Sort this ascending, then true if any value equals zero.", "out": "么丑乍"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Sort lowest to highest, then check for zero.", "out": "么丑乍"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Arrange from smallest to largest, then true if any value equals zero.", "out": "么丑乍"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort ascending, then check for zero.", "out": "么丑乍"} {"kind": "builder", "in": "么丑乍", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r)\n return 0 in r"} {"kind": "translator", "in": "么丑乍", "out": "Take a list of integers; if empty, use a single zero, then sort ascending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then extend to length 3 using zeros, then trim one element off each end.", "out": "丑义为"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then pad to 3, then cut off the first and last.", "out": "丑义为"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then extend to length 3 using zeros, then remove the first and last elements.", "out": "丑义为"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then pad to 3, then keep only the middle part.", "out": "丑义为"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then extend to length 3 using zeros, then drop first and last.", "out": "丑义为"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then pad to 3, then eliminate the outermost elements.", "out": "丑义为"} {"kind": "builder", "in": "丑义为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丑义为", "out": "Take a list of integers; sort ascending, then pad with zeros to at least three elements, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then drop non-negative values.", "out": "丁举万"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then drop all positive numbers.", "out": "丁举万"} {"kind": "builder", "in": "丁举万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丁举万", "out": "Take a list of integers; keep the odd numbers, then drop the zeros, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then decrement each value, then count the elements.", "out": "七不东"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Lower each number by one, then how many items remain.", "out": "七不东"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then reduce each by one, then tell me the length.", "out": "七不东"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Subtract 1 from all, then return the length.", "out": "七不东"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Subtract one from each, then count them.", "out": "七不东"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Drop each by one, then what's the count.", "out": "七不东"} {"kind": "builder", "in": "七不东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x - 1 for x in r]\n return len(r)"} {"kind": "translator", "in": "七不东", "out": "Take a list of integers; keep the positive numbers, then subtract one from each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then arrange by magnitude ignoring sign.", "out": "一世丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then put them in order by magnitude.", "out": "一世丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then arrange in order of absolute value.", "out": "一世丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then sort by distance from zero.", "out": "一世丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then order by how far from zero.", "out": "一世丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then order by distance from zero.", "out": "一世丸"} {"kind": "builder", "in": "一世丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "一世丸", "out": "Take a list of integers; keep the even numbers, then drop the first element, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; square each, then flip the list around, then truncate to the last three items.", "out": "上丐丹"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then flip the order around, then show only the last three.", "out": "上丐丹"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then put the elements backwards, then remove all but the last three.", "out": "上丐丹"} {"kind": "speaker", "in": "Take a list of integers; square them all, then reverse that for me, then take the final 3 elements.", "out": "上丐丹"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then flip it backwards, then drop everything except the final three.", "out": "上丐丹"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then make it backwards, then give me the last three elements.", "out": "上丐丹"} {"kind": "builder", "in": "上丐丹", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(reversed(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "上丐丹", "out": "Take a list of integers; square each, then reverse the order, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then drop anything 5 or below, then strip the signs.", "out": "乃主丏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep only numbers greater than 5, then take abs of each.", "out": "乃主丏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then filter for numbers above 5, then get the absolute value of everything.", "out": "乃主丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then give me values where x is greater than 5, then apply absolute value to the whole list.", "out": "乃主丏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then show me only the values that are bigger than five, then make them all positive.", "out": "乃主丏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep values greater than five, then make every value non-negative.", "out": "乃主丏"} {"kind": "builder", "in": "乃主丏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "乃主丏", "out": "Take a list of integers; drop the leading negative values, then keep values greater than five, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only even values, then shift each up by ten.", "out": "乃一丽"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then extract all even numbers, then increase all numbers by 10.", "out": "乃一丽"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only even values, then add 10 to everything.", "out": "乃一丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then extract all even numbers, then give everything a boost of 10.", "out": "乃一丽"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only even values, then increment each by ten.", "out": "乃一丽"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then extract all even numbers, then add a constant 10 to each.", "out": "乃一丽"} {"kind": "builder", "in": "乃一丽", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乃一丽", "out": "Take a list of integers; drop the leading negative values, then keep the even numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then drop non-negative values.", "out": "丈丘万"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then drop all positive numbers.", "out": "丈丘万"} {"kind": "builder", "in": "丈丘万", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丈丘万", "out": "Take a list of integers; double each, then cap each value at 10, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values divisible by 3, then give back the product of all values.", "out": "为串乐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then keep items where x mod 3 equals zero, then product of the list.", "out": "为串乐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then drop anything not divisible by three, then what's the product.", "out": "为串乐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then filter out everything except multiples of three, then what do they multiply to.", "out": "为串乐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only multiples of three, then give me their product.", "out": "为串乐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiples of three only, then multiply them all together.", "out": "为串乐"} {"kind": "builder", "in": "为串乐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 3 == 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "为串乐", "out": "Take a list of integers; drop the first and last elements, then keep multiples of three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values, then replace an empty list with one zero.", "out": "一且么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order, then zero it out if it's empty.", "out": "一且么"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values, then use zero if the list is empty.", "out": "一且么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order, then default to zero when empty.", "out": "一且么"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values, then if there's nothing, put in a zero.", "out": "一且么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order, then if no items, add a zero.", "out": "一且么"} {"kind": "builder", "in": "一且么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(dict.fromkeys(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "一且么", "out": "Take a list of integers; keep the even numbers, then drop duplicates keeping first occurrence, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then default to [0] when there is nothing, then put the elements backwards.", "out": "丕么丐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then when the list is empty, substitute a zero value, then reverse that for me.", "out": "丕么丐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then replace an empty list with one zero, then flip it backwards.", "out": "丕么丐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then zero it out if it's empty, then make it backwards.", "out": "丕么丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then use zero if the list is empty, then reverse the list.", "out": "丕么丐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then default to zero when empty, then invert the sequence.", "out": "丕么丐"} {"kind": "builder", "in": "丕么丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r if r else [0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丕么丐", "out": "Take a list of integers; keep only the first three, then if empty, use a single zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep the leading run of positive numbers, then keep only non-zero numbers.", "out": "丏乂举"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then take values while they are positive, then strip the zeros.", "out": "丏乂举"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take positive values then stop, then keep only non-zero numbers.", "out": "丏乂举"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep going while positive, then strip the zeros.", "out": "丏乂举"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then stop at first non positive, then keep only non-zero numbers.", "out": "丏乂举"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take while greater than zero, then strip the zeros.", "out": "丏乂举"} {"kind": "builder", "in": "丏乂举", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丏乂举", "out": "Take a list of integers; take the absolute value of each, then take values while they are positive, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest to smallest, then strip the signs.", "out": "世专丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by descending values, then take abs of each.", "out": "世专丏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from highest to lowest, then get the absolute value of everything.", "out": "世专丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort descending, then apply absolute value to the whole list.", "out": "世专丏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest first, then make them all positive.", "out": "世专丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort in descending order, then make every value non-negative.", "out": "世专丏"} {"kind": "builder", "in": "世专丏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "世专丏", "out": "Take a list of integers; drop the first element, then sort descending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the list around, then true only if all are positive.", "out": "乃丐乌"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then flip the order around, then do all of these have positive values.", "out": "乃丐乌"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then put the elements backwards, then check if every value is positive.", "out": "乃丐乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then reverse that for me, then confirm all values are positive.", "out": "乃丐乌"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip it backwards, then all positive.", "out": "乃丐乌"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then make it backwards, then check if every number is above zero.", "out": "乃丐乌"} {"kind": "builder", "in": "乃丐乌", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乃丐乌", "out": "Take a list of integers; drop the leading negative values, then reverse the order, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then reduce each by one.", "out": "世且不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then Subtract 1 from all.", "out": "世且不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then Subtract one from each.", "out": "世且不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then Drop each by one.", "out": "世且不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then Decrease all values by one.", "out": "世且不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then Remove one from each value.", "out": "世且不"} {"kind": "builder", "in": "世且不", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "世且不", "out": "Take a list of integers; drop the first element, then drop duplicates keeping first occurrence, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the leading run of positive numbers, then true only if all are positive.", "out": "下乂乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take values while they are positive, then do all of these have positive values.", "out": "下乂乌"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take positive values then stop, then check if every value is positive.", "out": "下乂乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep going while positive, then confirm all values are positive.", "out": "下乂乌"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then stop at first non positive, then all positive.", "out": "下乂乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take while greater than zero, then check if every number is above zero.", "out": "下乂乌"} {"kind": "builder", "in": "下乂乌", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "下乂乌", "out": "Take a list of integers; add one to each, then take values while they are positive, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increase every value by 10, then keep only numbers above 5.", "out": "乃丽主"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then add 10 to each item, then exclude values of 5 and below.", "out": "乃丽主"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then shift each up by ten, then remove anything 5 or less.", "out": "乃丽主"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then increase all numbers by 10, then filter to keep only values above 5.", "out": "乃丽主"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "乃丽主"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then give everything a boost of 10, then drop anything 5 or below.", "out": "乃丽主"} {"kind": "builder", "in": "乃丽主", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乃丽主", "out": "Take a list of integers; drop the leading negative values, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove all zero values, then replace an empty list with one zero.", "out": "丽举么"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then exclude zeros, then zero it out if it's empty.", "out": "丽举么"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove all zero values, then use zero if the list is empty.", "out": "丽举么"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then exclude zeros, then default to zero when empty.", "out": "丽举么"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove all zero values, then if there's nothing, put in a zero.", "out": "丽举么"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then exclude zeros, then if no items, add a zero.", "out": "丽举么"} {"kind": "builder", "in": "丽举么", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丽举么", "out": "Take a list of integers; add ten to each, then drop the zeros, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values below zero, then multiply each by -1.", "out": "且万与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then get the negative numbers, then negate.", "out": "且万与"} {"kind": "builder", "in": "且万与", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "且万与", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the negative numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then cut the list at the first zero, then truncate to the last three items.", "out": "丘久丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off after the first zero appears, then show only the last three.", "out": "丘久丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take values up to (excluding) the first zero, then remove all but the last three.", "out": "丘久丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the part before the first 0, then take the final 3 elements.", "out": "丘久丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate at the first zero, then drop everything except the final three.", "out": "丘久丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then delete everything starting with the first zero, then give me the last three elements.", "out": "丘久丹"} {"kind": "builder", "in": "丘久丹", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丘久丹", "out": "Take a list of integers; cap each value at 10, then keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything 5 or below, then remove the initial run of negative numbers.", "out": "义主乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only numbers greater than 5, then strip the front negatives.", "out": "义主乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then filter for numbers above 5, then remove leading negative numbers.", "out": "义主乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give me values where x is greater than 5, then drop negatives from start.", "out": "义主乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then show me only the values that are bigger than five, then strip negative values from the start.", "out": "义主乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep values greater than five, then remove negatives before the first non-negative.", "out": "义主乃"} {"kind": "builder", "in": "义主乃", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "义主乃", "out": "Take a list of integers; pad with zeros to at least three elements, then keep values greater than five, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then order by distance from zero, then truncate to three items.", "out": "七丸丕"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort based on absolute value, then show the first three.", "out": "七丸丕"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then organize by magnitude, then take the first three.", "out": "七丸丕"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then arrange by absolute value ascending, then keep first 3.", "out": "七丸丕"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort from smallest to largest absolute value, then truncate to first three.", "out": "七丸丕"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort by absolute value, then first three.", "out": "七丸丕"} {"kind": "builder", "in": "七丸丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n r = r[:3]\n return r"} {"kind": "translator", "in": "七丸丕", "out": "Take a list of integers; keep the positive numbers, then sort by absolute value, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increase every value by 10, then drop anything not divisible by three.", "out": "丑丽串"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then add 10 to each item, then filter out everything except multiples of three.", "out": "丑丽串"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then shift each up by ten, then keep only multiples of three.", "out": "丑丽串"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then increase all numbers by 10, then multiples of three only.", "out": "丑丽串"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then add 10 to everything, then filter for numbers divisible by three.", "out": "丑丽串"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then give everything a boost of 10, then give me only the values divisible by three.", "out": "丑丽串"} {"kind": "builder", "in": "丑丽串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丑丽串", "out": "Take a list of integers; sort ascending, then add ten to each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each value by itself, then truncate to three items.", "out": "与上丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then square them all, then show the first three.", "out": "与上丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then raise each to the power of two, then take the first three.", "out": "与上丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then I need each number multiplied by itself, then keep first 3.", "out": "与上丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then square all of them, then truncate to first three.", "out": "与上丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiply each element by itself, then first three.", "out": "与上丕"} {"kind": "builder", "in": "与上丕", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "与上丕", "out": "Take a list of integers; negate each, then square each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep only odd values, then put the elements backwards.", "out": "主丁丐"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then eliminate the even numbers, then reverse that for me.", "out": "主丁丐"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only odd values, then flip it backwards.", "out": "主丁丐"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then eliminate the even numbers, then make it backwards.", "out": "主丁丐"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only odd values, then reverse the list.", "out": "主丁丐"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then eliminate the even numbers, then invert the sequence.", "out": "主丁丐"} {"kind": "builder", "in": "主丁丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "主丁丐", "out": "Take a list of integers; keep values greater than five, then keep the odd numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then decrement each value, then strip the signs.", "out": "主不丏"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Lower each number by one, then take abs of each.", "out": "主不丏"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then reduce each by one, then get the absolute value of everything.", "out": "主不丏"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Subtract 1 from all, then apply absolute value to the whole list.", "out": "主不丏"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Subtract one from each, then make them all positive.", "out": "主不丏"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Drop each by one, then make every value non-negative.", "out": "主不丏"} {"kind": "builder", "in": "主不丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "主不丏", "out": "Take a list of integers; keep values greater than five, then subtract one from each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only even values, then put the elements backwards.", "out": "七一丐"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then extract all even numbers, then reverse that for me.", "out": "七一丐"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only even values, then flip it backwards.", "out": "七一丐"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then extract all even numbers, then make it backwards.", "out": "七一丐"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only even values, then reverse the list.", "out": "七一丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then extract all even numbers, then invert the sequence.", "out": "七一丐"} {"kind": "builder", "in": "七一丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 == 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "七一丐", "out": "Take a list of integers; keep the positive numbers, then keep the even numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then cut the list at the first zero, then give back the product of all values.", "out": "串久乐"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then cut off after the first zero appears, then product of the list.", "out": "串久乐"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take values up to (excluding) the first zero, then what's the product.", "out": "串久乐"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the part before the first 0, then what do they multiply to.", "out": "串久乐"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then truncate at the first zero, then give me their product.", "out": "串久乐"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then delete everything starting with the first zero, then multiply them all together.", "out": "串久乐"} {"kind": "builder", "in": "串久乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "串久乐", "out": "Take a list of integers; keep multiples of three, then keep everything before the first zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the list around, then give back the product of all values.", "out": "久丐乐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then flip the order around, then product of the list.", "out": "久丐乐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then put the elements backwards, then what's the product.", "out": "久丐乐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then reverse that for me, then what do they multiply to.", "out": "久丐乐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip it backwards, then give me their product.", "out": "久丐乐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then make it backwards, then multiply them all together.", "out": "久丐乐"} {"kind": "builder", "in": "久丐乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return __import__('math').prod(r)"} {"kind": "translator", "in": "久丐乐", "out": "Take a list of integers; keep everything before the first zero, then reverse the order, then return their product."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort largest to smallest, then give the number of evens.", "out": "丐专乓"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort by descending values, then find how many values are divisible by two.", "out": "丐专乓"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then sort from highest to lowest, then how many are even.", "out": "丐专乓"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then sort descending, then get the total number of even values in the list.", "out": "丐专乓"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort largest first, then give me the count of even values.", "out": "丐专乓"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort in descending order, then I need to know how many of these are even.", "out": "丐专乓"} {"kind": "builder", "in": "丐专乓", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, reverse=True)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丐专乓", "out": "Take a list of integers; reverse the order, then sort descending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then give the number of evens.", "out": "义下乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then find how many values are divisible by two.", "out": "义下乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then how many are even.", "out": "义下乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then get the total number of even values in the list.", "out": "义下乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then give me the count of even values.", "out": "义下乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then I need to know how many of these are even.", "out": "义下乓"} {"kind": "builder", "in": "义下乓", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "义下乓", "out": "Take a list of integers; pad with zeros to at least three elements, then add one to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then skip negatives at the start, then find the max, defaulting to 0.", "out": "串乃业"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then remove all negatives at the front, then Give me the maximum, but 0 if there are no items.", "out": "串乃业"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove the initial run of negative numbers, then What's the highest number in the list.", "out": "串乃业"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then strip the front negatives, then Return the greatest value or default to 0.", "out": "串乃业"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove leading negative numbers, then Find the largest element, defaulting to zero.", "out": "串乃业"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then drop negatives from start, then give the largest value (0 if none).", "out": "串乃业"} {"kind": "builder", "in": "串乃业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return max(r) if r else 0"} {"kind": "translator", "in": "串乃业", "out": "Take a list of integers; keep multiples of three, then drop the leading negative values, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then default to [0] when there is nothing, then find the min, defaulting to 0.", "out": "丹么丛"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then when the list is empty, substitute a zero value, then minimum value, zero otherwise.", "out": "丹么丛"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then replace an empty list with one zero, then get the minimum value or zero if empty.", "out": "丹么丛"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then zero it out if it's empty, then give me the min or 0.", "out": "丹么丛"} {"kind": "speaker", "in": "Take a list of integers; last three only, then use zero if the list is empty, then return the smallest number, defaulting to 0.", "out": "丹么丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then default to zero when empty, then return smallest or zero if empty.", "out": "丹么丛"} {"kind": "builder", "in": "丹么丛", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r if r else [0]\n return min(r) if r else 0"} {"kind": "translator", "in": "丹么丛", "out": "Take a list of integers; keep only the last three, then if empty, use a single zero, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep values above zero, then arrange by magnitude ignoring sign.", "out": "丕七丸"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then filter for positive numbers, then put them in order by magnitude.", "out": "丕七丸"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only positive numbers, then arrange in order of absolute value.", "out": "丕七丸"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep the positives, then sort by distance from zero.", "out": "丕七丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove negatives, then order by how far from zero.", "out": "丕七丸"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep the positive numbers, then order by distance from zero.", "out": "丕七丸"} {"kind": "builder", "in": "丕七丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丕七丸", "out": "Take a list of integers; keep only the first three, then keep the positive numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the final 3 elements, then make each twice as big.", "out": "世丹丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop everything except the final three, then multiply each by 2.", "out": "世丹丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then give me the last three elements, then make each twice as big.", "out": "世丹丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the last three, then multiply each by 2.", "out": "世丹丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the final three items, then make each twice as big.", "out": "世丹丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the last three, then multiply each by 2.", "out": "世丹丈"} {"kind": "builder", "in": "世丹丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[-3:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "世丹丈", "out": "Take a list of integers; drop the first element, then keep only the last three, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the first 3 elements, then drop non-negative values.", "out": "且丕万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then remove everything after the third, then drop all positive numbers.", "out": "且丕万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate to three items, then drop non-negative values.", "out": "且丕万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then show the first three, then drop all positive numbers.", "out": "且丕万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the first three, then drop non-negative values.", "out": "且丕万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep first 3, then drop all positive numbers.", "out": "且丕万"} {"kind": "builder", "in": "且丕万", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:3]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "且丕万", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep only the first three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the list around, then multiply each by -1.", "out": "丸丐与"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then flip the order around, then negate.", "out": "丸丐与"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then put the elements backwards, then multiply each by -1.", "out": "丸丐与"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then reverse that for me, then negate.", "out": "丸丐与"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip it backwards, then multiply each by -1.", "out": "丸丐与"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then make it backwards, then negate.", "out": "丸丐与"} {"kind": "builder", "in": "丸丐与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(reversed(r))\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丸丐与", "out": "Take a list of integers; sort by absolute value, then reverse the order, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then default to [0] when there is nothing, then true if any value equals zero.", "out": "乃么乍"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then when the list is empty, substitute a zero value, then check for zero.", "out": "乃么乍"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then replace an empty list with one zero, then true if any value equals zero.", "out": "乃么乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then zero it out if it's empty, then check for zero.", "out": "乃么乍"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then use zero if the list is empty, then true if any value equals zero.", "out": "乃么乍"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then default to zero when empty, then check for zero.", "out": "乃么乍"} {"kind": "builder", "in": "乃么乍", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n return 0 in r"} {"kind": "translator", "in": "乃么乍", "out": "Take a list of integers; drop the leading negative values, then if empty, use a single zero, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the list around, then remove the initial run of negative numbers.", "out": "义丐乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then flip the order around, then strip the front negatives.", "out": "义丐乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then put the elements backwards, then remove leading negative numbers.", "out": "义丐乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then reverse that for me, then drop negatives from start.", "out": "义丐乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip it backwards, then strip negative values from the start.", "out": "义丐乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then make it backwards, then remove negatives before the first non-negative.", "out": "义丐乃"} {"kind": "builder", "in": "义丐乃", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "义丐乃", "out": "Take a list of integers; pad with zeros to at least three elements, then reverse the order, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; negate each, then decrement each value, then ensure at least three items by appending zeros.", "out": "与不义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Lower each number by one, then ensure minimum length of three by adding zeros to the end.", "out": "与不义"} {"kind": "speaker", "in": "Take a list of integers; negate each, then reduce each by one, then ensure at least three items by appending zeros.", "out": "与不义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Subtract 1 from all, then ensure minimum length of three by adding zeros to the end.", "out": "与不义"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Subtract one from each, then ensure at least three items by appending zeros.", "out": "与不义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Drop each by one, then ensure minimum length of three by adding zeros to the end.", "out": "与不义"} {"kind": "builder", "in": "与不义", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "与不义", "out": "Take a list of integers; negate each, then subtract one from each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then convert each to upper case, then prepend a hash mark to each.", "out": "两丟乘"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then change all strings to uppercase, then prefix all with #.", "out": "两丟乘"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then make every string uppercase, then prepend a hash mark to each.", "out": "两丟乘"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then uppercase each one, then prefix all with #.", "out": "两丟乘"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then make all the strings uppercase, then prepend a hash mark to each.", "out": "两丟乘"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then convert all strings to uppercase letters, then prefix all with #.", "out": "两丟乘"} {"kind": "builder", "in": "两丟乘", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.upper() for s in r]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "两丟乘", "out": "Take a list of strings; drop empty strings, then uppercase each string, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increment each value, then keep only non-zero numbers.", "out": "世下举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then plus one for all, then strip the zeros.", "out": "世下举"} {"kind": "builder", "in": "世下举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 1 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "世下举", "out": "Take a list of integers; drop the first element, then add one to each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove both ends, then keep only numbers above 5.", "out": "一为主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then trim the edges, then exclude values of 5 and below.", "out": "一为主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then trim one element off each end, then remove anything 5 or less.", "out": "一为主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off the first and last, then filter to keep only values above 5.", "out": "一为主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first and last elements, then get rid of values that aren't greater than five.", "out": "一为主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the middle part, then drop anything 5 or below.", "out": "一为主"} {"kind": "builder", "in": "一为主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "一为主", "out": "Take a list of integers; keep the even numbers, then drop the first and last elements, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; square each, then extend to length 3 using zeros, then arrange by magnitude ignoring sign.", "out": "上义丸"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then pad to 3, then put them in order by magnitude.", "out": "上义丸"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then extend to length 3 using zeros, then arrange in order of absolute value.", "out": "上义丸"} {"kind": "speaker", "in": "Take a list of integers; square them all, then pad to 3, then sort by distance from zero.", "out": "上义丸"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then extend to length 3 using zeros, then order by how far from zero.", "out": "上义丸"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then pad to 3, then order by distance from zero.", "out": "上义丸"} {"kind": "builder", "in": "上义丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "上义丸", "out": "Take a list of integers; square each, then pad with zeros to at least three elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort largest to smallest, then skip the first one.", "out": "么专世"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then sort by descending values, then Discard the first element.", "out": "么专世"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then sort from highest to lowest, then skip the first one.", "out": "么专世"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then sort descending, then Discard the first element.", "out": "么专世"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then sort largest first, then skip the first one.", "out": "么专世"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort in descending order, then Discard the first element.", "out": "么专世"} {"kind": "builder", "in": "么专世", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r, reverse=True)\n r = r[1:]\n return r"} {"kind": "translator", "in": "么专世", "out": "Take a list of integers; if empty, use a single zero, then sort descending, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the final 3 elements, then limit every value to 10.", "out": "七丹丘"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then drop everything except the final three, then maximum of 10 for all.", "out": "七丹丘"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then give me the last three elements, then limit every value to 10.", "out": "七丹丘"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep only the last three, then maximum of 10 for all.", "out": "七丹丘"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep the final three items, then limit every value to 10.", "out": "七丹丘"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the last three, then maximum of 10 for all.", "out": "七丹丘"} {"kind": "builder", "in": "七丹丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[-3:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "七丹丘", "out": "Take a list of integers; keep the positive numbers, then keep only the last three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then true if every value is unique.", "out": "丹丽乏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then check for duplicates in the values.", "out": "丹丽乏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then do all values appear only once.", "out": "丹丽乏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then check that there are no duplicates.", "out": "丹丽乏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then are the values all unique.", "out": "丹丽乏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then check if all values are unique.", "out": "丹丽乏"} {"kind": "builder", "in": "丹丽乏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丹丽乏", "out": "Take a list of integers; keep only the last three, then add ten to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort smallest to largest, then arrange by magnitude ignoring sign.", "out": "一丑丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Ascending sort, then put them in order by magnitude.", "out": "一丑丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Sort this ascending, then arrange in order of absolute value.", "out": "一丑丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Sort lowest to highest, then sort by distance from zero.", "out": "一丑丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Arrange from smallest to largest, then order by how far from zero.", "out": "一丑丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort ascending, then order by distance from zero.", "out": "一丑丸"} {"kind": "builder", "in": "一丑丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "一丑丸", "out": "Take a list of integers; keep the even numbers, then sort ascending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then skip negatives at the start, then deduplicate the list.", "out": "丁乃且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove all negatives at the front, then remove repeats.", "out": "丁乃且"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the initial run of negative numbers, then deduplicate the list.", "out": "丁乃且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then strip the front negatives, then remove repeats.", "out": "丁乃且"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove leading negative numbers, then deduplicate the list.", "out": "丁乃且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop negatives from start, then remove repeats.", "out": "丁乃且"} {"kind": "builder", "in": "丁乃且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丁乃且", "out": "Take a list of integers; keep the odd numbers, then drop the leading negative values, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the final 3 elements, then put the elements backwards.", "out": "不丹丐"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then drop everything except the final three, then reverse that for me.", "out": "不丹丐"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give me the last three elements, then flip it backwards.", "out": "不丹丐"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep only the last three, then make it backwards.", "out": "不丹丐"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep the final three items, then reverse the list.", "out": "不丹丐"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the last three, then invert the sequence.", "out": "不丹丐"} {"kind": "builder", "in": "不丹丐", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[-3:]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "不丹丐", "out": "Take a list of integers; subtract one from each, then keep only the last three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then take the first 3 elements, then stop at the first non-positive value.", "out": "专丕乂"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove everything after the third, then keep the leading run of positive numbers.", "out": "专丕乂"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then truncate to three items, then take values while they are positive.", "out": "专丕乂"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then show the first three, then take positive values then stop.", "out": "专丕乂"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then take the first three, then keep going while positive.", "out": "专丕乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then keep first 3, then stop at first non positive.", "out": "专丕乂"} {"kind": "builder", "in": "专丕乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "专丕乂", "out": "Take a list of integers; sort descending, then keep only the first three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increase every value by 10, then remove the initial run of negative numbers.", "out": "不丽乃"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then add 10 to each item, then strip the front negatives.", "out": "不丽乃"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then shift each up by ten, then remove leading negative numbers.", "out": "不丽乃"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then increase all numbers by 10, then drop negatives from start.", "out": "不丽乃"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then add 10 to everything, then strip negative values from the start.", "out": "不丽乃"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then give everything a boost of 10, then remove negatives before the first non-negative.", "out": "不丽乃"} {"kind": "builder", "in": "不丽乃", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "不丽乃", "out": "Take a list of integers; subtract one from each, then add ten to each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first 3 elements, then deduplicate the list.", "out": "世丕且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove everything after the third, then remove repeats.", "out": "世丕且"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate to three items, then deduplicate the list.", "out": "世丕且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then show the first three, then remove repeats.", "out": "世丕且"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first three, then deduplicate the list.", "out": "世丕且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep first 3, then remove repeats.", "out": "世丕且"} {"kind": "builder", "in": "世丕且", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:3]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "世丕且", "out": "Take a list of integers; drop the first element, then keep only the first three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the final 3 elements, then give back the product of all values.", "out": "且丹乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then drop everything except the final three, then product of the list.", "out": "且丹乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then give me the last three elements, then what's the product.", "out": "且丹乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the last three, then what do they multiply to.", "out": "且丹乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the final three items, then give me their product.", "out": "且丹乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the last three, then multiply them all together.", "out": "且丹乐"} {"kind": "builder", "in": "且丹乐", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "且丹乐", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero, then drop the odd numbers.", "out": "不七一"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers, then filter out the odd numbers.", "out": "不七一"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers, then drop the odd numbers.", "out": "不七一"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives, then filter out the odd numbers.", "out": "不七一"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives, then drop the odd numbers.", "out": "不七一"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers, then filter out the odd numbers.", "out": "不七一"} {"kind": "builder", "in": "不七一", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "不七一", "out": "Take a list of integers; subtract one from each, then keep the positive numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values divisible by 3, then give the number of evens.", "out": "下串乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "下串乓"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything not divisible by three, then how many are even.", "out": "下串乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter out everything except multiples of three, then get the total number of even values in the list.", "out": "下串乓"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only multiples of three, then give me the count of even values.", "out": "下串乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiples of three only, then I need to know how many of these are even.", "out": "下串乓"} {"kind": "builder", "in": "下串乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "下串乓", "out": "Take a list of integers; add one to each, then keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then keep only non-zero numbers.", "out": "七丘举"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then strip the zeros.", "out": "七丘举"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then keep only non-zero numbers.", "out": "七丘举"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then strip the zeros.", "out": "七丘举"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then keep only non-zero numbers.", "out": "七丘举"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then strip the zeros.", "out": "七丘举"} {"kind": "builder", "in": "七丘举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "七丘举", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort largest to smallest, then true if any value equals zero.", "out": "么专乍"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then sort by descending values, then check for zero.", "out": "么专乍"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then sort from highest to lowest, then true if any value equals zero.", "out": "么专乍"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then sort descending, then check for zero.", "out": "么专乍"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then sort largest first, then true if any value equals zero.", "out": "么专乍"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort in descending order, then check for zero.", "out": "么专乍"} {"kind": "builder", "in": "么专乍", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r, reverse=True)\n return 0 in r"} {"kind": "translator", "in": "么专乍", "out": "Take a list of integers; if empty, use a single zero, then sort descending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the sign of each, then drop the odd numbers.", "out": "不与一"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "不与一"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then flip the sign of each, then drop the odd numbers.", "out": "不与一"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "不与一"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip the sign of each, then drop the odd numbers.", "out": "不与一"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "不与一"} {"kind": "builder", "in": "不与一", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "不与一", "out": "Take a list of integers; subtract one from each, then negate each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then trim one element off each end.", "out": "丸丈为"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then cut off the first and last.", "out": "丸丈为"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then remove the first and last elements.", "out": "丸丈为"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then keep only the middle part.", "out": "丸丈为"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then drop first and last.", "out": "丸丈为"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then eliminate the outermost elements.", "out": "丸丈为"} {"kind": "builder", "in": "丸丈为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丸丈为", "out": "Take a list of integers; sort by absolute value, then double each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then make every value non-negative, then truncate to three items.", "out": "乃丏丕"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then absolute value for all items, then show the first three.", "out": "乃丏丕"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take absolute values, then take the first three.", "out": "乃丏丕"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn negatives into positives, then keep first 3.", "out": "乃丏丕"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then abs each element, then truncate to first three.", "out": "乃丏丕"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the absolute value of each, then first three.", "out": "乃丏丕"} {"kind": "builder", "in": "乃丏丕", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [abs(x) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "乃丏丕", "out": "Take a list of integers; drop the leading negative values, then take the absolute value of each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep only even values, then keep only non-zero numbers.", "out": "乂一举"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then extract all even numbers, then strip the zeros.", "out": "乂一举"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only even values, then keep only non-zero numbers.", "out": "乂一举"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then extract all even numbers, then strip the zeros.", "out": "乂一举"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only even values, then keep only non-zero numbers.", "out": "乂一举"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then extract all even numbers, then strip the zeros.", "out": "乂一举"} {"kind": "builder", "in": "乂一举", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乂一举", "out": "Take a list of integers; take values while they are positive, then keep the even numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then keep only strings of length 3 or more, then arrange in lexicographic order.", "out": "丧乗乖"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then get rid of short ones, then sort by letter.", "out": "丧乗乖"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then remove strings with less than three characters, then arrange in lexicographic order.", "out": "丧乗乖"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then remove all strings under three characters in length, then sort by letter.", "out": "丧乗乖"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then filter out short strings under three chars, then arrange in lexicographic order.", "out": "丧乗乖"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then drop strings shorter than three characters, then sort by letter.", "out": "丧乗乖"} {"kind": "builder", "in": "丧乗乖", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s for s in r if len(s) >= 3]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丧乗乖", "out": "Take a list of strings; drop duplicate strings keeping the first, then drop strings shorter than three characters, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then truncate to the last three items.", "out": "举乂丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then show only the last three.", "out": "举乂丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then remove all but the last three.", "out": "举乂丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then take the final 3 elements.", "out": "举乂丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then drop everything except the final three.", "out": "举乂丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then give me the last three elements.", "out": "举乂丹"} {"kind": "builder", "in": "举乂丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "举乂丹", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then true only if all are positive.", "out": "主世乌"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then do all of these have positive values.", "out": "主世乌"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then check if every value is positive.", "out": "主世乌"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then confirm all values are positive.", "out": "主世乌"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then all positive.", "out": "主世乌"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then check if every number is above zero.", "out": "主世乌"} {"kind": "builder", "in": "主世乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "主世乌", "out": "Take a list of integers; keep values greater than five, then drop the first element, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then default to [0] when there is nothing, then truncate to three items.", "out": "丽么丕"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then when the list is empty, substitute a zero value, then show the first three.", "out": "丽么丕"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then replace an empty list with one zero, then take the first three.", "out": "丽么丕"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then zero it out if it's empty, then keep first 3.", "out": "丽么丕"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then use zero if the list is empty, then truncate to first three.", "out": "丽么丕"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then default to zero when empty, then first three.", "out": "丽么丕"} {"kind": "builder", "in": "丽么丕", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r if r else [0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丽么丕", "out": "Take a list of integers; add ten to each, then if empty, use a single zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten, then arrange by magnitude ignoring sign.", "out": "丽丘丸"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10, then put them in order by magnitude.", "out": "丽丘丸"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten, then arrange in order of absolute value.", "out": "丽丘丸"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10, then sort by distance from zero.", "out": "丽丘丸"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten, then order by how far from zero.", "out": "丽丘丸"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10, then order by distance from zero.", "out": "丽丘丸"} {"kind": "builder", "in": "丽丘丸", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丽丘丸", "out": "Take a list of integers; add ten to each, then cap each value at 10, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then extend to length 3 using zeros, then limit every value to 10.", "out": "丏义丘"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then pad to 3, then maximum of 10 for all.", "out": "丏义丘"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then extend to length 3 using zeros, then limit every value to 10.", "out": "丏义丘"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then pad to 3, then maximum of 10 for all.", "out": "丏义丘"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then extend to length 3 using zeros, then limit every value to 10.", "out": "丏义丘"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then pad to 3, then maximum of 10 for all.", "out": "丏义丘"} {"kind": "builder", "in": "丏义丘", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丏义丘", "out": "Take a list of integers; take the absolute value of each, then pad with zeros to at least three elements, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then convert each to lower case, then remove surrounding whitespace.", "out": "丟丞丢"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then lowercase each one, then trim the whitespace off everything.", "out": "丟丞丢"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then convert each to lower case, then strip spaces from all strings.", "out": "丟丞丢"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then lowercase each one, then strip all the strings.", "out": "丟丞丢"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then convert each to lower case, then clean up whitespace in the list.", "out": "丟丞丢"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then lowercase each one, then strip spaces around each string.", "out": "丟丞丢"} {"kind": "builder", "in": "丟丞丢", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s.lower() for s in r]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "丟丞丢", "out": "Take a list of strings; uppercase each string, then lowercase each string, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort largest to smallest, then drop non-positive values.", "out": "丐专七"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort by descending values, then drop the negative numbers.", "out": "丐专七"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then sort from highest to lowest, then filter out the negative ones.", "out": "丐专七"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then sort descending, then remove all negative values.", "out": "丐专七"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort largest first, then keep positive values only.", "out": "丐专七"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort in descending order, then keep values above zero.", "out": "丐专七"} {"kind": "builder", "in": "丐专七", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, reverse=True)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丐专七", "out": "Take a list of integers; reverse the order, then sort descending, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then clamp each to at most ten, then remove the initial run of negative numbers.", "out": "丏丘乃"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then don't let anything exceed 10, then strip the front negatives.", "out": "丏丘乃"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then clamp each to at most ten, then remove leading negative numbers.", "out": "丏丘乃"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then don't let anything exceed 10, then drop negatives from start.", "out": "丏丘乃"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then clamp each to at most ten, then strip negative values from the start.", "out": "丏丘乃"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then don't let anything exceed 10, then remove negatives before the first non-negative.", "out": "丏丘乃"} {"kind": "builder", "in": "丏丘乃", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [min(x, 10) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丏丘乃", "out": "Take a list of integers; take the absolute value of each, then cap each value at 10, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only even values, then truncate to three items.", "out": "丘一丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then extract all even numbers, then show the first three.", "out": "丘一丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only even values, then take the first three.", "out": "丘一丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then extract all even numbers, then keep first 3.", "out": "丘一丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only even values, then truncate to first three.", "out": "丘一丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then extract all even numbers, then first three.", "out": "丘一丕"} {"kind": "builder", "in": "丘一丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 == 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘一丕", "out": "Take a list of integers; cap each value at 10, then keep the even numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then make every value non-negative, then trim one element off each end.", "out": "丁丏为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then absolute value for all items, then cut off the first and last.", "out": "丁丏为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take absolute values, then remove the first and last elements.", "out": "丁丏为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn negatives into positives, then keep only the middle part.", "out": "丁丏为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then abs each element, then drop first and last.", "out": "丁丏为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the absolute value of each, then eliminate the outermost elements.", "out": "丁丏为"} {"kind": "builder", "in": "丁丏为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丁丏为", "out": "Take a list of integers; keep the odd numbers, then take the absolute value of each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then multiply each value by itself, then drop non-negative values.", "out": "丽上万"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then square them all, then drop all positive numbers.", "out": "丽上万"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then raise each to the power of two, then drop non-negative values.", "out": "丽上万"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then I need each number multiplied by itself, then drop all positive numbers.", "out": "丽上万"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then square all of them, then drop non-negative values.", "out": "丽上万"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiply each element by itself, then drop all positive numbers.", "out": "丽上万"} {"kind": "builder", "in": "丽上万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x * x for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丽上万", "out": "Take a list of integers; add ten to each, then square each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the final 3 elements, then give back the product of all values.", "out": "丏丹乐"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then drop everything except the final three, then product of the list.", "out": "丏丹乐"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then give me the last three elements, then what's the product.", "out": "丏丹乐"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep only the last three, then what do they multiply to.", "out": "丏丹乐"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep the final three items, then give me their product.", "out": "丏丹乐"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take the last three, then multiply them all together.", "out": "丏丹乐"} {"kind": "builder", "in": "丏丹乐", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丏丹乐", "out": "Take a list of integers; take the absolute value of each, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values divisible by 3, then drop non-positive values.", "out": "丹串七"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep items where x mod 3 equals zero, then drop the negative numbers.", "out": "丹串七"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then drop anything not divisible by three, then filter out the negative ones.", "out": "丹串七"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then filter out everything except multiples of three, then remove all negative values.", "out": "丹串七"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only multiples of three, then keep positive values only.", "out": "丹串七"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiples of three only, then keep values above zero.", "out": "丹串七"} {"kind": "builder", "in": "丹串七", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丹串七", "out": "Take a list of integers; keep only the last three, then keep multiples of three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove repeated values, then reduce each by one.", "out": "万且不"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then unique values preserving order, then Subtract 1 from all.", "out": "万且不"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove repeated values, then Subtract one from each.", "out": "万且不"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then unique values preserving order, then Drop each by one.", "out": "万且不"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove repeated values, then Decrease all values by one.", "out": "万且不"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then unique values preserving order, then Remove one from each value.", "out": "万且不"} {"kind": "builder", "in": "万且不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "万且不", "out": "Take a list of integers; keep the negative numbers, then drop duplicates keeping first occurrence, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then multiply each by two, then ensure at least three items by appending zeros.", "out": "丹丈义"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then double each item in the list, then ensure minimum length of three by adding zeros to the end.", "out": "丹丈义"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then multiply each by two, then ensure at least three items by appending zeros.", "out": "丹丈义"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then double each item in the list, then ensure minimum length of three by adding zeros to the end.", "out": "丹丈义"} {"kind": "speaker", "in": "Take a list of integers; last three only, then multiply each by two, then ensure at least three items by appending zeros.", "out": "丹丈义"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then double each item in the list, then ensure minimum length of three by adding zeros to the end.", "out": "丹丈义"} {"kind": "builder", "in": "丹丈义", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x * 2 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丹丈义", "out": "Take a list of integers; keep only the last three, then double each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only even values, then true if at least one even value.", "out": "万一之"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then extract all even numbers, then any even.", "out": "万一之"} {"kind": "builder", "in": "万一之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "万一之", "out": "Take a list of integers; keep the negative numbers, then keep the even numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove both ends, then truncate to the last three items.", "out": "下为丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then trim the edges, then show only the last three.", "out": "下为丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then trim one element off each end, then remove all but the last three.", "out": "下为丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off the first and last, then take the final 3 elements.", "out": "下为丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first and last elements, then drop everything except the final three.", "out": "下为丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the middle part, then give me the last three elements.", "out": "下为丹"} {"kind": "builder", "in": "下为丹", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:-1]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "下为丹", "out": "Take a list of integers; add one to each, then drop the first and last elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the list around, then remove the initial run of negative numbers.", "out": "不丐乃"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then flip the order around, then strip the front negatives.", "out": "不丐乃"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then put the elements backwards, then remove leading negative numbers.", "out": "不丐乃"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then reverse that for me, then drop negatives from start.", "out": "不丐乃"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip it backwards, then strip negative values from the start.", "out": "不丐乃"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then make it backwards, then remove negatives before the first non-negative.", "out": "不丐乃"} {"kind": "builder", "in": "不丐乃", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "不丐乃", "out": "Take a list of integers; subtract one from each, then reverse the order, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then find the min, defaulting to 0.", "out": "丈世丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then minimum value, zero otherwise.", "out": "丈世丛"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then get the minimum value or zero if empty.", "out": "丈世丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then give me the min or 0.", "out": "丈世丛"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then return the smallest number, defaulting to 0.", "out": "丈世丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then return smallest or zero if empty.", "out": "丈世丛"} {"kind": "builder", "in": "丈世丛", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:]\n return min(r) if r else 0"} {"kind": "translator", "in": "丈世丛", "out": "Take a list of integers; double each, then drop the first element, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value, then truncate to the last three items.", "out": "主下丹"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all, then show only the last three.", "out": "主下丹"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value, then remove all but the last three.", "out": "主下丹"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all, then take the final 3 elements.", "out": "主下丹"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value, then drop everything except the final three.", "out": "主下丹"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all, then give me the last three elements.", "out": "主下丹"} {"kind": "builder", "in": "主下丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "主下丹", "out": "Take a list of integers; keep values greater than five, then add one to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero, then find the max, defaulting to 0.", "out": "不七业"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers, then Give me the maximum, but 0 if there are no items.", "out": "不七业"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers, then What's the highest number in the list.", "out": "不七业"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives, then Return the greatest value or default to 0.", "out": "不七业"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives, then Find the largest element, defaulting to zero.", "out": "不七业"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers, then give the largest value (0 if none).", "out": "不七业"} {"kind": "builder", "in": "不七业", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "不七业", "out": "Take a list of integers; subtract one from each, then keep the positive numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort smallest to largest, then true if at least one even value.", "out": "丘丑之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Ascending sort, then any even.", "out": "丘丑之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Sort this ascending, then true if at least one even value.", "out": "丘丑之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Sort lowest to highest, then any even.", "out": "丘丑之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Arrange from smallest to largest, then true if at least one even value.", "out": "丘丑之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort ascending, then any even.", "out": "丘丑之"} {"kind": "builder", "in": "丘丑之", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丘丑之", "out": "Take a list of integers; cap each value at 10, then sort ascending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove all zero values, then stop at the first non-positive value.", "out": "丹举乂"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then exclude zeros, then keep the leading run of positive numbers.", "out": "丹举乂"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove all zero values, then take values while they are positive.", "out": "丹举乂"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then exclude zeros, then take positive values then stop.", "out": "丹举乂"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove all zero values, then keep going while positive.", "out": "丹举乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then exclude zeros, then stop at first non positive.", "out": "丹举乂"} {"kind": "builder", "in": "丹举乂", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丹举乂", "out": "Take a list of integers; keep only the last three, then drop the zeros, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values divisible by 3, then true if any value equals zero.", "out": "万串乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep items where x mod 3 equals zero, then check for zero.", "out": "万串乍"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then drop anything not divisible by three, then true if any value equals zero.", "out": "万串乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter out everything except multiples of three, then check for zero.", "out": "万串乍"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only multiples of three, then true if any value equals zero.", "out": "万串乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiples of three only, then check for zero.", "out": "万串乍"} {"kind": "builder", "in": "万串乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 3 == 0]\n return 0 in r"} {"kind": "translator", "in": "万串乍", "out": "Take a list of integers; keep the negative numbers, then keep multiples of three, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove the first item, then multiply each by -1.", "out": "乃世与"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Remove head, then negate.", "out": "乃世与"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove the first item, then multiply each by -1.", "out": "乃世与"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Remove head, then negate.", "out": "乃世与"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first item, then multiply each by -1.", "out": "乃世与"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Remove head, then negate.", "out": "乃世与"} {"kind": "builder", "in": "乃世与", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乃世与", "out": "Take a list of integers; drop the leading negative values, then drop the first element, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each value by itself, then make each twice as big.", "out": "为上丈"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then square them all, then multiply each by 2.", "out": "为上丈"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then raise each to the power of two, then make each twice as big.", "out": "为上丈"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then I need each number multiplied by itself, then multiply each by 2.", "out": "为上丈"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then square all of them, then make each twice as big.", "out": "为上丈"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiply each element by itself, then multiply each by 2.", "out": "为上丈"} {"kind": "builder", "in": "为上丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "为上丈", "out": "Take a list of integers; drop the first and last elements, then square each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the final 3 elements, then take values up to (excluding) the first zero.", "out": "丁丹久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop everything except the final three, then keep the part before the first 0.", "out": "丁丹久"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give me the last three elements, then truncate at the first zero.", "out": "丁丹久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the last three, then delete everything starting with the first zero.", "out": "丁丹久"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the final three items, then remove from the first zero onwards.", "out": "丁丹久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the last three, then up to but not including the first zero.", "out": "丁丹久"} {"kind": "builder", "in": "丁丹久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丁丹久", "out": "Take a list of integers; keep the odd numbers, then keep only the last three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then skip negatives at the start, then true only if all are positive.", "out": "为乃乌"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove all negatives at the front, then do all of these have positive values.", "out": "为乃乌"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the initial run of negative numbers, then check if every value is positive.", "out": "为乃乌"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then strip the front negatives, then confirm all values are positive.", "out": "为乃乌"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove leading negative numbers, then all positive.", "out": "为乃乌"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then drop negatives from start, then check if every number is above zero.", "out": "为乃乌"} {"kind": "builder", "in": "为乃乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "为乃乌", "out": "Take a list of integers; drop the first and last elements, then drop the leading negative values, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then increase every value by 10, then true if every value is unique.", "out": "上丽乏"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then add 10 to each item, then check for duplicates in the values.", "out": "上丽乏"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then shift each up by ten, then do all values appear only once.", "out": "上丽乏"} {"kind": "speaker", "in": "Take a list of integers; square them all, then increase all numbers by 10, then check that there are no duplicates.", "out": "上丽乏"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then add 10 to everything, then are the values all unique.", "out": "上丽乏"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then give everything a boost of 10, then check if all values are unique.", "out": "上丽乏"} {"kind": "builder", "in": "上丽乏", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "上丽乏", "out": "Take a list of integers; square each, then add ten to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the sign of each, then deduplicate the list.", "out": "丑与且"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then turn positives to negatives and vice versa, then remove repeats.", "out": "丑与且"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then flip the sign of each, then deduplicate the list.", "out": "丑与且"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn positives to negatives and vice versa, then remove repeats.", "out": "丑与且"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip the sign of each, then deduplicate the list.", "out": "丑与且"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then turn positives to negatives and vice versa, then remove repeats.", "out": "丑与且"} {"kind": "builder", "in": "丑与且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丑与且", "out": "Take a list of integers; sort ascending, then negate each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the leading run of positive numbers, then multiply each by -1.", "out": "万乂与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take values while they are positive, then negate.", "out": "万乂与"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take positive values then stop, then multiply each by -1.", "out": "万乂与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep going while positive, then negate.", "out": "万乂与"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then stop at first non positive, then multiply each by -1.", "out": "万乂与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take while greater than zero, then negate.", "out": "万乂与"} {"kind": "builder", "in": "万乂与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "万乂与", "out": "Take a list of integers; keep the negative numbers, then take values while they are positive, then negate each."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then order strings from shortest to longest, then return them as one comma-separated string.", "out": "丨严中"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then shortest to longest, then separate by comma.", "out": "丨严中"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then arrange by string length ascending, then join with commas.", "out": "丨严中"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then length sort, then comma join.", "out": "丨严中"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then sort by length shortest first, then combine using commas.", "out": "丨严中"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then organize by string length least to greatest, then connect with commas between each item.", "out": "丨严中"} {"kind": "builder", "in": "丨严中", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = sorted(r, key=len)\n return ','.join(r)"} {"kind": "translator", "in": "丨严中", "out": "Take a list of strings; keep the first character of each (dropping empties), then sort by length, shortest first, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each value by itself, then keep only non-zero numbers.", "out": "丸上举"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then square them all, then strip the zeros.", "out": "丸上举"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then raise each to the power of two, then keep only non-zero numbers.", "out": "丸上举"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then I need each number multiplied by itself, then strip the zeros.", "out": "丸上举"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then square all of them, then keep only non-zero numbers.", "out": "丸上举"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiply each element by itself, then strip the zeros.", "out": "丸上举"} {"kind": "builder", "in": "丸上举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丸上举", "out": "Take a list of integers; sort by absolute value, then square each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then drop the even numbers.", "out": "丑且丁"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then strip out the evens.", "out": "丑且丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then drop the even numbers.", "out": "丑且丁"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then strip out the evens.", "out": "丑且丁"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then drop the even numbers.", "out": "丑且丁"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then strip out the evens.", "out": "丑且丁"} {"kind": "builder", "in": "丑且丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丑且丁", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increase every value by 10, then true only if all are positive.", "out": "久丽乌"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then add 10 to each item, then do all of these have positive values.", "out": "久丽乌"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then shift each up by ten, then check if every value is positive.", "out": "久丽乌"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then increase all numbers by 10, then confirm all values are positive.", "out": "久丽乌"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then add 10 to everything, then all positive.", "out": "久丽乌"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then give everything a boost of 10, then check if every number is above zero.", "out": "久丽乌"} {"kind": "builder", "in": "久丽乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "久丽乌", "out": "Take a list of integers; keep everything before the first zero, then add ten to each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort smallest to largest, then drop anything not divisible by three.", "out": "九丑串"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Ascending sort, then filter out everything except multiples of three.", "out": "九丑串"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then Sort this ascending, then keep only multiples of three.", "out": "九丑串"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Sort lowest to highest, then multiples of three only.", "out": "九丑串"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Arrange from smallest to largest, then filter for numbers divisible by three.", "out": "九丑串"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort ascending, then give me only the values divisible by three.", "out": "九丑串"} {"kind": "builder", "in": "九丑串", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "九丑串", "out": "Take a list of people records (name, age); extract the ages, then sort ascending, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove repeated values, then keep only non-zero numbers.", "out": "乃且举"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then unique values preserving order, then strip the zeros.", "out": "乃且举"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove repeated values, then keep only non-zero numbers.", "out": "乃且举"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then unique values preserving order, then strip the zeros.", "out": "乃且举"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove repeated values, then keep only non-zero numbers.", "out": "乃且举"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then unique values preserving order, then strip the zeros.", "out": "乃且举"} {"kind": "builder", "in": "乃且举", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乃且举", "out": "Take a list of integers; drop the leading negative values, then drop duplicates keeping first occurrence, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the final 3 elements, then give back the total.", "out": "乂丹丙"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then drop everything except the final three, then sum r.", "out": "乂丹丙"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give me the last three elements, then add them up.", "out": "乂丹丙"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep only the last three, then calculate the sum of all elements.", "out": "乂丹丙"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep the final three items, then what's the total.", "out": "乂丹丙"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the last three, then what do they add up to.", "out": "乂丹丙"} {"kind": "builder", "in": "乂丹丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n return sum(r)"} {"kind": "translator", "in": "乂丹丙", "out": "Take a list of integers; take values while they are positive, then keep only the last three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values below zero, then count the elements.", "out": "专万东"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then get the negative numbers, then how many items remain.", "out": "专万东"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep values below zero, then tell me the length.", "out": "专万东"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then get the negative numbers, then return the length.", "out": "专万东"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep values below zero, then count them.", "out": "专万东"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then get the negative numbers, then what's the count.", "out": "专万东"} {"kind": "builder", "in": "专万东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x < 0]\n return len(r)"} {"kind": "translator", "in": "专万东", "out": "Take a list of integers; sort descending, then keep the negative numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then convert each to lower case, then true if a blank string is present.", "out": "丢丞乙"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then lowercase each one, then check for empty strings in the list.", "out": "丢丞乙"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then convert each to lower case, then check if there's an empty string.", "out": "丢丞乙"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then lowercase each one, then does the collection contain an empty string value somewhere.", "out": "丢丞乙"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then convert each to lower case, then whether any element is blank.", "out": "丢丞乙"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then lowercase each one, then check for an empty string.", "out": "丢丞乙"} {"kind": "builder", "in": "丢丞乙", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = [s.lower() for s in r]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丢丞乙", "out": "Take a list of strings; trim whitespace from each, then lowercase each string, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep only odd values, then arrange in increasing order.", "out": "丽丁丑"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then eliminate the even numbers, then Organize these ascending.", "out": "丽丁丑"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only odd values, then Sort in ascending order.", "out": "丽丁丑"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then eliminate the even numbers, then I need this sorted ascending.", "out": "丽丁丑"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only odd values, then Put these in ascending order.", "out": "丽丁丑"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then eliminate the even numbers, then sort smallest to largest.", "out": "丽丁丑"} {"kind": "builder", "in": "丽丁丑", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丽丁丑", "out": "Take a list of integers; add ten to each, then keep the odd numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then default to [0] when there is nothing, then take values up to (excluding) the first zero.", "out": "专么久"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then when the list is empty, substitute a zero value, then keep the part before the first 0.", "out": "专么久"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then replace an empty list with one zero, then truncate at the first zero.", "out": "专么久"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then zero it out if it's empty, then delete everything starting with the first zero.", "out": "专么久"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then use zero if the list is empty, then remove from the first zero onwards.", "out": "专么久"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then default to zero when empty, then up to but not including the first zero.", "out": "专么久"} {"kind": "builder", "in": "专么久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "专么久", "out": "Take a list of integers; sort descending, then if empty, use a single zero, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then default to [0] when there is nothing, then find the max, defaulting to 0.", "out": "专么业"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then when the list is empty, substitute a zero value, then Give me the maximum, but 0 if there are no items.", "out": "专么业"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then replace an empty list with one zero, then What's the highest number in the list.", "out": "专么业"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then zero it out if it's empty, then Return the greatest value or default to 0.", "out": "专么业"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then use zero if the list is empty, then Find the largest element, defaulting to zero.", "out": "专么业"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then default to zero when empty, then give the largest value (0 if none).", "out": "专么业"} {"kind": "builder", "in": "专么业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r if r else [0]\n return max(r) if r else 0"} {"kind": "translator", "in": "专么业", "out": "Take a list of integers; sort descending, then if empty, use a single zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then true only if all are positive.", "out": "义丁乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then do all of these have positive values.", "out": "义丁乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then check if every value is positive.", "out": "义丁乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then confirm all values are positive.", "out": "义丁乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then all positive.", "out": "义丁乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then check if every number is above zero.", "out": "义丁乌"} {"kind": "builder", "in": "义丁乌", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "义丁乌", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the odd numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then give back the product of all values.", "out": "义丈乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then product of the list.", "out": "义丈乐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then what's the product.", "out": "义丈乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then what do they multiply to.", "out": "义丈乐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then give me their product.", "out": "义丈乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then multiply them all together.", "out": "义丈乐"} {"kind": "builder", "in": "义丈乐", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * 2 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "义丈乐", "out": "Take a list of integers; pad with zeros to at least three elements, then double each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove the first item, then find the min, defaulting to 0.", "out": "丐世丛"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Remove head, then minimum value, zero otherwise.", "out": "丐世丛"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the first item, then get the minimum value or zero if empty.", "out": "丐世丛"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Remove head, then give me the min or 0.", "out": "丐世丛"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first item, then return the smallest number, defaulting to 0.", "out": "丐世丛"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then Remove head, then return smallest or zero if empty.", "out": "丐世丛"} {"kind": "builder", "in": "丐世丛", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:]\n return min(r) if r else 0"} {"kind": "translator", "in": "丐世丛", "out": "Take a list of integers; reverse the order, then drop the first element, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then give the number of evens.", "out": "乂丕乓"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then find how many values are divisible by two.", "out": "乂丕乓"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then how many are even.", "out": "乂丕乓"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then get the total number of even values in the list.", "out": "乂丕乓"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then give me the count of even values.", "out": "乂丕乓"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then I need to know how many of these are even.", "out": "乂丕乓"} {"kind": "builder", "in": "乂丕乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乂丕乓", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero, then give the earliest even value or zero.", "out": "七久乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears, then fetch the first even element, default to 0.", "out": "七久乒"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero, then give the earliest even value or zero.", "out": "七久乒"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0, then fetch the first even element, default to 0.", "out": "七久乒"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero, then give the earliest even value or zero.", "out": "七久乒"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero, then fetch the first even element, default to 0.", "out": "七久乒"} {"kind": "builder", "in": "七久乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "七久乒", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only even values, then arrange by magnitude ignoring sign.", "out": "丏一丸"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then extract all even numbers, then put them in order by magnitude.", "out": "丏一丸"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only even values, then arrange in order of absolute value.", "out": "丏一丸"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then extract all even numbers, then sort by distance from zero.", "out": "丏一丸"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only even values, then order by how far from zero.", "out": "丏一丸"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then extract all even numbers, then order by distance from zero.", "out": "丏一丸"} {"kind": "builder", "in": "丏一丸", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丏一丸", "out": "Take a list of integers; take the absolute value of each, then keep the even numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then skip negatives at the start, then multiply each by -1.", "out": "丕乃与"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then remove all negatives at the front, then negate.", "out": "丕乃与"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the initial run of negative numbers, then multiply each by -1.", "out": "丕乃与"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then strip the front negatives, then negate.", "out": "丕乃与"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove leading negative numbers, then multiply each by -1.", "out": "丕乃与"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then drop negatives from start, then negate.", "out": "丕乃与"} {"kind": "builder", "in": "丕乃与", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丕乃与", "out": "Take a list of integers; keep only the first three, then drop the leading negative values, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then order by distance from zero, then true if every value is unique.", "out": "乃丸乏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then sort based on absolute value, then check for duplicates in the values.", "out": "乃丸乏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then organize by magnitude, then do all values appear only once.", "out": "乃丸乏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then arrange by absolute value ascending, then check that there are no duplicates.", "out": "乃丸乏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then sort from smallest to largest absolute value, then are the values all unique.", "out": "乃丸乏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort by absolute value, then check if all values are unique.", "out": "乃丸乏"} {"kind": "builder", "in": "乃丸乏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, key=abs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "乃丸乏", "out": "Take a list of integers; drop the leading negative values, then sort by absolute value, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values divisible by 3, then give back the total.", "out": "且串丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep items where x mod 3 equals zero, then sum r.", "out": "且串丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything not divisible by three, then add them up.", "out": "且串丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter out everything except multiples of three, then calculate the sum of all elements.", "out": "且串丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only multiples of three, then what's the total.", "out": "且串丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiples of three only, then what do they add up to.", "out": "且串丙"} {"kind": "builder", "in": "且串丙", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n return sum(r)"} {"kind": "translator", "in": "且串丙", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep multiples of three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort largest to smallest, then ensure at least three items by appending zeros.", "out": "主专义"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort by descending values, then ensure minimum length of three by adding zeros to the end.", "out": "主专义"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then sort from highest to lowest, then ensure at least three items by appending zeros.", "out": "主专义"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then sort descending, then ensure minimum length of three by adding zeros to the end.", "out": "主专义"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort largest first, then ensure at least three items by appending zeros.", "out": "主专义"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort in descending order, then ensure minimum length of three by adding zeros to the end.", "out": "主专义"} {"kind": "builder", "in": "主专义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "主专义", "out": "Take a list of integers; keep values greater than five, then sort descending, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements, then true only if all are positive.", "out": "义丹乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three, then do all of these have positive values.", "out": "义丹乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements, then check if every value is positive.", "out": "义丹乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three, then confirm all values are positive.", "out": "义丹乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items, then all positive.", "out": "义丹乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three, then check if every number is above zero.", "out": "义丹乌"} {"kind": "builder", "in": "义丹乌", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "义丹乌", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then give the earliest even value or zero.", "out": "么丽乒"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then fetch the first even element, default to 0.", "out": "么丽乒"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then give the earliest even value or zero.", "out": "么丽乒"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then fetch the first even element, default to 0.", "out": "么丽乒"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then give the earliest even value or zero.", "out": "么丽乒"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then fetch the first even element, default to 0.", "out": "么丽乒"} {"kind": "builder", "in": "么丽乒", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "么丽乒", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the final 3 elements, then reduce each by one.", "out": "么丹不"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then drop everything except the final three, then Subtract 1 from all.", "out": "么丹不"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then give me the last three elements, then Subtract one from each.", "out": "么丹不"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep only the last three, then Drop each by one.", "out": "么丹不"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep the final three items, then Decrease all values by one.", "out": "么丹不"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the last three, then Remove one from each value.", "out": "么丹不"} {"kind": "builder", "in": "么丹不", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[-3:]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "么丹不", "out": "Take a list of integers; if empty, use a single zero, then keep only the last three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then stop at the first non-positive value.", "out": "世与乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then keep the leading run of positive numbers.", "out": "世与乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then take values while they are positive.", "out": "世与乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then take positive values then stop.", "out": "世与乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then keep going while positive.", "out": "世与乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then stop at first non positive.", "out": "世与乂"} {"kind": "builder", "in": "世与乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [-x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "世与乂", "out": "Take a list of integers; drop the first element, then negate each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove both ends, then stop at the first non-positive value.", "out": "串为乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then trim the edges, then keep the leading run of positive numbers.", "out": "串为乂"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then trim one element off each end, then take values while they are positive.", "out": "串为乂"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then cut off the first and last, then take positive values then stop.", "out": "串为乂"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first and last elements, then keep going while positive.", "out": "串为乂"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep only the middle part, then stop at first non positive.", "out": "串为乂"} {"kind": "builder", "in": "串为乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "串为乂", "out": "Take a list of integers; keep multiples of three, then drop the first and last elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then sort smallest to largest, then multiply each by -1.", "out": "乂丑与"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Ascending sort, then negate.", "out": "乂丑与"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then Sort this ascending, then multiply each by -1.", "out": "乂丑与"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Sort lowest to highest, then negate.", "out": "乂丑与"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then Arrange from smallest to largest, then multiply each by -1.", "out": "乂丑与"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort ascending, then negate.", "out": "乂丑与"} {"kind": "builder", "in": "乂丑与", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乂丑与", "out": "Take a list of integers; take values while they are positive, then sort ascending, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increase every value by 10, then find the max, defaulting to 0.", "out": "万丽业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then add 10 to each item, then Give me the maximum, but 0 if there are no items.", "out": "万丽业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then shift each up by ten, then What's the highest number in the list.", "out": "万丽业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then increase all numbers by 10, then Return the greatest value or default to 0.", "out": "万丽业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then add 10 to everything, then Find the largest element, defaulting to zero.", "out": "万丽业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then give everything a boost of 10, then give the largest value (0 if none).", "out": "万丽业"} {"kind": "builder", "in": "万丽业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "万丽业", "out": "Take a list of integers; keep the negative numbers, then add ten to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then cut the list at the first zero, then true if every value is unique.", "out": "与久乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off after the first zero appears, then check for duplicates in the values.", "out": "与久乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take values up to (excluding) the first zero, then do all values appear only once.", "out": "与久乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the part before the first 0, then check that there are no duplicates.", "out": "与久乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate at the first zero, then are the values all unique.", "out": "与久乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then delete everything starting with the first zero, then check if all values are unique.", "out": "与久乏"} {"kind": "builder", "in": "与久乏", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return len(r) == len(set(r))"} {"kind": "translator", "in": "与久乏", "out": "Take a list of integers; negate each, then keep everything before the first zero, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the final 3 elements, then put the elements backwards.", "out": "为丹丐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then drop everything except the final three, then reverse that for me.", "out": "为丹丐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give me the last three elements, then flip it backwards.", "out": "为丹丐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep only the last three, then make it backwards.", "out": "为丹丐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep the final three items, then reverse the list.", "out": "为丹丐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the last three, then invert the sequence.", "out": "为丹丐"} {"kind": "builder", "in": "为丹丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[-3:]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "为丹丐", "out": "Take a list of integers; drop the first and last elements, then keep only the last three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increase every value by 10, then ensure at least three items by appending zeros.", "out": "串丽义"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then add 10 to each item, then ensure minimum length of three by adding zeros to the end.", "out": "串丽义"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then shift each up by ten, then ensure at least three items by appending zeros.", "out": "串丽义"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then increase all numbers by 10, then ensure minimum length of three by adding zeros to the end.", "out": "串丽义"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then add 10 to everything, then ensure at least three items by appending zeros.", "out": "串丽义"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then give everything a boost of 10, then ensure minimum length of three by adding zeros to the end.", "out": "串丽义"} {"kind": "builder", "in": "串丽义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "串丽义", "out": "Take a list of integers; keep multiples of three, then add ten to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then multiply each value by itself, then truncate to three items.", "out": "丏上丕"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then square them all, then show the first three.", "out": "丏上丕"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then raise each to the power of two, then take the first three.", "out": "丏上丕"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then I need each number multiplied by itself, then keep first 3.", "out": "丏上丕"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then square all of them, then truncate to first three.", "out": "丏上丕"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then multiply each element by itself, then first three.", "out": "丏上丕"} {"kind": "builder", "in": "丏上丕", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x * x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丏上丕", "out": "Take a list of integers; take the absolute value of each, then square each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then find the min, defaulting to 0.", "out": "义且丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then minimum value, zero otherwise.", "out": "义且丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then get the minimum value or zero if empty.", "out": "义且丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then give me the min or 0.", "out": "义且丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then return the smallest number, defaulting to 0.", "out": "义且丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then return smallest or zero if empty.", "out": "义且丛"} {"kind": "builder", "in": "义且丛", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "义且丛", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the first 3 elements, then keep only non-zero numbers.", "out": "七丕举"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove everything after the third, then strip the zeros.", "out": "七丕举"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then truncate to three items, then keep only non-zero numbers.", "out": "七丕举"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then show the first three, then strip the zeros.", "out": "七丕举"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then take the first three, then keep only non-zero numbers.", "out": "七丕举"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep first 3, then strip the zeros.", "out": "七丕举"} {"kind": "builder", "in": "七丕举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:3]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "七丕举", "out": "Take a list of integers; keep the positive numbers, then keep only the first three, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only odd values, then shift each up by ten.", "out": "久丁丽"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then eliminate the even numbers, then increase all numbers by 10.", "out": "久丁丽"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only odd values, then add 10 to everything.", "out": "久丁丽"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then eliminate the even numbers, then give everything a boost of 10.", "out": "久丁丽"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only odd values, then increment each by ten.", "out": "久丁丽"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then eliminate the even numbers, then add a constant 10 to each.", "out": "久丁丽"} {"kind": "builder", "in": "久丁丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "久丁丽", "out": "Take a list of integers; keep everything before the first zero, then keep the odd numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort smallest to largest, then keep only numbers above 5.", "out": "丐丑主"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Ascending sort, then exclude values of 5 and below.", "out": "丐丑主"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then Sort this ascending, then remove anything 5 or less.", "out": "丐丑主"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Sort lowest to highest, then filter to keep only values above 5.", "out": "丐丑主"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then Arrange from smallest to largest, then get rid of values that aren't greater than five.", "out": "丐丑主"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort ascending, then drop anything 5 or below.", "out": "丐丑主"} {"kind": "builder", "in": "丐丑主", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丐丑主", "out": "Take a list of integers; reverse the order, then sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove repeated values, then give the earliest even value or zero.", "out": "举且乒"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then unique values preserving order, then fetch the first even element, default to 0.", "out": "举且乒"} {"kind": "builder", "in": "举且乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(dict.fromkeys(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "举且乒", "out": "Take a list of integers; drop the zeros, then drop duplicates keeping first occurrence, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then take the final 3 elements, then true if at least one even value.", "out": "丑丹之"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then drop everything except the final three, then any even.", "out": "丑丹之"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then give me the last three elements, then true if at least one even value.", "out": "丑丹之"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep only the last three, then any even.", "out": "丑丹之"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep the final three items, then true if at least one even value.", "out": "丑丹之"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the last three, then any even.", "out": "丑丹之"} {"kind": "builder", "in": "丑丹之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[-3:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丑丹之", "out": "Take a list of integers; sort ascending, then keep only the last three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then cut the list at the first zero, then find the max, defaulting to 0.", "out": "专久业"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then cut off after the first zero appears, then Give me the maximum, but 0 if there are no items.", "out": "专久业"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take values up to (excluding) the first zero, then What's the highest number in the list.", "out": "专久业"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep the part before the first 0, then Return the greatest value or default to 0.", "out": "专久业"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then truncate at the first zero, then Find the largest element, defaulting to zero.", "out": "专久业"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then delete everything starting with the first zero, then give the largest value (0 if none).", "out": "专久业"} {"kind": "builder", "in": "专久业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:r.index(0)] if 0 in r else r\n return max(r) if r else 0"} {"kind": "translator", "in": "专久业", "out": "Take a list of integers; sort descending, then keep everything before the first zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero, then count the elements.", "out": "乂丸东"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value, then how many items remain.", "out": "乂丸东"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude, then tell me the length.", "out": "乂丸东"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending, then return the length.", "out": "乂丸东"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value, then count them.", "out": "乂丸东"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value, then what's the count.", "out": "乂丸东"} {"kind": "builder", "in": "乂丸东", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n return len(r)"} {"kind": "translator", "in": "乂丸东", "out": "Take a list of integers; take values while they are positive, then sort by absolute value, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then order by distance from zero, then true if every value is unique.", "out": "丽丸乏"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then sort based on absolute value, then check for duplicates in the values.", "out": "丽丸乏"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then organize by magnitude, then do all values appear only once.", "out": "丽丸乏"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then arrange by absolute value ascending, then check that there are no duplicates.", "out": "丽丸乏"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then sort from smallest to largest absolute value, then are the values all unique.", "out": "丽丸乏"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort by absolute value, then check if all values are unique.", "out": "丽丸乏"} {"kind": "builder", "in": "丽丸乏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r, key=abs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丽丸乏", "out": "Take a list of integers; add ten to each, then sort by absolute value, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then put the elements backwards.", "out": "举一丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then reverse that for me.", "out": "举一丐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then flip it backwards.", "out": "举一丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then make it backwards.", "out": "举一丐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then reverse the list.", "out": "举一丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then invert the sequence.", "out": "举一丐"} {"kind": "builder", "in": "举一丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 == 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "举一丐", "out": "Take a list of integers; drop the zeros, then keep the even numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then true if at least one even value.", "out": "一举之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then any even.", "out": "一举之"} {"kind": "builder", "in": "一举之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "一举之", "out": "Take a list of integers; keep the even numbers, then drop the zeros, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values above zero, then multiply each by -1.", "out": "乂七与"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then filter for positive numbers, then negate.", "out": "乂七与"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only positive numbers, then multiply each by -1.", "out": "乂七与"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the positives, then negate.", "out": "乂七与"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove negatives, then multiply each by -1.", "out": "乂七与"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep the positive numbers, then negate.", "out": "乂七与"} {"kind": "builder", "in": "乂七与", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乂七与", "out": "Take a list of integers; take values while they are positive, then keep the positive numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then decrement each value, then find the min, defaulting to 0.", "out": "与不丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Lower each number by one, then minimum value, zero otherwise.", "out": "与不丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then reduce each by one, then get the minimum value or zero if empty.", "out": "与不丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Subtract 1 from all, then give me the min or 0.", "out": "与不丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Subtract one from each, then return the smallest number, defaulting to 0.", "out": "与不丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Drop each by one, then return smallest or zero if empty.", "out": "与不丛"} {"kind": "builder", "in": "与不丛", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x - 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "与不丛", "out": "Take a list of integers; negate each, then subtract one from each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then true if every value is unique.", "out": "世且乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then check for duplicates in the values.", "out": "世且乏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then do all values appear only once.", "out": "世且乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then check that there are no duplicates.", "out": "世且乏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then are the values all unique.", "out": "世且乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then check if all values are unique.", "out": "世且乏"} {"kind": "builder", "in": "世且乏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(dict.fromkeys(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "世且乏", "out": "Take a list of integers; drop the first element, then drop duplicates keeping first occurrence, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; square each, then cut the list at the first zero, then true if every value is unique.", "out": "上久乏"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then cut off after the first zero appears, then check for duplicates in the values.", "out": "上久乏"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take values up to (excluding) the first zero, then do all values appear only once.", "out": "上久乏"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the part before the first 0, then check that there are no duplicates.", "out": "上久乏"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then truncate at the first zero, then are the values all unique.", "out": "上久乏"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then delete everything starting with the first zero, then check if all values are unique.", "out": "上久乏"} {"kind": "builder", "in": "上久乏", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return len(r) == len(set(r))"} {"kind": "translator", "in": "上久乏", "out": "Take a list of integers; square each, then keep everything before the first zero, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the final 3 elements, then give the number of evens.", "out": "丐丹乓"} {"kind": "speaker", "in": "Take a list of integers; reverse, then drop everything except the final three, then find how many values are divisible by two.", "out": "丐丹乓"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then give me the last three elements, then how many are even.", "out": "丐丹乓"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep only the last three, then get the total number of even values in the list.", "out": "丐丹乓"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep the final three items, then give me the count of even values.", "out": "丐丹乓"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the last three, then I need to know how many of these are even.", "out": "丐丹乓"} {"kind": "builder", "in": "丐丹乓", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[-3:]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丐丹乓", "out": "Take a list of integers; reverse the order, then keep only the last three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then cut the list at the first zero, then shift each up by ten.", "out": "乃久丽"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then cut off after the first zero appears, then increase all numbers by 10.", "out": "乃久丽"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take values up to (excluding) the first zero, then add 10 to everything.", "out": "乃久丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the part before the first 0, then give everything a boost of 10.", "out": "乃久丽"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then truncate at the first zero, then increment each by ten.", "out": "乃久丽"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then delete everything starting with the first zero, then add a constant 10 to each.", "out": "乃久丽"} {"kind": "builder", "in": "乃久丽", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乃久丽", "out": "Take a list of integers; drop the leading negative values, then keep everything before the first zero, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then remove repeated strings, then reduce each string to its first character.", "out": "两丧丨"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then keep unique strings first appearance, then take first char drop blanks.", "out": "两丧丨"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then eliminate repeated strings preserve first occurrence, then keep first letters only.", "out": "两丧丨"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then drop duplicate strings keeping the first, then first letter from each item that isn't empty.", "out": "两丧丨"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then dedupe, then grab the first char from each.", "out": "两丧丨"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then remove duplicate strings keep first, then isolate the first character per entry.", "out": "两丧丨"} {"kind": "builder", "in": "两丧丨", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = list(dict.fromkeys(r))\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "两丧丨", "out": "Take a list of strings; drop empty strings, then drop duplicate strings keeping the first, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; double each, then default to [0] when there is nothing, then deduplicate the list.", "out": "丈么且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then when the list is empty, substitute a zero value, then remove repeats.", "out": "丈么且"} {"kind": "speaker", "in": "Take a list of integers; double each, then replace an empty list with one zero, then deduplicate the list.", "out": "丈么且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then zero it out if it's empty, then remove repeats.", "out": "丈么且"} {"kind": "speaker", "in": "Take a list of integers; double each, then use zero if the list is empty, then deduplicate the list.", "out": "丈么且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then default to zero when empty, then remove repeats.", "out": "丈么且"} {"kind": "builder", "in": "丈么且", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r if r else [0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丈么且", "out": "Take a list of integers; double each, then if empty, use a single zero, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the sign of each, then truncate to three items.", "out": "丽与丕"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then turn positives to negatives and vice versa, then show the first three.", "out": "丽与丕"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then flip the sign of each, then take the first three.", "out": "丽与丕"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn positives to negatives and vice versa, then keep first 3.", "out": "丽与丕"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip the sign of each, then truncate to first three.", "out": "丽与丕"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then turn positives to negatives and vice versa, then first three.", "out": "丽与丕"} {"kind": "builder", "in": "丽与丕", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [-x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丽与丕", "out": "Take a list of integers; add ten to each, then negate each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then replace an empty list with one zero.", "out": "举与么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then zero it out if it's empty.", "out": "举与么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then use zero if the list is empty.", "out": "举与么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then default to zero when empty.", "out": "举与么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then if there's nothing, put in a zero.", "out": "举与么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then if no items, add a zero.", "out": "举与么"} {"kind": "builder", "in": "举与么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "举与么", "out": "Take a list of integers; drop the zeros, then negate each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort largest to smallest, then truncate to the last three items.", "out": "九专丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort by descending values, then show only the last three.", "out": "九专丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then sort from highest to lowest, then remove all but the last three.", "out": "九专丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then sort descending, then take the final 3 elements.", "out": "九专丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort largest first, then drop everything except the final three.", "out": "九专丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort in descending order, then give me the last three elements.", "out": "九专丹"} {"kind": "builder", "in": "九专丹", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, reverse=True)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "九专丹", "out": "Take a list of people records (name, age); extract the ages, then sort descending, then keep only the last three."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove repeated strings, then arrange by string length ascending.", "out": "乖丧严"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then keep unique strings first appearance, then length sort.", "out": "乖丧严"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then eliminate repeated strings preserve first occurrence, then sort by length shortest first.", "out": "乖丧严"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop duplicate strings keeping the first, then organize by string length least to greatest.", "out": "乖丧严"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then dedupe, then shortest strings first.", "out": "乖丧严"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove duplicate strings keep first, then i want them ordered by how short they are.", "out": "乖丧严"} {"kind": "builder", "in": "乖丧严", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "乖丧严", "out": "Take a list of strings; sort alphabetically, then drop duplicate strings keeping the first, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then put the elements backwards.", "out": "丘丈丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then reverse that for me.", "out": "丘丈丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then flip it backwards.", "out": "丘丈丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then make it backwards.", "out": "丘丈丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then reverse the list.", "out": "丘丈丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then invert the sequence.", "out": "丘丈丐"} {"kind": "builder", "in": "丘丈丐", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * 2 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丘丈丐", "out": "Take a list of integers; cap each value at 10, then double each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then order by distance from zero, then truncate to the last three items.", "out": "且丸丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort based on absolute value, then show only the last three.", "out": "且丸丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then organize by magnitude, then remove all but the last three.", "out": "且丸丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then arrange by absolute value ascending, then take the final 3 elements.", "out": "且丸丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort from smallest to largest absolute value, then drop everything except the final three.", "out": "且丸丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort by absolute value, then give me the last three elements.", "out": "且丸丹"} {"kind": "builder", "in": "且丸丹", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, key=abs)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "且丸丹", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort by absolute value, then keep only the last three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values above zero, then stop at the first non-positive value.", "out": "九七乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then filter for positive numbers, then keep the leading run of positive numbers.", "out": "九七乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only positive numbers, then take values while they are positive.", "out": "九七乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the positives, then take positive values then stop.", "out": "九七乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove negatives, then keep going while positive.", "out": "九七乂"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep the positive numbers, then stop at first non positive.", "out": "九七乂"} {"kind": "builder", "in": "九七乂", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "九七乂", "out": "Take a list of people records (name, age); extract the ages, then keep the positive numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then keep only strings of length 3 or more, then return them as one comma-separated string.", "out": "丞乗中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then get rid of short ones, then separate by comma.", "out": "丞乗中"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then remove strings with less than three characters, then join with commas.", "out": "丞乗中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then remove all strings under three characters in length, then comma join.", "out": "丞乗中"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then filter out short strings under three chars, then combine using commas.", "out": "丞乗中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then drop strings shorter than three characters, then connect with commas between each item.", "out": "丞乗中"} {"kind": "builder", "in": "丞乗中", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s for s in r if len(s) >= 3]\n return ','.join(r)"} {"kind": "translator", "in": "丞乗中", "out": "Take a list of strings; lowercase each string, then drop strings shorter than three characters, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero, then reduce each by one.", "out": "世久不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears, then Subtract 1 from all.", "out": "世久不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero, then Subtract one from each.", "out": "世久不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0, then Drop each by one.", "out": "世久不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero, then Decrease all values by one.", "out": "世久不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero, then Remove one from each value.", "out": "世久不"} {"kind": "builder", "in": "世久不", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "世久不", "out": "Take a list of integers; drop the first element, then keep everything before the first zero, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only odd values, then arrange in decreasing order.", "out": "乃丁专"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then eliminate the even numbers, then arrange in descending order.", "out": "乃丁专"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only odd values, then reverse sort.", "out": "乃丁专"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then eliminate the even numbers, then sort largest to smallest.", "out": "乃丁专"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only odd values, then sort by descending values.", "out": "乃丁专"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then eliminate the even numbers, then sort from highest to lowest.", "out": "乃丁专"} {"kind": "builder", "in": "乃丁专", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乃丁专", "out": "Take a list of integers; drop the leading negative values, then keep the odd numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values above zero, then true if any value equals zero.", "out": "么七乍"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then filter for positive numbers, then check for zero.", "out": "么七乍"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only positive numbers, then true if any value equals zero.", "out": "么七乍"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the positives, then check for zero.", "out": "么七乍"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove negatives, then true if any value equals zero.", "out": "么七乍"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep the positive numbers, then check for zero.", "out": "么七乍"} {"kind": "builder", "in": "么七乍", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 0]\n return 0 in r"} {"kind": "translator", "in": "么七乍", "out": "Take a list of integers; if empty, use a single zero, then keep the positive numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values below zero, then give the earliest even value or zero.", "out": "串万乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then get the negative numbers, then fetch the first even element, default to 0.", "out": "串万乒"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep values below zero, then give the earliest even value or zero.", "out": "串万乒"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then get the negative numbers, then fetch the first even element, default to 0.", "out": "串万乒"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep values below zero, then give the earliest even value or zero.", "out": "串万乒"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then get the negative numbers, then fetch the first even element, default to 0.", "out": "串万乒"} {"kind": "builder", "in": "串万乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "串万乒", "out": "Take a list of integers; keep multiples of three, then keep the negative numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then keep only non-empty strings, then deduplicate the strings.", "out": "丟两丧"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then filter empty strings, then filter out duplicate strings retain first.", "out": "丟两丧"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove empty strings from the list, then strip duplicates preserve order.", "out": "丟两丧"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then clean up empty strings, then remove repeated strings.", "out": "丟两丧"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then delete empty entries, then keep unique strings first appearance.", "out": "丟两丧"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then drop empty strings, then eliminate repeated strings preserve first occurrence.", "out": "丟两丧"} {"kind": "builder", "in": "丟两丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s for s in r if s]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丟两丧", "out": "Take a list of strings; uppercase each string, then drop empty strings, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then strip spaces around each string, then return them as one comma-separated string.", "out": "丟丢中"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then remove leading and trailing spaces, then separate by comma.", "out": "丟丢中"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove whitespace from each item, then join with commas.", "out": "丟丢中"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then clean whitespace from each entry, then comma join.", "out": "丟丢中"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then trim each string, then combine using commas.", "out": "丟丢中"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then trim whitespace from each, then connect with commas between each item.", "out": "丟丢中"} {"kind": "builder", "in": "丟丢中", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s.strip() for s in r]\n return ','.join(r)"} {"kind": "translator", "in": "丟丢中", "out": "Take a list of strings; uppercase each string, then trim whitespace from each, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values divisible by 3, then count the elements.", "out": "丈串东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep items where x mod 3 equals zero, then how many items remain.", "out": "丈串东"} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything not divisible by three, then tell me the length.", "out": "丈串东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter out everything except multiples of three, then return the length.", "out": "丈串东"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only multiples of three, then count them.", "out": "丈串东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiples of three only, then what's the count.", "out": "丈串东"} {"kind": "builder", "in": "丈串东", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 3 == 0]\n return len(r)"} {"kind": "translator", "in": "丈串东", "out": "Take a list of integers; double each, then keep multiples of three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; double each, then make every value non-negative, then bump each up by one.", "out": "丈丏下"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then absolute value for all items, then increment each item.", "out": "丈丏下"} {"kind": "speaker", "in": "Take a list of integers; double each, then take absolute values, then bump each up by one.", "out": "丈丏下"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn negatives into positives, then increment each item.", "out": "丈丏下"} {"kind": "speaker", "in": "Take a list of integers; double each, then abs each element, then bump each up by one.", "out": "丈丏下"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the absolute value of each, then increment each item.", "out": "丈丏下"} {"kind": "builder", "in": "丈丏下", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丈丏下", "out": "Take a list of integers; double each, then take the absolute value of each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only even values, then drop the even numbers.", "out": "久一丁"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then extract all even numbers, then strip out the evens.", "out": "久一丁"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only even values, then drop the even numbers.", "out": "久一丁"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then extract all even numbers, then strip out the evens.", "out": "久一丁"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only even values, then drop the even numbers.", "out": "久一丁"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then extract all even numbers, then strip out the evens.", "out": "久一丁"} {"kind": "builder", "in": "久一丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "久一丁", "out": "Take a list of integers; keep everything before the first zero, then keep the even numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then cut the list at the first zero, then give back the total.", "out": "专久丙"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then cut off after the first zero appears, then sum r.", "out": "专久丙"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take values up to (excluding) the first zero, then add them up.", "out": "专久丙"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep the part before the first 0, then calculate the sum of all elements.", "out": "专久丙"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then truncate at the first zero, then what's the total.", "out": "专久丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then delete everything starting with the first zero, then what do they add up to.", "out": "专久丙"} {"kind": "builder", "in": "专久丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:r.index(0)] if 0 in r else r\n return sum(r)"} {"kind": "translator", "in": "专久丙", "out": "Take a list of integers; sort descending, then keep everything before the first zero, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then limit every value to 10.", "out": "丽丐丘"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then maximum of 10 for all.", "out": "丽丐丘"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then limit every value to 10.", "out": "丽丐丘"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then maximum of 10 for all.", "out": "丽丐丘"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then limit every value to 10.", "out": "丽丐丘"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then maximum of 10 for all.", "out": "丽丐丘"} {"kind": "builder", "in": "丽丐丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丽丐丘", "out": "Take a list of integers; add ten to each, then reverse the order, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values above zero, then true if every value is unique.", "out": "丸七乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then filter for positive numbers, then check for duplicates in the values.", "out": "丸七乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only positive numbers, then do all values appear only once.", "out": "丸七乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the positives, then check that there are no duplicates.", "out": "丸七乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove negatives, then are the values all unique.", "out": "丸七乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep the positive numbers, then check if all values are unique.", "out": "丸七乏"} {"kind": "builder", "in": "丸七乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸七乏", "out": "Take a list of integers; sort by absolute value, then keep the positive numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then give back the total.", "out": "义且丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then sum r.", "out": "义且丙"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then add them up.", "out": "义且丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then calculate the sum of all elements.", "out": "义且丙"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then what's the total.", "out": "义且丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then what do they add up to.", "out": "义且丙"} {"kind": "builder", "in": "义且丙", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return sum(r)"} {"kind": "translator", "in": "义且丙", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value, then true if any value equals zero.", "out": "丘下乍"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all, then check for zero.", "out": "丘下乍"} {"kind": "builder", "in": "丘下乍", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "丘下乍", "out": "Take a list of integers; cap each value at 10, then add one to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only even values, then remove the initial run of negative numbers.", "out": "七一乃"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then extract all even numbers, then strip the front negatives.", "out": "七一乃"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only even values, then remove leading negative numbers.", "out": "七一乃"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then extract all even numbers, then drop negatives from start.", "out": "七一乃"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only even values, then strip negative values from the start.", "out": "七一乃"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then extract all even numbers, then remove negatives before the first non-negative.", "out": "七一乃"} {"kind": "builder", "in": "七一乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "七一乃", "out": "Take a list of integers; keep the positive numbers, then keep the even numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then default to [0] when there is nothing, then drop non-negative values.", "out": "乃么万"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then when the list is empty, substitute a zero value, then drop all positive numbers.", "out": "乃么万"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then replace an empty list with one zero, then drop non-negative values.", "out": "乃么万"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then zero it out if it's empty, then drop all positive numbers.", "out": "乃么万"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then use zero if the list is empty, then drop non-negative values.", "out": "乃么万"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then default to zero when empty, then drop all positive numbers.", "out": "乃么万"} {"kind": "builder", "in": "乃么万", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "乃么万", "out": "Take a list of integers; drop the leading negative values, then if empty, use a single zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then bump each up by one.", "out": "丹万下"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then increment each item.", "out": "丹万下"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then bump each up by one.", "out": "丹万下"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then increment each item.", "out": "丹万下"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then bump each up by one.", "out": "丹万下"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then increment each item.", "out": "丹万下"} {"kind": "builder", "in": "丹万下", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丹万下", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each by two, then give back the total.", "out": "不丈丙"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then double each item in the list, then sum r.", "out": "不丈丙"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then multiply each by two, then add them up.", "out": "不丈丙"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then double each item in the list, then calculate the sum of all elements.", "out": "不丈丙"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then multiply each by two, then what's the total.", "out": "不丈丙"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then double each item in the list, then what do they add up to.", "out": "不丈丙"} {"kind": "builder", "in": "不丈丙", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n return sum(r)"} {"kind": "translator", "in": "不丈丙", "out": "Take a list of integers; subtract one from each, then double each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep only odd values, then strip the signs.", "out": "乂丁丏"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then eliminate the even numbers, then take abs of each.", "out": "乂丁丏"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only odd values, then get the absolute value of everything.", "out": "乂丁丏"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then eliminate the even numbers, then apply absolute value to the whole list.", "out": "乂丁丏"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only odd values, then make them all positive.", "out": "乂丁丏"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then eliminate the even numbers, then make every value non-negative.", "out": "乂丁丏"} {"kind": "builder", "in": "乂丁丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "乂丁丏", "out": "Take a list of integers; take values while they are positive, then keep the odd numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the list around, then ensure at least three items by appending zeros.", "out": "万丐义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then flip the order around, then ensure minimum length of three by adding zeros to the end.", "out": "万丐义"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then put the elements backwards, then ensure at least three items by appending zeros.", "out": "万丐义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then reverse that for me, then ensure minimum length of three by adding zeros to the end.", "out": "万丐义"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip it backwards, then ensure at least three items by appending zeros.", "out": "万丐义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then make it backwards, then ensure minimum length of three by adding zeros to the end.", "out": "万丐义"} {"kind": "builder", "in": "万丐义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "万丐义", "out": "Take a list of integers; keep the negative numbers, then reverse the order, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the final 3 elements, then find the max, defaulting to 0.", "out": "丽丹业"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then drop everything except the final three, then Give me the maximum, but 0 if there are no items.", "out": "丽丹业"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then give me the last three elements, then What's the highest number in the list.", "out": "丽丹业"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep only the last three, then Return the greatest value or default to 0.", "out": "丽丹业"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep the final three items, then Find the largest element, defaulting to zero.", "out": "丽丹业"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the last three, then give the largest value (0 if none).", "out": "丽丹业"} {"kind": "builder", "in": "丽丹业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[-3:]\n return max(r) if r else 0"} {"kind": "translator", "in": "丽丹业", "out": "Take a list of integers; add ten to each, then keep only the last three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then skip negatives at the start, then drop non-positive values.", "out": "与乃七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then remove all negatives at the front, then drop the negative numbers.", "out": "与乃七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the initial run of negative numbers, then filter out the negative ones.", "out": "与乃七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then strip the front negatives, then remove all negative values.", "out": "与乃七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove leading negative numbers, then keep positive values only.", "out": "与乃七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop negatives from start, then keep values above zero.", "out": "与乃七"} {"kind": "builder", "in": "与乃七", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "与乃七", "out": "Take a list of integers; negate each, then drop the leading negative values, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then decrement each value, then shift each up by ten.", "out": "丹不丽"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Lower each number by one, then increase all numbers by 10.", "out": "丹不丽"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then reduce each by one, then add 10 to everything.", "out": "丹不丽"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Subtract 1 from all, then give everything a boost of 10.", "out": "丹不丽"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Subtract one from each, then increment each by ten.", "out": "丹不丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Drop each by one, then add a constant 10 to each.", "out": "丹不丽"} {"kind": "builder", "in": "丹不丽", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丹不丽", "out": "Take a list of integers; keep only the last three, then subtract one from each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increment each value, then true if any value equals zero.", "out": "不下乍"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then plus one for all, then check for zero.", "out": "不下乍"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then increment each value, then true if any value equals zero.", "out": "不下乍"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then plus one for all, then check for zero.", "out": "不下乍"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then increment each value, then true if any value equals zero.", "out": "不下乍"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then plus one for all, then check for zero.", "out": "不下乍"} {"kind": "builder", "in": "不下乍", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "不下乍", "out": "Take a list of integers; subtract one from each, then add one to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then arrange by magnitude ignoring sign.", "out": "举丑丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then put them in order by magnitude.", "out": "举丑丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then arrange in order of absolute value.", "out": "举丑丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then sort by distance from zero.", "out": "举丑丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then order by how far from zero.", "out": "举丑丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then order by distance from zero.", "out": "举丑丸"} {"kind": "builder", "in": "举丑丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "举丑丸", "out": "Take a list of integers; drop the zeros, then sort ascending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values below zero, then ensure at least three items by appending zeros.", "out": "九万义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "九万义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep values below zero, then ensure at least three items by appending zeros.", "out": "九万义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "九万义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep values below zero, then ensure at least three items by appending zeros.", "out": "九万义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "九万义"} {"kind": "builder", "in": "九万义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x < 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九万义", "out": "Take a list of people records (name, age); extract the ages, then keep the negative numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increase every value by 10, then reduce each by one.", "out": "串丽不"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then add 10 to each item, then Subtract 1 from all.", "out": "串丽不"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then shift each up by ten, then Subtract one from each.", "out": "串丽不"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then increase all numbers by 10, then Drop each by one.", "out": "串丽不"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then add 10 to everything, then Decrease all values by one.", "out": "串丽不"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then give everything a boost of 10, then Remove one from each value.", "out": "串丽不"} {"kind": "builder", "in": "串丽不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "串丽不", "out": "Take a list of integers; keep multiples of three, then add ten to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then deduplicate the list.", "out": "七丘且"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then remove repeats.", "out": "七丘且"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then deduplicate the list.", "out": "七丘且"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then remove repeats.", "out": "七丘且"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then deduplicate the list.", "out": "七丘且"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then remove repeats.", "out": "七丘且"} {"kind": "builder", "in": "七丘且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "七丘且", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then clamp each to at most ten, then drop anything not divisible by three.", "out": "乂丘串"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then don't let anything exceed 10, then filter out everything except multiples of three.", "out": "乂丘串"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then clamp each to at most ten, then keep only multiples of three.", "out": "乂丘串"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then don't let anything exceed 10, then multiples of three only.", "out": "乂丘串"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then clamp each to at most ten, then filter for numbers divisible by three.", "out": "乂丘串"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then don't let anything exceed 10, then give me only the values divisible by three.", "out": "乂丘串"} {"kind": "builder", "in": "乂丘串", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "乂丘串", "out": "Take a list of integers; take values while they are positive, then cap each value at 10, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort smallest to largest, then strip the signs.", "out": "与丑丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Ascending sort, then take abs of each.", "out": "与丑丏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Sort this ascending, then get the absolute value of everything.", "out": "与丑丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Sort lowest to highest, then apply absolute value to the whole list.", "out": "与丑丏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Arrange from smallest to largest, then make them all positive.", "out": "与丑丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort ascending, then make every value non-negative.", "out": "与丑丏"} {"kind": "builder", "in": "与丑丏", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "与丑丏", "out": "Take a list of integers; negate each, then sort ascending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then default to [0] when there is nothing, then keep only numbers above 5.", "out": "丕么主"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then when the list is empty, substitute a zero value, then exclude values of 5 and below.", "out": "丕么主"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then replace an empty list with one zero, then remove anything 5 or less.", "out": "丕么主"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then zero it out if it's empty, then filter to keep only values above 5.", "out": "丕么主"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then use zero if the list is empty, then get rid of values that aren't greater than five.", "out": "丕么主"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then default to zero when empty, then drop anything 5 or below.", "out": "丕么主"} {"kind": "builder", "in": "丕么主", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r if r else [0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丕么主", "out": "Take a list of integers; keep only the first three, then if empty, use a single zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increase every value by 10, then true if any value equals zero.", "out": "九丽乍"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then add 10 to each item, then check for zero.", "out": "九丽乍"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then shift each up by ten, then true if any value equals zero.", "out": "九丽乍"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then increase all numbers by 10, then check for zero.", "out": "九丽乍"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then add 10 to everything, then true if any value equals zero.", "out": "九丽乍"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then give everything a boost of 10, then check for zero.", "out": "九丽乍"} {"kind": "builder", "in": "九丽乍", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 10 for x in r]\n return 0 in r"} {"kind": "translator", "in": "九丽乍", "out": "Take a list of people records (name, age); extract the ages, then add ten to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then truncate to three items.", "out": "丁丘丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then show the first three.", "out": "丁丘丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then take the first three.", "out": "丁丘丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then keep first 3.", "out": "丁丘丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then truncate to first three.", "out": "丁丘丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then first three.", "out": "丁丘丕"} {"kind": "builder", "in": "丁丘丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [min(x, 10) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丁丘丕", "out": "Take a list of integers; keep the odd numbers, then cap each value at 10, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then true if at least one even value.", "out": "丁万之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then any even.", "out": "丁万之"} {"kind": "builder", "in": "丁万之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丁万之", "out": "Take a list of integers; keep the odd numbers, then keep the negative numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each value by itself, then ensure at least three items by appending zeros.", "out": "不上义"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then square them all, then ensure minimum length of three by adding zeros to the end.", "out": "不上义"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then raise each to the power of two, then ensure at least three items by appending zeros.", "out": "不上义"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then I need each number multiplied by itself, then ensure minimum length of three by adding zeros to the end.", "out": "不上义"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then square all of them, then ensure at least three items by appending zeros.", "out": "不上义"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiply each element by itself, then ensure minimum length of three by adding zeros to the end.", "out": "不上义"} {"kind": "builder", "in": "不上义", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "不上义", "out": "Take a list of integers; subtract one from each, then square each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the list around, then reduce each by one.", "out": "丈丐不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then flip the order around, then Subtract 1 from all.", "out": "丈丐不"} {"kind": "speaker", "in": "Take a list of integers; double each, then put the elements backwards, then Subtract one from each.", "out": "丈丐不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then reverse that for me, then Drop each by one.", "out": "丈丐不"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip it backwards, then Decrease all values by one.", "out": "丈丐不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then make it backwards, then Remove one from each value.", "out": "丈丐不"} {"kind": "builder", "in": "丈丐不", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(reversed(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丈丐不", "out": "Take a list of integers; double each, then reverse the order, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values below zero, then find the min, defaulting to 0.", "out": "丐万丛"} {"kind": "speaker", "in": "Take a list of integers; reverse, then get the negative numbers, then minimum value, zero otherwise.", "out": "丐万丛"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep values below zero, then get the minimum value or zero if empty.", "out": "丐万丛"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then get the negative numbers, then give me the min or 0.", "out": "丐万丛"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep values below zero, then return the smallest number, defaulting to 0.", "out": "丐万丛"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then get the negative numbers, then return smallest or zero if empty.", "out": "丐万丛"} {"kind": "builder", "in": "丐万丛", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "丐万丛", "out": "Take a list of integers; reverse the order, then keep the negative numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then put the elements backwards.", "out": "举丘丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then reverse that for me.", "out": "举丘丐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then flip it backwards.", "out": "举丘丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then make it backwards.", "out": "举丘丐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then reverse the list.", "out": "举丘丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then invert the sequence.", "out": "举丘丐"} {"kind": "builder", "in": "举丘丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [min(x, 10) for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "举丘丐", "out": "Take a list of integers; drop the zeros, then cap each value at 10, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then clamp each to at most ten, then truncate to the last three items.", "out": "么丘丹"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then don't let anything exceed 10, then show only the last three.", "out": "么丘丹"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then clamp each to at most ten, then remove all but the last three.", "out": "么丘丹"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then don't let anything exceed 10, then take the final 3 elements.", "out": "么丘丹"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then clamp each to at most ten, then drop everything except the final three.", "out": "么丘丹"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then don't let anything exceed 10, then give me the last three elements.", "out": "么丘丹"} {"kind": "builder", "in": "么丘丹", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "么丘丹", "out": "Take a list of integers; if empty, use a single zero, then cap each value at 10, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then multiply each by -1.", "out": "久世与"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then negate.", "out": "久世与"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then multiply each by -1.", "out": "久世与"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then negate.", "out": "久世与"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then multiply each by -1.", "out": "久世与"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then negate.", "out": "久世与"} {"kind": "builder", "in": "久世与", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "久世与", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then negate each."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then keep only non-empty strings, then return the number of strings.", "out": "丧两丫"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then filter empty strings, then count the strings.", "out": "丧两丫"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then remove empty strings from the list, then return how many strings remain.", "out": "丧两丫"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then clean up empty strings, then give me the total number of strings.", "out": "丧两丫"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then delete empty entries, then tell me how many strings we have.", "out": "丧两丫"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then drop empty strings, then what's the string count.", "out": "丧两丫"} {"kind": "builder", "in": "丧两丫", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s for s in r if s]\n return len(r)"} {"kind": "translator", "in": "丧两丫", "out": "Take a list of strings; drop duplicate strings keeping the first, then drop empty strings, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then shift each up by ten.", "out": "丘万丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then increase all numbers by 10.", "out": "丘万丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then add 10 to everything.", "out": "丘万丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then give everything a boost of 10.", "out": "丘万丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then increment each by ten.", "out": "丘万丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then add a constant 10 to each.", "out": "丘万丽"} {"kind": "builder", "in": "丘万丽", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丘万丽", "out": "Take a list of integers; cap each value at 10, then keep the negative numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each value by itself, then remove the initial run of negative numbers.", "out": "举上乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then square them all, then strip the front negatives.", "out": "举上乃"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then raise each to the power of two, then remove leading negative numbers.", "out": "举上乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then I need each number multiplied by itself, then drop negatives from start.", "out": "举上乃"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then square all of them, then strip negative values from the start.", "out": "举上乃"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiply each element by itself, then remove negatives before the first non-negative.", "out": "举上乃"} {"kind": "builder", "in": "举上乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "举上乃", "out": "Take a list of integers; drop the zeros, then square each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove repeated values, then ensure at least three items by appending zeros.", "out": "丕且义"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "丕且义"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove repeated values, then ensure at least three items by appending zeros.", "out": "丕且义"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "丕且义"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove repeated values, then ensure at least three items by appending zeros.", "out": "丕且义"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "丕且义"} {"kind": "builder", "in": "丕且义", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丕且义", "out": "Take a list of integers; keep only the first three, then drop duplicates keeping first occurrence, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then reduce each by one.", "out": "九与不"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then Subtract 1 from all.", "out": "九与不"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then Subtract one from each.", "out": "九与不"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then Drop each by one.", "out": "九与不"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then Decrease all values by one.", "out": "九与不"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then Remove one from each value.", "out": "九与不"} {"kind": "builder", "in": "九与不", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "九与不", "out": "Take a list of people records (name, age); extract the ages, then negate each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then true only if all are positive.", "out": "丈丁乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then do all of these have positive values.", "out": "丈丁乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then check if every value is positive.", "out": "丈丁乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then confirm all values are positive.", "out": "丈丁乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then all positive.", "out": "丈丁乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then check if every number is above zero.", "out": "丈丁乌"} {"kind": "builder", "in": "丈丁乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丈丁乌", "out": "Take a list of integers; double each, then keep the odd numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increase every value by 10, then arrange in increasing order.", "out": "义丽丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then add 10 to each item, then Organize these ascending.", "out": "义丽丑"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then shift each up by ten, then Sort in ascending order.", "out": "义丽丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then increase all numbers by 10, then I need this sorted ascending.", "out": "义丽丑"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then add 10 to everything, then Put these in ascending order.", "out": "义丽丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give everything a boost of 10, then sort smallest to largest.", "out": "义丽丑"} {"kind": "builder", "in": "义丽丑", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "义丽丑", "out": "Take a list of integers; pad with zeros to at least three elements, then add ten to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values divisible by 3, then drop non-positive values.", "out": "丽串七"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep items where x mod 3 equals zero, then drop the negative numbers.", "out": "丽串七"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then drop anything not divisible by three, then filter out the negative ones.", "out": "丽串七"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then filter out everything except multiples of three, then remove all negative values.", "out": "丽串七"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only multiples of three, then keep positive values only.", "out": "丽串七"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiples of three only, then keep values above zero.", "out": "丽串七"} {"kind": "builder", "in": "丽串七", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丽串七", "out": "Take a list of integers; add ten to each, then keep multiples of three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then true if any value equals zero.", "out": "义丘乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then check for zero.", "out": "义丘乍"} {"kind": "builder", "in": "义丘乍", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [min(x, 10) for x in r]\n return 0 in r"} {"kind": "translator", "in": "义丘乍", "out": "Take a list of integers; pad with zeros to at least three elements, then cap each value at 10, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then clamp each to at most ten, then remove the initial run of negative numbers.", "out": "主丘乃"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then don't let anything exceed 10, then strip the front negatives.", "out": "主丘乃"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then clamp each to at most ten, then remove leading negative numbers.", "out": "主丘乃"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then don't let anything exceed 10, then drop negatives from start.", "out": "主丘乃"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then clamp each to at most ten, then strip negative values from the start.", "out": "主丘乃"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then don't let anything exceed 10, then remove negatives before the first non-negative.", "out": "主丘乃"} {"kind": "builder", "in": "主丘乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "主丘乃", "out": "Take a list of integers; keep values greater than five, then cap each value at 10, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero, then raise each to the power of two.", "out": "丑丸上"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value, then I need each number multiplied by itself.", "out": "丑丸上"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude, then square all of them.", "out": "丑丸上"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending, then multiply each element by itself.", "out": "丑丸上"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value, then make each one squared.", "out": "丑丸上"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value, then square each value in the list.", "out": "丑丸上"} {"kind": "builder", "in": "丑丸上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丑丸上", "out": "Take a list of integers; sort ascending, then sort by absolute value, then square each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each by two, then replace an empty list with one zero.", "out": "不丈么"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then double each item in the list, then zero it out if it's empty.", "out": "不丈么"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then multiply each by two, then use zero if the list is empty.", "out": "不丈么"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then double each item in the list, then default to zero when empty.", "out": "不丈么"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then multiply each by two, then if there's nothing, put in a zero.", "out": "不丈么"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then double each item in the list, then if no items, add a zero.", "out": "不丈么"} {"kind": "builder", "in": "不丈么", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "不丈么", "out": "Take a list of integers; subtract one from each, then double each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove all zero values, then trim one element off each end.", "out": "丏举为"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then exclude zeros, then cut off the first and last.", "out": "丏举为"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove all zero values, then remove the first and last elements.", "out": "丏举为"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then exclude zeros, then keep only the middle part.", "out": "丏举为"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove all zero values, then drop first and last.", "out": "丏举为"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then exclude zeros, then eliminate the outermost elements.", "out": "丏举为"} {"kind": "builder", "in": "丏举为", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丏举为", "out": "Take a list of integers; take the absolute value of each, then drop the zeros, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values below zero, then reduce each by one.", "out": "七万不"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then get the negative numbers, then Subtract 1 from all.", "out": "七万不"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep values below zero, then Subtract one from each.", "out": "七万不"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then get the negative numbers, then Drop each by one.", "out": "七万不"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep values below zero, then Decrease all values by one.", "out": "七万不"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then get the negative numbers, then Remove one from each value.", "out": "七万不"} {"kind": "builder", "in": "七万不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "七万不", "out": "Take a list of integers; keep the positive numbers, then keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort smallest to largest, then drop non-negative values.", "out": "丏丑万"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Ascending sort, then drop all positive numbers.", "out": "丏丑万"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then Sort this ascending, then drop non-negative values.", "out": "丏丑万"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Sort lowest to highest, then drop all positive numbers.", "out": "丏丑万"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Arrange from smallest to largest, then drop non-negative values.", "out": "丏丑万"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort ascending, then drop all positive numbers.", "out": "丏丑万"} {"kind": "builder", "in": "丏丑万", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丏丑万", "out": "Take a list of integers; take the absolute value of each, then sort ascending, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then truncate to the last three items.", "out": "为万丹"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then show only the last three.", "out": "为万丹"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then remove all but the last three.", "out": "为万丹"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then take the final 3 elements.", "out": "为万丹"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then drop everything except the final three.", "out": "为万丹"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then give me the last three elements.", "out": "为万丹"} {"kind": "builder", "in": "为万丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "为万丹", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then sort largest to smallest, then drop anything not divisible by three.", "out": "七专串"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort by descending values, then filter out everything except multiples of three.", "out": "七专串"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then sort from highest to lowest, then keep only multiples of three.", "out": "七专串"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then sort descending, then multiples of three only.", "out": "七专串"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort largest first, then filter for numbers divisible by three.", "out": "七专串"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort in descending order, then give me only the values divisible by three.", "out": "七专串"} {"kind": "builder", "in": "七专串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "七专串", "out": "Take a list of integers; keep the positive numbers, then sort descending, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then make every value non-negative, then drop non-positive values.", "out": "久丏七"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then absolute value for all items, then drop the negative numbers.", "out": "久丏七"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take absolute values, then filter out the negative ones.", "out": "久丏七"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn negatives into positives, then remove all negative values.", "out": "久丏七"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then abs each element, then keep positive values only.", "out": "久丏七"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the absolute value of each, then keep values above zero.", "out": "久丏七"} {"kind": "builder", "in": "久丏七", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "久丏七", "out": "Take a list of integers; keep everything before the first zero, then take the absolute value of each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then order by distance from zero, then true if at least one even value.", "out": "万丸之"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort based on absolute value, then any even.", "out": "万丸之"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then organize by magnitude, then true if at least one even value.", "out": "万丸之"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then arrange by absolute value ascending, then any even.", "out": "万丸之"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort from smallest to largest absolute value, then true if at least one even value.", "out": "万丸之"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort by absolute value, then any even.", "out": "万丸之"} {"kind": "builder", "in": "万丸之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r, key=abs)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "万丸之", "out": "Take a list of integers; keep the negative numbers, then sort by absolute value, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest to smallest, then put the elements backwards.", "out": "丘专丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by descending values, then reverse that for me.", "out": "丘专丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from highest to lowest, then flip it backwards.", "out": "丘专丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort descending, then make it backwards.", "out": "丘专丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest first, then reverse the list.", "out": "丘专丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort in descending order, then invert the sequence.", "out": "丘专丐"} {"kind": "builder", "in": "丘专丐", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, reverse=True)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丘专丐", "out": "Take a list of integers; cap each value at 10, then sort descending, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the list around, then keep only non-zero numbers.", "out": "七丐举"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then flip the order around, then strip the zeros.", "out": "七丐举"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then put the elements backwards, then keep only non-zero numbers.", "out": "七丐举"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then reverse that for me, then strip the zeros.", "out": "七丐举"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip it backwards, then keep only non-zero numbers.", "out": "七丐举"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then make it backwards, then strip the zeros.", "out": "七丐举"} {"kind": "builder", "in": "七丐举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "七丐举", "out": "Take a list of integers; keep the positive numbers, then reverse the order, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort largest to smallest, then skip the first one.", "out": "丁专世"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort by descending values, then Discard the first element.", "out": "丁专世"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort from highest to lowest, then skip the first one.", "out": "丁专世"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort descending, then Discard the first element.", "out": "丁专世"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort largest first, then skip the first one.", "out": "丁专世"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort in descending order, then Discard the first element.", "out": "丁专世"} {"kind": "builder", "in": "丁专世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n r = r[1:]\n return r"} {"kind": "translator", "in": "丁专世", "out": "Take a list of integers; keep the odd numbers, then sort descending, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each value by itself, then give back the total.", "out": "主上丙"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then square them all, then sum r.", "out": "主上丙"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then raise each to the power of two, then add them up.", "out": "主上丙"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then I need each number multiplied by itself, then calculate the sum of all elements.", "out": "主上丙"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then square all of them, then what's the total.", "out": "主上丙"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiply each element by itself, then what do they add up to.", "out": "主上丙"} {"kind": "builder", "in": "主上丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * x for x in r]\n return sum(r)"} {"kind": "translator", "in": "主上丙", "out": "Take a list of integers; keep values greater than five, then square each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then bump each up by one.", "out": "万与下"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then increment each item.", "out": "万与下"} {"kind": "builder", "in": "万与下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "万与下", "out": "Take a list of integers; keep the negative numbers, then negate each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then arrange by magnitude ignoring sign.", "out": "义乂丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then put them in order by magnitude.", "out": "义乂丸"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then arrange in order of absolute value.", "out": "义乂丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then sort by distance from zero.", "out": "义乂丸"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then order by how far from zero.", "out": "义乂丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then order by distance from zero.", "out": "义乂丸"} {"kind": "builder", "in": "义乂丸", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "义乂丸", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item, then drop anything not divisible by three.", "out": "九世串"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head, then filter out everything except multiples of three.", "out": "九世串"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item, then keep only multiples of three.", "out": "九世串"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head, then multiples of three only.", "out": "九世串"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item, then filter for numbers divisible by three.", "out": "九世串"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head, then give me only the values divisible by three.", "out": "九世串"} {"kind": "builder", "in": "九世串", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "九世串", "out": "Take a list of people records (name, age); extract the ages, then drop the first element, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the leading run of positive numbers, then ensure at least three items by appending zeros.", "out": "万乂义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take values while they are positive, then ensure minimum length of three by adding zeros to the end.", "out": "万乂义"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take positive values then stop, then ensure at least three items by appending zeros.", "out": "万乂义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep going while positive, then ensure minimum length of three by adding zeros to the end.", "out": "万乂义"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then stop at first non positive, then ensure at least three items by appending zeros.", "out": "万乂义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take while greater than zero, then ensure minimum length of three by adding zeros to the end.", "out": "万乂义"} {"kind": "builder", "in": "万乂义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "万乂义", "out": "Take a list of integers; keep the negative numbers, then take values while they are positive, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then order strings from shortest to longest, then count characters across all strings.", "out": "丢严个"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then shortest to longest, then character count.", "out": "丢严个"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then arrange by string length ascending, then count all the characters.", "out": "丢严个"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then length sort, then total number of characters.", "out": "丢严个"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then sort by length shortest first, then what's the total character count.", "out": "丢严个"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then organize by string length least to greatest, then add up the lengths.", "out": "丢严个"} {"kind": "builder", "in": "丢严个", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = sorted(r, key=len)\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "丢严个", "out": "Take a list of strings; trim whitespace from each, then sort by length, shortest first, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then skip negatives at the start, then make each twice as big.", "out": "丽乃丈"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove all negatives at the front, then multiply each by 2.", "out": "丽乃丈"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the initial run of negative numbers, then make each twice as big.", "out": "丽乃丈"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then strip the front negatives, then multiply each by 2.", "out": "丽乃丈"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove leading negative numbers, then make each twice as big.", "out": "丽乃丈"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then drop negatives from start, then multiply each by 2.", "out": "丽乃丈"} {"kind": "builder", "in": "丽乃丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丽乃丈", "out": "Take a list of integers; add ten to each, then drop the leading negative values, then double each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then decrement each value, then remove the initial run of negative numbers.", "out": "九不乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Lower each number by one, then strip the front negatives.", "out": "九不乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then reduce each by one, then remove leading negative numbers.", "out": "九不乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Subtract 1 from all, then drop negatives from start.", "out": "九不乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Subtract one from each, then strip negative values from the start.", "out": "九不乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Drop each by one, then remove negatives before the first non-negative.", "out": "九不乃"} {"kind": "builder", "in": "九不乃", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "九不乃", "out": "Take a list of people records (name, age); extract the ages, then subtract one from each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove both ends, then true if at least one even value.", "out": "下为之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then trim the edges, then any even.", "out": "下为之"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then trim one element off each end, then true if at least one even value.", "out": "下为之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off the first and last, then any even.", "out": "下为之"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first and last elements, then true if at least one even value.", "out": "下为之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the middle part, then any even.", "out": "下为之"} {"kind": "builder", "in": "下为之", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:-1]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "下为之", "out": "Take a list of integers; add one to each, then drop the first and last elements, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then order by distance from zero, then make each twice as big.", "out": "七丸丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort based on absolute value, then multiply each by 2.", "out": "七丸丈"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then organize by magnitude, then make each twice as big.", "out": "七丸丈"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then arrange by absolute value ascending, then multiply each by 2.", "out": "七丸丈"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort from smallest to largest absolute value, then make each twice as big.", "out": "七丸丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort by absolute value, then multiply each by 2.", "out": "七丸丈"} {"kind": "builder", "in": "七丸丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "七丸丈", "out": "Take a list of integers; keep the positive numbers, then sort by absolute value, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove all zero values, then give the number of evens.", "out": "丑举乓"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then exclude zeros, then find how many values are divisible by two.", "out": "丑举乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove all zero values, then how many are even.", "out": "丑举乓"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then exclude zeros, then get the total number of even values in the list.", "out": "丑举乓"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove all zero values, then give me the count of even values.", "out": "丑举乓"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then exclude zeros, then I need to know how many of these are even.", "out": "丑举乓"} {"kind": "builder", "in": "丑举乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丑举乓", "out": "Take a list of integers; sort ascending, then drop the zeros, then return how many values are even."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then keep only numbers above 5.", "out": "九乃主"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then exclude values of 5 and below.", "out": "九乃主"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then remove anything 5 or less.", "out": "九乃主"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then filter to keep only values above 5.", "out": "九乃主"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then get rid of values that aren't greater than five.", "out": "九乃主"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then drop anything 5 or below.", "out": "九乃主"} {"kind": "builder", "in": "九乃主", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "九乃主", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then order by distance from zero, then strip the signs.", "out": "举丸丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort based on absolute value, then take abs of each.", "out": "举丸丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then organize by magnitude, then get the absolute value of everything.", "out": "举丸丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then arrange by absolute value ascending, then apply absolute value to the whole list.", "out": "举丸丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from smallest to largest absolute value, then make them all positive.", "out": "举丸丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by absolute value, then make every value non-negative.", "out": "举丸丏"} {"kind": "builder", "in": "举丸丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举丸丏", "out": "Take a list of integers; drop the zeros, then sort by absolute value, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything 5 or below, then find the min, defaulting to 0.", "out": "丈主丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only numbers greater than 5, then minimum value, zero otherwise.", "out": "丈主丛"} {"kind": "speaker", "in": "Take a list of integers; double each, then filter for numbers above 5, then get the minimum value or zero if empty.", "out": "丈主丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me values where x is greater than 5, then give me the min or 0.", "out": "丈主丛"} {"kind": "speaker", "in": "Take a list of integers; double each, then show me only the values that are bigger than five, then return the smallest number, defaulting to 0.", "out": "丈主丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep values greater than five, then return smallest or zero if empty.", "out": "丈主丛"} {"kind": "builder", "in": "丈主丛", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n return min(r) if r else 0"} {"kind": "translator", "in": "丈主丛", "out": "Take a list of integers; double each, then keep values greater than five, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then extend to length 3 using zeros, then multiply each by -1.", "out": "不义与"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then pad to 3, then negate.", "out": "不义与"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then extend to length 3 using zeros, then multiply each by -1.", "out": "不义与"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then pad to 3, then negate.", "out": "不义与"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then extend to length 3 using zeros, then multiply each by -1.", "out": "不义与"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then pad to 3, then negate.", "out": "不义与"} {"kind": "builder", "in": "不义与", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "不义与", "out": "Take a list of integers; subtract one from each, then pad with zeros to at least three elements, then negate each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then cut the list at the first zero, then truncate to three items.", "out": "九久丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then cut off after the first zero appears, then show the first three.", "out": "九久丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take values up to (excluding) the first zero, then take the first three.", "out": "九久丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the part before the first 0, then keep first 3.", "out": "九久丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then truncate at the first zero, then truncate to first three.", "out": "九久丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then delete everything starting with the first zero, then first three.", "out": "九久丕"} {"kind": "builder", "in": "九久丕", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[:3]\n return r"} {"kind": "translator", "in": "九久丕", "out": "Take a list of people records (name, age); extract the ages, then keep everything before the first zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then keep only numbers above 5.", "out": "九与主"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then exclude values of 5 and below.", "out": "九与主"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then remove anything 5 or less.", "out": "九与主"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then filter to keep only values above 5.", "out": "九与主"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then get rid of values that aren't greater than five.", "out": "九与主"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then drop anything 5 or below.", "out": "九与主"} {"kind": "builder", "in": "九与主", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "九与主", "out": "Take a list of people records (name, age); extract the ages, then negate each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then ensure at least three items by appending zeros.", "out": "一世义"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "一世义"} {"kind": "builder", "in": "一世义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "一世义", "out": "Take a list of integers; keep the even numbers, then drop the first element, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then drop anything 5 or below, then multiply each by -1.", "out": "世主与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only numbers greater than 5, then negate.", "out": "世主与"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then filter for numbers above 5, then multiply each by -1.", "out": "世主与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give me values where x is greater than 5, then negate.", "out": "世主与"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then show me only the values that are bigger than five, then multiply each by -1.", "out": "世主与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep values greater than five, then negate.", "out": "世主与"} {"kind": "builder", "in": "世主与", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "世主与", "out": "Take a list of integers; drop the first element, then keep values greater than five, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then make every value non-negative, then ensure at least three items by appending zeros.", "out": "丕丏义"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then absolute value for all items, then ensure minimum length of three by adding zeros to the end.", "out": "丕丏义"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take absolute values, then ensure at least three items by appending zeros.", "out": "丕丏义"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn negatives into positives, then ensure minimum length of three by adding zeros to the end.", "out": "丕丏义"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then abs each element, then ensure at least three items by appending zeros.", "out": "丕丏义"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the absolute value of each, then ensure minimum length of three by adding zeros to the end.", "out": "丕丏义"} {"kind": "builder", "in": "丕丏义", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丕丏义", "out": "Take a list of integers; keep only the first three, then take the absolute value of each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increase every value by 10, then trim one element off each end.", "out": "丕丽为"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add 10 to each item, then cut off the first and last.", "out": "丕丽为"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then shift each up by ten, then remove the first and last elements.", "out": "丕丽为"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then increase all numbers by 10, then keep only the middle part.", "out": "丕丽为"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add 10 to everything, then drop first and last.", "out": "丕丽为"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give everything a boost of 10, then eliminate the outermost elements.", "out": "丕丽为"} {"kind": "builder", "in": "丕丽为", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 10 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丕丽为", "out": "Take a list of integers; keep only the first three, then add ten to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values below zero, then arrange in increasing order.", "out": "专万丑"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then get the negative numbers, then Organize these ascending.", "out": "专万丑"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep values below zero, then Sort in ascending order.", "out": "专万丑"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then get the negative numbers, then I need this sorted ascending.", "out": "专万丑"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep values below zero, then Put these in ascending order.", "out": "专万丑"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then get the negative numbers, then sort smallest to largest.", "out": "专万丑"} {"kind": "builder", "in": "专万丑", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x < 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "专万丑", "out": "Take a list of integers; sort descending, then keep the negative numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the first 3 elements, then true if already sorted smallest to largest.", "out": "不丕乎"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove everything after the third, then does this list go in ascending order.", "out": "不丕乎"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then truncate to three items, then check if the list is in ascending order.", "out": "不丕乎"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then show the first three, then is the list sorted.", "out": "不丕乎"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then take the first three, then is it sorted.", "out": "不丕乎"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep first 3, then check if values are in increasing order.", "out": "不丕乎"} {"kind": "builder", "in": "不丕乎", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:3]\n return r == sorted(r)"} {"kind": "translator", "in": "不丕乎", "out": "Take a list of integers; subtract one from each, then keep only the first three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the first 3 elements, then true if already sorted smallest to largest.", "out": "九丕乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove everything after the third, then does this list go in ascending order.", "out": "九丕乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then truncate to three items, then check if the list is in ascending order.", "out": "九丕乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then show the first three, then is the list sorted.", "out": "九丕乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then take the first three, then is it sorted.", "out": "九丕乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep first 3, then check if values are in increasing order.", "out": "九丕乎"} {"kind": "builder", "in": "九丕乎", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:3]\n return r == sorted(r)"} {"kind": "translator", "in": "九丕乎", "out": "Take a list of people records (name, age); extract the ages, then keep only the first three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then cut the list at the first zero, then trim one element off each end.", "out": "与久为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off after the first zero appears, then cut off the first and last.", "out": "与久为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take values up to (excluding) the first zero, then remove the first and last elements.", "out": "与久为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the part before the first 0, then keep only the middle part.", "out": "与久为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate at the first zero, then drop first and last.", "out": "与久为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then delete everything starting with the first zero, then eliminate the outermost elements.", "out": "与久为"} {"kind": "builder", "in": "与久为", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "与久为", "out": "Take a list of integers; negate each, then keep everything before the first zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then decrement each value, then give the earliest even value or zero.", "out": "万不乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Lower each number by one, then fetch the first even element, default to 0.", "out": "万不乒"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then reduce each by one, then give the earliest even value or zero.", "out": "万不乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Subtract 1 from all, then fetch the first even element, default to 0.", "out": "万不乒"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Subtract one from each, then give the earliest even value or zero.", "out": "万不乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Drop each by one, then fetch the first even element, default to 0.", "out": "万不乒"} {"kind": "builder", "in": "万不乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "万不乒", "out": "Take a list of integers; keep the negative numbers, then subtract one from each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the first 3 elements, then find the min, defaulting to 0.", "out": "七丕丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove everything after the third, then minimum value, zero otherwise.", "out": "七丕丛"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then truncate to three items, then get the minimum value or zero if empty.", "out": "七丕丛"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then show the first three, then give me the min or 0.", "out": "七丕丛"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then take the first three, then return the smallest number, defaulting to 0.", "out": "七丕丛"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep first 3, then return smallest or zero if empty.", "out": "七丕丛"} {"kind": "builder", "in": "七丕丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:3]\n return min(r) if r else 0"} {"kind": "translator", "in": "七丕丛", "out": "Take a list of integers; keep the positive numbers, then keep only the first three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then keep only numbers above 5.", "out": "且世主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then exclude values of 5 and below.", "out": "且世主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then remove anything 5 or less.", "out": "且世主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then filter to keep only values above 5.", "out": "且世主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then get rid of values that aren't greater than five.", "out": "且世主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then drop anything 5 or below.", "out": "且世主"} {"kind": "builder", "in": "且世主", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "且世主", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first element, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below, then reduce each by one.", "out": "丏主不"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5, then Subtract 1 from all.", "out": "丏主不"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5, then Subtract one from each.", "out": "丏主不"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5, then Drop each by one.", "out": "丏主不"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five, then Decrease all values by one.", "out": "丏主不"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five, then Remove one from each value.", "out": "丏主不"} {"kind": "builder", "in": "丏主不", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丏主不", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value, then give the number of evens.", "out": "与下乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all, then find how many values are divisible by two.", "out": "与下乓"} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value, then how many are even.", "out": "与下乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all, then get the total number of even values in the list.", "out": "与下乓"} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value, then give me the count of even values.", "out": "与下乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all, then I need to know how many of these are even.", "out": "与下乓"} {"kind": "builder", "in": "与下乓", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "与下乓", "out": "Take a list of integers; negate each, then add one to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then drop the odd numbers.", "out": "世丁一"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then filter out the odd numbers.", "out": "世丁一"} {"kind": "builder", "in": "世丁一", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "世丁一", "out": "Take a list of integers; drop the first element, then keep the odd numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the first 3 elements, then shift each up by ten.", "out": "乃丕丽"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then remove everything after the third, then increase all numbers by 10.", "out": "乃丕丽"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then truncate to three items, then add 10 to everything.", "out": "乃丕丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then show the first three, then give everything a boost of 10.", "out": "乃丕丽"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then take the first three, then increment each by ten.", "out": "乃丕丽"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep first 3, then add a constant 10 to each.", "out": "乃丕丽"} {"kind": "builder", "in": "乃丕丽", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乃丕丽", "out": "Take a list of integers; drop the leading negative values, then keep only the first three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then multiply each by -1.", "out": "丁七与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then negate.", "out": "丁七与"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then multiply each by -1.", "out": "丁七与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then negate.", "out": "丁七与"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then multiply each by -1.", "out": "丁七与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then negate.", "out": "丁七与"} {"kind": "builder", "in": "丁七与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丁七与", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove both ends, then limit every value to 10.", "out": "久为丘"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then trim the edges, then maximum of 10 for all.", "out": "久为丘"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then trim one element off each end, then limit every value to 10.", "out": "久为丘"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then cut off the first and last, then maximum of 10 for all.", "out": "久为丘"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first and last elements, then limit every value to 10.", "out": "久为丘"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep only the middle part, then maximum of 10 for all.", "out": "久为丘"} {"kind": "builder", "in": "久为丘", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "久为丘", "out": "Take a list of integers; keep everything before the first zero, then drop the first and last elements, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increment each value, then put the elements backwards.", "out": "丕下丐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then plus one for all, then reverse that for me.", "out": "丕下丐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then increment each value, then flip it backwards.", "out": "丕下丐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then plus one for all, then make it backwards.", "out": "丕下丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then increment each value, then reverse the list.", "out": "丕下丐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then plus one for all, then invert the sequence.", "out": "丕下丐"} {"kind": "builder", "in": "丕下丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丕下丐", "out": "Take a list of integers; keep only the first three, then add one to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove both ends, then find the max, defaulting to 0.", "out": "久为业"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then trim the edges, then Give me the maximum, but 0 if there are no items.", "out": "久为业"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then trim one element off each end, then What's the highest number in the list.", "out": "久为业"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then cut off the first and last, then Return the greatest value or default to 0.", "out": "久为业"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first and last elements, then Find the largest element, defaulting to zero.", "out": "久为业"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep only the middle part, then give the largest value (0 if none).", "out": "久为业"} {"kind": "builder", "in": "久为业", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return max(r) if r else 0"} {"kind": "translator", "in": "久为业", "out": "Take a list of integers; keep everything before the first zero, then drop the first and last elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values below zero, then arrange by magnitude ignoring sign.", "out": "丑万丸"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then get the negative numbers, then put them in order by magnitude.", "out": "丑万丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep values below zero, then arrange in order of absolute value.", "out": "丑万丸"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then get the negative numbers, then sort by distance from zero.", "out": "丑万丸"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep values below zero, then order by how far from zero.", "out": "丑万丸"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then get the negative numbers, then order by distance from zero.", "out": "丑万丸"} {"kind": "builder", "in": "丑万丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x < 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丑万丸", "out": "Take a list of integers; sort ascending, then keep the negative numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove repeated values, then raise each to the power of two.", "out": "丘且上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then unique values preserving order, then I need each number multiplied by itself.", "out": "丘且上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove repeated values, then square all of them.", "out": "丘且上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then unique values preserving order, then multiply each element by itself.", "out": "丘且上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove repeated values, then make each one squared.", "out": "丘且上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then unique values preserving order, then square each value in the list.", "out": "丘且上"} {"kind": "builder", "in": "丘且上", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丘且上", "out": "Take a list of integers; cap each value at 10, then drop duplicates keeping first occurrence, then square each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the final 3 elements, then reduce each by one.", "out": "丐丹不"} {"kind": "speaker", "in": "Take a list of integers; reverse, then drop everything except the final three, then Subtract 1 from all.", "out": "丐丹不"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then give me the last three elements, then Subtract one from each.", "out": "丐丹不"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep only the last three, then Drop each by one.", "out": "丐丹不"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep the final three items, then Decrease all values by one.", "out": "丐丹不"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the last three, then Remove one from each value.", "out": "丐丹不"} {"kind": "builder", "in": "丐丹不", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[-3:]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丐丹不", "out": "Take a list of integers; reverse the order, then keep only the last three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the sign of each, then drop anything not divisible by three.", "out": "乃与串"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then turn positives to negatives and vice versa, then filter out everything except multiples of three.", "out": "乃与串"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then flip the sign of each, then keep only multiples of three.", "out": "乃与串"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn positives to negatives and vice versa, then multiples of three only.", "out": "乃与串"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip the sign of each, then filter for numbers divisible by three.", "out": "乃与串"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then turn positives to negatives and vice versa, then give me only the values divisible by three.", "out": "乃与串"} {"kind": "builder", "in": "乃与串", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "乃与串", "out": "Take a list of integers; drop the leading negative values, then negate each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then make every value non-negative, then true if already sorted smallest to largest.", "out": "丑丏乎"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then absolute value for all items, then does this list go in ascending order.", "out": "丑丏乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take absolute values, then check if the list is in ascending order.", "out": "丑丏乎"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn negatives into positives, then is the list sorted.", "out": "丑丏乎"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then abs each element, then is it sorted.", "out": "丑丏乎"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the absolute value of each, then check if values are in increasing order.", "out": "丑丏乎"} {"kind": "builder", "in": "丑丏乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [abs(x) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丑丏乎", "out": "Take a list of integers; sort ascending, then take the absolute value of each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only even values, then trim one element off each end.", "out": "上一为"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then extract all even numbers, then cut off the first and last.", "out": "上一为"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only even values, then remove the first and last elements.", "out": "上一为"} {"kind": "speaker", "in": "Take a list of integers; square them all, then extract all even numbers, then keep only the middle part.", "out": "上一为"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only even values, then drop first and last.", "out": "上一为"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then extract all even numbers, then eliminate the outermost elements.", "out": "上一为"} {"kind": "builder", "in": "上一为", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "上一为", "out": "Take a list of integers; square each, then keep the even numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort smallest to largest, then strip the signs.", "out": "丕丑丏"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Ascending sort, then take abs of each.", "out": "丕丑丏"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then Sort this ascending, then get the absolute value of everything.", "out": "丕丑丏"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Sort lowest to highest, then apply absolute value to the whole list.", "out": "丕丑丏"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Arrange from smallest to largest, then make them all positive.", "out": "丕丑丏"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort ascending, then make every value non-negative.", "out": "丕丑丏"} {"kind": "builder", "in": "丕丑丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丕丑丏", "out": "Take a list of integers; keep only the first three, then sort ascending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then cut the list at the first zero, then give the number of evens.", "out": "举久乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off after the first zero appears, then find how many values are divisible by two.", "out": "举久乓"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take values up to (excluding) the first zero, then how many are even.", "out": "举久乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the part before the first 0, then get the total number of even values in the list.", "out": "举久乓"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate at the first zero, then give me the count of even values.", "out": "举久乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then delete everything starting with the first zero, then I need to know how many of these are even.", "out": "举久乓"} {"kind": "builder", "in": "举久乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "举久乓", "out": "Take a list of integers; drop the zeros, then keep everything before the first zero, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then order by distance from zero, then keep only numbers above 5.", "out": "义丸主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort based on absolute value, then exclude values of 5 and below.", "out": "义丸主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then organize by magnitude, then remove anything 5 or less.", "out": "义丸主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then arrange by absolute value ascending, then filter to keep only values above 5.", "out": "义丸主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from smallest to largest absolute value, then get rid of values that aren't greater than five.", "out": "义丸主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by absolute value, then drop anything 5 or below.", "out": "义丸主"} {"kind": "builder", "in": "义丸主", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "义丸主", "out": "Take a list of integers; pad with zeros to at least three elements, then sort by absolute value, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then increment each value, then true only if all are positive.", "out": "丸下乌"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then plus one for all, then do all of these have positive values.", "out": "丸下乌"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then increment each value, then check if every value is positive.", "out": "丸下乌"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then plus one for all, then confirm all values are positive.", "out": "丸下乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then increment each value, then all positive.", "out": "丸下乌"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then plus one for all, then check if every number is above zero.", "out": "丸下乌"} {"kind": "builder", "in": "丸下乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x + 1 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丸下乌", "out": "Take a list of integers; sort by absolute value, then add one to each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then default to [0] when there is nothing, then bump each up by one.", "out": "丏么下"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then when the list is empty, substitute a zero value, then increment each item.", "out": "丏么下"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then replace an empty list with one zero, then bump each up by one.", "out": "丏么下"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then zero it out if it's empty, then increment each item.", "out": "丏么下"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then use zero if the list is empty, then bump each up by one.", "out": "丏么下"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then default to zero when empty, then increment each item.", "out": "丏么下"} {"kind": "builder", "in": "丏么下", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丏么下", "out": "Take a list of integers; take the absolute value of each, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then decrement each value, then trim one element off each end.", "out": "丕不为"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Lower each number by one, then cut off the first and last.", "out": "丕不为"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then reduce each by one, then remove the first and last elements.", "out": "丕不为"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Subtract 1 from all, then keep only the middle part.", "out": "丕不为"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Subtract one from each, then drop first and last.", "out": "丕不为"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Drop each by one, then eliminate the outermost elements.", "out": "丕不为"} {"kind": "builder", "in": "丕不为", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x - 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丕不为", "out": "Take a list of integers; keep only the first three, then subtract one from each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then true only if all are positive.", "out": "九乃乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then do all of these have positive values.", "out": "九乃乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then check if every value is positive.", "out": "九乃乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then confirm all values are positive.", "out": "九乃乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then all positive.", "out": "九乃乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then check if every number is above zero.", "out": "九乃乌"} {"kind": "builder", "in": "九乃乌", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "九乃乌", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove all zero values, then arrange by magnitude ignoring sign.", "out": "主举丸"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then exclude zeros, then put them in order by magnitude.", "out": "主举丸"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove all zero values, then arrange in order of absolute value.", "out": "主举丸"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then exclude zeros, then sort by distance from zero.", "out": "主举丸"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove all zero values, then order by how far from zero.", "out": "主举丸"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then exclude zeros, then order by distance from zero.", "out": "主举丸"} {"kind": "builder", "in": "主举丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "主举丸", "out": "Take a list of integers; keep values greater than five, then drop the zeros, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then arrange by magnitude ignoring sign.", "out": "与丁丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then put them in order by magnitude.", "out": "与丁丸"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then arrange in order of absolute value.", "out": "与丁丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then sort by distance from zero.", "out": "与丁丸"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then order by how far from zero.", "out": "与丁丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then order by distance from zero.", "out": "与丁丸"} {"kind": "builder", "in": "与丁丸", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "与丁丸", "out": "Take a list of integers; negate each, then keep the odd numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each by two, then give the earliest even value or zero.", "out": "七丈乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then double each item in the list, then fetch the first even element, default to 0.", "out": "七丈乒"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then multiply each by two, then give the earliest even value or zero.", "out": "七丈乒"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then double each item in the list, then fetch the first even element, default to 0.", "out": "七丈乒"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then multiply each by two, then give the earliest even value or zero.", "out": "七丈乒"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then double each item in the list, then fetch the first even element, default to 0.", "out": "七丈乒"} {"kind": "builder", "in": "七丈乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "七丈乒", "out": "Take a list of integers; keep the positive numbers, then double each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the sign of each, then true if already sorted smallest to largest.", "out": "乃与乎"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then turn positives to negatives and vice versa, then does this list go in ascending order.", "out": "乃与乎"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then flip the sign of each, then check if the list is in ascending order.", "out": "乃与乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn positives to negatives and vice versa, then is the list sorted.", "out": "乃与乎"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip the sign of each, then is it sorted.", "out": "乃与乎"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then turn positives to negatives and vice versa, then check if values are in increasing order.", "out": "乃与乎"} {"kind": "builder", "in": "乃与乎", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "乃与乎", "out": "Take a list of integers; drop the leading negative values, then negate each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove both ends, then replace an empty list with one zero.", "out": "丑为么"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then trim the edges, then zero it out if it's empty.", "out": "丑为么"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then trim one element off each end, then use zero if the list is empty.", "out": "丑为么"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then cut off the first and last, then default to zero when empty.", "out": "丑为么"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first and last elements, then if there's nothing, put in a zero.", "out": "丑为么"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep only the middle part, then if no items, add a zero.", "out": "丑为么"} {"kind": "builder", "in": "丑为么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:-1]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丑为么", "out": "Take a list of integers; sort ascending, then drop the first and last elements, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then order by distance from zero, then truncate to three items.", "out": "丏丸丕"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort based on absolute value, then show the first three.", "out": "丏丸丕"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then organize by magnitude, then take the first three.", "out": "丏丸丕"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then arrange by absolute value ascending, then keep first 3.", "out": "丏丸丕"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort from smallest to largest absolute value, then truncate to first three.", "out": "丏丸丕"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort by absolute value, then first three.", "out": "丏丸丕"} {"kind": "builder", "in": "丏丸丕", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, key=abs)\n r = r[:3]\n return r"} {"kind": "translator", "in": "丏丸丕", "out": "Take a list of integers; take the absolute value of each, then sort by absolute value, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then true if any value equals zero.", "out": "义且乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then check for zero.", "out": "义且乍"} {"kind": "builder", "in": "义且乍", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return 0 in r"} {"kind": "translator", "in": "义且乍", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then take the first 3 elements, then true only if all are positive.", "out": "主丕乌"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then remove everything after the third, then do all of these have positive values.", "out": "主丕乌"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then truncate to three items, then check if every value is positive.", "out": "主丕乌"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then show the first three, then confirm all values are positive.", "out": "主丕乌"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then take the first three, then all positive.", "out": "主丕乌"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep first 3, then check if every number is above zero.", "out": "主丕乌"} {"kind": "builder", "in": "主丕乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:3]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "主丕乌", "out": "Take a list of integers; keep values greater than five, then keep only the first three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort smallest to largest, then make each twice as big.", "out": "丏丑丈"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Ascending sort, then multiply each by 2.", "out": "丏丑丈"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then Sort this ascending, then make each twice as big.", "out": "丏丑丈"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Sort lowest to highest, then multiply each by 2.", "out": "丏丑丈"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Arrange from smallest to largest, then make each twice as big.", "out": "丏丑丈"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort ascending, then multiply each by 2.", "out": "丏丑丈"} {"kind": "builder", "in": "丏丑丈", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丏丑丈", "out": "Take a list of integers; take the absolute value of each, then sort ascending, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort smallest to largest, then take values up to (excluding) the first zero.", "out": "且丑久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Ascending sort, then keep the part before the first 0.", "out": "且丑久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Sort this ascending, then truncate at the first zero.", "out": "且丑久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Sort lowest to highest, then delete everything starting with the first zero.", "out": "且丑久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Arrange from smallest to largest, then remove from the first zero onwards.", "out": "且丑久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort ascending, then up to but not including the first zero.", "out": "且丑久"} {"kind": "builder", "in": "且丑久", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "且丑久", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort ascending, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort smallest to largest, then truncate to the last three items.", "out": "世丑丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Ascending sort, then show only the last three.", "out": "世丑丹"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Sort this ascending, then remove all but the last three.", "out": "世丑丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Sort lowest to highest, then take the final 3 elements.", "out": "世丑丹"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Arrange from smallest to largest, then drop everything except the final three.", "out": "世丑丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort ascending, then give me the last three elements.", "out": "世丑丹"} {"kind": "builder", "in": "世丑丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "世丑丹", "out": "Take a list of integers; drop the first element, then sort ascending, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then take the first 3 elements, then skip the first one.", "out": "丑丕世"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove everything after the third, then Discard the first element.", "out": "丑丕世"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then truncate to three items, then skip the first one.", "out": "丑丕世"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then show the first three, then Discard the first element.", "out": "丑丕世"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then take the first three, then skip the first one.", "out": "丑丕世"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep first 3, then Discard the first element.", "out": "丑丕世"} {"kind": "builder", "in": "丑丕世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:3]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丑丕世", "out": "Take a list of integers; sort ascending, then keep only the first three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then find the min, defaulting to 0.", "out": "丐丈丛"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then minimum value, zero otherwise.", "out": "丐丈丛"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then get the minimum value or zero if empty.", "out": "丐丈丛"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then give me the min or 0.", "out": "丐丈丛"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then return the smallest number, defaulting to 0.", "out": "丐丈丛"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then return smallest or zero if empty.", "out": "丐丈丛"} {"kind": "builder", "in": "丐丈丛", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丐丈丛", "out": "Take a list of integers; reverse the order, then double each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then true only if all are positive.", "out": "义乂乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then do all of these have positive values.", "out": "义乂乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then check if every value is positive.", "out": "义乂乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then confirm all values are positive.", "out": "义乂乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then all positive.", "out": "义乂乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then check if every number is above zero.", "out": "义乂乌"} {"kind": "builder", "in": "义乂乌", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "义乂乌", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then decrement each value, then deduplicate the list.", "out": "丏不且"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Lower each number by one, then remove repeats.", "out": "丏不且"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then reduce each by one, then deduplicate the list.", "out": "丏不且"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Subtract 1 from all, then remove repeats.", "out": "丏不且"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Subtract one from each, then deduplicate the list.", "out": "丏不且"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Drop each by one, then remove repeats.", "out": "丏不且"} {"kind": "builder", "in": "丏不且", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丏不且", "out": "Take a list of integers; take the absolute value of each, then subtract one from each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then true only if all are positive.", "out": "九一乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then do all of these have positive values.", "out": "九一乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then check if every value is positive.", "out": "九一乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then confirm all values are positive.", "out": "九一乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then all positive.", "out": "九一乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then check if every number is above zero.", "out": "九一乌"} {"kind": "builder", "in": "九一乌", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "九一乌", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then give back the total.", "out": "主乂丙"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then sum r.", "out": "主乂丙"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then add them up.", "out": "主乂丙"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then calculate the sum of all elements.", "out": "主乂丙"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then what's the total.", "out": "主乂丙"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then what do they add up to.", "out": "主乂丙"} {"kind": "builder", "in": "主乂丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return sum(r)"} {"kind": "translator", "in": "主乂丙", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each by two, then reduce each by one.", "out": "世丈不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then double each item in the list, then Subtract 1 from all.", "out": "世丈不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each by two, then Subtract one from each.", "out": "世丈不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then double each item in the list, then Drop each by one.", "out": "世丈不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each by two, then Decrease all values by one.", "out": "世丈不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then double each item in the list, then Remove one from each value.", "out": "世丈不"} {"kind": "builder", "in": "世丈不", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "世丈不", "out": "Take a list of integers; drop the first element, then double each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values below zero, then find the max, defaulting to 0.", "out": "主万业"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then get the negative numbers, then Give me the maximum, but 0 if there are no items.", "out": "主万业"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep values below zero, then What's the highest number in the list.", "out": "主万业"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then get the negative numbers, then Return the greatest value or default to 0.", "out": "主万业"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep values below zero, then Find the largest element, defaulting to zero.", "out": "主万业"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then get the negative numbers, then give the largest value (0 if none).", "out": "主万业"} {"kind": "builder", "in": "主万业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "主万业", "out": "Take a list of integers; keep values greater than five, then keep the negative numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then shift each up by ten.", "out": "丁义丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then increase all numbers by 10.", "out": "丁义丽"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then add 10 to everything.", "out": "丁义丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then give everything a boost of 10.", "out": "丁义丽"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then increment each by ten.", "out": "丁义丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then add a constant 10 to each.", "out": "丁义丽"} {"kind": "builder", "in": "丁义丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丁义丽", "out": "Take a list of integers; keep the odd numbers, then pad with zeros to at least three elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the final 3 elements, then give the earliest even value or zero.", "out": "丁丹乒"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop everything except the final three, then fetch the first even element, default to 0.", "out": "丁丹乒"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give me the last three elements, then give the earliest even value or zero.", "out": "丁丹乒"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the last three, then fetch the first even element, default to 0.", "out": "丁丹乒"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the final three items, then give the earliest even value or zero.", "out": "丁丹乒"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the last three, then fetch the first even element, default to 0.", "out": "丁丹乒"} {"kind": "builder", "in": "丁丹乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丁丹乒", "out": "Take a list of integers; keep the odd numbers, then keep only the last three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the final 3 elements, then count the elements.", "out": "上丹东"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then drop everything except the final three, then how many items remain.", "out": "上丹东"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give me the last three elements, then tell me the length.", "out": "上丹东"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep only the last three, then return the length.", "out": "上丹东"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep the final three items, then count them.", "out": "上丹东"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the last three, then what's the count.", "out": "上丹东"} {"kind": "builder", "in": "上丹东", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[-3:]\n return len(r)"} {"kind": "translator", "in": "上丹东", "out": "Take a list of integers; square each, then keep only the last three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then make each twice as big.", "out": "久世丈"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then multiply each by 2.", "out": "久世丈"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then make each twice as big.", "out": "久世丈"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then multiply each by 2.", "out": "久世丈"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then make each twice as big.", "out": "久世丈"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then multiply each by 2.", "out": "久世丈"} {"kind": "builder", "in": "久世丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "久世丈", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then trim one element off each end.", "out": "且丽为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then cut off the first and last.", "out": "且丽为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then remove the first and last elements.", "out": "且丽为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then keep only the middle part.", "out": "且丽为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then drop first and last.", "out": "且丽为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then eliminate the outermost elements.", "out": "且丽为"} {"kind": "builder", "in": "且丽为", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "且丽为", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then skip negatives at the start, then ensure at least three items by appending zeros.", "out": "世乃义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove all negatives at the front, then ensure minimum length of three by adding zeros to the end.", "out": "世乃义"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the initial run of negative numbers, then ensure at least three items by appending zeros.", "out": "世乃义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then strip the front negatives, then ensure minimum length of three by adding zeros to the end.", "out": "世乃义"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove leading negative numbers, then ensure at least three items by appending zeros.", "out": "世乃义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop negatives from start, then ensure minimum length of three by adding zeros to the end.", "out": "世乃义"} {"kind": "builder", "in": "世乃义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "世乃义", "out": "Take a list of integers; drop the first element, then drop the leading negative values, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; square each, then cut the list at the first zero, then drop the even numbers.", "out": "上久丁"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then cut off after the first zero appears, then strip out the evens.", "out": "上久丁"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take values up to (excluding) the first zero, then drop the even numbers.", "out": "上久丁"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the part before the first 0, then strip out the evens.", "out": "上久丁"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then truncate at the first zero, then drop the even numbers.", "out": "上久丁"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then delete everything starting with the first zero, then strip out the evens.", "out": "上久丁"} {"kind": "builder", "in": "上久丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "上久丁", "out": "Take a list of integers; square each, then keep everything before the first zero, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything 5 or below, then stop at the first non-positive value.", "out": "举主乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only numbers greater than 5, then keep the leading run of positive numbers.", "out": "举主乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then filter for numbers above 5, then take values while they are positive.", "out": "举主乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give me values where x is greater than 5, then take positive values then stop.", "out": "举主乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then show me only the values that are bigger than five, then keep going while positive.", "out": "举主乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep values greater than five, then stop at first non positive.", "out": "举主乂"} {"kind": "builder", "in": "举主乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "举主乂", "out": "Take a list of integers; drop the zeros, then keep values greater than five, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then order by distance from zero, then trim one element off each end.", "out": "丹丸为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort based on absolute value, then cut off the first and last.", "out": "丹丸为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then organize by magnitude, then remove the first and last elements.", "out": "丹丸为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then arrange by absolute value ascending, then keep only the middle part.", "out": "丹丸为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort from smallest to largest absolute value, then drop first and last.", "out": "丹丸为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort by absolute value, then eliminate the outermost elements.", "out": "丹丸为"} {"kind": "builder", "in": "丹丸为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, key=abs)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹丸为", "out": "Take a list of integers; keep only the last three, then sort by absolute value, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then cut the list at the first zero, then arrange in increasing order.", "out": "乃久丑"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then cut off after the first zero appears, then Organize these ascending.", "out": "乃久丑"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take values up to (excluding) the first zero, then Sort in ascending order.", "out": "乃久丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the part before the first 0, then I need this sorted ascending.", "out": "乃久丑"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then truncate at the first zero, then Put these in ascending order.", "out": "乃久丑"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then delete everything starting with the first zero, then sort smallest to largest.", "out": "乃久丑"} {"kind": "builder", "in": "乃久丑", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乃久丑", "out": "Take a list of integers; drop the leading negative values, then keep everything before the first zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then keep only numbers above 5.", "out": "下丘主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then exclude values of 5 and below.", "out": "下丘主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then remove anything 5 or less.", "out": "下丘主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then filter to keep only values above 5.", "out": "下丘主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then get rid of values that aren't greater than five.", "out": "下丘主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then drop anything 5 or below.", "out": "下丘主"} {"kind": "builder", "in": "下丘主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "下丘主", "out": "Take a list of integers; add one to each, then cap each value at 10, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then order by distance from zero, then raise each to the power of two.", "out": "丘丸上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort based on absolute value, then I need each number multiplied by itself.", "out": "丘丸上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then organize by magnitude, then square all of them.", "out": "丘丸上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then arrange by absolute value ascending, then multiply each element by itself.", "out": "丘丸上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from smallest to largest absolute value, then make each one squared.", "out": "丘丸上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by absolute value, then square each value in the list.", "out": "丘丸上"} {"kind": "builder", "in": "丘丸上", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丘丸上", "out": "Take a list of integers; cap each value at 10, then sort by absolute value, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only even values, then give back the total.", "out": "为一丙"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then extract all even numbers, then sum r.", "out": "为一丙"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only even values, then add them up.", "out": "为一丙"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then extract all even numbers, then calculate the sum of all elements.", "out": "为一丙"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only even values, then what's the total.", "out": "为一丙"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then extract all even numbers, then what do they add up to.", "out": "为一丙"} {"kind": "builder", "in": "为一丙", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n return sum(r)"} {"kind": "translator", "in": "为一丙", "out": "Take a list of integers; drop the first and last elements, then keep the even numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove repeated values, then ensure at least three items by appending zeros.", "out": "举且义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "举且义"} {"kind": "builder", "in": "举且义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "举且义", "out": "Take a list of integers; drop the zeros, then drop duplicates keeping first occurrence, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then extend to length 3 using zeros, then drop the even numbers.", "out": "丏义丁"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then pad to 3, then strip out the evens.", "out": "丏义丁"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then extend to length 3 using zeros, then drop the even numbers.", "out": "丏义丁"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then pad to 3, then strip out the evens.", "out": "丏义丁"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then extend to length 3 using zeros, then drop the even numbers.", "out": "丏义丁"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then pad to 3, then strip out the evens.", "out": "丏义丁"} {"kind": "builder", "in": "丏义丁", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丏义丁", "out": "Take a list of integers; take the absolute value of each, then pad with zeros to at least three elements, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increase every value by 10, then keep only numbers above 5.", "out": "丐丽主"} {"kind": "speaker", "in": "Take a list of integers; reverse, then add 10 to each item, then exclude values of 5 and below.", "out": "丐丽主"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then shift each up by ten, then remove anything 5 or less.", "out": "丐丽主"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then increase all numbers by 10, then filter to keep only values above 5.", "out": "丐丽主"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "丐丽主"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give everything a boost of 10, then drop anything 5 or below.", "out": "丐丽主"} {"kind": "builder", "in": "丐丽主", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丐丽主", "out": "Take a list of integers; reverse the order, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then cut the list at the first zero, then arrange by magnitude ignoring sign.", "out": "串久丸"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then cut off after the first zero appears, then put them in order by magnitude.", "out": "串久丸"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take values up to (excluding) the first zero, then arrange in order of absolute value.", "out": "串久丸"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the part before the first 0, then sort by distance from zero.", "out": "串久丸"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then truncate at the first zero, then order by how far from zero.", "out": "串久丸"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then delete everything starting with the first zero, then order by distance from zero.", "out": "串久丸"} {"kind": "builder", "in": "串久丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "串久丸", "out": "Take a list of integers; keep multiples of three, then keep everything before the first zero, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove the first item, then drop non-negative values.", "out": "丹世万"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Remove head, then drop all positive numbers.", "out": "丹世万"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the first item, then drop non-negative values.", "out": "丹世万"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Remove head, then drop all positive numbers.", "out": "丹世万"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first item, then drop non-negative values.", "out": "丹世万"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Remove head, then drop all positive numbers.", "out": "丹世万"} {"kind": "builder", "in": "丹世万", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丹世万", "out": "Take a list of integers; keep only the last three, then drop the first element, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increment each value, then ensure at least three items by appending zeros.", "out": "丕下义"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丕下义"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then increment each value, then ensure at least three items by appending zeros.", "out": "丕下义"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丕下义"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then increment each value, then ensure at least three items by appending zeros.", "out": "丕下义"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丕下义"} {"kind": "builder", "in": "丕下义", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丕下义", "out": "Take a list of integers; keep only the first three, then add one to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then sort smallest to largest, then drop the even numbers.", "out": "乂丑丁"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Ascending sort, then strip out the evens.", "out": "乂丑丁"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then Sort this ascending, then drop the even numbers.", "out": "乂丑丁"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Sort lowest to highest, then strip out the evens.", "out": "乂丑丁"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then Arrange from smallest to largest, then drop the even numbers.", "out": "乂丑丁"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort ascending, then strip out the evens.", "out": "乂丑丁"} {"kind": "builder", "in": "乂丑丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "乂丑丁", "out": "Take a list of integers; take values while they are positive, then sort ascending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values, then truncate to the last three items.", "out": "丕举丹"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros, then show only the last three.", "out": "丕举丹"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values, then remove all but the last three.", "out": "丕举丹"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros, then take the final 3 elements.", "out": "丕举丹"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values, then drop everything except the final three.", "out": "丕举丹"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros, then give me the last three elements.", "out": "丕举丹"} {"kind": "builder", "in": "丕举丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丕举丹", "out": "Take a list of integers; keep only the first three, then drop the zeros, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove both ends, then make each twice as big.", "out": "一为丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then trim the edges, then multiply each by 2.", "out": "一为丈"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then trim one element off each end, then make each twice as big.", "out": "一为丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off the first and last, then multiply each by 2.", "out": "一为丈"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first and last elements, then make each twice as big.", "out": "一为丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the middle part, then multiply each by 2.", "out": "一为丈"} {"kind": "builder", "in": "一为丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "一为丈", "out": "Take a list of integers; keep the even numbers, then drop the first and last elements, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then truncate to the last three items.", "out": "举世丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then show only the last three.", "out": "举世丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then remove all but the last three.", "out": "举世丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then take the final 3 elements.", "out": "举世丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then drop everything except the final three.", "out": "举世丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then give me the last three elements.", "out": "举世丹"} {"kind": "builder", "in": "举世丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "举世丹", "out": "Take a list of integers; drop the zeros, then drop the first element, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then shift each up by ten.", "out": "与一丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then increase all numbers by 10.", "out": "与一丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then add 10 to everything.", "out": "与一丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then give everything a boost of 10.", "out": "与一丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then increment each by ten.", "out": "与一丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then add a constant 10 to each.", "out": "与一丽"} {"kind": "builder", "in": "与一丽", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "与一丽", "out": "Take a list of integers; negate each, then keep the even numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep the leading run of positive numbers, then drop the odd numbers.", "out": "丏乂一"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then take values while they are positive, then filter out the odd numbers.", "out": "丏乂一"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take positive values then stop, then drop the odd numbers.", "out": "丏乂一"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep going while positive, then filter out the odd numbers.", "out": "丏乂一"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then stop at first non positive, then drop the odd numbers.", "out": "丏乂一"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take while greater than zero, then filter out the odd numbers.", "out": "丏乂一"} {"kind": "builder", "in": "丏乂一", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丏乂一", "out": "Take a list of integers; take the absolute value of each, then take values while they are positive, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then find the max, defaulting to 0.", "out": "九乃业"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then Give me the maximum, but 0 if there are no items.", "out": "九乃业"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then What's the highest number in the list.", "out": "九乃业"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then Return the greatest value or default to 0.", "out": "九乃业"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then Find the largest element, defaulting to zero.", "out": "九乃业"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then give the largest value (0 if none).", "out": "九乃业"} {"kind": "builder", "in": "九乃业", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return max(r) if r else 0"} {"kind": "translator", "in": "九乃业", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values divisible by 3, then true only if all are positive.", "out": "一串乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep items where x mod 3 equals zero, then do all of these have positive values.", "out": "一串乌"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything not divisible by three, then check if every value is positive.", "out": "一串乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter out everything except multiples of three, then confirm all values are positive.", "out": "一串乌"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only multiples of three, then all positive.", "out": "一串乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiples of three only, then check if every number is above zero.", "out": "一串乌"} {"kind": "builder", "in": "一串乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "一串乌", "out": "Take a list of integers; keep the even numbers, then keep multiples of three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then cut the list at the first zero, then give back the total.", "out": "万久丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off after the first zero appears, then sum r.", "out": "万久丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take values up to (excluding) the first zero, then add them up.", "out": "万久丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the part before the first 0, then calculate the sum of all elements.", "out": "万久丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate at the first zero, then what's the total.", "out": "万久丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then delete everything starting with the first zero, then what do they add up to.", "out": "万久丙"} {"kind": "builder", "in": "万久丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n return sum(r)"} {"kind": "translator", "in": "万久丙", "out": "Take a list of integers; keep the negative numbers, then keep everything before the first zero, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then decrement each value, then give the number of evens.", "out": "久不乓"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Lower each number by one, then find how many values are divisible by two.", "out": "久不乓"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then reduce each by one, then how many are even.", "out": "久不乓"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Subtract 1 from all, then get the total number of even values in the list.", "out": "久不乓"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Subtract one from each, then give me the count of even values.", "out": "久不乓"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Drop each by one, then I need to know how many of these are even.", "out": "久不乓"} {"kind": "builder", "in": "久不乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "久不乓", "out": "Take a list of integers; keep everything before the first zero, then subtract one from each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then give the number of evens.", "out": "万下乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then find how many values are divisible by two.", "out": "万下乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then how many are even.", "out": "万下乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then get the total number of even values in the list.", "out": "万下乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then give me the count of even values.", "out": "万下乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then I need to know how many of these are even.", "out": "万下乓"} {"kind": "builder", "in": "万下乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "万下乓", "out": "Take a list of integers; keep the negative numbers, then add one to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort smallest to largest, then give the earliest even value or zero.", "out": "丸丑乒"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Ascending sort, then fetch the first even element, default to 0.", "out": "丸丑乒"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then Sort this ascending, then give the earliest even value or zero.", "out": "丸丑乒"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Sort lowest to highest, then fetch the first even element, default to 0.", "out": "丸丑乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Arrange from smallest to largest, then give the earliest even value or zero.", "out": "丸丑乒"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort ascending, then fetch the first even element, default to 0.", "out": "丸丑乒"} {"kind": "builder", "in": "丸丑乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丸丑乒", "out": "Take a list of integers; sort by absolute value, then sort ascending, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove repeated values, then put the elements backwards.", "out": "丹且丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then unique values preserving order, then reverse that for me.", "out": "丹且丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove repeated values, then flip it backwards.", "out": "丹且丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then unique values preserving order, then make it backwards.", "out": "丹且丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove repeated values, then reverse the list.", "out": "丹且丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then unique values preserving order, then invert the sequence.", "out": "丹且丐"} {"kind": "builder", "in": "丹且丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = list(dict.fromkeys(r))\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹且丐", "out": "Take a list of integers; keep only the last three, then drop duplicates keeping first occurrence, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values below zero, then reduce each by one.", "out": "丽万不"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then get the negative numbers, then Subtract 1 from all.", "out": "丽万不"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep values below zero, then Subtract one from each.", "out": "丽万不"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then get the negative numbers, then Drop each by one.", "out": "丽万不"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep values below zero, then Decrease all values by one.", "out": "丽万不"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then get the negative numbers, then Remove one from each value.", "out": "丽万不"} {"kind": "builder", "in": "丽万不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丽万不", "out": "Take a list of integers; add ten to each, then keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then skip negatives at the start, then give the earliest even value or zero.", "out": "丕乃乒"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then remove all negatives at the front, then fetch the first even element, default to 0.", "out": "丕乃乒"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the initial run of negative numbers, then give the earliest even value or zero.", "out": "丕乃乒"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then strip the front negatives, then fetch the first even element, default to 0.", "out": "丕乃乒"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove leading negative numbers, then give the earliest even value or zero.", "out": "丕乃乒"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then drop negatives from start, then fetch the first even element, default to 0.", "out": "丕乃乒"} {"kind": "builder", "in": "丕乃乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丕乃乒", "out": "Take a list of integers; keep only the first three, then drop the leading negative values, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove both ends, then drop non-negative values.", "out": "乃为万"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then trim the edges, then drop all positive numbers.", "out": "乃为万"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then trim one element off each end, then drop non-negative values.", "out": "乃为万"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then cut off the first and last, then drop all positive numbers.", "out": "乃为万"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first and last elements, then drop non-negative values.", "out": "乃为万"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep only the middle part, then drop all positive numbers.", "out": "乃为万"} {"kind": "builder", "in": "乃为万", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "乃为万", "out": "Take a list of integers; drop the leading negative values, then drop the first and last elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then remove repeated strings, then true if a blank string is present.", "out": "严丧乙"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then keep unique strings first appearance, then check for empty strings in the list.", "out": "严丧乙"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then eliminate repeated strings preserve first occurrence, then check if there's an empty string.", "out": "严丧乙"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then drop duplicate strings keeping the first, then does the collection contain an empty string value somewhere.", "out": "严丧乙"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then dedupe, then whether any element is blank.", "out": "严丧乙"} {"kind": "speaker", "in": "Take a list of strings; length sort, then remove duplicate strings keep first, then check for an empty string.", "out": "严丧乙"} {"kind": "builder", "in": "严丧乙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = list(dict.fromkeys(r))\n return any(s == '' for s in r)"} {"kind": "translator", "in": "严丧乙", "out": "Take a list of strings; sort by length, shortest first, then drop duplicate strings keeping the first, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then drop non-negative values.", "out": "世丘万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then drop all positive numbers.", "out": "世丘万"} {"kind": "builder", "in": "世丘万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "世丘万", "out": "Take a list of integers; drop the first element, then cap each value at 10, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then skip negatives at the start, then replace an empty list with one zero.", "out": "丕乃么"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then remove all negatives at the front, then zero it out if it's empty.", "out": "丕乃么"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the initial run of negative numbers, then use zero if the list is empty.", "out": "丕乃么"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then strip the front negatives, then default to zero when empty.", "out": "丕乃么"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove leading negative numbers, then if there's nothing, put in a zero.", "out": "丕乃么"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then drop negatives from start, then if no items, add a zero.", "out": "丕乃么"} {"kind": "builder", "in": "丕乃么", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丕乃么", "out": "Take a list of integers; keep only the first three, then drop the leading negative values, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove all zero values, then give the number of evens.", "out": "丏举乓"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then exclude zeros, then find how many values are divisible by two.", "out": "丏举乓"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove all zero values, then how many are even.", "out": "丏举乓"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then exclude zeros, then get the total number of even values in the list.", "out": "丏举乓"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove all zero values, then give me the count of even values.", "out": "丏举乓"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then exclude zeros, then I need to know how many of these are even.", "out": "丏举乓"} {"kind": "builder", "in": "丏举乓", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丏举乓", "out": "Take a list of integers; take the absolute value of each, then drop the zeros, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then replace an empty list with one zero.", "out": "丕丸么"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then zero it out if it's empty.", "out": "丕丸么"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then use zero if the list is empty.", "out": "丕丸么"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then default to zero when empty.", "out": "丕丸么"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then if there's nothing, put in a zero.", "out": "丕丸么"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then if no items, add a zero.", "out": "丕丸么"} {"kind": "builder", "in": "丕丸么", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丕丸么", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove the first item, then true if at least one even value.", "out": "上世之"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Remove head, then any even.", "out": "上世之"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the first item, then true if at least one even value.", "out": "上世之"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Remove head, then any even.", "out": "上世之"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove the first item, then true if at least one even value.", "out": "上世之"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then Remove head, then any even.", "out": "上世之"} {"kind": "builder", "in": "上世之", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[1:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "上世之", "out": "Take a list of integers; square each, then drop the first element, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values above zero, then stop at the first non-positive value.", "out": "世七乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter for positive numbers, then keep the leading run of positive numbers.", "out": "世七乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only positive numbers, then take values while they are positive.", "out": "世七乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positives, then take positive values then stop.", "out": "世七乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove negatives, then keep going while positive.", "out": "世七乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positive numbers, then stop at first non positive.", "out": "世七乂"} {"kind": "builder", "in": "世七乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "世七乂", "out": "Take a list of integers; drop the first element, then keep the positive numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove both ends, then skip the first one.", "out": "丕为世"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then trim the edges, then Discard the first element.", "out": "丕为世"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then trim one element off each end, then skip the first one.", "out": "丕为世"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then cut off the first and last, then Discard the first element.", "out": "丕为世"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first and last elements, then skip the first one.", "out": "丕为世"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep only the middle part, then Discard the first element.", "out": "丕为世"} {"kind": "builder", "in": "丕为世", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:-1]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丕为世", "out": "Take a list of integers; keep only the first three, then drop the first and last elements, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove all zero values, then bump each up by one.", "out": "丑举下"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then exclude zeros, then increment each item.", "out": "丑举下"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove all zero values, then bump each up by one.", "out": "丑举下"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then exclude zeros, then increment each item.", "out": "丑举下"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove all zero values, then bump each up by one.", "out": "丑举下"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then exclude zeros, then increment each item.", "out": "丑举下"} {"kind": "builder", "in": "丑举下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x != 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丑举下", "out": "Take a list of integers; sort ascending, then drop the zeros, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove all zero values, then truncate to the last three items.", "out": "丏举丹"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then exclude zeros, then show only the last three.", "out": "丏举丹"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove all zero values, then remove all but the last three.", "out": "丏举丹"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then exclude zeros, then take the final 3 elements.", "out": "丏举丹"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove all zero values, then drop everything except the final three.", "out": "丏举丹"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then exclude zeros, then give me the last three elements.", "out": "丏举丹"} {"kind": "builder", "in": "丏举丹", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丏举丹", "out": "Take a list of integers; take the absolute value of each, then drop the zeros, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; square each, then increase every value by 10, then count the elements.", "out": "上丽东"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then add 10 to each item, then how many items remain.", "out": "上丽东"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then shift each up by ten, then tell me the length.", "out": "上丽东"} {"kind": "speaker", "in": "Take a list of integers; square them all, then increase all numbers by 10, then return the length.", "out": "上丽东"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then add 10 to everything, then count them.", "out": "上丽东"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then give everything a boost of 10, then what's the count.", "out": "上丽东"} {"kind": "builder", "in": "上丽东", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n return len(r)"} {"kind": "translator", "in": "上丽东", "out": "Take a list of integers; square each, then add ten to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then make every value non-negative, then give back the product of all values.", "out": "主丏乐"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then absolute value for all items, then product of the list.", "out": "主丏乐"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take absolute values, then what's the product.", "out": "主丏乐"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then turn negatives into positives, then what do they multiply to.", "out": "主丏乐"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then abs each element, then give me their product.", "out": "主丏乐"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take the absolute value of each, then multiply them all together.", "out": "主丏乐"} {"kind": "builder", "in": "主丏乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "主丏乐", "out": "Take a list of integers; keep values greater than five, then take the absolute value of each, then return their product."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only odd values, then count the elements.", "out": "九丁东"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then eliminate the even numbers, then how many items remain.", "out": "九丁东"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only odd values, then tell me the length.", "out": "九丁东"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then eliminate the even numbers, then return the length.", "out": "九丁东"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only odd values, then count them.", "out": "九丁东"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then eliminate the even numbers, then what's the count.", "out": "九丁东"} {"kind": "builder", "in": "九丁东", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 != 0]\n return len(r)"} {"kind": "translator", "in": "九丁东", "out": "Take a list of people records (name, age); extract the ages, then keep the odd numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then shift each up by ten.", "out": "一丈丽"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then increase all numbers by 10.", "out": "一丈丽"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then add 10 to everything.", "out": "一丈丽"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then give everything a boost of 10.", "out": "一丈丽"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then increment each by ten.", "out": "一丈丽"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then add a constant 10 to each.", "out": "一丈丽"} {"kind": "builder", "in": "一丈丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "一丈丽", "out": "Take a list of integers; keep the even numbers, then double each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero, then true if at least one even value.", "out": "世丸之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value, then any even.", "out": "世丸之"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude, then true if at least one even value.", "out": "世丸之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending, then any even.", "out": "世丸之"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value, then true if at least one even value.", "out": "世丸之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value, then any even.", "out": "世丸之"} {"kind": "builder", "in": "世丸之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "世丸之", "out": "Take a list of integers; drop the first element, then sort by absolute value, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; double each, then sort smallest to largest, then true if already sorted smallest to largest.", "out": "丈丑乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Ascending sort, then does this list go in ascending order.", "out": "丈丑乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then Sort this ascending, then check if the list is in ascending order.", "out": "丈丑乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Sort lowest to highest, then is the list sorted.", "out": "丈丑乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then Arrange from smallest to largest, then is it sorted.", "out": "丈丑乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort ascending, then check if values are in increasing order.", "out": "丈丑乎"} {"kind": "builder", "in": "丈丑乎", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r)\n return r == sorted(r)"} {"kind": "translator", "in": "丈丑乎", "out": "Take a list of integers; double each, then sort ascending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values below zero, then arrange in increasing order.", "out": "主万丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then get the negative numbers, then Organize these ascending.", "out": "主万丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep values below zero, then Sort in ascending order.", "out": "主万丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then get the negative numbers, then I need this sorted ascending.", "out": "主万丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep values below zero, then Put these in ascending order.", "out": "主万丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then get the negative numbers, then sort smallest to largest.", "out": "主万丑"} {"kind": "builder", "in": "主万丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主万丑", "out": "Take a list of integers; keep values greater than five, then keep the negative numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then extend to length 3 using zeros, then drop the even numbers.", "out": "丑义丁"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then pad to 3, then strip out the evens.", "out": "丑义丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then extend to length 3 using zeros, then drop the even numbers.", "out": "丑义丁"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then pad to 3, then strip out the evens.", "out": "丑义丁"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then extend to length 3 using zeros, then drop the even numbers.", "out": "丑义丁"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then pad to 3, then strip out the evens.", "out": "丑义丁"} {"kind": "builder", "in": "丑义丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丑义丁", "out": "Take a list of integers; sort ascending, then pad with zeros to at least three elements, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then extend to length 3 using zeros, then true if at least one even value.", "out": "丈义之"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then pad to 3, then any even.", "out": "丈义之"} {"kind": "builder", "in": "丈义之", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丈义之", "out": "Take a list of integers; double each, then pad with zeros to at least three elements, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then extend to length 3 using zeros, then stop at the first non-positive value.", "out": "专义乂"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then pad to 3, then keep the leading run of positive numbers.", "out": "专义乂"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then extend to length 3 using zeros, then take values while they are positive.", "out": "专义乂"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then pad to 3, then take positive values then stop.", "out": "专义乂"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then extend to length 3 using zeros, then keep going while positive.", "out": "专义乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then pad to 3, then stop at first non positive.", "out": "专义乂"} {"kind": "builder", "in": "专义乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "专义乂", "out": "Take a list of integers; sort descending, then pad with zeros to at least three elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove all zero values, then count the elements.", "out": "不举东"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then exclude zeros, then how many items remain.", "out": "不举东"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove all zero values, then tell me the length.", "out": "不举东"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then exclude zeros, then return the length.", "out": "不举东"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove all zero values, then count them.", "out": "不举东"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then exclude zeros, then what's the count.", "out": "不举东"} {"kind": "builder", "in": "不举东", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x != 0]\n return len(r)"} {"kind": "translator", "in": "不举东", "out": "Take a list of integers; subtract one from each, then drop the zeros, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then make every value non-negative, then replace an empty list with one zero.", "out": "丽丏么"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then absolute value for all items, then zero it out if it's empty.", "out": "丽丏么"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take absolute values, then use zero if the list is empty.", "out": "丽丏么"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn negatives into positives, then default to zero when empty.", "out": "丽丏么"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then abs each element, then if there's nothing, put in a zero.", "out": "丽丏么"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the absolute value of each, then if no items, add a zero.", "out": "丽丏么"} {"kind": "builder", "in": "丽丏么", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [abs(x) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丽丏么", "out": "Take a list of integers; add ten to each, then take the absolute value of each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then skip negatives at the start, then truncate to the last three items.", "out": "世乃丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove all negatives at the front, then show only the last three.", "out": "世乃丹"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the initial run of negative numbers, then remove all but the last three.", "out": "世乃丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then strip the front negatives, then take the final 3 elements.", "out": "世乃丹"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove leading negative numbers, then drop everything except the final three.", "out": "世乃丹"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop negatives from start, then give me the last three elements.", "out": "世乃丹"} {"kind": "builder", "in": "世乃丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "世乃丹", "out": "Take a list of integers; drop the first element, then drop the leading negative values, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values divisible by 3, then give back the product of all values.", "out": "与串乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep items where x mod 3 equals zero, then product of the list.", "out": "与串乐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything not divisible by three, then what's the product.", "out": "与串乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter out everything except multiples of three, then what do they multiply to.", "out": "与串乐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only multiples of three, then give me their product.", "out": "与串乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiples of three only, then multiply them all together.", "out": "与串乐"} {"kind": "builder", "in": "与串乐", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "与串乐", "out": "Take a list of integers; negate each, then keep multiples of three, then return their product."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then order the strings A to Z, then deduplicate the strings.", "out": "严乖丧"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then make it alphabetical, then filter out duplicate strings retain first.", "out": "严乖丧"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then order the strings A to Z, then strip duplicates preserve order.", "out": "严乖丧"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then make it alphabetical, then remove repeated strings.", "out": "严乖丧"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then order the strings A to Z, then keep unique strings first appearance.", "out": "严乖丧"} {"kind": "speaker", "in": "Take a list of strings; length sort, then make it alphabetical, then eliminate repeated strings preserve first occurrence.", "out": "严乖丧"} {"kind": "builder", "in": "严乖丧", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "严乖丧", "out": "Take a list of strings; sort by length, shortest first, then sort alphabetically, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the final 3 elements, then drop the even numbers.", "out": "且丹丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then drop everything except the final three, then strip out the evens.", "out": "且丹丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then give me the last three elements, then drop the even numbers.", "out": "且丹丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the last three, then strip out the evens.", "out": "且丹丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the final three items, then drop the even numbers.", "out": "且丹丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the last three, then strip out the evens.", "out": "且丹丁"} {"kind": "builder", "in": "且丹丁", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "且丹丁", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep only the last three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything 5 or below, then drop the even numbers.", "out": "一主丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only numbers greater than 5, then strip out the evens.", "out": "一主丁"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then filter for numbers above 5, then drop the even numbers.", "out": "一主丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me values where x is greater than 5, then strip out the evens.", "out": "一主丁"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then show me only the values that are bigger than five, then drop the even numbers.", "out": "一主丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep values greater than five, then strip out the evens.", "out": "一主丁"} {"kind": "builder", "in": "一主丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "一主丁", "out": "Take a list of integers; keep the even numbers, then keep values greater than five, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then multiply each by -1.", "out": "一举与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then negate.", "out": "一举与"} {"kind": "builder", "in": "一举与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "一举与", "out": "Take a list of integers; keep the even numbers, then drop the zeros, then negate each."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then arrange in increasing order.", "out": "丈举丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then Organize these ascending.", "out": "丈举丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then Sort in ascending order.", "out": "丈举丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then I need this sorted ascending.", "out": "丈举丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then Put these in ascending order.", "out": "丈举丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then sort smallest to largest.", "out": "丈举丑"} {"kind": "builder", "in": "丈举丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丈举丑", "out": "Take a list of integers; double each, then drop the zeros, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then find the max, defaulting to 0.", "out": "丸丈业"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then Give me the maximum, but 0 if there are no items.", "out": "丸丈业"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then What's the highest number in the list.", "out": "丸丈业"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then Return the greatest value or default to 0.", "out": "丸丈业"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then Find the largest element, defaulting to zero.", "out": "丸丈业"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then give the largest value (0 if none).", "out": "丸丈业"} {"kind": "builder", "in": "丸丈业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丸丈业", "out": "Take a list of integers; sort by absolute value, then double each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then decrement each value, then arrange by magnitude ignoring sign.", "out": "且不丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Lower each number by one, then put them in order by magnitude.", "out": "且不丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then reduce each by one, then arrange in order of absolute value.", "out": "且不丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Subtract 1 from all, then sort by distance from zero.", "out": "且不丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Subtract one from each, then order by how far from zero.", "out": "且不丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Drop each by one, then order by distance from zero.", "out": "且不丸"} {"kind": "builder", "in": "且不丸", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "且不丸", "out": "Take a list of integers; drop duplicates keeping first occurrence, then subtract one from each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then clamp each to at most ten, then true if every value is unique.", "out": "丏丘乏"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then don't let anything exceed 10, then check for duplicates in the values.", "out": "丏丘乏"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then clamp each to at most ten, then do all values appear only once.", "out": "丏丘乏"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then don't let anything exceed 10, then check that there are no duplicates.", "out": "丏丘乏"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then clamp each to at most ten, then are the values all unique.", "out": "丏丘乏"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then don't let anything exceed 10, then check if all values are unique.", "out": "丏丘乏"} {"kind": "builder", "in": "丏丘乏", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [min(x, 10) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丏丘乏", "out": "Take a list of integers; take the absolute value of each, then cap each value at 10, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove the first item, then true if already sorted smallest to largest.", "out": "七世乎"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Remove head, then does this list go in ascending order.", "out": "七世乎"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the first item, then check if the list is in ascending order.", "out": "七世乎"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Remove head, then is the list sorted.", "out": "七世乎"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first item, then is it sorted.", "out": "七世乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Remove head, then check if values are in increasing order.", "out": "七世乎"} {"kind": "builder", "in": "七世乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:]\n return r == sorted(r)"} {"kind": "translator", "in": "七世乎", "out": "Take a list of integers; keep the positive numbers, then drop the first element, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then skip negatives at the start, then arrange by magnitude ignoring sign.", "out": "丈乃丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then remove all negatives at the front, then put them in order by magnitude.", "out": "丈乃丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the initial run of negative numbers, then arrange in order of absolute value.", "out": "丈乃丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then strip the front negatives, then sort by distance from zero.", "out": "丈乃丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove leading negative numbers, then order by how far from zero.", "out": "丈乃丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop negatives from start, then order by distance from zero.", "out": "丈乃丸"} {"kind": "builder", "in": "丈乃丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丈乃丸", "out": "Take a list of integers; double each, then drop the leading negative values, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then skip negatives at the start, then multiply each by -1.", "out": "世乃与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove all negatives at the front, then negate.", "out": "世乃与"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the initial run of negative numbers, then multiply each by -1.", "out": "世乃与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then strip the front negatives, then negate.", "out": "世乃与"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove leading negative numbers, then multiply each by -1.", "out": "世乃与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop negatives from start, then negate.", "out": "世乃与"} {"kind": "builder", "in": "世乃与", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "世乃与", "out": "Take a list of integers; drop the first element, then drop the leading negative values, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the first 3 elements, then truncate to the last three items.", "out": "为丕丹"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove everything after the third, then show only the last three.", "out": "为丕丹"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then truncate to three items, then remove all but the last three.", "out": "为丕丹"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then show the first three, then take the final 3 elements.", "out": "为丕丹"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then take the first three, then drop everything except the final three.", "out": "为丕丹"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep first 3, then give me the last three elements.", "out": "为丕丹"} {"kind": "builder", "in": "为丕丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:3]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "为丕丹", "out": "Take a list of integers; drop the first and last elements, then keep only the first three, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove both ends, then bump each up by one.", "out": "丑为下"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then trim the edges, then increment each item.", "out": "丑为下"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then trim one element off each end, then bump each up by one.", "out": "丑为下"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then cut off the first and last, then increment each item.", "out": "丑为下"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first and last elements, then bump each up by one.", "out": "丑为下"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep only the middle part, then increment each item.", "out": "丑为下"} {"kind": "builder", "in": "丑为下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:-1]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丑为下", "out": "Take a list of integers; sort ascending, then drop the first and last elements, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove both ends, then give the earliest even value or zero.", "out": "丈为乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then trim the edges, then fetch the first even element, default to 0.", "out": "丈为乒"} {"kind": "speaker", "in": "Take a list of integers; double each, then trim one element off each end, then give the earliest even value or zero.", "out": "丈为乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off the first and last, then fetch the first even element, default to 0.", "out": "丈为乒"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first and last elements, then give the earliest even value or zero.", "out": "丈为乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the middle part, then fetch the first even element, default to 0.", "out": "丈为乒"} {"kind": "builder", "in": "丈为乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:-1]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丈为乒", "out": "Take a list of integers; double each, then drop the first and last elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then default to [0] when there is nothing, then truncate to the last three items.", "out": "一么丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then when the list is empty, substitute a zero value, then show only the last three.", "out": "一么丹"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then replace an empty list with one zero, then remove all but the last three.", "out": "一么丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then zero it out if it's empty, then take the final 3 elements.", "out": "一么丹"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then use zero if the list is empty, then drop everything except the final three.", "out": "一么丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then default to zero when empty, then give me the last three elements.", "out": "一么丹"} {"kind": "builder", "in": "一么丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r if r else [0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "一么丹", "out": "Take a list of integers; keep the even numbers, then if empty, use a single zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then count the elements.", "out": "丏丕东"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then how many items remain.", "out": "丏丕东"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then tell me the length.", "out": "丏丕东"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then return the length.", "out": "丏丕东"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then count them.", "out": "丏丕东"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then what's the count.", "out": "丏丕东"} {"kind": "builder", "in": "丏丕东", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n return len(r)"} {"kind": "translator", "in": "丏丕东", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the final 3 elements, then arrange in increasing order.", "out": "不丹丑"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then drop everything except the final three, then Organize these ascending.", "out": "不丹丑"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give me the last three elements, then Sort in ascending order.", "out": "不丹丑"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep only the last three, then I need this sorted ascending.", "out": "不丹丑"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep the final three items, then Put these in ascending order.", "out": "不丹丑"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the last three, then sort smallest to largest.", "out": "不丹丑"} {"kind": "builder", "in": "不丹丑", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[-3:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "不丹丑", "out": "Take a list of integers; subtract one from each, then keep only the last three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove repeated values, then true if any value equals zero.", "out": "上且乍"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then unique values preserving order, then check for zero.", "out": "上且乍"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove repeated values, then true if any value equals zero.", "out": "上且乍"} {"kind": "speaker", "in": "Take a list of integers; square them all, then unique values preserving order, then check for zero.", "out": "上且乍"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove repeated values, then true if any value equals zero.", "out": "上且乍"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then unique values preserving order, then check for zero.", "out": "上且乍"} {"kind": "builder", "in": "上且乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n return 0 in r"} {"kind": "translator", "in": "上且乍", "out": "Take a list of integers; square each, then drop duplicates keeping first occurrence, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove both ends, then ensure at least three items by appending zeros.", "out": "丹为义"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then trim the edges, then ensure minimum length of three by adding zeros to the end.", "out": "丹为义"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then trim one element off each end, then ensure at least three items by appending zeros.", "out": "丹为义"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then cut off the first and last, then ensure minimum length of three by adding zeros to the end.", "out": "丹为义"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first and last elements, then ensure at least three items by appending zeros.", "out": "丹为义"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep only the middle part, then ensure minimum length of three by adding zeros to the end.", "out": "丹为义"} {"kind": "builder", "in": "丹为义", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丹为义", "out": "Take a list of integers; keep only the last three, then drop the first and last elements, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the final 3 elements, then true if every value is unique.", "out": "不丹乏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then drop everything except the final three, then check for duplicates in the values.", "out": "不丹乏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give me the last three elements, then do all values appear only once.", "out": "不丹乏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep only the last three, then check that there are no duplicates.", "out": "不丹乏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep the final three items, then are the values all unique.", "out": "不丹乏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the last three, then check if all values are unique.", "out": "不丹乏"} {"kind": "builder", "in": "不丹乏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[-3:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "不丹乏", "out": "Take a list of integers; subtract one from each, then keep only the last three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then ensure at least three items by appending zeros.", "out": "举乂义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then ensure minimum length of three by adding zeros to the end.", "out": "举乂义"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then ensure at least three items by appending zeros.", "out": "举乂义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then ensure minimum length of three by adding zeros to the end.", "out": "举乂义"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then ensure at least three items by appending zeros.", "out": "举乂义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then ensure minimum length of three by adding zeros to the end.", "out": "举乂义"} {"kind": "builder", "in": "举乂义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "举乂义", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort largest to smallest, then arrange by magnitude ignoring sign.", "out": "丕专丸"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort by descending values, then put them in order by magnitude.", "out": "丕专丸"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then sort from highest to lowest, then arrange in order of absolute value.", "out": "丕专丸"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sort descending, then sort by distance from zero.", "out": "丕专丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort largest first, then order by how far from zero.", "out": "丕专丸"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort in descending order, then order by distance from zero.", "out": "丕专丸"} {"kind": "builder", "in": "丕专丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丕专丸", "out": "Take a list of integers; keep only the first three, then sort descending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then make every value non-negative, then raise each to the power of two.", "out": "万丏上"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then absolute value for all items, then I need each number multiplied by itself.", "out": "万丏上"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take absolute values, then square all of them.", "out": "万丏上"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn negatives into positives, then multiply each element by itself.", "out": "万丏上"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then abs each element, then make each one squared.", "out": "万丏上"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the absolute value of each, then square each value in the list.", "out": "万丏上"} {"kind": "builder", "in": "万丏上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "万丏上", "out": "Take a list of integers; keep the negative numbers, then take the absolute value of each, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then skip negatives at the start, then truncate to three items.", "out": "丹乃丕"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove all negatives at the front, then show the first three.", "out": "丹乃丕"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the initial run of negative numbers, then take the first three.", "out": "丹乃丕"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then strip the front negatives, then keep first 3.", "out": "丹乃丕"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove leading negative numbers, then truncate to first three.", "out": "丹乃丕"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then drop negatives from start, then first three.", "out": "丹乃丕"} {"kind": "builder", "in": "丹乃丕", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丹乃丕", "out": "Take a list of integers; keep only the last three, then drop the leading negative values, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only even values, then ensure at least three items by appending zeros.", "out": "为一义"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "为一义"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only even values, then ensure at least three items by appending zeros.", "out": "为一义"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "为一义"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only even values, then ensure at least three items by appending zeros.", "out": "为一义"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "为一义"} {"kind": "builder", "in": "为一义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "为一义", "out": "Take a list of integers; drop the first and last elements, then keep the even numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the final 3 elements, then make each twice as big.", "out": "丽丹丈"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then drop everything except the final three, then multiply each by 2.", "out": "丽丹丈"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then give me the last three elements, then make each twice as big.", "out": "丽丹丈"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep only the last three, then multiply each by 2.", "out": "丽丹丈"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep the final three items, then make each twice as big.", "out": "丽丹丈"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the last three, then multiply each by 2.", "out": "丽丹丈"} {"kind": "builder", "in": "丽丹丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[-3:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丽丹丈", "out": "Take a list of integers; add ten to each, then keep only the last three, then double each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value, then drop the odd numbers.", "out": "与下一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all, then filter out the odd numbers.", "out": "与下一"} {"kind": "builder", "in": "与下一", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "与下一", "out": "Take a list of integers; negate each, then add one to each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the final 3 elements, then truncate to three items.", "out": "丐丹丕"} {"kind": "speaker", "in": "Take a list of integers; reverse, then drop everything except the final three, then show the first three.", "out": "丐丹丕"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then give me the last three elements, then take the first three.", "out": "丐丹丕"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep only the last three, then keep first 3.", "out": "丐丹丕"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep the final three items, then truncate to first three.", "out": "丐丹丕"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the last three, then first three.", "out": "丐丹丕"} {"kind": "builder", "in": "丐丹丕", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[-3:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丐丹丕", "out": "Take a list of integers; reverse the order, then keep only the last three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then skip negatives at the start, then true if every value is unique.", "out": "久乃乏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then remove all negatives at the front, then check for duplicates in the values.", "out": "久乃乏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the initial run of negative numbers, then do all values appear only once.", "out": "久乃乏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then strip the front negatives, then check that there are no duplicates.", "out": "久乃乏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove leading negative numbers, then are the values all unique.", "out": "久乃乏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then drop negatives from start, then check if all values are unique.", "out": "久乃乏"} {"kind": "builder", "in": "久乃乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "久乃乏", "out": "Take a list of integers; keep everything before the first zero, then drop the leading negative values, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove repeated values, then true if any value equals zero.", "out": "丸且乍"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then unique values preserving order, then check for zero.", "out": "丸且乍"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove repeated values, then true if any value equals zero.", "out": "丸且乍"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then unique values preserving order, then check for zero.", "out": "丸且乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove repeated values, then true if any value equals zero.", "out": "丸且乍"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then unique values preserving order, then check for zero.", "out": "丸且乍"} {"kind": "builder", "in": "丸且乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(dict.fromkeys(r))\n return 0 in r"} {"kind": "translator", "in": "丸且乍", "out": "Take a list of integers; sort by absolute value, then drop duplicates keeping first occurrence, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the first 3 elements, then drop non-positive values.", "out": "丈丕七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then remove everything after the third, then drop the negative numbers.", "out": "丈丕七"} {"kind": "speaker", "in": "Take a list of integers; double each, then truncate to three items, then filter out the negative ones.", "out": "丈丕七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then show the first three, then remove all negative values.", "out": "丈丕七"} {"kind": "speaker", "in": "Take a list of integers; double each, then take the first three, then keep positive values only.", "out": "丈丕七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep first 3, then keep values above zero.", "out": "丈丕七"} {"kind": "builder", "in": "丈丕七", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:3]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丈丕七", "out": "Take a list of integers; double each, then keep only the first three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then skip negatives at the start, then put the elements backwards.", "out": "丹乃丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove all negatives at the front, then reverse that for me.", "out": "丹乃丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the initial run of negative numbers, then flip it backwards.", "out": "丹乃丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then strip the front negatives, then make it backwards.", "out": "丹乃丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove leading negative numbers, then reverse the list.", "out": "丹乃丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then drop negatives from start, then invert the sequence.", "out": "丹乃丐"} {"kind": "builder", "in": "丹乃丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹乃丐", "out": "Take a list of integers; keep only the last three, then drop the leading negative values, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then give the earliest even value or zero.", "out": "不主乒"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then fetch the first even element, default to 0.", "out": "不主乒"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then give the earliest even value or zero.", "out": "不主乒"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then fetch the first even element, default to 0.", "out": "不主乒"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then give the earliest even value or zero.", "out": "不主乒"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then fetch the first even element, default to 0.", "out": "不主乒"} {"kind": "builder", "in": "不主乒", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "不主乒", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then flip the list around, then drop the odd numbers.", "out": "与丐一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then flip the order around, then filter out the odd numbers.", "out": "与丐一"} {"kind": "speaker", "in": "Take a list of integers; negate each, then put the elements backwards, then drop the odd numbers.", "out": "与丐一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then reverse that for me, then filter out the odd numbers.", "out": "与丐一"} {"kind": "speaker", "in": "Take a list of integers; negate each, then flip it backwards, then drop the odd numbers.", "out": "与丐一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then make it backwards, then filter out the odd numbers.", "out": "与丐一"} {"kind": "builder", "in": "与丐一", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "与丐一", "out": "Take a list of integers; negate each, then reverse the order, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then true if at least one even value.", "out": "且一之"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then any even.", "out": "且一之"} {"kind": "builder", "in": "且一之", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "且一之", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the even numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then default to [0] when there is nothing, then give back the product of all values.", "out": "且么乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then when the list is empty, substitute a zero value, then product of the list.", "out": "且么乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then replace an empty list with one zero, then what's the product.", "out": "且么乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then zero it out if it's empty, then what do they multiply to.", "out": "且么乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then use zero if the list is empty, then give me their product.", "out": "且么乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then default to zero when empty, then multiply them all together.", "out": "且么乐"} {"kind": "builder", "in": "且么乐", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r if r else [0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "且么乐", "out": "Take a list of integers; drop duplicates keeping first occurrence, then if empty, use a single zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then deduplicate the list.", "out": "丘义且"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then remove repeats.", "out": "丘义且"} {"kind": "builder", "in": "丘义且", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丘义且", "out": "Take a list of integers; cap each value at 10, then pad with zeros to at least three elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values below zero, then ensure at least three items by appending zeros.", "out": "串万义"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "串万义"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep values below zero, then ensure at least three items by appending zeros.", "out": "串万义"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "串万义"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep values below zero, then ensure at least three items by appending zeros.", "out": "串万义"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "串万义"} {"kind": "builder", "in": "串万义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "串万义", "out": "Take a list of integers; keep multiples of three, then keep the negative numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then ensure at least three items by appending zeros.", "out": "九一义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "九一义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then ensure at least three items by appending zeros.", "out": "九一义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "九一义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then ensure at least three items by appending zeros.", "out": "九一义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "九一义"} {"kind": "builder", "in": "九一义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九一义", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values divisible by 3, then trim one element off each end.", "out": "丁串为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep items where x mod 3 equals zero, then cut off the first and last.", "out": "丁串为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then drop anything not divisible by three, then remove the first and last elements.", "out": "丁串为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter out everything except multiples of three, then keep only the middle part.", "out": "丁串为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only multiples of three, then drop first and last.", "out": "丁串为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiples of three only, then eliminate the outermost elements.", "out": "丁串为"} {"kind": "builder", "in": "丁串为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丁串为", "out": "Take a list of integers; keep the odd numbers, then keep multiples of three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only odd values, then put the elements backwards.", "out": "丹丁丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then eliminate the even numbers, then reverse that for me.", "out": "丹丁丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only odd values, then flip it backwards.", "out": "丹丁丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then eliminate the even numbers, then make it backwards.", "out": "丹丁丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only odd values, then reverse the list.", "out": "丹丁丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then eliminate the even numbers, then invert the sequence.", "out": "丹丁丐"} {"kind": "builder", "in": "丹丁丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹丁丐", "out": "Take a list of integers; keep only the last three, then keep the odd numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the first 3 elements, then stop at the first non-positive value.", "out": "么丕乂"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove everything after the third, then keep the leading run of positive numbers.", "out": "么丕乂"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then truncate to three items, then take values while they are positive.", "out": "么丕乂"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then show the first three, then take positive values then stop.", "out": "么丕乂"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then take the first three, then keep going while positive.", "out": "么丕乂"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep first 3, then stop at first non positive.", "out": "么丕乂"} {"kind": "builder", "in": "么丕乂", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "么丕乂", "out": "Take a list of integers; if empty, use a single zero, then keep only the first three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything 5 or below, then replace an empty list with one zero.", "out": "与主么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only numbers greater than 5, then zero it out if it's empty.", "out": "与主么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then filter for numbers above 5, then use zero if the list is empty.", "out": "与主么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give me values where x is greater than 5, then default to zero when empty.", "out": "与主么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then show me only the values that are bigger than five, then if there's nothing, put in a zero.", "out": "与主么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep values greater than five, then if no items, add a zero.", "out": "与主么"} {"kind": "builder", "in": "与主么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与主么", "out": "Take a list of integers; negate each, then keep values greater than five, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then order by distance from zero, then drop anything not divisible by three.", "out": "丈丸串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort based on absolute value, then filter out everything except multiples of three.", "out": "丈丸串"} {"kind": "speaker", "in": "Take a list of integers; double each, then organize by magnitude, then keep only multiples of three.", "out": "丈丸串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then arrange by absolute value ascending, then multiples of three only.", "out": "丈丸串"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from smallest to largest absolute value, then filter for numbers divisible by three.", "out": "丈丸串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by absolute value, then give me only the values divisible by three.", "out": "丈丸串"} {"kind": "builder", "in": "丈丸串", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丈丸串", "out": "Take a list of integers; double each, then sort by absolute value, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then clamp each to at most ten, then true only if all are positive.", "out": "主丘乌"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then don't let anything exceed 10, then do all of these have positive values.", "out": "主丘乌"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then clamp each to at most ten, then check if every value is positive.", "out": "主丘乌"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then don't let anything exceed 10, then confirm all values are positive.", "out": "主丘乌"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then clamp each to at most ten, then all positive.", "out": "主丘乌"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then don't let anything exceed 10, then check if every number is above zero.", "out": "主丘乌"} {"kind": "builder", "in": "主丘乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "主丘乌", "out": "Take a list of integers; keep values greater than five, then cap each value at 10, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increase every value by 10, then truncate to three items.", "out": "举丽丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then add 10 to each item, then show the first three.", "out": "举丽丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then shift each up by ten, then take the first three.", "out": "举丽丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then increase all numbers by 10, then keep first 3.", "out": "举丽丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then add 10 to everything, then truncate to first three.", "out": "举丽丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give everything a boost of 10, then first three.", "out": "举丽丕"} {"kind": "builder", "in": "举丽丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 10 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "举丽丕", "out": "Take a list of integers; drop the zeros, then add ten to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then default to [0] when there is nothing, then arrange in increasing order.", "out": "丐么丑"} {"kind": "speaker", "in": "Take a list of integers; reverse, then when the list is empty, substitute a zero value, then Organize these ascending.", "out": "丐么丑"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then replace an empty list with one zero, then Sort in ascending order.", "out": "丐么丑"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then zero it out if it's empty, then I need this sorted ascending.", "out": "丐么丑"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then use zero if the list is empty, then Put these in ascending order.", "out": "丐么丑"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then default to zero when empty, then sort smallest to largest.", "out": "丐么丑"} {"kind": "builder", "in": "丐么丑", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r if r else [0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丐么丑", "out": "Take a list of integers; reverse the order, then if empty, use a single zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep the leading run of positive numbers, then arrange in increasing order.", "out": "上乂丑"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then take values while they are positive, then Organize these ascending.", "out": "上乂丑"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take positive values then stop, then Sort in ascending order.", "out": "上乂丑"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep going while positive, then I need this sorted ascending.", "out": "上乂丑"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then stop at first non positive, then Put these in ascending order.", "out": "上乂丑"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take while greater than zero, then sort smallest to largest.", "out": "上乂丑"} {"kind": "builder", "in": "上乂丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "上乂丑", "out": "Take a list of integers; square each, then take values while they are positive, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then make every value non-negative, then find the min, defaulting to 0.", "out": "丽丏丛"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then absolute value for all items, then minimum value, zero otherwise.", "out": "丽丏丛"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take absolute values, then get the minimum value or zero if empty.", "out": "丽丏丛"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn negatives into positives, then give me the min or 0.", "out": "丽丏丛"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then abs each element, then return the smallest number, defaulting to 0.", "out": "丽丏丛"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the absolute value of each, then return smallest or zero if empty.", "out": "丽丏丛"} {"kind": "builder", "in": "丽丏丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [abs(x) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丽丏丛", "out": "Take a list of integers; add ten to each, then take the absolute value of each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers, then skip the first one.", "out": "且乂世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive, then Discard the first element.", "out": "且乂世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop, then skip the first one.", "out": "且乂世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive, then Discard the first element.", "out": "且乂世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive, then skip the first one.", "out": "且乂世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero, then Discard the first element.", "out": "且乂世"} {"kind": "builder", "in": "且乂世", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:]\n return r"} {"kind": "translator", "in": "且乂世", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only even values, then drop the even numbers.", "out": "专一丁"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then extract all even numbers, then strip out the evens.", "out": "专一丁"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only even values, then drop the even numbers.", "out": "专一丁"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then extract all even numbers, then strip out the evens.", "out": "专一丁"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only even values, then drop the even numbers.", "out": "专一丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then extract all even numbers, then strip out the evens.", "out": "专一丁"} {"kind": "builder", "in": "专一丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "专一丁", "out": "Take a list of integers; sort descending, then keep the even numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then make every value non-negative, then true if already sorted smallest to largest.", "out": "丘丏乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then absolute value for all items, then does this list go in ascending order.", "out": "丘丏乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take absolute values, then check if the list is in ascending order.", "out": "丘丏乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn negatives into positives, then is the list sorted.", "out": "丘丏乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then abs each element, then is it sorted.", "out": "丘丏乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the absolute value of each, then check if values are in increasing order.", "out": "丘丏乎"} {"kind": "builder", "in": "丘丏乎", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丘丏乎", "out": "Take a list of integers; cap each value at 10, then take the absolute value of each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then keep only numbers above 5.", "out": "下丽主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then exclude values of 5 and below.", "out": "下丽主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then remove anything 5 or less.", "out": "下丽主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then filter to keep only values above 5.", "out": "下丽主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "下丽主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then drop anything 5 or below.", "out": "下丽主"} {"kind": "builder", "in": "下丽主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "下丽主", "out": "Take a list of integers; add one to each, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; double each, then default to [0] when there is nothing, then arrange in increasing order.", "out": "丈么丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then when the list is empty, substitute a zero value, then Organize these ascending.", "out": "丈么丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then replace an empty list with one zero, then Sort in ascending order.", "out": "丈么丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then zero it out if it's empty, then I need this sorted ascending.", "out": "丈么丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then use zero if the list is empty, then Put these in ascending order.", "out": "丈么丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then default to zero when empty, then sort smallest to largest.", "out": "丈么丑"} {"kind": "builder", "in": "丈么丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r if r else [0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丈么丑", "out": "Take a list of integers; double each, then if empty, use a single zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then sort largest to smallest, then keep only non-zero numbers.", "out": "不专举"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then sort by descending values, then strip the zeros.", "out": "不专举"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then sort from highest to lowest, then keep only non-zero numbers.", "out": "不专举"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then sort descending, then strip the zeros.", "out": "不专举"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then sort largest first, then keep only non-zero numbers.", "out": "不专举"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then sort in descending order, then strip the zeros.", "out": "不专举"} {"kind": "builder", "in": "不专举", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "不专举", "out": "Take a list of integers; subtract one from each, then sort descending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove all zero values, then true if at least one even value.", "out": "乃举之"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then exclude zeros, then any even.", "out": "乃举之"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove all zero values, then true if at least one even value.", "out": "乃举之"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then exclude zeros, then any even.", "out": "乃举之"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove all zero values, then true if at least one even value.", "out": "乃举之"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then exclude zeros, then any even.", "out": "乃举之"} {"kind": "builder", "in": "乃举之", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乃举之", "out": "Take a list of integers; drop the leading negative values, then drop the zeros, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then cut the list at the first zero, then truncate to the last three items.", "out": "一久丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off after the first zero appears, then show only the last three.", "out": "一久丹"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take values up to (excluding) the first zero, then remove all but the last three.", "out": "一久丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the part before the first 0, then take the final 3 elements.", "out": "一久丹"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then truncate at the first zero, then drop everything except the final three.", "out": "一久丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then delete everything starting with the first zero, then give me the last three elements.", "out": "一久丹"} {"kind": "builder", "in": "一久丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "一久丹", "out": "Take a list of integers; keep the even numbers, then keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then drop anything 5 or below, then ensure at least three items by appending zeros.", "out": "丸主义"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep only numbers greater than 5, then ensure minimum length of three by adding zeros to the end.", "out": "丸主义"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then filter for numbers above 5, then ensure at least three items by appending zeros.", "out": "丸主义"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then give me values where x is greater than 5, then ensure minimum length of three by adding zeros to the end.", "out": "丸主义"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then show me only the values that are bigger than five, then ensure at least three items by appending zeros.", "out": "丸主义"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep values greater than five, then ensure minimum length of three by adding zeros to the end.", "out": "丸主义"} {"kind": "builder", "in": "丸主义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丸主义", "out": "Take a list of integers; sort by absolute value, then keep values greater than five, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove all zero values, then true if already sorted smallest to largest.", "out": "丐举乎"} {"kind": "speaker", "in": "Take a list of integers; reverse, then exclude zeros, then does this list go in ascending order.", "out": "丐举乎"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove all zero values, then check if the list is in ascending order.", "out": "丐举乎"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then exclude zeros, then is the list sorted.", "out": "丐举乎"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove all zero values, then is it sorted.", "out": "丐举乎"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then exclude zeros, then check if values are in increasing order.", "out": "丐举乎"} {"kind": "builder", "in": "丐举乎", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丐举乎", "out": "Take a list of integers; reverse the order, then drop the zeros, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then decrement each value, then arrange in increasing order.", "out": "专不丑"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Lower each number by one, then Organize these ascending.", "out": "专不丑"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then reduce each by one, then Sort in ascending order.", "out": "专不丑"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Subtract 1 from all, then I need this sorted ascending.", "out": "专不丑"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then Subtract one from each, then Put these in ascending order.", "out": "专不丑"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then Drop each by one, then sort smallest to largest.", "out": "专不丑"} {"kind": "builder", "in": "专不丑", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x - 1 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "专不丑", "out": "Take a list of integers; sort descending, then subtract one from each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then arrange by magnitude ignoring sign.", "out": "丏丕丸"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then put them in order by magnitude.", "out": "丏丕丸"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then arrange in order of absolute value.", "out": "丏丕丸"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then sort by distance from zero.", "out": "丏丕丸"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then order by how far from zero.", "out": "丏丕丸"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then order by distance from zero.", "out": "丏丕丸"} {"kind": "builder", "in": "丏丕丸", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丏丕丸", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then reduce each by one.", "out": "且丈不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then Subtract 1 from all.", "out": "且丈不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then Subtract one from each.", "out": "且丈不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then Drop each by one.", "out": "且丈不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then Decrease all values by one.", "out": "且丈不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then Remove one from each value.", "out": "且丈不"} {"kind": "builder", "in": "且丈不", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "且丈不", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then true only if all are positive.", "out": "乂丕乌"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then do all of these have positive values.", "out": "乂丕乌"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then check if every value is positive.", "out": "乂丕乌"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then confirm all values are positive.", "out": "乂丕乌"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then all positive.", "out": "乂丕乌"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then check if every number is above zero.", "out": "乂丕乌"} {"kind": "builder", "in": "乂丕乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乂丕乌", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increment each value, then replace an empty list with one zero.", "out": "不下么"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then plus one for all, then zero it out if it's empty.", "out": "不下么"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then increment each value, then use zero if the list is empty.", "out": "不下么"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then plus one for all, then default to zero when empty.", "out": "不下么"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then increment each value, then if there's nothing, put in a zero.", "out": "不下么"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then plus one for all, then if no items, add a zero.", "out": "不下么"} {"kind": "builder", "in": "不下么", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "不下么", "out": "Take a list of integers; subtract one from each, then add one to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the leading run of positive numbers, then shift each up by ten.", "out": "万乂丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take values while they are positive, then increase all numbers by 10.", "out": "万乂丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take positive values then stop, then add 10 to everything.", "out": "万乂丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep going while positive, then give everything a boost of 10.", "out": "万乂丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then stop at first non positive, then increment each by ten.", "out": "万乂丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take while greater than zero, then add a constant 10 to each.", "out": "万乂丽"} {"kind": "builder", "in": "万乂丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "万乂丽", "out": "Take a list of integers; keep the negative numbers, then take values while they are positive, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values above zero, then make each twice as big.", "out": "主七丈"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then filter for positive numbers, then multiply each by 2.", "out": "主七丈"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only positive numbers, then make each twice as big.", "out": "主七丈"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the positives, then multiply each by 2.", "out": "主七丈"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove negatives, then make each twice as big.", "out": "主七丈"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep the positive numbers, then multiply each by 2.", "out": "主七丈"} {"kind": "builder", "in": "主七丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "主七丈", "out": "Take a list of integers; keep values greater than five, then keep the positive numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove the first item, then keep only non-zero numbers.", "out": "丕世举"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Remove head, then strip the zeros.", "out": "丕世举"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the first item, then keep only non-zero numbers.", "out": "丕世举"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Remove head, then strip the zeros.", "out": "丕世举"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first item, then keep only non-zero numbers.", "out": "丕世举"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Remove head, then strip the zeros.", "out": "丕世举"} {"kind": "builder", "in": "丕世举", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丕世举", "out": "Take a list of integers; keep only the first three, then drop the first element, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then find the max, defaulting to 0.", "out": "义乂业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then Give me the maximum, but 0 if there are no items.", "out": "义乂业"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then What's the highest number in the list.", "out": "义乂业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then Return the greatest value or default to 0.", "out": "义乂业"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then Find the largest element, defaulting to zero.", "out": "义乂业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then give the largest value (0 if none).", "out": "义乂业"} {"kind": "builder", "in": "义乂业", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return max(r) if r else 0"} {"kind": "translator", "in": "义乂业", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove the first item, then arrange in decreasing order.", "out": "乃世专"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Remove head, then arrange in descending order.", "out": "乃世专"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove the first item, then reverse sort.", "out": "乃世专"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Remove head, then sort largest to smallest.", "out": "乃世专"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first item, then sort by descending values.", "out": "乃世专"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Remove head, then sort from highest to lowest.", "out": "乃世专"} {"kind": "builder", "in": "乃世专", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乃世专", "out": "Take a list of integers; drop the leading negative values, then drop the first element, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then decrement each value, then drop the odd numbers.", "out": "乂不一"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Lower each number by one, then filter out the odd numbers.", "out": "乂不一"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then reduce each by one, then drop the odd numbers.", "out": "乂不一"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Subtract 1 from all, then filter out the odd numbers.", "out": "乂不一"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then Subtract one from each, then drop the odd numbers.", "out": "乂不一"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then Drop each by one, then filter out the odd numbers.", "out": "乂不一"} {"kind": "builder", "in": "乂不一", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "乂不一", "out": "Take a list of integers; take values while they are positive, then subtract one from each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then drop anything 5 or below, then give the number of evens.", "out": "上主乓"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep only numbers greater than 5, then find how many values are divisible by two.", "out": "上主乓"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then filter for numbers above 5, then how many are even.", "out": "上主乓"} {"kind": "speaker", "in": "Take a list of integers; square them all, then give me values where x is greater than 5, then get the total number of even values in the list.", "out": "上主乓"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then show me only the values that are bigger than five, then give me the count of even values.", "out": "上主乓"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep values greater than five, then I need to know how many of these are even.", "out": "上主乓"} {"kind": "builder", "in": "上主乓", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 5]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "上主乓", "out": "Take a list of integers; square each, then keep values greater than five, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort largest to smallest, then true if any value equals zero.", "out": "上专乍"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort by descending values, then check for zero.", "out": "上专乍"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then sort from highest to lowest, then true if any value equals zero.", "out": "上专乍"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sort descending, then check for zero.", "out": "上专乍"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort largest first, then true if any value equals zero.", "out": "上专乍"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort in descending order, then check for zero.", "out": "上专乍"} {"kind": "builder", "in": "上专乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n return 0 in r"} {"kind": "translator", "in": "上专乍", "out": "Take a list of integers; square each, then sort descending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then find the max, defaulting to 0.", "out": "丈且业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then Give me the maximum, but 0 if there are no items.", "out": "丈且业"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then What's the highest number in the list.", "out": "丈且业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then Return the greatest value or default to 0.", "out": "丈且业"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then Find the largest element, defaulting to zero.", "out": "丈且业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then give the largest value (0 if none).", "out": "丈且业"} {"kind": "builder", "in": "丈且业", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(dict.fromkeys(r))\n return max(r) if r else 0"} {"kind": "translator", "in": "丈且业", "out": "Take a list of integers; double each, then drop duplicates keeping first occurrence, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then drop non-negative values.", "out": "丽乂万"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then drop all positive numbers.", "out": "丽乂万"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then drop non-negative values.", "out": "丽乂万"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then drop all positive numbers.", "out": "丽乂万"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then drop non-negative values.", "out": "丽乂万"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then drop all positive numbers.", "out": "丽乂万"} {"kind": "builder", "in": "丽乂万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丽乂万", "out": "Take a list of integers; add ten to each, then take values while they are positive, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove both ends, then drop the even numbers.", "out": "专为丁"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then trim the edges, then strip out the evens.", "out": "专为丁"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then trim one element off each end, then drop the even numbers.", "out": "专为丁"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then cut off the first and last, then strip out the evens.", "out": "专为丁"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove the first and last elements, then drop the even numbers.", "out": "专为丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then keep only the middle part, then strip out the evens.", "out": "专为丁"} {"kind": "builder", "in": "专为丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[1:-1]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "专为丁", "out": "Take a list of integers; sort descending, then drop the first and last elements, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then arrange by magnitude ignoring sign.", "out": "丁与丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then put them in order by magnitude.", "out": "丁与丸"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then arrange in order of absolute value.", "out": "丁与丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then sort by distance from zero.", "out": "丁与丸"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then order by how far from zero.", "out": "丁与丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then order by distance from zero.", "out": "丁与丸"} {"kind": "builder", "in": "丁与丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丁与丸", "out": "Take a list of integers; keep the odd numbers, then negate each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then find the max, defaulting to 0.", "out": "久世业"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then Give me the maximum, but 0 if there are no items.", "out": "久世业"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then What's the highest number in the list.", "out": "久世业"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then Return the greatest value or default to 0.", "out": "久世业"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then Find the largest element, defaulting to zero.", "out": "久世业"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then give the largest value (0 if none).", "out": "久世业"} {"kind": "builder", "in": "久世业", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n return max(r) if r else 0"} {"kind": "translator", "in": "久世业", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each value by itself, then count the elements.", "out": "义上东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then square them all, then how many items remain.", "out": "义上东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then raise each to the power of two, then tell me the length.", "out": "义上东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then I need each number multiplied by itself, then return the length.", "out": "义上东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then square all of them, then count them.", "out": "义上东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiply each element by itself, then what's the count.", "out": "义上东"} {"kind": "builder", "in": "义上东", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n return len(r)"} {"kind": "translator", "in": "义上东", "out": "Take a list of integers; pad with zeros to at least three elements, then square each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increment each value, then true if any value equals zero.", "out": "乂下乍"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then plus one for all, then check for zero.", "out": "乂下乍"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then increment each value, then true if any value equals zero.", "out": "乂下乍"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then plus one for all, then check for zero.", "out": "乂下乍"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then increment each value, then true if any value equals zero.", "out": "乂下乍"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then plus one for all, then check for zero.", "out": "乂下乍"} {"kind": "builder", "in": "乂下乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "乂下乍", "out": "Take a list of integers; take values while they are positive, then add one to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around, then true if every value is unique.", "out": "下丐乏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around, then check for duplicates in the values.", "out": "下丐乏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards, then do all values appear only once.", "out": "下丐乏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me, then check that there are no duplicates.", "out": "下丐乏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards, then are the values all unique.", "out": "下丐乏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards, then check if all values are unique.", "out": "下丐乏"} {"kind": "builder", "in": "下丐乏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "下丐乏", "out": "Take a list of integers; add one to each, then reverse the order, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep the leading run of positive numbers, then limit every value to 10.", "out": "丏乂丘"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then take values while they are positive, then maximum of 10 for all.", "out": "丏乂丘"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take positive values then stop, then limit every value to 10.", "out": "丏乂丘"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep going while positive, then maximum of 10 for all.", "out": "丏乂丘"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then stop at first non positive, then limit every value to 10.", "out": "丏乂丘"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take while greater than zero, then maximum of 10 for all.", "out": "丏乂丘"} {"kind": "builder", "in": "丏乂丘", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丏乂丘", "out": "Take a list of integers; take the absolute value of each, then take values while they are positive, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative, then ensure at least three items by appending zeros.", "out": "与丏义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items, then ensure minimum length of three by adding zeros to the end.", "out": "与丏义"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values, then ensure at least three items by appending zeros.", "out": "与丏义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives, then ensure minimum length of three by adding zeros to the end.", "out": "与丏义"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element, then ensure at least three items by appending zeros.", "out": "与丏义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each, then ensure minimum length of three by adding zeros to the end.", "out": "与丏义"} {"kind": "builder", "in": "与丏义", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "与丏义", "out": "Take a list of integers; negate each, then take the absolute value of each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then order by distance from zero, then drop anything not divisible by three.", "out": "丏丸串"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort based on absolute value, then filter out everything except multiples of three.", "out": "丏丸串"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then organize by magnitude, then keep only multiples of three.", "out": "丏丸串"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then arrange by absolute value ascending, then multiples of three only.", "out": "丏丸串"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort from smallest to largest absolute value, then filter for numbers divisible by three.", "out": "丏丸串"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort by absolute value, then give me only the values divisible by three.", "out": "丏丸串"} {"kind": "builder", "in": "丏丸串", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丏丸串", "out": "Take a list of integers; take the absolute value of each, then sort by absolute value, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then find the max, defaulting to 0.", "out": "与丈业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then Give me the maximum, but 0 if there are no items.", "out": "与丈业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then What's the highest number in the list.", "out": "与丈业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then Return the greatest value or default to 0.", "out": "与丈业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then Find the largest element, defaulting to zero.", "out": "与丈业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then give the largest value (0 if none).", "out": "与丈业"} {"kind": "builder", "in": "与丈业", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * 2 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "与丈业", "out": "Take a list of integers; negate each, then double each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then cut the list at the first zero, then keep only non-zero numbers.", "out": "乂久举"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then cut off after the first zero appears, then strip the zeros.", "out": "乂久举"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then take values up to (excluding) the first zero, then keep only non-zero numbers.", "out": "乂久举"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the part before the first 0, then strip the zeros.", "out": "乂久举"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then truncate at the first zero, then keep only non-zero numbers.", "out": "乂久举"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then delete everything starting with the first zero, then strip the zeros.", "out": "乂久举"} {"kind": "builder", "in": "乂久举", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乂久举", "out": "Take a list of integers; take values while they are positive, then keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then decrement each value, then skip the first one.", "out": "乂不世"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Lower each number by one, then Discard the first element.", "out": "乂不世"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then reduce each by one, then skip the first one.", "out": "乂不世"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Subtract 1 from all, then Discard the first element.", "out": "乂不世"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then Subtract one from each, then skip the first one.", "out": "乂不世"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then Drop each by one, then Discard the first element.", "out": "乂不世"} {"kind": "builder", "in": "乂不世", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x - 1 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "乂不世", "out": "Take a list of integers; take values while they are positive, then subtract one from each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each value by itself, then arrange in increasing order.", "out": "举上丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then square them all, then Organize these ascending.", "out": "举上丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then raise each to the power of two, then Sort in ascending order.", "out": "举上丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then I need each number multiplied by itself, then I need this sorted ascending.", "out": "举上丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then square all of them, then Put these in ascending order.", "out": "举上丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiply each element by itself, then sort smallest to largest.", "out": "举上丑"} {"kind": "builder", "in": "举上丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "举上丑", "out": "Take a list of integers; drop the zeros, then square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value, then drop the even numbers.", "out": "与下丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all, then strip out the evens.", "out": "与下丁"} {"kind": "builder", "in": "与下丁", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "与下丁", "out": "Take a list of integers; negate each, then add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values above zero, then limit every value to 10.", "out": "丹七丘"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then filter for positive numbers, then maximum of 10 for all.", "out": "丹七丘"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only positive numbers, then limit every value to 10.", "out": "丹七丘"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the positives, then maximum of 10 for all.", "out": "丹七丘"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove negatives, then limit every value to 10.", "out": "丹七丘"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep the positive numbers, then maximum of 10 for all.", "out": "丹七丘"} {"kind": "builder", "in": "丹七丘", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丹七丘", "out": "Take a list of integers; keep only the last three, then keep the positive numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then decrement each value, then drop anything not divisible by three.", "out": "一不串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Lower each number by one, then filter out everything except multiples of three.", "out": "一不串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then reduce each by one, then keep only multiples of three.", "out": "一不串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Subtract 1 from all, then multiples of three only.", "out": "一不串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Subtract one from each, then filter for numbers divisible by three.", "out": "一不串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Drop each by one, then give me only the values divisible by three.", "out": "一不串"} {"kind": "builder", "in": "一不串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x - 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "一不串", "out": "Take a list of integers; keep the even numbers, then subtract one from each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the leading run of positive numbers, then drop non-positive values.", "out": "一乂七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take values while they are positive, then drop the negative numbers.", "out": "一乂七"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take positive values then stop, then filter out the negative ones.", "out": "一乂七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep going while positive, then remove all negative values.", "out": "一乂七"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then stop at first non positive, then keep positive values only.", "out": "一乂七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take while greater than zero, then keep values above zero.", "out": "一乂七"} {"kind": "builder", "in": "一乂七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "一乂七", "out": "Take a list of integers; keep the even numbers, then take values while they are positive, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value, then shift each up by ten.", "out": "串下丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all, then increase all numbers by 10.", "out": "串下丽"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value, then add 10 to everything.", "out": "串下丽"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all, then give everything a boost of 10.", "out": "串下丽"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value, then increment each by ten.", "out": "串下丽"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all, then add a constant 10 to each.", "out": "串下丽"} {"kind": "builder", "in": "串下丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "串下丽", "out": "Take a list of integers; keep multiples of three, then add one to each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each value by itself, then trim one element off each end.", "out": "义上为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then square them all, then cut off the first and last.", "out": "义上为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then raise each to the power of two, then remove the first and last elements.", "out": "义上为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then I need each number multiplied by itself, then keep only the middle part.", "out": "义上为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then square all of them, then drop first and last.", "out": "义上为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiply each element by itself, then eliminate the outermost elements.", "out": "义上为"} {"kind": "builder", "in": "义上为", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "义上为", "out": "Take a list of integers; pad with zeros to at least three elements, then square each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then skip negatives at the start, then replace an empty list with one zero.", "out": "丁乃么"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove all negatives at the front, then zero it out if it's empty.", "out": "丁乃么"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the initial run of negative numbers, then use zero if the list is empty.", "out": "丁乃么"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then strip the front negatives, then default to zero when empty.", "out": "丁乃么"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove leading negative numbers, then if there's nothing, put in a zero.", "out": "丁乃么"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop negatives from start, then if no items, add a zero.", "out": "丁乃么"} {"kind": "builder", "in": "丁乃么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丁乃么", "out": "Take a list of integers; keep the odd numbers, then drop the leading negative values, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove both ends, then true if every value is unique.", "out": "主为乏"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then trim the edges, then check for duplicates in the values.", "out": "主为乏"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then trim one element off each end, then do all values appear only once.", "out": "主为乏"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then cut off the first and last, then check that there are no duplicates.", "out": "主为乏"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first and last elements, then are the values all unique.", "out": "主为乏"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep only the middle part, then check if all values are unique.", "out": "主为乏"} {"kind": "builder", "in": "主为乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:-1]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "主为乏", "out": "Take a list of integers; keep values greater than five, then drop the first and last elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then default to [0] when there is nothing, then bump each up by one.", "out": "丽么下"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then when the list is empty, substitute a zero value, then increment each item.", "out": "丽么下"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then replace an empty list with one zero, then bump each up by one.", "out": "丽么下"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then zero it out if it's empty, then increment each item.", "out": "丽么下"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then use zero if the list is empty, then bump each up by one.", "out": "丽么下"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then default to zero when empty, then increment each item.", "out": "丽么下"} {"kind": "builder", "in": "丽么下", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丽么下", "out": "Take a list of integers; add ten to each, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove both ends, then give the earliest even value or zero.", "out": "乂为乒"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then trim the edges, then fetch the first even element, default to 0.", "out": "乂为乒"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then trim one element off each end, then give the earliest even value or zero.", "out": "乂为乒"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then cut off the first and last, then fetch the first even element, default to 0.", "out": "乂为乒"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first and last elements, then give the earliest even value or zero.", "out": "乂为乒"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep only the middle part, then fetch the first even element, default to 0.", "out": "乂为乒"} {"kind": "builder", "in": "乂为乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "乂为乒", "out": "Take a list of integers; take values while they are positive, then drop the first and last elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then order by distance from zero, then take values up to (excluding) the first zero.", "out": "乃丸久"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then sort based on absolute value, then keep the part before the first 0.", "out": "乃丸久"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then organize by magnitude, then truncate at the first zero.", "out": "乃丸久"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then arrange by absolute value ascending, then delete everything starting with the first zero.", "out": "乃丸久"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then sort from smallest to largest absolute value, then remove from the first zero onwards.", "out": "乃丸久"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort by absolute value, then up to but not including the first zero.", "out": "乃丸久"} {"kind": "builder", "in": "乃丸久", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "乃丸久", "out": "Take a list of integers; drop the leading negative values, then sort by absolute value, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values divisible by 3, then drop non-negative values.", "out": "丘串万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep items where x mod 3 equals zero, then drop all positive numbers.", "out": "丘串万"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then drop anything not divisible by three, then drop non-negative values.", "out": "丘串万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter out everything except multiples of three, then drop all positive numbers.", "out": "丘串万"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only multiples of three, then drop non-negative values.", "out": "丘串万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiples of three only, then drop all positive numbers.", "out": "丘串万"} {"kind": "builder", "in": "丘串万", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丘串万", "out": "Take a list of integers; cap each value at 10, then keep multiples of three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything 5 or below, then give back the total.", "out": "且主丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only numbers greater than 5, then sum r.", "out": "且主丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then filter for numbers above 5, then add them up.", "out": "且主丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give me values where x is greater than 5, then calculate the sum of all elements.", "out": "且主丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then show me only the values that are bigger than five, then what's the total.", "out": "且主丙"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep values greater than five, then what do they add up to.", "out": "且主丙"} {"kind": "builder", "in": "且主丙", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 5]\n return sum(r)"} {"kind": "translator", "in": "且主丙", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep values greater than five, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values above zero, then give back the product of all values.", "out": "丽七乐"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then filter for positive numbers, then product of the list.", "out": "丽七乐"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only positive numbers, then what's the product.", "out": "丽七乐"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the positives, then what do they multiply to.", "out": "丽七乐"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove negatives, then give me their product.", "out": "丽七乐"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep the positive numbers, then multiply them all together.", "out": "丽七乐"} {"kind": "builder", "in": "丽七乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丽七乐", "out": "Take a list of integers; add ten to each, then keep the positive numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the sign of each, then give the earliest even value or zero.", "out": "串与乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then turn positives to negatives and vice versa, then fetch the first even element, default to 0.", "out": "串与乒"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then flip the sign of each, then give the earliest even value or zero.", "out": "串与乒"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn positives to negatives and vice versa, then fetch the first even element, default to 0.", "out": "串与乒"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip the sign of each, then give the earliest even value or zero.", "out": "串与乒"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then turn positives to negatives and vice versa, then fetch the first even element, default to 0.", "out": "串与乒"} {"kind": "builder", "in": "串与乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "串与乒", "out": "Take a list of integers; keep multiples of three, then negate each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort smallest to largest, then true if any value equals zero.", "out": "串丑乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Ascending sort, then check for zero.", "out": "串丑乍"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then Sort this ascending, then true if any value equals zero.", "out": "串丑乍"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Sort lowest to highest, then check for zero.", "out": "串丑乍"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Arrange from smallest to largest, then true if any value equals zero.", "out": "串丑乍"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort ascending, then check for zero.", "out": "串丑乍"} {"kind": "builder", "in": "串丑乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r)\n return 0 in r"} {"kind": "translator", "in": "串丑乍", "out": "Take a list of integers; keep multiples of three, then sort ascending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the final 3 elements, then give the earliest even value or zero.", "out": "万丹乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop everything except the final three, then fetch the first even element, default to 0.", "out": "万丹乒"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give me the last three elements, then give the earliest even value or zero.", "out": "万丹乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the last three, then fetch the first even element, default to 0.", "out": "万丹乒"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the final three items, then give the earliest even value or zero.", "out": "万丹乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the last three, then fetch the first even element, default to 0.", "out": "万丹乒"} {"kind": "builder", "in": "万丹乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[-3:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "万丹乒", "out": "Take a list of integers; keep the negative numbers, then keep only the last three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then find the min, defaulting to 0.", "out": "且举丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then minimum value, zero otherwise.", "out": "且举丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then get the minimum value or zero if empty.", "out": "且举丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then give me the min or 0.", "out": "且举丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then return the smallest number, defaulting to 0.", "out": "且举丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then return smallest or zero if empty.", "out": "且举丛"} {"kind": "builder", "in": "且举丛", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "且举丛", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the zeros, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove repeated values, then true if any value equals zero.", "out": "举且乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then unique values preserving order, then check for zero.", "out": "举且乍"} {"kind": "builder", "in": "举且乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(dict.fromkeys(r))\n return 0 in r"} {"kind": "translator", "in": "举且乍", "out": "Take a list of integers; drop the zeros, then drop duplicates keeping first occurrence, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers, then find the max, defaulting to 0.", "out": "且乂业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive, then Give me the maximum, but 0 if there are no items.", "out": "且乂业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop, then What's the highest number in the list.", "out": "且乂业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive, then Return the greatest value or default to 0.", "out": "且乂业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive, then Find the largest element, defaulting to zero.", "out": "且乂业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero, then give the largest value (0 if none).", "out": "且乂业"} {"kind": "builder", "in": "且乂业", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return max(r) if r else 0"} {"kind": "translator", "in": "且乂业", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then clamp each to at most ten, then give the earliest even value or zero.", "out": "久丘乒"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "久丘乒"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then clamp each to at most ten, then give the earliest even value or zero.", "out": "久丘乒"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "久丘乒"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then clamp each to at most ten, then give the earliest even value or zero.", "out": "久丘乒"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "久丘乒"} {"kind": "builder", "in": "久丘乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "久丘乒", "out": "Take a list of integers; keep everything before the first zero, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep the leading run of positive numbers, then true if already sorted smallest to largest.", "out": "乃乂乎"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then take values while they are positive, then does this list go in ascending order.", "out": "乃乂乎"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take positive values then stop, then check if the list is in ascending order.", "out": "乃乂乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep going while positive, then is the list sorted.", "out": "乃乂乎"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then stop at first non positive, then is it sorted.", "out": "乃乂乎"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take while greater than zero, then check if values are in increasing order.", "out": "乃乂乎"} {"kind": "builder", "in": "乃乂乎", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r == sorted(r)"} {"kind": "translator", "in": "乃乂乎", "out": "Take a list of integers; drop the leading negative values, then take values while they are positive, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the final 3 elements, then give back the total.", "out": "丽丹丙"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then drop everything except the final three, then sum r.", "out": "丽丹丙"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then give me the last three elements, then add them up.", "out": "丽丹丙"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep only the last three, then calculate the sum of all elements.", "out": "丽丹丙"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep the final three items, then what's the total.", "out": "丽丹丙"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the last three, then what do they add up to.", "out": "丽丹丙"} {"kind": "builder", "in": "丽丹丙", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[-3:]\n return sum(r)"} {"kind": "translator", "in": "丽丹丙", "out": "Take a list of integers; add ten to each, then keep only the last three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increase every value by 10, then give back the total.", "out": "丏丽丙"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then add 10 to each item, then sum r.", "out": "丏丽丙"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then shift each up by ten, then add them up.", "out": "丏丽丙"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then increase all numbers by 10, then calculate the sum of all elements.", "out": "丏丽丙"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then add 10 to everything, then what's the total.", "out": "丏丽丙"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then give everything a boost of 10, then what do they add up to.", "out": "丏丽丙"} {"kind": "builder", "in": "丏丽丙", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n return sum(r)"} {"kind": "translator", "in": "丏丽丙", "out": "Take a list of integers; take the absolute value of each, then add ten to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then truncate to the last three items.", "out": "且世丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then show only the last three.", "out": "且世丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then remove all but the last three.", "out": "且世丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then take the final 3 elements.", "out": "且世丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then drop everything except the final three.", "out": "且世丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then give me the last three elements.", "out": "且世丹"} {"kind": "builder", "in": "且世丹", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "且世丹", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first element, then keep only the last three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the list around, then limit every value to 10.", "out": "九丐丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then flip the order around, then maximum of 10 for all.", "out": "九丐丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then put the elements backwards, then limit every value to 10.", "out": "九丐丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then reverse that for me, then maximum of 10 for all.", "out": "九丐丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip it backwards, then limit every value to 10.", "out": "九丐丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then make it backwards, then maximum of 10 for all.", "out": "九丐丘"} {"kind": "builder", "in": "九丐丘", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "九丐丘", "out": "Take a list of people records (name, age); extract the ages, then reverse the order, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep the leading run of positive numbers, then arrange in decreasing order.", "out": "丸乂专"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then take values while they are positive, then arrange in descending order.", "out": "丸乂专"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take positive values then stop, then reverse sort.", "out": "丸乂专"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep going while positive, then sort largest to smallest.", "out": "丸乂专"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then stop at first non positive, then sort by descending values.", "out": "丸乂专"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take while greater than zero, then sort from highest to lowest.", "out": "丸乂专"} {"kind": "builder", "in": "丸乂专", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丸乂专", "out": "Take a list of integers; sort by absolute value, then take values while they are positive, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values divisible by 3, then arrange in increasing order.", "out": "丹串丑"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep items where x mod 3 equals zero, then Organize these ascending.", "out": "丹串丑"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then drop anything not divisible by three, then Sort in ascending order.", "out": "丹串丑"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then filter out everything except multiples of three, then I need this sorted ascending.", "out": "丹串丑"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only multiples of three, then Put these in ascending order.", "out": "丹串丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiples of three only, then sort smallest to largest.", "out": "丹串丑"} {"kind": "builder", "in": "丹串丑", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丹串丑", "out": "Take a list of integers; keep only the last three, then keep multiples of three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values above zero, then ensure at least three items by appending zeros.", "out": "丹七义"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then filter for positive numbers, then ensure minimum length of three by adding zeros to the end.", "out": "丹七义"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only positive numbers, then ensure at least three items by appending zeros.", "out": "丹七义"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the positives, then ensure minimum length of three by adding zeros to the end.", "out": "丹七义"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove negatives, then ensure at least three items by appending zeros.", "out": "丹七义"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep the positive numbers, then ensure minimum length of three by adding zeros to the end.", "out": "丹七义"} {"kind": "builder", "in": "丹七义", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丹七义", "out": "Take a list of integers; keep only the last three, then keep the positive numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only even values, then shift each up by ten.", "out": "专一丽"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then extract all even numbers, then increase all numbers by 10.", "out": "专一丽"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only even values, then add 10 to everything.", "out": "专一丽"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then extract all even numbers, then give everything a boost of 10.", "out": "专一丽"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only even values, then increment each by ten.", "out": "专一丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then extract all even numbers, then add a constant 10 to each.", "out": "专一丽"} {"kind": "builder", "in": "专一丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "专一丽", "out": "Take a list of integers; sort descending, then keep the even numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then cut the list at the first zero, then skip the first one.", "out": "不久世"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then cut off after the first zero appears, then Discard the first element.", "out": "不久世"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take values up to (excluding) the first zero, then skip the first one.", "out": "不久世"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the part before the first 0, then Discard the first element.", "out": "不久世"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then truncate at the first zero, then skip the first one.", "out": "不久世"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then delete everything starting with the first zero, then Discard the first element.", "out": "不久世"} {"kind": "builder", "in": "不久世", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n return r"} {"kind": "translator", "in": "不久世", "out": "Take a list of integers; subtract one from each, then keep everything before the first zero, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then true if any value equals zero.", "out": "万为乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then check for zero.", "out": "万为乍"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then true if any value equals zero.", "out": "万为乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then check for zero.", "out": "万为乍"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then true if any value equals zero.", "out": "万为乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then check for zero.", "out": "万为乍"} {"kind": "builder", "in": "万为乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n return 0 in r"} {"kind": "translator", "in": "万为乍", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the sign of each, then true only if all are positive.", "out": "久与乌"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then turn positives to negatives and vice versa, then do all of these have positive values.", "out": "久与乌"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then flip the sign of each, then check if every value is positive.", "out": "久与乌"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn positives to negatives and vice versa, then confirm all values are positive.", "out": "久与乌"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip the sign of each, then all positive.", "out": "久与乌"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then turn positives to negatives and vice versa, then check if every number is above zero.", "out": "久与乌"} {"kind": "builder", "in": "久与乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [-x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "久与乌", "out": "Take a list of integers; keep everything before the first zero, then negate each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then skip negatives at the start, then skip the first one.", "out": "举乃世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove all negatives at the front, then Discard the first element.", "out": "举乃世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the initial run of negative numbers, then skip the first one.", "out": "举乃世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then strip the front negatives, then Discard the first element.", "out": "举乃世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove leading negative numbers, then skip the first one.", "out": "举乃世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop negatives from start, then Discard the first element.", "out": "举乃世"} {"kind": "builder", "in": "举乃世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n return r"} {"kind": "translator", "in": "举乃世", "out": "Take a list of integers; drop the zeros, then drop the leading negative values, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then sort smallest to largest, then keep only non-zero numbers.", "out": "乃丑举"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Ascending sort, then strip the zeros.", "out": "乃丑举"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then Sort this ascending, then keep only non-zero numbers.", "out": "乃丑举"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Sort lowest to highest, then strip the zeros.", "out": "乃丑举"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then Arrange from smallest to largest, then keep only non-zero numbers.", "out": "乃丑举"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort ascending, then strip the zeros.", "out": "乃丑举"} {"kind": "builder", "in": "乃丑举", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乃丑举", "out": "Take a list of integers; drop the leading negative values, then sort ascending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increment each value, then find the min, defaulting to 0.", "out": "为下丛"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then plus one for all, then minimum value, zero otherwise.", "out": "为下丛"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then increment each value, then get the minimum value or zero if empty.", "out": "为下丛"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then plus one for all, then give me the min or 0.", "out": "为下丛"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then increment each value, then return the smallest number, defaulting to 0.", "out": "为下丛"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then plus one for all, then return smallest or zero if empty.", "out": "为下丛"} {"kind": "builder", "in": "为下丛", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "为下丛", "out": "Take a list of integers; drop the first and last elements, then add one to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the sign of each, then drop anything not divisible by three.", "out": "丹与串"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then turn positives to negatives and vice versa, then filter out everything except multiples of three.", "out": "丹与串"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then flip the sign of each, then keep only multiples of three.", "out": "丹与串"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn positives to negatives and vice versa, then multiples of three only.", "out": "丹与串"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip the sign of each, then filter for numbers divisible by three.", "out": "丹与串"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then turn positives to negatives and vice versa, then give me only the values divisible by three.", "out": "丹与串"} {"kind": "builder", "in": "丹与串", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丹与串", "out": "Take a list of integers; keep only the last three, then negate each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value, then replace an empty list with one zero.", "out": "主下么"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all, then zero it out if it's empty.", "out": "主下么"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value, then use zero if the list is empty.", "out": "主下么"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all, then default to zero when empty.", "out": "主下么"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value, then if there's nothing, put in a zero.", "out": "主下么"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all, then if no items, add a zero.", "out": "主下么"} {"kind": "builder", "in": "主下么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "主下么", "out": "Take a list of integers; keep values greater than five, then add one to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then default to [0] when there is nothing, then bump each up by one.", "out": "乂么下"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then when the list is empty, substitute a zero value, then increment each item.", "out": "乂么下"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then replace an empty list with one zero, then bump each up by one.", "out": "乂么下"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then zero it out if it's empty, then increment each item.", "out": "乂么下"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then use zero if the list is empty, then bump each up by one.", "out": "乂么下"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then default to zero when empty, then increment each item.", "out": "乂么下"} {"kind": "builder", "in": "乂么下", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "乂么下", "out": "Take a list of integers; take values while they are positive, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values below zero, then keep only numbers above 5.", "out": "乂万主"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then get the negative numbers, then exclude values of 5 and below.", "out": "乂万主"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep values below zero, then remove anything 5 or less.", "out": "乂万主"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then get the negative numbers, then filter to keep only values above 5.", "out": "乂万主"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep values below zero, then get rid of values that aren't greater than five.", "out": "乂万主"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then get the negative numbers, then drop anything 5 or below.", "out": "乂万主"} {"kind": "builder", "in": "乂万主", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乂万主", "out": "Take a list of integers; take values while they are positive, then keep the negative numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep the leading run of positive numbers, then remove the initial run of negative numbers.", "out": "丹乂乃"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then take values while they are positive, then strip the front negatives.", "out": "丹乂乃"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take positive values then stop, then remove leading negative numbers.", "out": "丹乂乃"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep going while positive, then drop negatives from start.", "out": "丹乂乃"} {"kind": "speaker", "in": "Take a list of integers; last three only, then stop at first non positive, then strip negative values from the start.", "out": "丹乂乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take while greater than zero, then remove negatives before the first non-negative.", "out": "丹乂乃"} {"kind": "builder", "in": "丹乂乃", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丹乂乃", "out": "Take a list of integers; keep only the last three, then take values while they are positive, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then cut the list at the first zero, then truncate to three items.", "out": "串久丕"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then cut off after the first zero appears, then show the first three.", "out": "串久丕"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take values up to (excluding) the first zero, then take the first three.", "out": "串久丕"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the part before the first 0, then keep first 3.", "out": "串久丕"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then truncate at the first zero, then truncate to first three.", "out": "串久丕"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then delete everything starting with the first zero, then first three.", "out": "串久丕"} {"kind": "builder", "in": "串久丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n r = r[:3]\n return r"} {"kind": "translator", "in": "串久丕", "out": "Take a list of integers; keep multiples of three, then keep everything before the first zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; double each, then increase every value by 10, then drop the odd numbers.", "out": "丈丽一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then add 10 to each item, then filter out the odd numbers.", "out": "丈丽一"} {"kind": "speaker", "in": "Take a list of integers; double each, then shift each up by ten, then drop the odd numbers.", "out": "丈丽一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then increase all numbers by 10, then filter out the odd numbers.", "out": "丈丽一"} {"kind": "speaker", "in": "Take a list of integers; double each, then add 10 to everything, then drop the odd numbers.", "out": "丈丽一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give everything a boost of 10, then filter out the odd numbers.", "out": "丈丽一"} {"kind": "builder", "in": "丈丽一", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丈丽一", "out": "Take a list of integers; double each, then add ten to each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then make every value non-negative, then true if already sorted smallest to largest.", "out": "乃丏乎"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then absolute value for all items, then does this list go in ascending order.", "out": "乃丏乎"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take absolute values, then check if the list is in ascending order.", "out": "乃丏乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn negatives into positives, then is the list sorted.", "out": "乃丏乎"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then abs each element, then is it sorted.", "out": "乃丏乎"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the absolute value of each, then check if values are in increasing order.", "out": "乃丏乎"} {"kind": "builder", "in": "乃丏乎", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [abs(x) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "乃丏乎", "out": "Take a list of integers; drop the leading negative values, then take the absolute value of each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything 5 or below, then true if any value equals zero.", "out": "义主乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only numbers greater than 5, then check for zero.", "out": "义主乍"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then filter for numbers above 5, then true if any value equals zero.", "out": "义主乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give me values where x is greater than 5, then check for zero.", "out": "义主乍"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then show me only the values that are bigger than five, then true if any value equals zero.", "out": "义主乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep values greater than five, then check for zero.", "out": "义主乍"} {"kind": "builder", "in": "义主乍", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n return 0 in r"} {"kind": "translator", "in": "义主乍", "out": "Take a list of integers; pad with zeros to at least three elements, then keep values greater than five, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove all zero values, then give back the total.", "out": "义举丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then exclude zeros, then sum r.", "out": "义举丙"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove all zero values, then add them up.", "out": "义举丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then exclude zeros, then calculate the sum of all elements.", "out": "义举丙"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove all zero values, then what's the total.", "out": "义举丙"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then exclude zeros, then what do they add up to.", "out": "义举丙"} {"kind": "builder", "in": "义举丙", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x != 0]\n return sum(r)"} {"kind": "translator", "in": "义举丙", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the zeros, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the final 3 elements, then truncate to three items.", "out": "丏丹丕"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then drop everything except the final three, then show the first three.", "out": "丏丹丕"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then give me the last three elements, then take the first three.", "out": "丏丹丕"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep only the last three, then keep first 3.", "out": "丏丹丕"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep the final three items, then truncate to first three.", "out": "丏丹丕"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take the last three, then first three.", "out": "丏丹丕"} {"kind": "builder", "in": "丏丹丕", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[-3:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丏丹丕", "out": "Take a list of integers; take the absolute value of each, then keep only the last three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep only odd values, then find the max, defaulting to 0.", "out": "丽丁业"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then eliminate the even numbers, then Give me the maximum, but 0 if there are no items.", "out": "丽丁业"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only odd values, then What's the highest number in the list.", "out": "丽丁业"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then eliminate the even numbers, then Return the greatest value or default to 0.", "out": "丽丁业"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only odd values, then Find the largest element, defaulting to zero.", "out": "丽丁业"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then eliminate the even numbers, then give the largest value (0 if none).", "out": "丽丁业"} {"kind": "builder", "in": "丽丁业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丽丁业", "out": "Take a list of integers; add ten to each, then keep the odd numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove both ends, then true if any value equals zero.", "out": "丈为乍"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then trim the edges, then check for zero.", "out": "丈为乍"} {"kind": "speaker", "in": "Take a list of integers; double each, then trim one element off each end, then true if any value equals zero.", "out": "丈为乍"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off the first and last, then check for zero.", "out": "丈为乍"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first and last elements, then true if any value equals zero.", "out": "丈为乍"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the middle part, then check for zero.", "out": "丈为乍"} {"kind": "builder", "in": "丈为乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:-1]\n return 0 in r"} {"kind": "translator", "in": "丈为乍", "out": "Take a list of integers; double each, then drop the first and last elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the sign of each, then skip the first one.", "out": "丑与世"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then turn positives to negatives and vice versa, then Discard the first element.", "out": "丑与世"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then flip the sign of each, then skip the first one.", "out": "丑与世"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn positives to negatives and vice versa, then Discard the first element.", "out": "丑与世"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip the sign of each, then skip the first one.", "out": "丑与世"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then turn positives to negatives and vice versa, then Discard the first element.", "out": "丑与世"} {"kind": "builder", "in": "丑与世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [-x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丑与世", "out": "Take a list of integers; sort ascending, then negate each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then drop anything 5 or below, then raise each to the power of two.", "out": "丘主上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only numbers greater than 5, then I need each number multiplied by itself.", "out": "丘主上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then filter for numbers above 5, then square all of them.", "out": "丘主上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give me values where x is greater than 5, then multiply each element by itself.", "out": "丘主上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then show me only the values that are bigger than five, then make each one squared.", "out": "丘主上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep values greater than five, then square each value in the list.", "out": "丘主上"} {"kind": "builder", "in": "丘主上", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丘主上", "out": "Take a list of integers; cap each value at 10, then keep values greater than five, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increase every value by 10, then keep only numbers above 5.", "out": "为丽主"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then add 10 to each item, then exclude values of 5 and below.", "out": "为丽主"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then shift each up by ten, then remove anything 5 or less.", "out": "为丽主"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then increase all numbers by 10, then filter to keep only values above 5.", "out": "为丽主"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "为丽主"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then give everything a boost of 10, then drop anything 5 or below.", "out": "为丽主"} {"kind": "builder", "in": "为丽主", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "为丽主", "out": "Take a list of integers; drop the first and last elements, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each by two, then true only if all are positive.", "out": "七丈乌"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then double each item in the list, then do all of these have positive values.", "out": "七丈乌"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then multiply each by two, then check if every value is positive.", "out": "七丈乌"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then double each item in the list, then confirm all values are positive.", "out": "七丈乌"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then multiply each by two, then all positive.", "out": "七丈乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then double each item in the list, then check if every number is above zero.", "out": "七丈乌"} {"kind": "builder", "in": "七丈乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "七丈乌", "out": "Take a list of integers; keep the positive numbers, then double each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each value by itself, then reduce each by one.", "out": "丸上不"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then square them all, then Subtract 1 from all.", "out": "丸上不"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then raise each to the power of two, then Subtract one from each.", "out": "丸上不"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then I need each number multiplied by itself, then Drop each by one.", "out": "丸上不"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then square all of them, then Decrease all values by one.", "out": "丸上不"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiply each element by itself, then Remove one from each value.", "out": "丸上不"} {"kind": "builder", "in": "丸上不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丸上不", "out": "Take a list of integers; sort by absolute value, then square each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only even values, then find the max, defaulting to 0.", "out": "乃一业"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then extract all even numbers, then Give me the maximum, but 0 if there are no items.", "out": "乃一业"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only even values, then What's the highest number in the list.", "out": "乃一业"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then extract all even numbers, then Return the greatest value or default to 0.", "out": "乃一业"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only even values, then Find the largest element, defaulting to zero.", "out": "乃一业"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then extract all even numbers, then give the largest value (0 if none).", "out": "乃一业"} {"kind": "builder", "in": "乃一业", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "乃一业", "out": "Take a list of integers; drop the leading negative values, then keep the even numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then order strings from shortest to longest, then remove short strings (under 3 chars).", "out": "两严乗"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then shortest to longest, then only keep strings with three or more characters.", "out": "两严乗"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then arrange by string length ascending, then keep only strings that are at least three characters long.", "out": "两严乗"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then length sort, then filter strings shorter than 3 chars.", "out": "两严乗"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then sort by length shortest first, then drop anything shorter than three characters.", "out": "两严乗"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then organize by string length least to greatest, then keep only strings of length 3 or more.", "out": "两严乗"} {"kind": "builder", "in": "两严乗", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = sorted(r, key=len)\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "两严乗", "out": "Take a list of strings; drop empty strings, then sort by length, shortest first, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each value by itself, then arrange by magnitude ignoring sign.", "out": "专上丸"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then square them all, then put them in order by magnitude.", "out": "专上丸"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then raise each to the power of two, then arrange in order of absolute value.", "out": "专上丸"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then I need each number multiplied by itself, then sort by distance from zero.", "out": "专上丸"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then square all of them, then order by how far from zero.", "out": "专上丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiply each element by itself, then order by distance from zero.", "out": "专上丸"} {"kind": "builder", "in": "专上丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "专上丸", "out": "Take a list of integers; sort descending, then square each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the final 3 elements, then shift each up by ten.", "out": "与丹丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop everything except the final three, then increase all numbers by 10.", "out": "与丹丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give me the last three elements, then add 10 to everything.", "out": "与丹丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the last three, then give everything a boost of 10.", "out": "与丹丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the final three items, then increment each by ten.", "out": "与丹丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the last three, then add a constant 10 to each.", "out": "与丹丽"} {"kind": "builder", "in": "与丹丽", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[-3:]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "与丹丽", "out": "Take a list of integers; negate each, then keep only the last three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the final 3 elements, then drop non-positive values.", "out": "世丹七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop everything except the final three, then drop the negative numbers.", "out": "世丹七"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then give me the last three elements, then filter out the negative ones.", "out": "世丹七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the last three, then remove all negative values.", "out": "世丹七"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the final three items, then keep positive values only.", "out": "世丹七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the last three, then keep values above zero.", "out": "世丹七"} {"kind": "builder", "in": "世丹七", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[-3:]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "世丹七", "out": "Take a list of integers; drop the first element, then keep only the last three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove both ends, then arrange by magnitude ignoring sign.", "out": "丽为丸"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then trim the edges, then put them in order by magnitude.", "out": "丽为丸"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then trim one element off each end, then arrange in order of absolute value.", "out": "丽为丸"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then cut off the first and last, then sort by distance from zero.", "out": "丽为丸"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first and last elements, then order by how far from zero.", "out": "丽为丸"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep only the middle part, then order by distance from zero.", "out": "丽为丸"} {"kind": "builder", "in": "丽为丸", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:-1]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丽为丸", "out": "Take a list of integers; add ten to each, then drop the first and last elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values above zero, then put the elements backwards.", "out": "丘七丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter for positive numbers, then reverse that for me.", "out": "丘七丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only positive numbers, then flip it backwards.", "out": "丘七丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positives, then make it backwards.", "out": "丘七丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove negatives, then reverse the list.", "out": "丘七丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positive numbers, then invert the sequence.", "out": "丘七丐"} {"kind": "builder", "in": "丘七丐", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丘七丐", "out": "Take a list of integers; cap each value at 10, then keep the positive numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values above zero, then true if every value is unique.", "out": "举七乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter for positive numbers, then check for duplicates in the values.", "out": "举七乏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only positive numbers, then do all values appear only once.", "out": "举七乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positives, then check that there are no duplicates.", "out": "举七乏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove negatives, then are the values all unique.", "out": "举七乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positive numbers, then check if all values are unique.", "out": "举七乏"} {"kind": "builder", "in": "举七乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "举七乏", "out": "Take a list of integers; drop the zeros, then keep the positive numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the leading run of positive numbers, then truncate to three items.", "out": "丈乂丕"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take values while they are positive, then show the first three.", "out": "丈乂丕"} {"kind": "speaker", "in": "Take a list of integers; double each, then take positive values then stop, then take the first three.", "out": "丈乂丕"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep going while positive, then keep first 3.", "out": "丈乂丕"} {"kind": "speaker", "in": "Take a list of integers; double each, then stop at first non positive, then truncate to first three.", "out": "丈乂丕"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take while greater than zero, then first three.", "out": "丈乂丕"} {"kind": "builder", "in": "丈乂丕", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丈乂丕", "out": "Take a list of integers; double each, then take values while they are positive, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove the first item, then keep only numbers above 5.", "out": "不世主"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Remove head, then exclude values of 5 and below.", "out": "不世主"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the first item, then remove anything 5 or less.", "out": "不世主"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Remove head, then filter to keep only values above 5.", "out": "不世主"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove the first item, then get rid of values that aren't greater than five.", "out": "不世主"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then Remove head, then drop anything 5 or below.", "out": "不世主"} {"kind": "builder", "in": "不世主", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[1:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "不世主", "out": "Take a list of integers; subtract one from each, then drop the first element, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values above zero, then ensure at least three items by appending zeros.", "out": "世七义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter for positive numbers, then ensure minimum length of three by adding zeros to the end.", "out": "世七义"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only positive numbers, then ensure at least three items by appending zeros.", "out": "世七义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positives, then ensure minimum length of three by adding zeros to the end.", "out": "世七义"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove negatives, then ensure at least three items by appending zeros.", "out": "世七义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positive numbers, then ensure minimum length of three by adding zeros to the end.", "out": "世七义"} {"kind": "builder", "in": "世七义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "世七义", "out": "Take a list of integers; drop the first element, then keep the positive numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then true if at least one even value.", "out": "丈下之"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then any even.", "out": "丈下之"} {"kind": "builder", "in": "丈下之", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 1 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丈下之", "out": "Take a list of integers; double each, then add one to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then remove the initial run of negative numbers.", "out": "世丁乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then strip the front negatives.", "out": "世丁乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then remove leading negative numbers.", "out": "世丁乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then drop negatives from start.", "out": "世丁乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then strip negative values from the start.", "out": "世丁乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then remove negatives before the first non-negative.", "out": "世丁乃"} {"kind": "builder", "in": "世丁乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "世丁乃", "out": "Take a list of integers; drop the first element, then keep the odd numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then make every value non-negative, then deduplicate the list.", "out": "丐丏且"} {"kind": "speaker", "in": "Take a list of integers; reverse, then absolute value for all items, then remove repeats.", "out": "丐丏且"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take absolute values, then deduplicate the list.", "out": "丐丏且"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn negatives into positives, then remove repeats.", "out": "丐丏且"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then abs each element, then deduplicate the list.", "out": "丐丏且"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the absolute value of each, then remove repeats.", "out": "丐丏且"} {"kind": "builder", "in": "丐丏且", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丐丏且", "out": "Take a list of integers; reverse the order, then take the absolute value of each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then cut the list at the first zero, then truncate to the last three items.", "out": "乃久丹"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then cut off after the first zero appears, then show only the last three.", "out": "乃久丹"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take values up to (excluding) the first zero, then remove all but the last three.", "out": "乃久丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the part before the first 0, then take the final 3 elements.", "out": "乃久丹"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then truncate at the first zero, then drop everything except the final three.", "out": "乃久丹"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then delete everything starting with the first zero, then give me the last three elements.", "out": "乃久丹"} {"kind": "builder", "in": "乃久丹", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "乃久丹", "out": "Take a list of integers; drop the leading negative values, then keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then default to [0] when there is nothing, then multiply each by -1.", "out": "世么与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then when the list is empty, substitute a zero value, then negate.", "out": "世么与"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then replace an empty list with one zero, then multiply each by -1.", "out": "世么与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then zero it out if it's empty, then negate.", "out": "世么与"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then use zero if the list is empty, then multiply each by -1.", "out": "世么与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then default to zero when empty, then negate.", "out": "世么与"} {"kind": "builder", "in": "世么与", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "世么与", "out": "Take a list of integers; drop the first element, then if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the list around, then truncate to the last three items.", "out": "一丐丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then flip the order around, then show only the last three.", "out": "一丐丹"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then put the elements backwards, then remove all but the last three.", "out": "一丐丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then reverse that for me, then take the final 3 elements.", "out": "一丐丹"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip it backwards, then drop everything except the final three.", "out": "一丐丹"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then make it backwards, then give me the last three elements.", "out": "一丐丹"} {"kind": "builder", "in": "一丐丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(reversed(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "一丐丹", "out": "Take a list of integers; keep the even numbers, then reverse the order, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then skip negatives at the start, then skip the first one.", "out": "丽乃世"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove all negatives at the front, then Discard the first element.", "out": "丽乃世"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the initial run of negative numbers, then skip the first one.", "out": "丽乃世"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then strip the front negatives, then Discard the first element.", "out": "丽乃世"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove leading negative numbers, then skip the first one.", "out": "丽乃世"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then drop negatives from start, then Discard the first element.", "out": "丽乃世"} {"kind": "builder", "in": "丽乃世", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丽乃世", "out": "Take a list of integers; add ten to each, then drop the leading negative values, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values above zero, then find the max, defaulting to 0.", "out": "丘七业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter for positive numbers, then Give me the maximum, but 0 if there are no items.", "out": "丘七业"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only positive numbers, then What's the highest number in the list.", "out": "丘七业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positives, then Return the greatest value or default to 0.", "out": "丘七业"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove negatives, then Find the largest element, defaulting to zero.", "out": "丘七业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positive numbers, then give the largest value (0 if none).", "out": "丘七业"} {"kind": "builder", "in": "丘七业", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丘七业", "out": "Take a list of integers; cap each value at 10, then keep the positive numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increase every value by 10, then count the elements.", "out": "丏丽东"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then add 10 to each item, then how many items remain.", "out": "丏丽东"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then shift each up by ten, then tell me the length.", "out": "丏丽东"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then increase all numbers by 10, then return the length.", "out": "丏丽东"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then add 10 to everything, then count them.", "out": "丏丽东"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then give everything a boost of 10, then what's the count.", "out": "丏丽东"} {"kind": "builder", "in": "丏丽东", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n return len(r)"} {"kind": "translator", "in": "丏丽东", "out": "Take a list of integers; take the absolute value of each, then add ten to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; negate each, then cut the list at the first zero, then find the max, defaulting to 0.", "out": "与久业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off after the first zero appears, then Give me the maximum, but 0 if there are no items.", "out": "与久业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take values up to (excluding) the first zero, then What's the highest number in the list.", "out": "与久业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the part before the first 0, then Return the greatest value or default to 0.", "out": "与久业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate at the first zero, then Find the largest element, defaulting to zero.", "out": "与久业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then delete everything starting with the first zero, then give the largest value (0 if none).", "out": "与久业"} {"kind": "builder", "in": "与久业", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return max(r) if r else 0"} {"kind": "translator", "in": "与久业", "out": "Take a list of integers; negate each, then keep everything before the first zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove repeated values, then put the elements backwards.", "out": "丕且丐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then unique values preserving order, then reverse that for me.", "out": "丕且丐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove repeated values, then flip it backwards.", "out": "丕且丐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then unique values preserving order, then make it backwards.", "out": "丕且丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove repeated values, then reverse the list.", "out": "丕且丐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then unique values preserving order, then invert the sequence.", "out": "丕且丐"} {"kind": "builder", "in": "丕且丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = list(dict.fromkeys(r))\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丕且丐", "out": "Take a list of integers; keep only the first three, then drop duplicates keeping first occurrence, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove both ends, then shift each up by ten.", "out": "丑为丽"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then trim the edges, then increase all numbers by 10.", "out": "丑为丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then trim one element off each end, then add 10 to everything.", "out": "丑为丽"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then cut off the first and last, then give everything a boost of 10.", "out": "丑为丽"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first and last elements, then increment each by ten.", "out": "丑为丽"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep only the middle part, then add a constant 10 to each.", "out": "丑为丽"} {"kind": "builder", "in": "丑为丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:-1]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丑为丽", "out": "Take a list of integers; sort ascending, then drop the first and last elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then default to [0] when there is nothing, then give back the total.", "out": "乂么丙"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then when the list is empty, substitute a zero value, then sum r.", "out": "乂么丙"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then replace an empty list with one zero, then add them up.", "out": "乂么丙"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then zero it out if it's empty, then calculate the sum of all elements.", "out": "乂么丙"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then use zero if the list is empty, then what's the total.", "out": "乂么丙"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then default to zero when empty, then what do they add up to.", "out": "乂么丙"} {"kind": "builder", "in": "乂么丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n return sum(r)"} {"kind": "translator", "in": "乂么丙", "out": "Take a list of integers; take values while they are positive, then if empty, use a single zero, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values divisible by 3, then drop the even numbers.", "out": "与串丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep items where x mod 3 equals zero, then strip out the evens.", "out": "与串丁"} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything not divisible by three, then drop the even numbers.", "out": "与串丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter out everything except multiples of three, then strip out the evens.", "out": "与串丁"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only multiples of three, then drop the even numbers.", "out": "与串丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiples of three only, then strip out the evens.", "out": "与串丁"} {"kind": "builder", "in": "与串丁", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "与串丁", "out": "Take a list of integers; negate each, then keep multiples of three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values divisible by 3, then true if at least one even value.", "out": "丐串之"} {"kind": "speaker", "in": "Take a list of integers; reverse, then keep items where x mod 3 equals zero, then any even.", "out": "丐串之"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then drop anything not divisible by three, then true if at least one even value.", "out": "丐串之"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then filter out everything except multiples of three, then any even.", "out": "丐串之"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only multiples of three, then true if at least one even value.", "out": "丐串之"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiples of three only, then any even.", "out": "丐串之"} {"kind": "builder", "in": "丐串之", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丐串之", "out": "Take a list of integers; reverse the order, then keep multiples of three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increment each value, then truncate to three items.", "out": "乃下丕"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then plus one for all, then show the first three.", "out": "乃下丕"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then increment each value, then take the first three.", "out": "乃下丕"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then plus one for all, then keep first 3.", "out": "乃下丕"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then increment each value, then truncate to first three.", "out": "乃下丕"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then plus one for all, then first three.", "out": "乃下丕"} {"kind": "builder", "in": "乃下丕", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "乃下丕", "out": "Take a list of integers; drop the leading negative values, then add one to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each value by itself, then stop at the first non-positive value.", "out": "一上乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then square them all, then keep the leading run of positive numbers.", "out": "一上乂"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then raise each to the power of two, then take values while they are positive.", "out": "一上乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then I need each number multiplied by itself, then take positive values then stop.", "out": "一上乂"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then square all of them, then keep going while positive.", "out": "一上乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiply each element by itself, then stop at first non positive.", "out": "一上乂"} {"kind": "builder", "in": "一上乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "一上乂", "out": "Take a list of integers; keep the even numbers, then square each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then take the final 3 elements, then replace an empty list with one zero.", "out": "主丹么"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then drop everything except the final three, then zero it out if it's empty.", "out": "主丹么"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then give me the last three elements, then use zero if the list is empty.", "out": "主丹么"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep only the last three, then default to zero when empty.", "out": "主丹么"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep the final three items, then if there's nothing, put in a zero.", "out": "主丹么"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take the last three, then if no items, add a zero.", "out": "主丹么"} {"kind": "builder", "in": "主丹么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[-3:]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "主丹么", "out": "Take a list of integers; keep values greater than five, then keep only the last three, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove repeated values, then arrange in increasing order.", "out": "丘且丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then unique values preserving order, then Organize these ascending.", "out": "丘且丑"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove repeated values, then Sort in ascending order.", "out": "丘且丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then unique values preserving order, then I need this sorted ascending.", "out": "丘且丑"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove repeated values, then Put these in ascending order.", "out": "丘且丑"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then unique values preserving order, then sort smallest to largest.", "out": "丘且丑"} {"kind": "builder", "in": "丘且丑", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丘且丑", "out": "Take a list of integers; cap each value at 10, then drop duplicates keeping first occurrence, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the final 3 elements, then true if already sorted smallest to largest.", "out": "世丹乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop everything except the final three, then does this list go in ascending order.", "out": "世丹乎"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then give me the last three elements, then check if the list is in ascending order.", "out": "世丹乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the last three, then is the list sorted.", "out": "世丹乎"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the final three items, then is it sorted.", "out": "世丹乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the last three, then check if values are in increasing order.", "out": "世丹乎"} {"kind": "builder", "in": "世丹乎", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[-3:]\n return r == sorted(r)"} {"kind": "translator", "in": "世丹乎", "out": "Take a list of integers; drop the first element, then keep only the last three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove all zero values, then skip the first one.", "out": "九举世"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then exclude zeros, then Discard the first element.", "out": "九举世"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove all zero values, then skip the first one.", "out": "九举世"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then exclude zeros, then Discard the first element.", "out": "九举世"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove all zero values, then skip the first one.", "out": "九举世"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then exclude zeros, then Discard the first element.", "out": "九举世"} {"kind": "builder", "in": "九举世", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "九举世", "out": "Take a list of people records (name, age); extract the ages, then drop the zeros, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep only even values, then true if every value is unique.", "out": "丸一乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then extract all even numbers, then check for duplicates in the values.", "out": "丸一乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only even values, then do all values appear only once.", "out": "丸一乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then extract all even numbers, then check that there are no duplicates.", "out": "丸一乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only even values, then are the values all unique.", "out": "丸一乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then extract all even numbers, then check if all values are unique.", "out": "丸一乏"} {"kind": "builder", "in": "丸一乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸一乏", "out": "Take a list of integers; sort by absolute value, then keep the even numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then cut the list at the first zero, then arrange in decreasing order.", "out": "不久专"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then cut off after the first zero appears, then arrange in descending order.", "out": "不久专"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take values up to (excluding) the first zero, then reverse sort.", "out": "不久专"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the part before the first 0, then sort largest to smallest.", "out": "不久专"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then truncate at the first zero, then sort by descending values.", "out": "不久专"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then delete everything starting with the first zero, then sort from highest to lowest.", "out": "不久专"} {"kind": "builder", "in": "不久专", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "不久专", "out": "Take a list of integers; subtract one from each, then keep everything before the first zero, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; square each, then increment each value, then give back the total.", "out": "上下丙"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then plus one for all, then sum r.", "out": "上下丙"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then increment each value, then add them up.", "out": "上下丙"} {"kind": "speaker", "in": "Take a list of integers; square them all, then plus one for all, then calculate the sum of all elements.", "out": "上下丙"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then increment each value, then what's the total.", "out": "上下丙"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then plus one for all, then what do they add up to.", "out": "上下丙"} {"kind": "builder", "in": "上下丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x + 1 for x in r]\n return sum(r)"} {"kind": "translator", "in": "上下丙", "out": "Take a list of integers; square each, then add one to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then replace an empty list with one zero.", "out": "丹丽么"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then zero it out if it's empty.", "out": "丹丽么"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then use zero if the list is empty.", "out": "丹丽么"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then default to zero when empty.", "out": "丹丽么"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then if there's nothing, put in a zero.", "out": "丹丽么"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then if no items, add a zero.", "out": "丹丽么"} {"kind": "builder", "in": "丹丽么", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丹丽么", "out": "Take a list of integers; keep only the last three, then add ten to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then default to [0] when there is nothing, then give back the total.", "out": "丽么丙"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then when the list is empty, substitute a zero value, then sum r.", "out": "丽么丙"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then replace an empty list with one zero, then add them up.", "out": "丽么丙"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then zero it out if it's empty, then calculate the sum of all elements.", "out": "丽么丙"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then use zero if the list is empty, then what's the total.", "out": "丽么丙"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then default to zero when empty, then what do they add up to.", "out": "丽么丙"} {"kind": "builder", "in": "丽么丙", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r if r else [0]\n return sum(r)"} {"kind": "translator", "in": "丽么丙", "out": "Take a list of integers; add ten to each, then if empty, use a single zero, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the final 3 elements, then raise each to the power of two.", "out": "乃丹上"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then drop everything except the final three, then I need each number multiplied by itself.", "out": "乃丹上"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give me the last three elements, then square all of them.", "out": "乃丹上"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep only the last three, then multiply each element by itself.", "out": "乃丹上"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep the final three items, then make each one squared.", "out": "乃丹上"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the last three, then square each value in the list.", "out": "乃丹上"} {"kind": "builder", "in": "乃丹上", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "乃丹上", "out": "Take a list of integers; drop the leading negative values, then keep only the last three, then square each."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then true if already sorted smallest to largest.", "out": "丈丁乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then does this list go in ascending order.", "out": "丈丁乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then check if the list is in ascending order.", "out": "丈丁乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then is the list sorted.", "out": "丈丁乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then is it sorted.", "out": "丈丁乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then check if values are in increasing order.", "out": "丈丁乎"} {"kind": "builder", "in": "丈丁乎", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丈丁乎", "out": "Take a list of integers; double each, then keep the odd numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values divisible by 3, then count the elements.", "out": "丁串东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep items where x mod 3 equals zero, then how many items remain.", "out": "丁串东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then drop anything not divisible by three, then tell me the length.", "out": "丁串东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter out everything except multiples of three, then return the length.", "out": "丁串东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only multiples of three, then count them.", "out": "丁串东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiples of three only, then what's the count.", "out": "丁串东"} {"kind": "builder", "in": "丁串东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n return len(r)"} {"kind": "translator", "in": "丁串东", "out": "Take a list of integers; keep the odd numbers, then keep multiples of three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove the first item, then give back the product of all values.", "out": "乃世乐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Remove head, then product of the list.", "out": "乃世乐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove the first item, then what's the product.", "out": "乃世乐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Remove head, then what do they multiply to.", "out": "乃世乐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first item, then give me their product.", "out": "乃世乐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Remove head, then multiply them all together.", "out": "乃世乐"} {"kind": "builder", "in": "乃世乐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "乃世乐", "out": "Take a list of integers; drop the leading negative values, then drop the first element, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort smallest to largest, then arrange in decreasing order.", "out": "万丑专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Ascending sort, then arrange in descending order.", "out": "万丑专"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Sort this ascending, then reverse sort.", "out": "万丑专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Sort lowest to highest, then sort largest to smallest.", "out": "万丑专"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Arrange from smallest to largest, then sort by descending values.", "out": "万丑专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort ascending, then sort from highest to lowest.", "out": "万丑专"} {"kind": "builder", "in": "万丑专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "万丑专", "out": "Take a list of integers; keep the negative numbers, then sort ascending, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then decrement each value, then find the min, defaulting to 0.", "out": "且不丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Lower each number by one, then minimum value, zero otherwise.", "out": "且不丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then reduce each by one, then get the minimum value or zero if empty.", "out": "且不丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Subtract 1 from all, then give me the min or 0.", "out": "且不丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Subtract one from each, then return the smallest number, defaulting to 0.", "out": "且不丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Drop each by one, then return smallest or zero if empty.", "out": "且不丛"} {"kind": "builder", "in": "且不丛", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "且不丛", "out": "Take a list of integers; drop duplicates keeping first occurrence, then subtract one from each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then decrement each value, then arrange in decreasing order.", "out": "丘不专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Lower each number by one, then arrange in descending order.", "out": "丘不专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then reduce each by one, then reverse sort.", "out": "丘不专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Subtract 1 from all, then sort largest to smallest.", "out": "丘不专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Subtract one from each, then sort by descending values.", "out": "丘不专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Drop each by one, then sort from highest to lowest.", "out": "丘不专"} {"kind": "builder", "in": "丘不专", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丘不专", "out": "Take a list of integers; cap each value at 10, then subtract one from each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the leading run of positive numbers, then truncate to three items.", "out": "丁乂丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take values while they are positive, then show the first three.", "out": "丁乂丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take positive values then stop, then take the first three.", "out": "丁乂丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep going while positive, then keep first 3.", "out": "丁乂丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then stop at first non positive, then truncate to first three.", "out": "丁乂丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take while greater than zero, then first three.", "out": "丁乂丕"} {"kind": "builder", "in": "丁乂丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丁乂丕", "out": "Take a list of integers; keep the odd numbers, then take values while they are positive, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the sign of each, then put the elements backwards.", "out": "为与丐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then turn positives to negatives and vice versa, then reverse that for me.", "out": "为与丐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then flip the sign of each, then flip it backwards.", "out": "为与丐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn positives to negatives and vice versa, then make it backwards.", "out": "为与丐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip the sign of each, then reverse the list.", "out": "为与丐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then turn positives to negatives and vice versa, then invert the sequence.", "out": "为与丐"} {"kind": "builder", "in": "为与丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [-x for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "为与丐", "out": "Take a list of integers; drop the first and last elements, then negate each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then reduce each by one.", "out": "下丈不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then Subtract 1 from all.", "out": "下丈不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then Subtract one from each.", "out": "下丈不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then Drop each by one.", "out": "下丈不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then Decrease all values by one.", "out": "下丈不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then Remove one from each value.", "out": "下丈不"} {"kind": "builder", "in": "下丈不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "下丈不", "out": "Take a list of integers; add one to each, then double each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increase every value by 10, then keep only numbers above 5.", "out": "举丽主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then add 10 to each item, then exclude values of 5 and below.", "out": "举丽主"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then shift each up by ten, then remove anything 5 or less.", "out": "举丽主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then increase all numbers by 10, then filter to keep only values above 5.", "out": "举丽主"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "举丽主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give everything a boost of 10, then drop anything 5 or below.", "out": "举丽主"} {"kind": "builder", "in": "举丽主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "举丽主", "out": "Take a list of integers; drop the zeros, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then decrement each value, then raise each to the power of two.", "out": "丸不上"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Lower each number by one, then I need each number multiplied by itself.", "out": "丸不上"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then reduce each by one, then square all of them.", "out": "丸不上"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Subtract 1 from all, then multiply each element by itself.", "out": "丸不上"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Subtract one from each, then make each one squared.", "out": "丸不上"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Drop each by one, then square each value in the list.", "out": "丸不上"} {"kind": "builder", "in": "丸不上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丸不上", "out": "Take a list of integers; sort by absolute value, then subtract one from each, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the age field from each record, then give the number of evens.", "out": "习九乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then get the age field, then find how many values are divisible by two.", "out": "习九乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's age, then how many are even.", "out": "习九乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then extract age values, then get the total number of even values in the list.", "out": "习九乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then get all the ages, then give me the count of even values.", "out": "习九乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then what are the ages, then I need to know how many of these are even.", "out": "习九乓"} {"kind": "builder", "in": "习九乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['age'] for d in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "习九乓", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the ages, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then drop the even numbers.", "out": "举万丁"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then strip out the evens.", "out": "举万丁"} {"kind": "builder", "in": "举万丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "举万丁", "out": "Take a list of integers; drop the zeros, then keep the negative numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values, then give the earliest even value or zero.", "out": "一且乒"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order, then fetch the first even element, default to 0.", "out": "一且乒"} {"kind": "builder", "in": "一且乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(dict.fromkeys(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "一且乒", "out": "Take a list of integers; keep the even numbers, then drop duplicates keeping first occurrence, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increment each value, then drop the odd numbers.", "out": "丕下一"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then plus one for all, then filter out the odd numbers.", "out": "丕下一"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then increment each value, then drop the odd numbers.", "out": "丕下一"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then plus one for all, then filter out the odd numbers.", "out": "丕下一"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then increment each value, then drop the odd numbers.", "out": "丕下一"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then plus one for all, then filter out the odd numbers.", "out": "丕下一"} {"kind": "builder", "in": "丕下一", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丕下一", "out": "Take a list of integers; keep only the first three, then add one to each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then true if at least one even value.", "out": "举乂之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then any even.", "out": "举乂之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then true if at least one even value.", "out": "举乂之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then any even.", "out": "举乂之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then true if at least one even value.", "out": "举乂之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then any even.", "out": "举乂之"} {"kind": "builder", "in": "举乂之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "举乂之", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then true only if all are positive.", "out": "举万乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then do all of these have positive values.", "out": "举万乌"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then check if every value is positive.", "out": "举万乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then confirm all values are positive.", "out": "举万乌"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then all positive.", "out": "举万乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then check if every number is above zero.", "out": "举万乌"} {"kind": "builder", "in": "举万乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "举万乌", "out": "Take a list of integers; drop the zeros, then keep the negative numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then drop anything 5 or below, then keep only non-zero numbers.", "out": "丹主举"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep only numbers greater than 5, then strip the zeros.", "out": "丹主举"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then filter for numbers above 5, then keep only non-zero numbers.", "out": "丹主举"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then give me values where x is greater than 5, then strip the zeros.", "out": "丹主举"} {"kind": "speaker", "in": "Take a list of integers; last three only, then show me only the values that are bigger than five, then keep only non-zero numbers.", "out": "丹主举"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep values greater than five, then strip the zeros.", "out": "丹主举"} {"kind": "builder", "in": "丹主举", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丹主举", "out": "Take a list of integers; keep only the last three, then keep values greater than five, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then make every value non-negative, then drop the even numbers.", "out": "一丏丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then absolute value for all items, then strip out the evens.", "out": "一丏丁"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take absolute values, then drop the even numbers.", "out": "一丏丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn negatives into positives, then strip out the evens.", "out": "一丏丁"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then abs each element, then drop the even numbers.", "out": "一丏丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the absolute value of each, then strip out the evens.", "out": "一丏丁"} {"kind": "builder", "in": "一丏丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "一丏丁", "out": "Take a list of integers; keep the even numbers, then take the absolute value of each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove all zero values, then skip the first one.", "out": "丸举世"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then exclude zeros, then Discard the first element.", "out": "丸举世"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove all zero values, then skip the first one.", "out": "丸举世"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then exclude zeros, then Discard the first element.", "out": "丸举世"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove all zero values, then skip the first one.", "out": "丸举世"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then exclude zeros, then Discard the first element.", "out": "丸举世"} {"kind": "builder", "in": "丸举世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丸举世", "out": "Take a list of integers; sort by absolute value, then drop the zeros, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increment each value, then reduce each by one.", "out": "为下不"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then plus one for all, then Subtract 1 from all.", "out": "为下不"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then increment each value, then Subtract one from each.", "out": "为下不"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then plus one for all, then Drop each by one.", "out": "为下不"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then increment each value, then Decrease all values by one.", "out": "为下不"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then plus one for all, then Remove one from each value.", "out": "为下不"} {"kind": "builder", "in": "为下不", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "为下不", "out": "Take a list of integers; drop the first and last elements, then add one to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then make every value non-negative, then true only if all are positive.", "out": "世丏乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then absolute value for all items, then do all of these have positive values.", "out": "世丏乌"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take absolute values, then check if every value is positive.", "out": "世丏乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn negatives into positives, then confirm all values are positive.", "out": "世丏乌"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then abs each element, then all positive.", "out": "世丏乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the absolute value of each, then check if every number is above zero.", "out": "世丏乌"} {"kind": "builder", "in": "世丏乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [abs(x) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "世丏乌", "out": "Take a list of integers; drop the first element, then take the absolute value of each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove repeated values, then arrange in decreasing order.", "out": "与且专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then unique values preserving order, then arrange in descending order.", "out": "与且专"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove repeated values, then reverse sort.", "out": "与且专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then unique values preserving order, then sort largest to smallest.", "out": "与且专"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove repeated values, then sort by descending values.", "out": "与且专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then unique values preserving order, then sort from highest to lowest.", "out": "与且专"} {"kind": "builder", "in": "与且专", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "与且专", "out": "Take a list of integers; negate each, then drop duplicates keeping first occurrence, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then bump each up by one.", "out": "丑且下"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then increment each item.", "out": "丑且下"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then bump each up by one.", "out": "丑且下"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then increment each item.", "out": "丑且下"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then bump each up by one.", "out": "丑且下"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then increment each item.", "out": "丑且下"} {"kind": "builder", "in": "丑且下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丑且下", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then make every value non-negative, then deduplicate the list.", "out": "久丏且"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then absolute value for all items, then remove repeats.", "out": "久丏且"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take absolute values, then deduplicate the list.", "out": "久丏且"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn negatives into positives, then remove repeats.", "out": "久丏且"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then abs each element, then deduplicate the list.", "out": "久丏且"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the absolute value of each, then remove repeats.", "out": "久丏且"} {"kind": "builder", "in": "久丏且", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "久丏且", "out": "Take a list of integers; keep everything before the first zero, then take the absolute value of each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increase every value by 10, then keep only numbers above 5.", "out": "世丽主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then add 10 to each item, then exclude values of 5 and below.", "out": "世丽主"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then shift each up by ten, then remove anything 5 or less.", "out": "世丽主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then increase all numbers by 10, then filter to keep only values above 5.", "out": "世丽主"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "世丽主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give everything a boost of 10, then drop anything 5 or below.", "out": "世丽主"} {"kind": "builder", "in": "世丽主", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "世丽主", "out": "Take a list of integers; drop the first element, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros, then truncate to the last three items.", "out": "为义丹"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3, then show only the last three.", "out": "为义丹"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros, then remove all but the last three.", "out": "为义丹"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3, then take the final 3 elements.", "out": "为义丹"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros, then drop everything except the final three.", "out": "为义丹"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3, then give me the last three elements.", "out": "为义丹"} {"kind": "builder", "in": "为义丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "为义丹", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only odd values, then put the elements backwards.", "out": "乃丁丐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then eliminate the even numbers, then reverse that for me.", "out": "乃丁丐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only odd values, then flip it backwards.", "out": "乃丁丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then eliminate the even numbers, then make it backwards.", "out": "乃丁丐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only odd values, then reverse the list.", "out": "乃丁丐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then eliminate the even numbers, then invert the sequence.", "out": "乃丁丐"} {"kind": "builder", "in": "乃丁丐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "乃丁丐", "out": "Take a list of integers; drop the leading negative values, then keep the odd numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values above zero, then give the number of evens.", "out": "万七乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter for positive numbers, then find how many values are divisible by two.", "out": "万七乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only positive numbers, then how many are even.", "out": "万七乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positives, then get the total number of even values in the list.", "out": "万七乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove negatives, then give me the count of even values.", "out": "万七乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positive numbers, then I need to know how many of these are even.", "out": "万七乓"} {"kind": "builder", "in": "万七乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "万七乓", "out": "Take a list of integers; keep the negative numbers, then keep the positive numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort smallest to largest, then trim one element off each end.", "out": "丹丑为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Ascending sort, then cut off the first and last.", "out": "丹丑为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then Sort this ascending, then remove the first and last elements.", "out": "丹丑为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Sort lowest to highest, then keep only the middle part.", "out": "丹丑为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Arrange from smallest to largest, then drop first and last.", "out": "丹丑为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort ascending, then eliminate the outermost elements.", "out": "丹丑为"} {"kind": "builder", "in": "丹丑为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹丑为", "out": "Take a list of integers; keep only the last three, then sort ascending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort smallest to largest, then drop non-negative values.", "out": "世丑万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Ascending sort, then drop all positive numbers.", "out": "世丑万"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Sort this ascending, then drop non-negative values.", "out": "世丑万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Sort lowest to highest, then drop all positive numbers.", "out": "世丑万"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Arrange from smallest to largest, then drop non-negative values.", "out": "世丑万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort ascending, then drop all positive numbers.", "out": "世丑万"} {"kind": "builder", "in": "世丑万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "世丑万", "out": "Take a list of integers; drop the first element, then sort ascending, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove both ends, then find the max, defaulting to 0.", "out": "串为业"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then trim the edges, then Give me the maximum, but 0 if there are no items.", "out": "串为业"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then trim one element off each end, then What's the highest number in the list.", "out": "串为业"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then cut off the first and last, then Return the greatest value or default to 0.", "out": "串为业"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first and last elements, then Find the largest element, defaulting to zero.", "out": "串为业"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep only the middle part, then give the largest value (0 if none).", "out": "串为业"} {"kind": "builder", "in": "串为业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n return max(r) if r else 0"} {"kind": "translator", "in": "串为业", "out": "Take a list of integers; keep multiples of three, then drop the first and last elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then skip the first one.", "out": "丸丈世"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then Discard the first element.", "out": "丸丈世"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then skip the first one.", "out": "丸丈世"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then Discard the first element.", "out": "丸丈世"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then skip the first one.", "out": "丸丈世"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then Discard the first element.", "out": "丸丈世"} {"kind": "builder", "in": "丸丈世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丸丈世", "out": "Take a list of integers; sort by absolute value, then double each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then increment each value, then limit every value to 10.", "out": "丸下丘"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then plus one for all, then maximum of 10 for all.", "out": "丸下丘"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then increment each value, then limit every value to 10.", "out": "丸下丘"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then plus one for all, then maximum of 10 for all.", "out": "丸下丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then increment each value, then limit every value to 10.", "out": "丸下丘"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then plus one for all, then maximum of 10 for all.", "out": "丸下丘"} {"kind": "builder", "in": "丸下丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丸下丘", "out": "Take a list of integers; sort by absolute value, then add one to each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then convert each to upper case, then remove surrounding whitespace.", "out": "严丟丢"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then change all strings to uppercase, then trim the whitespace off everything.", "out": "严丟丢"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then make every string uppercase, then strip spaces from all strings.", "out": "严丟丢"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then uppercase each one, then strip all the strings.", "out": "严丟丢"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then make all the strings uppercase, then clean up whitespace in the list.", "out": "严丟丢"} {"kind": "speaker", "in": "Take a list of strings; length sort, then convert all strings to uppercase letters, then strip spaces around each string.", "out": "严丟丢"} {"kind": "builder", "in": "严丟丢", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.upper() for s in r]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "严丟丢", "out": "Take a list of strings; sort by length, shortest first, then uppercase each string, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then arrange in decreasing order.", "out": "丁与专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then arrange in descending order.", "out": "丁与专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then reverse sort.", "out": "丁与专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then sort largest to smallest.", "out": "丁与专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then sort by descending values.", "out": "丁与专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then sort from highest to lowest.", "out": "丁与专"} {"kind": "builder", "in": "丁与专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丁与专", "out": "Take a list of integers; keep the odd numbers, then negate each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then drop the even numbers.", "out": "举丘丁"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then strip out the evens.", "out": "举丘丁"} {"kind": "builder", "in": "举丘丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "举丘丁", "out": "Take a list of integers; drop the zeros, then cap each value at 10, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values above zero, then arrange by magnitude ignoring sign.", "out": "串七丸"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then filter for positive numbers, then put them in order by magnitude.", "out": "串七丸"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only positive numbers, then arrange in order of absolute value.", "out": "串七丸"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the positives, then sort by distance from zero.", "out": "串七丸"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove negatives, then order by how far from zero.", "out": "串七丸"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep the positive numbers, then order by distance from zero.", "out": "串七丸"} {"kind": "builder", "in": "串七丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "串七丸", "out": "Take a list of integers; keep multiples of three, then keep the positive numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove the first item, then drop anything not divisible by three.", "out": "为世串"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Remove head, then filter out everything except multiples of three.", "out": "为世串"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the first item, then keep only multiples of three.", "out": "为世串"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Remove head, then multiples of three only.", "out": "为世串"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove the first item, then filter for numbers divisible by three.", "out": "为世串"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then Remove head, then give me only the values divisible by three.", "out": "为世串"} {"kind": "builder", "in": "为世串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "为世串", "out": "Take a list of integers; drop the first and last elements, then drop the first element, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers, then count the elements.", "out": "且乂东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive, then how many items remain.", "out": "且乂东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop, then tell me the length.", "out": "且乂东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive, then return the length.", "out": "且乂东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive, then count them.", "out": "且乂东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero, then what's the count.", "out": "且乂东"} {"kind": "builder", "in": "且乂东", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return len(r)"} {"kind": "translator", "in": "且乂东", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; square each, then make every value non-negative, then drop non-negative values.", "out": "上丏万"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then absolute value for all items, then drop all positive numbers.", "out": "上丏万"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take absolute values, then drop non-negative values.", "out": "上丏万"} {"kind": "speaker", "in": "Take a list of integers; square them all, then turn negatives into positives, then drop all positive numbers.", "out": "上丏万"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then abs each element, then drop non-negative values.", "out": "上丏万"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the absolute value of each, then drop all positive numbers.", "out": "上丏万"} {"kind": "builder", "in": "上丏万", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "上丏万", "out": "Take a list of integers; square each, then take the absolute value of each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove all zero values, then give back the total.", "out": "丹举丙"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then exclude zeros, then sum r.", "out": "丹举丙"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove all zero values, then add them up.", "out": "丹举丙"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then exclude zeros, then calculate the sum of all elements.", "out": "丹举丙"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove all zero values, then what's the total.", "out": "丹举丙"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then exclude zeros, then what do they add up to.", "out": "丹举丙"} {"kind": "builder", "in": "丹举丙", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x != 0]\n return sum(r)"} {"kind": "translator", "in": "丹举丙", "out": "Take a list of integers; keep only the last three, then drop the zeros, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then deduplicate the list.", "out": "下义且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then remove repeats.", "out": "下义且"} {"kind": "builder", "in": "下义且", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "下义且", "out": "Take a list of integers; add one to each, then pad with zeros to at least three elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove all zero values, then true if every value is unique.", "out": "乃举乏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then exclude zeros, then check for duplicates in the values.", "out": "乃举乏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove all zero values, then do all values appear only once.", "out": "乃举乏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then exclude zeros, then check that there are no duplicates.", "out": "乃举乏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove all zero values, then are the values all unique.", "out": "乃举乏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then exclude zeros, then check if all values are unique.", "out": "乃举乏"} {"kind": "builder", "in": "乃举乏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "乃举乏", "out": "Take a list of integers; drop the leading negative values, then drop the zeros, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then order by distance from zero, then give back the product of all values.", "out": "丐丸乐"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort based on absolute value, then product of the list.", "out": "丐丸乐"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then organize by magnitude, then what's the product.", "out": "丐丸乐"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then arrange by absolute value ascending, then what do they multiply to.", "out": "丐丸乐"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort from smallest to largest absolute value, then give me their product.", "out": "丐丸乐"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort by absolute value, then multiply them all together.", "out": "丐丸乐"} {"kind": "builder", "in": "丐丸乐", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, key=abs)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丐丸乐", "out": "Take a list of integers; reverse the order, then sort by absolute value, then return their product."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort smallest to largest, then drop non-positive values.", "out": "义丑七"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Ascending sort, then drop the negative numbers.", "out": "义丑七"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Sort this ascending, then filter out the negative ones.", "out": "义丑七"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Sort lowest to highest, then remove all negative values.", "out": "义丑七"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Arrange from smallest to largest, then keep positive values only.", "out": "义丑七"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort ascending, then keep values above zero.", "out": "义丑七"} {"kind": "builder", "in": "义丑七", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "义丑七", "out": "Take a list of integers; pad with zeros to at least three elements, then sort ascending, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then true if already sorted smallest to largest.", "out": "九乃乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then does this list go in ascending order.", "out": "九乃乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then check if the list is in ascending order.", "out": "九乃乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then is the list sorted.", "out": "九乃乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then is it sorted.", "out": "九乃乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then check if values are in increasing order.", "out": "九乃乎"} {"kind": "builder", "in": "九乃乎", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r == sorted(r)"} {"kind": "translator", "in": "九乃乎", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then multiply each value by itself, then find the max, defaulting to 0.", "out": "丹上业"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then square them all, then Give me the maximum, but 0 if there are no items.", "out": "丹上业"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then raise each to the power of two, then What's the highest number in the list.", "out": "丹上业"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then I need each number multiplied by itself, then Return the greatest value or default to 0.", "out": "丹上业"} {"kind": "speaker", "in": "Take a list of integers; last three only, then square all of them, then Find the largest element, defaulting to zero.", "out": "丹上业"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiply each element by itself, then give the largest value (0 if none).", "out": "丹上业"} {"kind": "builder", "in": "丹上业", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x * x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丹上业", "out": "Take a list of integers; keep only the last three, then square each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then arrange in increasing order.", "out": "且义丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then Organize these ascending.", "out": "且义丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then Sort in ascending order.", "out": "且义丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then I need this sorted ascending.", "out": "且义丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then Put these in ascending order.", "out": "且义丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then sort smallest to largest.", "out": "且义丑"} {"kind": "builder", "in": "且义丑", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "且义丑", "out": "Take a list of integers; drop duplicates keeping first occurrence, then pad with zeros to at least three elements, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then put the elements backwards.", "out": "丁举丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then reverse that for me.", "out": "丁举丐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then flip it backwards.", "out": "丁举丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then make it backwards.", "out": "丁举丐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then reverse the list.", "out": "丁举丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then invert the sequence.", "out": "丁举丐"} {"kind": "builder", "in": "丁举丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丁举丐", "out": "Take a list of integers; keep the odd numbers, then drop the zeros, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then sort largest to smallest, then keep only numbers above 5.", "out": "丽专主"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then sort by descending values, then exclude values of 5 and below.", "out": "丽专主"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then sort from highest to lowest, then remove anything 5 or less.", "out": "丽专主"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then sort descending, then filter to keep only values above 5.", "out": "丽专主"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then sort largest first, then get rid of values that aren't greater than five.", "out": "丽专主"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort in descending order, then drop anything 5 or below.", "out": "丽专主"} {"kind": "builder", "in": "丽专主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r, reverse=True)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丽专主", "out": "Take a list of integers; add ten to each, then sort descending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then order by distance from zero, then put the elements backwards.", "out": "丁丸丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort based on absolute value, then reverse that for me.", "out": "丁丸丐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then organize by magnitude, then flip it backwards.", "out": "丁丸丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then arrange by absolute value ascending, then make it backwards.", "out": "丁丸丐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort from smallest to largest absolute value, then reverse the list.", "out": "丁丸丐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort by absolute value, then invert the sequence.", "out": "丁丸丐"} {"kind": "builder", "in": "丁丸丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丁丸丐", "out": "Take a list of integers; keep the odd numbers, then sort by absolute value, then reverse the order."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then add '#' to the start of each string, then count characters across all strings.", "out": "丢乘个"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then make each one start with a hash, then character count.", "out": "丢乘个"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then add '#' to the start of each string, then count all the characters.", "out": "丢乘个"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then make each one start with a hash, then total number of characters.", "out": "丢乘个"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then add '#' to the start of each string, then what's the total character count.", "out": "丢乘个"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then make each one start with a hash, then add up the lengths.", "out": "丢乘个"} {"kind": "builder", "in": "丢乘个", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = ['#' + s for s in r]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "丢乘个", "out": "Take a list of strings; trim whitespace from each, then prefix each with a hash, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then order by distance from zero, then arrange in increasing order.", "out": "久丸丑"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort based on absolute value, then Organize these ascending.", "out": "久丸丑"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then organize by magnitude, then Sort in ascending order.", "out": "久丸丑"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then arrange by absolute value ascending, then I need this sorted ascending.", "out": "久丸丑"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort from smallest to largest absolute value, then Put these in ascending order.", "out": "久丸丑"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort by absolute value, then sort smallest to largest.", "out": "久丸丑"} {"kind": "builder", "in": "久丸丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "久丸丑", "out": "Take a list of integers; keep everything before the first zero, then sort by absolute value, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then arrange in decreasing order.", "out": "下举专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then arrange in descending order.", "out": "下举专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then reverse sort.", "out": "下举专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then sort largest to smallest.", "out": "下举专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then sort by descending values.", "out": "下举专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then sort from highest to lowest.", "out": "下举专"} {"kind": "builder", "in": "下举专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "下举专", "out": "Take a list of integers; add one to each, then drop the zeros, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then make every value non-negative, then ensure at least three items by appending zeros.", "out": "九丏义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then absolute value for all items, then ensure minimum length of three by adding zeros to the end.", "out": "九丏义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take absolute values, then ensure at least three items by appending zeros.", "out": "九丏义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn negatives into positives, then ensure minimum length of three by adding zeros to the end.", "out": "九丏义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then abs each element, then ensure at least three items by appending zeros.", "out": "九丏义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the absolute value of each, then ensure minimum length of three by adding zeros to the end.", "out": "九丏义"} {"kind": "builder", "in": "九丏义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九丏义", "out": "Take a list of people records (name, age); extract the ages, then take the absolute value of each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then order by distance from zero, then deduplicate the list.", "out": "七丸且"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort based on absolute value, then remove repeats.", "out": "七丸且"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then organize by magnitude, then deduplicate the list.", "out": "七丸且"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then arrange by absolute value ascending, then remove repeats.", "out": "七丸且"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort from smallest to largest absolute value, then deduplicate the list.", "out": "七丸且"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort by absolute value, then remove repeats.", "out": "七丸且"} {"kind": "builder", "in": "七丸且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "七丸且", "out": "Take a list of integers; keep the positive numbers, then sort by absolute value, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then sort largest to smallest, then strip the signs.", "out": "丑专丏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort by descending values, then take abs of each.", "out": "丑专丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then sort from highest to lowest, then get the absolute value of everything.", "out": "丑专丏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then sort descending, then apply absolute value to the whole list.", "out": "丑专丏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort largest first, then make them all positive.", "out": "丑专丏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort in descending order, then make every value non-negative.", "out": "丑专丏"} {"kind": "builder", "in": "丑专丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丑专丏", "out": "Take a list of integers; sort ascending, then sort descending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values below zero, then remove the initial run of negative numbers.", "out": "丽万乃"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then get the negative numbers, then strip the front negatives.", "out": "丽万乃"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep values below zero, then remove leading negative numbers.", "out": "丽万乃"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then get the negative numbers, then drop negatives from start.", "out": "丽万乃"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep values below zero, then strip negative values from the start.", "out": "丽万乃"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then get the negative numbers, then remove negatives before the first non-negative.", "out": "丽万乃"} {"kind": "builder", "in": "丽万乃", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x < 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丽万乃", "out": "Take a list of integers; add ten to each, then keep the negative numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself, then give the earliest even value or zero.", "out": "乃上乒"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all, then fetch the first even element, default to 0.", "out": "乃上乒"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two, then give the earliest even value or zero.", "out": "乃上乒"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself, then fetch the first even element, default to 0.", "out": "乃上乒"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them, then give the earliest even value or zero.", "out": "乃上乒"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself, then fetch the first even element, default to 0.", "out": "乃上乒"} {"kind": "builder", "in": "乃上乒", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "乃上乒", "out": "Take a list of integers; drop the leading negative values, then square each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then sort smallest to largest, then make each twice as big.", "out": "七丑丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Ascending sort, then multiply each by 2.", "out": "七丑丈"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then Sort this ascending, then make each twice as big.", "out": "七丑丈"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Sort lowest to highest, then multiply each by 2.", "out": "七丑丈"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Arrange from smallest to largest, then make each twice as big.", "out": "七丑丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort ascending, then multiply each by 2.", "out": "七丑丈"} {"kind": "builder", "in": "七丑丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "七丑丈", "out": "Take a list of integers; keep the positive numbers, then sort ascending, then double each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only even values, then stop at the first non-positive value.", "out": "丐一乂"} {"kind": "speaker", "in": "Take a list of integers; reverse, then extract all even numbers, then keep the leading run of positive numbers.", "out": "丐一乂"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only even values, then take values while they are positive.", "out": "丐一乂"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then extract all even numbers, then take positive values then stop.", "out": "丐一乂"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only even values, then keep going while positive.", "out": "丐一乂"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then extract all even numbers, then stop at first non positive.", "out": "丐一乂"} {"kind": "builder", "in": "丐一乂", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丐一乂", "out": "Take a list of integers; reverse the order, then keep the even numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then reduce each by one.", "out": "且举不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then Subtract 1 from all.", "out": "且举不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then Subtract one from each.", "out": "且举不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then Drop each by one.", "out": "且举不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then Decrease all values by one.", "out": "且举不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then Remove one from each value.", "out": "且举不"} {"kind": "builder", "in": "且举不", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "且举不", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the zeros, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below, then true only if all are positive.", "out": "丏主乌"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5, then do all of these have positive values.", "out": "丏主乌"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5, then check if every value is positive.", "out": "丏主乌"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5, then confirm all values are positive.", "out": "丏主乌"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five, then all positive.", "out": "丏主乌"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five, then check if every number is above zero.", "out": "丏主乌"} {"kind": "builder", "in": "丏主乌", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丏主乌", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then default to [0] when there is nothing, then count the elements.", "out": "下么东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then when the list is empty, substitute a zero value, then how many items remain.", "out": "下么东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then replace an empty list with one zero, then tell me the length.", "out": "下么东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then zero it out if it's empty, then return the length.", "out": "下么东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then use zero if the list is empty, then count them.", "out": "下么东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then default to zero when empty, then what's the count.", "out": "下么东"} {"kind": "builder", "in": "下么东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r if r else [0]\n return len(r)"} {"kind": "translator", "in": "下么东", "out": "Take a list of integers; add one to each, then if empty, use a single zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each value by itself, then true if already sorted smallest to largest.", "out": "丘上乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then square them all, then does this list go in ascending order.", "out": "丘上乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then raise each to the power of two, then check if the list is in ascending order.", "out": "丘上乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then I need each number multiplied by itself, then is the list sorted.", "out": "丘上乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then square all of them, then is it sorted.", "out": "丘上乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiply each element by itself, then check if values are in increasing order.", "out": "丘上乎"} {"kind": "builder", "in": "丘上乎", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丘上乎", "out": "Take a list of integers; cap each value at 10, then square each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest to smallest, then truncate to three items.", "out": "一专丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by descending values, then show the first three.", "out": "一专丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from highest to lowest, then take the first three.", "out": "一专丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort descending, then keep first 3.", "out": "一专丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest first, then truncate to first three.", "out": "一专丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort in descending order, then first three.", "out": "一专丕"} {"kind": "builder", "in": "一专丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n r = r[:3]\n return r"} {"kind": "translator", "in": "一专丕", "out": "Take a list of integers; keep the even numbers, then sort descending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; square each, then skip negatives at the start, then ensure at least three items by appending zeros.", "out": "上乃义"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove all negatives at the front, then ensure minimum length of three by adding zeros to the end.", "out": "上乃义"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the initial run of negative numbers, then ensure at least three items by appending zeros.", "out": "上乃义"} {"kind": "speaker", "in": "Take a list of integers; square them all, then strip the front negatives, then ensure minimum length of three by adding zeros to the end.", "out": "上乃义"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove leading negative numbers, then ensure at least three items by appending zeros.", "out": "上乃义"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then drop negatives from start, then ensure minimum length of three by adding zeros to the end.", "out": "上乃义"} {"kind": "builder", "in": "上乃义", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "上乃义", "out": "Take a list of integers; square each, then drop the leading negative values, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then order the strings A to Z, then find the longest one, defaulting to empty.", "out": "丨乖丰"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make it alphabetical, then Longest string, or nothing if there isn't one.", "out": "丨乖丰"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then order the strings A to Z, then find the longest one, defaulting to empty.", "out": "丨乖丰"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make it alphabetical, then Longest string, or nothing if there isn't one.", "out": "丨乖丰"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then order the strings A to Z, then find the longest one, defaulting to empty.", "out": "丨乖丰"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make it alphabetical, then Longest string, or nothing if there isn't one.", "out": "丨乖丰"} {"kind": "builder", "in": "丨乖丰", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = sorted(r)\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丨乖丰", "out": "Take a list of strings; keep the first character of each (dropping empties), then sort alphabetically, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only even values, then drop non-negative values.", "out": "久一万"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then extract all even numbers, then drop all positive numbers.", "out": "久一万"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only even values, then drop non-negative values.", "out": "久一万"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then extract all even numbers, then drop all positive numbers.", "out": "久一万"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only even values, then drop non-negative values.", "out": "久一万"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then extract all even numbers, then drop all positive numbers.", "out": "久一万"} {"kind": "builder", "in": "久一万", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "久一万", "out": "Take a list of integers; keep everything before the first zero, then keep the even numbers, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then keep only strings of length 3 or more, then remove blanks.", "out": "乘乗两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then get rid of short ones, then eliminate empty string values.", "out": "乘乗两"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then remove strings with less than three characters, then filter out blank strings.", "out": "乘乗两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then remove all strings under three characters in length, then remove strings that are empty.", "out": "乘乗两"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then filter out short strings under three chars, then strip out empty strings.", "out": "乘乗两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then drop strings shorter than three characters, then keep only non-empty strings.", "out": "乘乗两"} {"kind": "builder", "in": "乘乗两", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s for s in r if len(s) >= 3]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "乘乗两", "out": "Take a list of strings; prefix each with a hash, then drop strings shorter than three characters, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then order by distance from zero, then count the elements.", "out": "久丸东"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort based on absolute value, then how many items remain.", "out": "久丸东"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then organize by magnitude, then tell me the length.", "out": "久丸东"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then arrange by absolute value ascending, then return the length.", "out": "久丸东"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort from smallest to largest absolute value, then count them.", "out": "久丸东"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort by absolute value, then what's the count.", "out": "久丸东"} {"kind": "builder", "in": "久丸东", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return len(r)"} {"kind": "translator", "in": "久丸东", "out": "Take a list of integers; keep everything before the first zero, then sort by absolute value, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then find the max, defaulting to 0.", "out": "丕丈业"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then Give me the maximum, but 0 if there are no items.", "out": "丕丈业"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then What's the highest number in the list.", "out": "丕丈业"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then Return the greatest value or default to 0.", "out": "丕丈业"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then Find the largest element, defaulting to zero.", "out": "丕丈业"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then give the largest value (0 if none).", "out": "丕丈业"} {"kind": "builder", "in": "丕丈业", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丕丈业", "out": "Take a list of integers; keep only the first three, then double each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove the first item, then true if at least one even value.", "out": "专世之"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Remove head, then any even.", "out": "专世之"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the first item, then true if at least one even value.", "out": "专世之"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Remove head, then any even.", "out": "专世之"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove the first item, then true if at least one even value.", "out": "专世之"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then Remove head, then any even.", "out": "专世之"} {"kind": "builder", "in": "专世之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[1:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "专世之", "out": "Take a list of integers; sort descending, then drop the first element, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values divisible by 3, then true if any value equals zero.", "out": "七串乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep items where x mod 3 equals zero, then check for zero.", "out": "七串乍"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then drop anything not divisible by three, then true if any value equals zero.", "out": "七串乍"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then filter out everything except multiples of three, then check for zero.", "out": "七串乍"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only multiples of three, then true if any value equals zero.", "out": "七串乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then multiples of three only, then check for zero.", "out": "七串乍"} {"kind": "builder", "in": "七串乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n return 0 in r"} {"kind": "translator", "in": "七串乍", "out": "Take a list of integers; keep the positive numbers, then keep multiples of three, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest to smallest, then drop the even numbers.", "out": "下专丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by descending values, then strip out the evens.", "out": "下专丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from highest to lowest, then drop the even numbers.", "out": "下专丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort descending, then strip out the evens.", "out": "下专丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest first, then drop the even numbers.", "out": "下专丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort in descending order, then strip out the evens.", "out": "下专丁"} {"kind": "builder", "in": "下专丁", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "下专丁", "out": "Take a list of integers; add one to each, then sort descending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increment each value, then shift each up by ten.", "out": "为下丽"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then plus one for all, then increase all numbers by 10.", "out": "为下丽"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then increment each value, then add 10 to everything.", "out": "为下丽"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then plus one for all, then give everything a boost of 10.", "out": "为下丽"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then increment each value, then increment each by ten.", "out": "为下丽"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then plus one for all, then add a constant 10 to each.", "out": "为下丽"} {"kind": "builder", "in": "为下丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "为下丽", "out": "Take a list of integers; drop the first and last elements, then add one to each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then drop the even numbers.", "out": "一举丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then strip out the evens.", "out": "一举丁"} {"kind": "builder", "in": "一举丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "一举丁", "out": "Take a list of integers; keep the even numbers, then drop the zeros, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around, then ensure at least three items by appending zeros.", "out": "下丐义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around, then ensure minimum length of three by adding zeros to the end.", "out": "下丐义"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards, then ensure at least three items by appending zeros.", "out": "下丐义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me, then ensure minimum length of three by adding zeros to the end.", "out": "下丐义"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards, then ensure at least three items by appending zeros.", "out": "下丐义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards, then ensure minimum length of three by adding zeros to the end.", "out": "下丐义"} {"kind": "builder", "in": "下丐义", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "下丐义", "out": "Take a list of integers; add one to each, then reverse the order, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then true if every value is unique.", "out": "且下乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then check for duplicates in the values.", "out": "且下乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then do all values appear only once.", "out": "且下乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then check that there are no duplicates.", "out": "且下乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then are the values all unique.", "out": "且下乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then check if all values are unique.", "out": "且下乏"} {"kind": "builder", "in": "且下乏", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "且下乏", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add one to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values divisible by 3, then take values up to (excluding) the first zero.", "out": "世串久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep items where x mod 3 equals zero, then keep the part before the first 0.", "out": "世串久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then drop anything not divisible by three, then truncate at the first zero.", "out": "世串久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter out everything except multiples of three, then delete everything starting with the first zero.", "out": "世串久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only multiples of three, then remove from the first zero onwards.", "out": "世串久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiples of three only, then up to but not including the first zero.", "out": "世串久"} {"kind": "builder", "in": "世串久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "世串久", "out": "Take a list of integers; drop the first element, then keep multiples of three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove both ends, then give back the total.", "out": "丸为丙"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then trim the edges, then sum r.", "out": "丸为丙"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then trim one element off each end, then add them up.", "out": "丸为丙"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then cut off the first and last, then calculate the sum of all elements.", "out": "丸为丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first and last elements, then what's the total.", "out": "丸为丙"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep only the middle part, then what do they add up to.", "out": "丸为丙"} {"kind": "builder", "in": "丸为丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:-1]\n return sum(r)"} {"kind": "translator", "in": "丸为丙", "out": "Take a list of integers; sort by absolute value, then drop the first and last elements, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero, then give the earliest even value or zero.", "out": "世丸乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "世丸乒"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude, then give the earliest even value or zero.", "out": "世丸乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "世丸乒"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "世丸乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value, then fetch the first even element, default to 0.", "out": "世丸乒"} {"kind": "builder", "in": "世丸乒", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "世丸乒", "out": "Take a list of integers; drop the first element, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then order by distance from zero, then count the elements.", "out": "九丸东"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort based on absolute value, then how many items remain.", "out": "九丸东"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then organize by magnitude, then tell me the length.", "out": "九丸东"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then arrange by absolute value ascending, then return the length.", "out": "九丸东"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort from smallest to largest absolute value, then count them.", "out": "九丸东"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort by absolute value, then what's the count.", "out": "九丸东"} {"kind": "builder", "in": "九丸东", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, key=abs)\n return len(r)"} {"kind": "translator", "in": "九丸东", "out": "Take a list of people records (name, age); extract the ages, then sort by absolute value, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then make every value non-negative, then put the elements backwards.", "out": "不丏丐"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then absolute value for all items, then reverse that for me.", "out": "不丏丐"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take absolute values, then flip it backwards.", "out": "不丏丐"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn negatives into positives, then make it backwards.", "out": "不丏丐"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then abs each element, then reverse the list.", "out": "不丏丐"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the absolute value of each, then invert the sequence.", "out": "不丏丐"} {"kind": "builder", "in": "不丏丐", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "不丏丐", "out": "Take a list of integers; subtract one from each, then take the absolute value of each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort smallest to largest, then shift each up by ten.", "out": "丘丑丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Ascending sort, then increase all numbers by 10.", "out": "丘丑丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Sort this ascending, then add 10 to everything.", "out": "丘丑丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Sort lowest to highest, then give everything a boost of 10.", "out": "丘丑丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Arrange from smallest to largest, then increment each by ten.", "out": "丘丑丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort ascending, then add a constant 10 to each.", "out": "丘丑丽"} {"kind": "builder", "in": "丘丑丽", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丘丑丽", "out": "Take a list of integers; cap each value at 10, then sort ascending, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then truncate to the last three items.", "out": "且丽丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then show only the last three.", "out": "且丽丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then remove all but the last three.", "out": "且丽丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then take the final 3 elements.", "out": "且丽丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then drop everything except the final three.", "out": "且丽丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then give me the last three elements.", "out": "且丽丹"} {"kind": "builder", "in": "且丽丹", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "且丽丹", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each by two, then multiply each by -1.", "out": "不丈与"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then double each item in the list, then negate.", "out": "不丈与"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then multiply each by two, then multiply each by -1.", "out": "不丈与"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then double each item in the list, then negate.", "out": "不丈与"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then multiply each by two, then multiply each by -1.", "out": "不丈与"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then double each item in the list, then negate.", "out": "不丈与"} {"kind": "builder", "in": "不丈与", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "不丈与", "out": "Take a list of integers; subtract one from each, then double each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove repeated values, then truncate to three items.", "out": "为且丕"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then unique values preserving order, then show the first three.", "out": "为且丕"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove repeated values, then take the first three.", "out": "为且丕"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then unique values preserving order, then keep first 3.", "out": "为且丕"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove repeated values, then truncate to first three.", "out": "为且丕"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then unique values preserving order, then first three.", "out": "为且丕"} {"kind": "builder", "in": "为且丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(dict.fromkeys(r))\n r = r[:3]\n return r"} {"kind": "translator", "in": "为且丕", "out": "Take a list of integers; drop the first and last elements, then drop duplicates keeping first occurrence, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove the first item, then multiply each by -1.", "out": "上世与"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Remove head, then negate.", "out": "上世与"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the first item, then multiply each by -1.", "out": "上世与"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Remove head, then negate.", "out": "上世与"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove the first item, then multiply each by -1.", "out": "上世与"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then Remove head, then negate.", "out": "上世与"} {"kind": "builder", "in": "上世与", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[1:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "上世与", "out": "Take a list of integers; square each, then drop the first element, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each value by itself, then give the number of evens.", "out": "专上乓"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then square them all, then find how many values are divisible by two.", "out": "专上乓"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then raise each to the power of two, then how many are even.", "out": "专上乓"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then I need each number multiplied by itself, then get the total number of even values in the list.", "out": "专上乓"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then square all of them, then give me the count of even values.", "out": "专上乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiply each element by itself, then I need to know how many of these are even.", "out": "专上乓"} {"kind": "builder", "in": "专上乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "专上乓", "out": "Take a list of integers; sort descending, then square each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each value by itself, then keep only numbers above 5.", "out": "丕上主"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then square them all, then exclude values of 5 and below.", "out": "丕上主"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then raise each to the power of two, then remove anything 5 or less.", "out": "丕上主"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then I need each number multiplied by itself, then filter to keep only values above 5.", "out": "丕上主"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then square all of them, then get rid of values that aren't greater than five.", "out": "丕上主"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then multiply each element by itself, then drop anything 5 or below.", "out": "丕上主"} {"kind": "builder", "in": "丕上主", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * x for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丕上主", "out": "Take a list of integers; keep only the first three, then square each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the final 3 elements, then arrange in increasing order.", "out": "乂丹丑"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then drop everything except the final three, then Organize these ascending.", "out": "乂丹丑"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give me the last three elements, then Sort in ascending order.", "out": "乂丹丑"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep only the last three, then I need this sorted ascending.", "out": "乂丹丑"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep the final three items, then Put these in ascending order.", "out": "乂丹丑"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the last three, then sort smallest to largest.", "out": "乂丹丑"} {"kind": "builder", "in": "乂丹丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乂丹丑", "out": "Take a list of integers; take values while they are positive, then keep only the last three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything 5 or below, then arrange by magnitude ignoring sign.", "out": "与主丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only numbers greater than 5, then put them in order by magnitude.", "out": "与主丸"} {"kind": "speaker", "in": "Take a list of integers; negate each, then filter for numbers above 5, then arrange in order of absolute value.", "out": "与主丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give me values where x is greater than 5, then sort by distance from zero.", "out": "与主丸"} {"kind": "speaker", "in": "Take a list of integers; negate each, then show me only the values that are bigger than five, then order by how far from zero.", "out": "与主丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep values greater than five, then order by distance from zero.", "out": "与主丸"} {"kind": "builder", "in": "与主丸", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "与主丸", "out": "Take a list of integers; negate each, then keep values greater than five, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the leading run of positive numbers, then put the elements backwards.", "out": "一乂丐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take values while they are positive, then reverse that for me.", "out": "一乂丐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take positive values then stop, then flip it backwards.", "out": "一乂丐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep going while positive, then make it backwards.", "out": "一乂丐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then stop at first non positive, then reverse the list.", "out": "一乂丐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take while greater than zero, then invert the sequence.", "out": "一乂丐"} {"kind": "builder", "in": "一乂丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "一乂丐", "out": "Take a list of integers; keep the even numbers, then take values while they are positive, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then cut the list at the first zero, then make each twice as big.", "out": "义久丈"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off after the first zero appears, then multiply each by 2.", "out": "义久丈"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take values up to (excluding) the first zero, then make each twice as big.", "out": "义久丈"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the part before the first 0, then multiply each by 2.", "out": "义久丈"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate at the first zero, then make each twice as big.", "out": "义久丈"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then delete everything starting with the first zero, then multiply each by 2.", "out": "义久丈"} {"kind": "builder", "in": "义久丈", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "义久丈", "out": "Take a list of integers; pad with zeros to at least three elements, then keep everything before the first zero, then double each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then take values up to (excluding) the first zero.", "out": "不主久"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then keep the part before the first 0.", "out": "不主久"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then truncate at the first zero.", "out": "不主久"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then delete everything starting with the first zero.", "out": "不主久"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then remove from the first zero onwards.", "out": "不主久"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then up to but not including the first zero.", "out": "不主久"} {"kind": "builder", "in": "不主久", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "不主久", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then take the final 3 elements, then arrange by magnitude ignoring sign.", "out": "专丹丸"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then drop everything except the final three, then put them in order by magnitude.", "out": "专丹丸"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then give me the last three elements, then arrange in order of absolute value.", "out": "专丹丸"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep only the last three, then sort by distance from zero.", "out": "专丹丸"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep the final three items, then order by how far from zero.", "out": "专丹丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the last three, then order by distance from zero.", "out": "专丹丸"} {"kind": "builder", "in": "专丹丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[-3:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "专丹丸", "out": "Take a list of integers; sort descending, then keep only the last three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then skip negatives at the start, then skip the first one.", "out": "义乃世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove all negatives at the front, then Discard the first element.", "out": "义乃世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the initial run of negative numbers, then skip the first one.", "out": "义乃世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then strip the front negatives, then Discard the first element.", "out": "义乃世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove leading negative numbers, then skip the first one.", "out": "义乃世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop negatives from start, then Discard the first element.", "out": "义乃世"} {"kind": "builder", "in": "义乃世", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n return r"} {"kind": "translator", "in": "义乃世", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the leading negative values, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then decrement each value, then replace an empty list with one zero.", "out": "世不么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Lower each number by one, then zero it out if it's empty.", "out": "世不么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then reduce each by one, then use zero if the list is empty.", "out": "世不么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Subtract 1 from all, then default to zero when empty.", "out": "世不么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Subtract one from each, then if there's nothing, put in a zero.", "out": "世不么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Drop each by one, then if no items, add a zero.", "out": "世不么"} {"kind": "builder", "in": "世不么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x - 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "世不么", "out": "Take a list of integers; drop the first element, then subtract one from each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove both ends, then true only if all are positive.", "out": "下为乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then trim the edges, then do all of these have positive values.", "out": "下为乌"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then trim one element off each end, then check if every value is positive.", "out": "下为乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off the first and last, then confirm all values are positive.", "out": "下为乌"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first and last elements, then all positive.", "out": "下为乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the middle part, then check if every number is above zero.", "out": "下为乌"} {"kind": "builder", "in": "下为乌", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:-1]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "下为乌", "out": "Take a list of integers; add one to each, then drop the first and last elements, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values divisible by 3, then arrange in decreasing order.", "out": "乂串专"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep items where x mod 3 equals zero, then arrange in descending order.", "out": "乂串专"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then drop anything not divisible by three, then reverse sort.", "out": "乂串专"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then filter out everything except multiples of three, then sort largest to smallest.", "out": "乂串专"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only multiples of three, then sort by descending values.", "out": "乂串专"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiples of three only, then sort from highest to lowest.", "out": "乂串专"} {"kind": "builder", "in": "乂串专", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乂串专", "out": "Take a list of integers; take values while they are positive, then keep multiples of three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then find the min, defaulting to 0.", "out": "丁一丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then minimum value, zero otherwise.", "out": "丁一丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then get the minimum value or zero if empty.", "out": "丁一丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then give me the min or 0.", "out": "丁一丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then return the smallest number, defaulting to 0.", "out": "丁一丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then return smallest or zero if empty.", "out": "丁一丛"} {"kind": "builder", "in": "丁一丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "丁一丛", "out": "Take a list of integers; keep the odd numbers, then keep the even numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then sort largest to smallest, then trim one element off each end.", "out": "乃专为"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then sort by descending values, then cut off the first and last.", "out": "乃专为"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then sort from highest to lowest, then remove the first and last elements.", "out": "乃专为"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then sort descending, then keep only the middle part.", "out": "乃专为"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then sort largest first, then drop first and last.", "out": "乃专为"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort in descending order, then eliminate the outermost elements.", "out": "乃专为"} {"kind": "builder", "in": "乃专为", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, reverse=True)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乃专为", "out": "Take a list of integers; drop the leading negative values, then sort descending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then clamp each to at most ten, then arrange by magnitude ignoring sign.", "out": "乂丘丸"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then don't let anything exceed 10, then put them in order by magnitude.", "out": "乂丘丸"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then clamp each to at most ten, then arrange in order of absolute value.", "out": "乂丘丸"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then don't let anything exceed 10, then sort by distance from zero.", "out": "乂丘丸"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then clamp each to at most ten, then order by how far from zero.", "out": "乂丘丸"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then don't let anything exceed 10, then order by distance from zero.", "out": "乂丘丸"} {"kind": "builder", "in": "乂丘丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "乂丘丸", "out": "Take a list of integers; take values while they are positive, then cap each value at 10, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then drop non-positive values.", "out": "与万七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then drop the negative numbers.", "out": "与万七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then filter out the negative ones.", "out": "与万七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then remove all negative values.", "out": "与万七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then keep positive values only.", "out": "与万七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then keep values above zero.", "out": "与万七"} {"kind": "builder", "in": "与万七", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "与万七", "out": "Take a list of integers; negate each, then keep the negative numbers, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then give back the total.", "out": "世丘丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then sum r.", "out": "世丘丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then add them up.", "out": "世丘丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then calculate the sum of all elements.", "out": "世丘丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then what's the total.", "out": "世丘丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then what do they add up to.", "out": "世丘丙"} {"kind": "builder", "in": "世丘丙", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [min(x, 10) for x in r]\n return sum(r)"} {"kind": "translator", "in": "世丘丙", "out": "Take a list of integers; drop the first element, then cap each value at 10, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then cut the list at the first zero, then drop non-negative values.", "out": "乂久万"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then cut off after the first zero appears, then drop all positive numbers.", "out": "乂久万"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then take values up to (excluding) the first zero, then drop non-negative values.", "out": "乂久万"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the part before the first 0, then drop all positive numbers.", "out": "乂久万"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then truncate at the first zero, then drop non-negative values.", "out": "乂久万"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then delete everything starting with the first zero, then drop all positive numbers.", "out": "乂久万"} {"kind": "builder", "in": "乂久万", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "乂久万", "out": "Take a list of integers; take values while they are positive, then keep everything before the first zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove repeated values, then stop at the first non-positive value.", "out": "专且乂"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then unique values preserving order, then keep the leading run of positive numbers.", "out": "专且乂"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove repeated values, then take values while they are positive.", "out": "专且乂"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then unique values preserving order, then take positive values then stop.", "out": "专且乂"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove repeated values, then keep going while positive.", "out": "专且乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then unique values preserving order, then stop at first non positive.", "out": "专且乂"} {"kind": "builder", "in": "专且乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "专且乂", "out": "Take a list of integers; sort descending, then drop duplicates keeping first occurrence, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values above zero, then raise each to the power of two.", "out": "丽七上"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then filter for positive numbers, then I need each number multiplied by itself.", "out": "丽七上"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only positive numbers, then square all of them.", "out": "丽七上"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the positives, then multiply each element by itself.", "out": "丽七上"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove negatives, then make each one squared.", "out": "丽七上"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep the positive numbers, then square each value in the list.", "out": "丽七上"} {"kind": "builder", "in": "丽七上", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丽七上", "out": "Take a list of integers; add ten to each, then keep the positive numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort smallest to largest, then take values up to (excluding) the first zero.", "out": "丕丑久"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Ascending sort, then keep the part before the first 0.", "out": "丕丑久"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then Sort this ascending, then truncate at the first zero.", "out": "丕丑久"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Sort lowest to highest, then delete everything starting with the first zero.", "out": "丕丑久"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Arrange from smallest to largest, then remove from the first zero onwards.", "out": "丕丑久"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort ascending, then up to but not including the first zero.", "out": "丕丑久"} {"kind": "builder", "in": "丕丑久", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丕丑久", "out": "Take a list of integers; keep only the first three, then sort ascending, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then trim one element off each end.", "out": "且义为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then cut off the first and last.", "out": "且义为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then remove the first and last elements.", "out": "且义为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then keep only the middle part.", "out": "且义为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then drop first and last.", "out": "且义为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then eliminate the outermost elements.", "out": "且义为"} {"kind": "builder", "in": "且义为", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "且义为", "out": "Take a list of integers; drop duplicates keeping first occurrence, then pad with zeros to at least three elements, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then reduce each by one.", "out": "么丽不"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then Subtract 1 from all.", "out": "么丽不"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then Subtract one from each.", "out": "么丽不"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then Drop each by one.", "out": "么丽不"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then Decrease all values by one.", "out": "么丽不"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then Remove one from each value.", "out": "么丽不"} {"kind": "builder", "in": "么丽不", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "么丽不", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then remove repeated strings, then remove short strings (under 3 chars).", "out": "丢丧乗"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then keep unique strings first appearance, then only keep strings with three or more characters.", "out": "丢丧乗"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then eliminate repeated strings preserve first occurrence, then keep only strings that are at least three characters long.", "out": "丢丧乗"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then drop duplicate strings keeping the first, then filter strings shorter than 3 chars.", "out": "丢丧乗"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then dedupe, then drop anything shorter than three characters.", "out": "丢丧乗"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then remove duplicate strings keep first, then keep only strings of length 3 or more.", "out": "丢丧乗"} {"kind": "builder", "in": "丢丧乗", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = list(dict.fromkeys(r))\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "丢丧乗", "out": "Take a list of strings; trim whitespace from each, then drop duplicate strings keeping the first, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort smallest to largest, then drop the even numbers.", "out": "义丑丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Ascending sort, then strip out the evens.", "out": "义丑丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Sort this ascending, then drop the even numbers.", "out": "义丑丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Sort lowest to highest, then strip out the evens.", "out": "义丑丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Arrange from smallest to largest, then drop the even numbers.", "out": "义丑丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort ascending, then strip out the evens.", "out": "义丑丁"} {"kind": "builder", "in": "义丑丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义丑丁", "out": "Take a list of integers; pad with zeros to at least three elements, then sort ascending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then cut the list at the first zero, then count the elements.", "out": "乃久东"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then cut off after the first zero appears, then how many items remain.", "out": "乃久东"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take values up to (excluding) the first zero, then tell me the length.", "out": "乃久东"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the part before the first 0, then return the length.", "out": "乃久东"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then truncate at the first zero, then count them.", "out": "乃久东"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then delete everything starting with the first zero, then what's the count.", "out": "乃久东"} {"kind": "builder", "in": "乃久东", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:r.index(0)] if 0 in r else r\n return len(r)"} {"kind": "translator", "in": "乃久东", "out": "Take a list of integers; drop the leading negative values, then keep everything before the first zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the sign of each, then drop anything not divisible by three.", "out": "乂与串"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then turn positives to negatives and vice versa, then filter out everything except multiples of three.", "out": "乂与串"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then flip the sign of each, then keep only multiples of three.", "out": "乂与串"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then turn positives to negatives and vice versa, then multiples of three only.", "out": "乂与串"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip the sign of each, then filter for numbers divisible by three.", "out": "乂与串"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then turn positives to negatives and vice versa, then give me only the values divisible by three.", "out": "乂与串"} {"kind": "builder", "in": "乂与串", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "乂与串", "out": "Take a list of integers; take values while they are positive, then negate each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then skip negatives at the start, then multiply each by -1.", "out": "么乃与"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove all negatives at the front, then negate.", "out": "么乃与"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the initial run of negative numbers, then multiply each by -1.", "out": "么乃与"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then strip the front negatives, then negate.", "out": "么乃与"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove leading negative numbers, then multiply each by -1.", "out": "么乃与"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then drop negatives from start, then negate.", "out": "么乃与"} {"kind": "builder", "in": "么乃与", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "么乃与", "out": "Take a list of integers; if empty, use a single zero, then drop the leading negative values, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then multiply each by -1.", "out": "举一与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then negate.", "out": "举一与"} {"kind": "builder", "in": "举一与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "举一与", "out": "Take a list of integers; drop the zeros, then keep the even numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then default to [0] when there is nothing, then take values up to (excluding) the first zero.", "out": "世么久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then when the list is empty, substitute a zero value, then keep the part before the first 0.", "out": "世么久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then replace an empty list with one zero, then truncate at the first zero.", "out": "世么久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then zero it out if it's empty, then delete everything starting with the first zero.", "out": "世么久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then use zero if the list is empty, then remove from the first zero onwards.", "out": "世么久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then default to zero when empty, then up to but not including the first zero.", "out": "世么久"} {"kind": "builder", "in": "世么久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "世么久", "out": "Take a list of integers; drop the first element, then if empty, use a single zero, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove all zero values, then arrange in decreasing order.", "out": "主举专"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then exclude zeros, then arrange in descending order.", "out": "主举专"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove all zero values, then reverse sort.", "out": "主举专"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then exclude zeros, then sort largest to smallest.", "out": "主举专"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove all zero values, then sort by descending values.", "out": "主举专"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then exclude zeros, then sort from highest to lowest.", "out": "主举专"} {"kind": "builder", "in": "主举专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "主举专", "out": "Take a list of integers; keep values greater than five, then drop the zeros, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increase every value by 10, then give back the total.", "out": "一丽丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then add 10 to each item, then sum r.", "out": "一丽丙"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then shift each up by ten, then add them up.", "out": "一丽丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then increase all numbers by 10, then calculate the sum of all elements.", "out": "一丽丙"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then add 10 to everything, then what's the total.", "out": "一丽丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give everything a boost of 10, then what do they add up to.", "out": "一丽丙"} {"kind": "builder", "in": "一丽丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n return sum(r)"} {"kind": "translator", "in": "一丽丙", "out": "Take a list of integers; keep the even numbers, then add ten to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each value by itself, then keep only non-zero numbers.", "out": "丐上举"} {"kind": "speaker", "in": "Take a list of integers; reverse, then square them all, then strip the zeros.", "out": "丐上举"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then raise each to the power of two, then keep only non-zero numbers.", "out": "丐上举"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then I need each number multiplied by itself, then strip the zeros.", "out": "丐上举"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then square all of them, then keep only non-zero numbers.", "out": "丐上举"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiply each element by itself, then strip the zeros.", "out": "丐上举"} {"kind": "builder", "in": "丐上举", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * x for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丐上举", "out": "Take a list of integers; reverse the order, then square each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep values below zero, then replace an empty list with one zero.", "out": "丕万么"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then get the negative numbers, then zero it out if it's empty.", "out": "丕万么"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep values below zero, then use zero if the list is empty.", "out": "丕万么"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then get the negative numbers, then default to zero when empty.", "out": "丕万么"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep values below zero, then if there's nothing, put in a zero.", "out": "丕万么"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then get the negative numbers, then if no items, add a zero.", "out": "丕万么"} {"kind": "builder", "in": "丕万么", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x < 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丕万么", "out": "Take a list of integers; keep only the first three, then keep the negative numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then clamp each to at most ten, then keep only numbers above 5.", "out": "丏丘主"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then don't let anything exceed 10, then exclude values of 5 and below.", "out": "丏丘主"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then clamp each to at most ten, then remove anything 5 or less.", "out": "丏丘主"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then don't let anything exceed 10, then filter to keep only values above 5.", "out": "丏丘主"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then clamp each to at most ten, then get rid of values that aren't greater than five.", "out": "丏丘主"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then don't let anything exceed 10, then drop anything 5 or below.", "out": "丏丘主"} {"kind": "builder", "in": "丏丘主", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丏丘主", "out": "Take a list of integers; take the absolute value of each, then cap each value at 10, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then decrement each value, then drop non-negative values.", "out": "为不万"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Lower each number by one, then drop all positive numbers.", "out": "为不万"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then reduce each by one, then drop non-negative values.", "out": "为不万"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Subtract 1 from all, then drop all positive numbers.", "out": "为不万"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then Subtract one from each, then drop non-negative values.", "out": "为不万"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then Drop each by one, then drop all positive numbers.", "out": "为不万"} {"kind": "builder", "in": "为不万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "为不万", "out": "Take a list of integers; drop the first and last elements, then subtract one from each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then remove the initial run of negative numbers.", "out": "为万乃"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then strip the front negatives.", "out": "为万乃"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then remove leading negative numbers.", "out": "为万乃"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then drop negatives from start.", "out": "为万乃"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then strip negative values from the start.", "out": "为万乃"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then remove negatives before the first non-negative.", "out": "为万乃"} {"kind": "builder", "in": "为万乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "为万乃", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then extend to length 3 using zeros, then bump each up by one.", "out": "久义下"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then pad to 3, then increment each item.", "out": "久义下"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then extend to length 3 using zeros, then bump each up by one.", "out": "久义下"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then pad to 3, then increment each item.", "out": "久义下"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then extend to length 3 using zeros, then bump each up by one.", "out": "久义下"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then pad to 3, then increment each item.", "out": "久义下"} {"kind": "builder", "in": "久义下", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "久义下", "out": "Take a list of integers; keep everything before the first zero, then pad with zeros to at least three elements, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; square each, then drop anything 5 or below, then remove the initial run of negative numbers.", "out": "上主乃"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep only numbers greater than 5, then strip the front negatives.", "out": "上主乃"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then filter for numbers above 5, then remove leading negative numbers.", "out": "上主乃"} {"kind": "speaker", "in": "Take a list of integers; square them all, then give me values where x is greater than 5, then drop negatives from start.", "out": "上主乃"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then show me only the values that are bigger than five, then strip negative values from the start.", "out": "上主乃"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep values greater than five, then remove negatives before the first non-negative.", "out": "上主乃"} {"kind": "builder", "in": "上主乃", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 5]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "上主乃", "out": "Take a list of integers; square each, then keep values greater than five, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then arrange by magnitude ignoring sign.", "out": "举义丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then put them in order by magnitude.", "out": "举义丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then arrange in order of absolute value.", "out": "举义丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then sort by distance from zero.", "out": "举义丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then order by how far from zero.", "out": "举义丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then order by distance from zero.", "out": "举义丸"} {"kind": "builder", "in": "举义丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "举义丸", "out": "Take a list of integers; drop the zeros, then pad with zeros to at least three elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then take the first 3 elements, then trim one element off each end.", "out": "丹丕为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove everything after the third, then cut off the first and last.", "out": "丹丕为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then truncate to three items, then remove the first and last elements.", "out": "丹丕为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then show the first three, then keep only the middle part.", "out": "丹丕为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then take the first three, then drop first and last.", "out": "丹丕为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep first 3, then eliminate the outermost elements.", "out": "丹丕为"} {"kind": "builder", "in": "丹丕为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:3]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹丕为", "out": "Take a list of integers; keep only the last three, then keep only the first three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort largest to smallest, then reduce each by one.", "out": "丁专不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort by descending values, then Subtract 1 from all.", "out": "丁专不"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort from highest to lowest, then Subtract one from each.", "out": "丁专不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort descending, then Drop each by one.", "out": "丁专不"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort largest first, then Decrease all values by one.", "out": "丁专不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort in descending order, then Remove one from each value.", "out": "丁专不"} {"kind": "builder", "in": "丁专不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丁专不", "out": "Take a list of integers; keep the odd numbers, then sort descending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then raise each to the power of two.", "out": "主世上"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then I need each number multiplied by itself.", "out": "主世上"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then square all of them.", "out": "主世上"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then multiply each element by itself.", "out": "主世上"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then make each one squared.", "out": "主世上"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then square each value in the list.", "out": "主世上"} {"kind": "builder", "in": "主世上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "主世上", "out": "Take a list of integers; keep values greater than five, then drop the first element, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only even values, then remove the initial run of negative numbers.", "out": "久一乃"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then extract all even numbers, then strip the front negatives.", "out": "久一乃"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only even values, then remove leading negative numbers.", "out": "久一乃"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then extract all even numbers, then drop negatives from start.", "out": "久一乃"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only even values, then strip negative values from the start.", "out": "久一乃"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then extract all even numbers, then remove negatives before the first non-negative.", "out": "久一乃"} {"kind": "builder", "in": "久一乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "久一乃", "out": "Take a list of integers; keep everything before the first zero, then keep the even numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then replace an empty list with one zero.", "out": "丈一么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then zero it out if it's empty.", "out": "丈一么"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then use zero if the list is empty.", "out": "丈一么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then default to zero when empty.", "out": "丈一么"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then if there's nothing, put in a zero.", "out": "丈一么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then if no items, add a zero.", "out": "丈一么"} {"kind": "builder", "in": "丈一么", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丈一么", "out": "Take a list of integers; double each, then keep the even numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then drop the even numbers.", "out": "丈与丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then strip out the evens.", "out": "丈与丁"} {"kind": "builder", "in": "丈与丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丈与丁", "out": "Take a list of integers; double each, then negate each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values divisible by 3, then give the earliest even value or zero.", "out": "丽串乒"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep items where x mod 3 equals zero, then fetch the first even element, default to 0.", "out": "丽串乒"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then drop anything not divisible by three, then give the earliest even value or zero.", "out": "丽串乒"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then filter out everything except multiples of three, then fetch the first even element, default to 0.", "out": "丽串乒"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only multiples of three, then give the earliest even value or zero.", "out": "丽串乒"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiples of three only, then fetch the first even element, default to 0.", "out": "丽串乒"} {"kind": "builder", "in": "丽串乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 3 == 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丽串乒", "out": "Take a list of integers; add ten to each, then keep multiples of three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then sort largest to smallest, then remove the initial run of negative numbers.", "out": "乂专乃"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort by descending values, then strip the front negatives.", "out": "乂专乃"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then sort from highest to lowest, then remove leading negative numbers.", "out": "乂专乃"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then sort descending, then drop negatives from start.", "out": "乂专乃"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort largest first, then strip negative values from the start.", "out": "乂专乃"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort in descending order, then remove negatives before the first non-negative.", "out": "乂专乃"} {"kind": "builder", "in": "乂专乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "乂专乃", "out": "Take a list of integers; take values while they are positive, then sort descending, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values above zero, then strip the signs.", "out": "丽七丏"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then filter for positive numbers, then take abs of each.", "out": "丽七丏"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only positive numbers, then get the absolute value of everything.", "out": "丽七丏"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the positives, then apply absolute value to the whole list.", "out": "丽七丏"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove negatives, then make them all positive.", "out": "丽七丏"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep the positive numbers, then make every value non-negative.", "out": "丽七丏"} {"kind": "builder", "in": "丽七丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丽七丏", "out": "Take a list of integers; add ten to each, then keep the positive numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then skip the first one.", "out": "丁万世"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then Discard the first element.", "out": "丁万世"} {"kind": "builder", "in": "丁万世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丁万世", "out": "Take a list of integers; keep the odd numbers, then keep the negative numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; double each, then sort smallest to largest, then give back the total.", "out": "丈丑丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Ascending sort, then sum r.", "out": "丈丑丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then Sort this ascending, then add them up.", "out": "丈丑丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Sort lowest to highest, then calculate the sum of all elements.", "out": "丈丑丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then Arrange from smallest to largest, then what's the total.", "out": "丈丑丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort ascending, then what do they add up to.", "out": "丈丑丙"} {"kind": "builder", "in": "丈丑丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r)\n return sum(r)"} {"kind": "translator", "in": "丈丑丙", "out": "Take a list of integers; double each, then sort ascending, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep only even values, then remove the initial run of negative numbers.", "out": "乂一乃"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then extract all even numbers, then strip the front negatives.", "out": "乂一乃"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only even values, then remove leading negative numbers.", "out": "乂一乃"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then extract all even numbers, then drop negatives from start.", "out": "乂一乃"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only even values, then strip negative values from the start.", "out": "乂一乃"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then extract all even numbers, then remove negatives before the first non-negative.", "out": "乂一乃"} {"kind": "builder", "in": "乂一乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "乂一乃", "out": "Take a list of integers; take values while they are positive, then keep the even numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values divisible by 3, then count the elements.", "out": "丹串东"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep items where x mod 3 equals zero, then how many items remain.", "out": "丹串东"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then drop anything not divisible by three, then tell me the length.", "out": "丹串东"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then filter out everything except multiples of three, then return the length.", "out": "丹串东"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only multiples of three, then count them.", "out": "丹串东"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiples of three only, then what's the count.", "out": "丹串东"} {"kind": "builder", "in": "丹串东", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return len(r)"} {"kind": "translator", "in": "丹串东", "out": "Take a list of integers; keep only the last three, then keep multiples of three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then skip negatives at the start, then true if already sorted smallest to largest.", "out": "举乃乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove all negatives at the front, then does this list go in ascending order.", "out": "举乃乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the initial run of negative numbers, then check if the list is in ascending order.", "out": "举乃乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then strip the front negatives, then is the list sorted.", "out": "举乃乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove leading negative numbers, then is it sorted.", "out": "举乃乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop negatives from start, then check if values are in increasing order.", "out": "举乃乎"} {"kind": "builder", "in": "举乃乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r == sorted(r)"} {"kind": "translator", "in": "举乃乎", "out": "Take a list of integers; drop the zeros, then drop the leading negative values, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increment each value, then give back the total.", "out": "九下丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then plus one for all, then sum r.", "out": "九下丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then increment each value, then add them up.", "out": "九下丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then plus one for all, then calculate the sum of all elements.", "out": "九下丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then increment each value, then what's the total.", "out": "九下丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then plus one for all, then what do they add up to.", "out": "九下丙"} {"kind": "builder", "in": "九下丙", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 1 for x in r]\n return sum(r)"} {"kind": "translator", "in": "九下丙", "out": "Take a list of people records (name, age); extract the ages, then add one to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort largest to smallest, then true if already sorted smallest to largest.", "out": "丕专乎"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort by descending values, then does this list go in ascending order.", "out": "丕专乎"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then sort from highest to lowest, then check if the list is in ascending order.", "out": "丕专乎"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sort descending, then is the list sorted.", "out": "丕专乎"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort largest first, then is it sorted.", "out": "丕专乎"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort in descending order, then check if values are in increasing order.", "out": "丕专乎"} {"kind": "builder", "in": "丕专乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, reverse=True)\n return r == sorted(r)"} {"kind": "translator", "in": "丕专乎", "out": "Take a list of integers; keep only the first three, then sort descending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero, then drop the even numbers.", "out": "世丸丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value, then strip out the evens.", "out": "世丸丁"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude, then drop the even numbers.", "out": "世丸丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending, then strip out the evens.", "out": "世丸丁"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value, then drop the even numbers.", "out": "世丸丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value, then strip out the evens.", "out": "世丸丁"} {"kind": "builder", "in": "世丸丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "世丸丁", "out": "Take a list of integers; drop the first element, then sort by absolute value, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then decrement each value, then find the min, defaulting to 0.", "out": "丕不丛"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Lower each number by one, then minimum value, zero otherwise.", "out": "丕不丛"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then reduce each by one, then get the minimum value or zero if empty.", "out": "丕不丛"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Subtract 1 from all, then give me the min or 0.", "out": "丕不丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Subtract one from each, then return the smallest number, defaulting to 0.", "out": "丕不丛"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Drop each by one, then return smallest or zero if empty.", "out": "丕不丛"} {"kind": "builder", "in": "丕不丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x - 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丕不丛", "out": "Take a list of integers; keep only the first three, then subtract one from each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove the first item, then arrange by magnitude ignoring sign.", "out": "串世丸"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Remove head, then put them in order by magnitude.", "out": "串世丸"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove the first item, then arrange in order of absolute value.", "out": "串世丸"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Remove head, then sort by distance from zero.", "out": "串世丸"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first item, then order by how far from zero.", "out": "串世丸"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Remove head, then order by distance from zero.", "out": "串世丸"} {"kind": "builder", "in": "串世丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "串世丸", "out": "Take a list of integers; keep multiples of three, then drop the first element, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values divisible by 3, then take values up to (excluding) the first zero.", "out": "丐串久"} {"kind": "speaker", "in": "Take a list of integers; reverse, then keep items where x mod 3 equals zero, then keep the part before the first 0.", "out": "丐串久"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then drop anything not divisible by three, then truncate at the first zero.", "out": "丐串久"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then filter out everything except multiples of three, then delete everything starting with the first zero.", "out": "丐串久"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only multiples of three, then remove from the first zero onwards.", "out": "丐串久"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiples of three only, then up to but not including the first zero.", "out": "丐串久"} {"kind": "builder", "in": "丐串久", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丐串久", "out": "Take a list of integers; reverse the order, then keep multiples of three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort largest to smallest, then stop at the first non-positive value.", "out": "上专乂"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort by descending values, then keep the leading run of positive numbers.", "out": "上专乂"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then sort from highest to lowest, then take values while they are positive.", "out": "上专乂"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sort descending, then take positive values then stop.", "out": "上专乂"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort largest first, then keep going while positive.", "out": "上专乂"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort in descending order, then stop at first non positive.", "out": "上专乂"} {"kind": "builder", "in": "上专乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "上专乂", "out": "Take a list of integers; square each, then sort descending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove both ends, then count the elements.", "out": "久为东"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then trim the edges, then how many items remain.", "out": "久为东"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then trim one element off each end, then tell me the length.", "out": "久为东"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then cut off the first and last, then return the length.", "out": "久为东"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first and last elements, then count them.", "out": "久为东"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep only the middle part, then what's the count.", "out": "久为东"} {"kind": "builder", "in": "久为东", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return len(r)"} {"kind": "translator", "in": "久为东", "out": "Take a list of integers; keep everything before the first zero, then drop the first and last elements, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increase every value by 10, then trim one element off each end.", "out": "义丽为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then add 10 to each item, then cut off the first and last.", "out": "义丽为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then shift each up by ten, then remove the first and last elements.", "out": "义丽为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then increase all numbers by 10, then keep only the middle part.", "out": "义丽为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then add 10 to everything, then drop first and last.", "out": "义丽为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give everything a boost of 10, then eliminate the outermost elements.", "out": "义丽为"} {"kind": "builder", "in": "义丽为", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "义丽为", "out": "Take a list of integers; pad with zeros to at least three elements, then add ten to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increase every value by 10, then take values up to (excluding) the first zero.", "out": "丁丽久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then add 10 to each item, then keep the part before the first 0.", "out": "丁丽久"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then shift each up by ten, then truncate at the first zero.", "out": "丁丽久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then increase all numbers by 10, then delete everything starting with the first zero.", "out": "丁丽久"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then add 10 to everything, then remove from the first zero onwards.", "out": "丁丽久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give everything a boost of 10, then up to but not including the first zero.", "out": "丁丽久"} {"kind": "builder", "in": "丁丽久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丁丽久", "out": "Take a list of integers; keep the odd numbers, then add ten to each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increment each value, then true if any value equals zero.", "out": "久下乍"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then plus one for all, then check for zero.", "out": "久下乍"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then increment each value, then true if any value equals zero.", "out": "久下乍"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then plus one for all, then check for zero.", "out": "久下乍"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then increment each value, then true if any value equals zero.", "out": "久下乍"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then plus one for all, then check for zero.", "out": "久下乍"} {"kind": "builder", "in": "久下乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "久下乍", "out": "Take a list of integers; keep everything before the first zero, then add one to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then clamp each to at most ten, then find the max, defaulting to 0.", "out": "丸丘业"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then don't let anything exceed 10, then Give me the maximum, but 0 if there are no items.", "out": "丸丘业"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then clamp each to at most ten, then What's the highest number in the list.", "out": "丸丘业"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then don't let anything exceed 10, then Return the greatest value or default to 0.", "out": "丸丘业"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then clamp each to at most ten, then Find the largest element, defaulting to zero.", "out": "丸丘业"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then don't let anything exceed 10, then give the largest value (0 if none).", "out": "丸丘业"} {"kind": "builder", "in": "丸丘业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丸丘业", "out": "Take a list of integers; sort by absolute value, then cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then sort smallest to largest, then trim one element off each end.", "out": "丽丑为"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Ascending sort, then cut off the first and last.", "out": "丽丑为"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then Sort this ascending, then remove the first and last elements.", "out": "丽丑为"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Sort lowest to highest, then keep only the middle part.", "out": "丽丑为"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Arrange from smallest to largest, then drop first and last.", "out": "丽丑为"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort ascending, then eliminate the outermost elements.", "out": "丽丑为"} {"kind": "builder", "in": "丽丑为", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丽丑为", "out": "Take a list of integers; add ten to each, then sort ascending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep only even values, then keep only non-zero numbers.", "out": "丸一举"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then extract all even numbers, then strip the zeros.", "out": "丸一举"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only even values, then keep only non-zero numbers.", "out": "丸一举"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then extract all even numbers, then strip the zeros.", "out": "丸一举"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only even values, then keep only non-zero numbers.", "out": "丸一举"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then extract all even numbers, then strip the zeros.", "out": "丸一举"} {"kind": "builder", "in": "丸一举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丸一举", "out": "Take a list of integers; sort by absolute value, then keep the even numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then arrange in decreasing order.", "out": "与一专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then arrange in descending order.", "out": "与一专"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then reverse sort.", "out": "与一专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then sort largest to smallest.", "out": "与一专"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then sort by descending values.", "out": "与一专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then sort from highest to lowest.", "out": "与一专"} {"kind": "builder", "in": "与一专", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "与一专", "out": "Take a list of integers; negate each, then keep the even numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove all zero values, then arrange by magnitude ignoring sign.", "out": "为举丸"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then exclude zeros, then put them in order by magnitude.", "out": "为举丸"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove all zero values, then arrange in order of absolute value.", "out": "为举丸"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then exclude zeros, then sort by distance from zero.", "out": "为举丸"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove all zero values, then order by how far from zero.", "out": "为举丸"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then exclude zeros, then order by distance from zero.", "out": "为举丸"} {"kind": "builder", "in": "为举丸", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "为举丸", "out": "Take a list of integers; drop the first and last elements, then drop the zeros, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then keep only numbers above 5.", "out": "丑丘主"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then exclude values of 5 and below.", "out": "丑丘主"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then remove anything 5 or less.", "out": "丑丘主"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then filter to keep only values above 5.", "out": "丑丘主"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then get rid of values that aren't greater than five.", "out": "丑丘主"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then drop anything 5 or below.", "out": "丑丘主"} {"kind": "builder", "in": "丑丘主", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丑丘主", "out": "Take a list of integers; sort ascending, then cap each value at 10, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then skip the first one.", "out": "九乃世"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then Discard the first element.", "out": "九乃世"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then skip the first one.", "out": "九乃世"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then Discard the first element.", "out": "九乃世"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then skip the first one.", "out": "九乃世"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then Discard the first element.", "out": "九乃世"} {"kind": "builder", "in": "九乃世", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n return r"} {"kind": "translator", "in": "九乃世", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero, then drop anything not divisible by three.", "out": "世久串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears, then filter out everything except multiples of three.", "out": "世久串"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero, then keep only multiples of three.", "out": "世久串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0, then multiples of three only.", "out": "世久串"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero, then filter for numbers divisible by three.", "out": "世久串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero, then give me only the values divisible by three.", "out": "世久串"} {"kind": "builder", "in": "世久串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "世久串", "out": "Take a list of integers; drop the first element, then keep everything before the first zero, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort smallest to largest, then find the max, defaulting to 0.", "out": "丐丑业"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Ascending sort, then Give me the maximum, but 0 if there are no items.", "out": "丐丑业"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then Sort this ascending, then What's the highest number in the list.", "out": "丐丑业"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Sort lowest to highest, then Return the greatest value or default to 0.", "out": "丐丑业"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then Arrange from smallest to largest, then Find the largest element, defaulting to zero.", "out": "丐丑业"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort ascending, then give the largest value (0 if none).", "out": "丐丑业"} {"kind": "builder", "in": "丐丑业", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r)\n return max(r) if r else 0"} {"kind": "translator", "in": "丐丑业", "out": "Take a list of integers; reverse the order, then sort ascending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then convert each to upper case, then find the longest one, defaulting to empty.", "out": "乖丟丰"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then change all strings to uppercase, then Longest string, or nothing if there isn't one.", "out": "乖丟丰"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then make every string uppercase, then find the longest one, defaulting to empty.", "out": "乖丟丰"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then uppercase each one, then Longest string, or nothing if there isn't one.", "out": "乖丟丰"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then make all the strings uppercase, then find the longest one, defaulting to empty.", "out": "乖丟丰"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then convert all strings to uppercase letters, then Longest string, or nothing if there isn't one.", "out": "乖丟丰"} {"kind": "builder", "in": "乖丟丰", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s.upper() for s in r]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "乖丟丰", "out": "Take a list of strings; sort alphabetically, then uppercase each string, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then extend to length 3 using zeros, then true if any value equals zero.", "out": "七义乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then pad to 3, then check for zero.", "out": "七义乍"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then extend to length 3 using zeros, then true if any value equals zero.", "out": "七义乍"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then pad to 3, then check for zero.", "out": "七义乍"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then extend to length 3 using zeros, then true if any value equals zero.", "out": "七义乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then pad to 3, then check for zero.", "out": "七义乍"} {"kind": "builder", "in": "七义乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return 0 in r"} {"kind": "translator", "in": "七义乍", "out": "Take a list of integers; keep the positive numbers, then pad with zeros to at least three elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then clamp each to at most ten, then keep only non-zero numbers.", "out": "丐丘举"} {"kind": "speaker", "in": "Take a list of integers; reverse, then don't let anything exceed 10, then strip the zeros.", "out": "丐丘举"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then clamp each to at most ten, then keep only non-zero numbers.", "out": "丐丘举"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then don't let anything exceed 10, then strip the zeros.", "out": "丐丘举"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then clamp each to at most ten, then keep only non-zero numbers.", "out": "丐丘举"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then don't let anything exceed 10, then strip the zeros.", "out": "丐丘举"} {"kind": "builder", "in": "丐丘举", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丐丘举", "out": "Take a list of integers; reverse the order, then cap each value at 10, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then limit every value to 10.", "out": "下万丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then maximum of 10 for all.", "out": "下万丘"} {"kind": "builder", "in": "下万丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "下万丘", "out": "Take a list of integers; add one to each, then keep the negative numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only even values, then arrange in increasing order.", "out": "丕一丑"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then extract all even numbers, then Organize these ascending.", "out": "丕一丑"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only even values, then Sort in ascending order.", "out": "丕一丑"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then extract all even numbers, then I need this sorted ascending.", "out": "丕一丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only even values, then Put these in ascending order.", "out": "丕一丑"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then extract all even numbers, then sort smallest to largest.", "out": "丕一丑"} {"kind": "builder", "in": "丕一丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丕一丑", "out": "Take a list of integers; keep only the first three, then keep the even numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then default to [0] when there is nothing, then multiply each by -1.", "out": "为么与"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then when the list is empty, substitute a zero value, then negate.", "out": "为么与"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then replace an empty list with one zero, then multiply each by -1.", "out": "为么与"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then zero it out if it's empty, then negate.", "out": "为么与"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then use zero if the list is empty, then multiply each by -1.", "out": "为么与"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then default to zero when empty, then negate.", "out": "为么与"} {"kind": "builder", "in": "为么与", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "为么与", "out": "Take a list of integers; drop the first and last elements, then if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then multiply each by two, then keep only numbers above 5.", "out": "丏丈主"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then double each item in the list, then exclude values of 5 and below.", "out": "丏丈主"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then multiply each by two, then remove anything 5 or less.", "out": "丏丈主"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then double each item in the list, then filter to keep only values above 5.", "out": "丏丈主"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then multiply each by two, then get rid of values that aren't greater than five.", "out": "丏丈主"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then double each item in the list, then drop anything 5 or below.", "out": "丏丈主"} {"kind": "builder", "in": "丏丈主", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丏丈主", "out": "Take a list of integers; take the absolute value of each, then double each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the first 3 elements, then true only if all are positive.", "out": "七丕乌"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove everything after the third, then do all of these have positive values.", "out": "七丕乌"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then truncate to three items, then check if every value is positive.", "out": "七丕乌"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then show the first three, then confirm all values are positive.", "out": "七丕乌"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then take the first three, then all positive.", "out": "七丕乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep first 3, then check if every number is above zero.", "out": "七丕乌"} {"kind": "builder", "in": "七丕乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:3]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "七丕乌", "out": "Take a list of integers; keep the positive numbers, then keep only the first three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then drop anything 5 or below, then keep only non-zero numbers.", "out": "乃主举"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep only numbers greater than 5, then strip the zeros.", "out": "乃主举"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then filter for numbers above 5, then keep only non-zero numbers.", "out": "乃主举"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then give me values where x is greater than 5, then strip the zeros.", "out": "乃主举"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then show me only the values that are bigger than five, then keep only non-zero numbers.", "out": "乃主举"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep values greater than five, then strip the zeros.", "out": "乃主举"} {"kind": "builder", "in": "乃主举", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乃主举", "out": "Take a list of integers; drop the leading negative values, then keep values greater than five, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each value by itself, then true if every value is unique.", "out": "丸上乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then square them all, then check for duplicates in the values.", "out": "丸上乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then raise each to the power of two, then do all values appear only once.", "out": "丸上乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then I need each number multiplied by itself, then check that there are no duplicates.", "out": "丸上乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then square all of them, then are the values all unique.", "out": "丸上乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiply each element by itself, then check if all values are unique.", "out": "丸上乏"} {"kind": "builder", "in": "丸上乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸上乏", "out": "Take a list of integers; sort by absolute value, then square each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep the leading run of positive numbers, then true if every value is unique.", "out": "久乂乏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then take values while they are positive, then check for duplicates in the values.", "out": "久乂乏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take positive values then stop, then do all values appear only once.", "out": "久乂乏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep going while positive, then check that there are no duplicates.", "out": "久乂乏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then stop at first non positive, then are the values all unique.", "out": "久乂乏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take while greater than zero, then check if all values are unique.", "out": "久乂乏"} {"kind": "builder", "in": "久乂乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "久乂乏", "out": "Take a list of integers; keep everything before the first zero, then take values while they are positive, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then default to [0] when there is nothing, then bump each up by one.", "out": "乃么下"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then when the list is empty, substitute a zero value, then increment each item.", "out": "乃么下"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then replace an empty list with one zero, then bump each up by one.", "out": "乃么下"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then zero it out if it's empty, then increment each item.", "out": "乃么下"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then use zero if the list is empty, then bump each up by one.", "out": "乃么下"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then default to zero when empty, then increment each item.", "out": "乃么下"} {"kind": "builder", "in": "乃么下", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "乃么下", "out": "Take a list of integers; drop the leading negative values, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each by two, then raise each to the power of two.", "out": "么丈上"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then double each item in the list, then I need each number multiplied by itself.", "out": "么丈上"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then multiply each by two, then square all of them.", "out": "么丈上"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then double each item in the list, then multiply each element by itself.", "out": "么丈上"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then multiply each by two, then make each one squared.", "out": "么丈上"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then double each item in the list, then square each value in the list.", "out": "么丈上"} {"kind": "builder", "in": "么丈上", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * 2 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "么丈上", "out": "Take a list of integers; if empty, use a single zero, then double each, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item, then raise each to the power of two.", "out": "九世上"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head, then I need each number multiplied by itself.", "out": "九世上"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item, then square all of them.", "out": "九世上"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head, then multiply each element by itself.", "out": "九世上"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item, then make each one squared.", "out": "九世上"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head, then square each value in the list.", "out": "九世上"} {"kind": "builder", "in": "九世上", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "九世上", "out": "Take a list of people records (name, age); extract the ages, then drop the first element, then square each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values divisible by 3, then give the number of evens.", "out": "乂串乓"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "乂串乓"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then drop anything not divisible by three, then how many are even.", "out": "乂串乓"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then filter out everything except multiples of three, then get the total number of even values in the list.", "out": "乂串乓"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only multiples of three, then give me the count of even values.", "out": "乂串乓"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiples of three only, then I need to know how many of these are even.", "out": "乂串乓"} {"kind": "builder", "in": "乂串乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乂串乓", "out": "Take a list of integers; take values while they are positive, then keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then truncate to three items.", "out": "丸丈丕"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then show the first three.", "out": "丸丈丕"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then take the first three.", "out": "丸丈丕"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then keep first 3.", "out": "丸丈丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then truncate to first three.", "out": "丸丈丕"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then first three.", "out": "丸丈丕"} {"kind": "builder", "in": "丸丈丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丸丈丕", "out": "Take a list of integers; sort by absolute value, then double each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then trim one element off each end.", "out": "世一为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then cut off the first and last.", "out": "世一为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then remove the first and last elements.", "out": "世一为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then keep only the middle part.", "out": "世一为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then drop first and last.", "out": "世一为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then eliminate the outermost elements.", "out": "世一为"} {"kind": "builder", "in": "世一为", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "世一为", "out": "Take a list of integers; drop the first element, then keep the even numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then order the strings A to Z, then return the number of strings.", "out": "丧乖丫"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then make it alphabetical, then count the strings.", "out": "丧乖丫"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then order the strings A to Z, then return how many strings remain.", "out": "丧乖丫"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then make it alphabetical, then give me the total number of strings.", "out": "丧乖丫"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then order the strings A to Z, then tell me how many strings we have.", "out": "丧乖丫"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then make it alphabetical, then what's the string count.", "out": "丧乖丫"} {"kind": "builder", "in": "丧乖丫", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r)\n return len(r)"} {"kind": "translator", "in": "丧乖丫", "out": "Take a list of strings; drop duplicate strings keeping the first, then sort alphabetically, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each value by itself, then true only if all are positive.", "out": "世上乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then square them all, then do all of these have positive values.", "out": "世上乌"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then raise each to the power of two, then check if every value is positive.", "out": "世上乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then I need each number multiplied by itself, then confirm all values are positive.", "out": "世上乌"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then square all of them, then all positive.", "out": "世上乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiply each element by itself, then check if every number is above zero.", "out": "世上乌"} {"kind": "builder", "in": "世上乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "世上乌", "out": "Take a list of integers; drop the first element, then square each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then multiply each by -1.", "out": "丁下与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then negate.", "out": "丁下与"} {"kind": "builder", "in": "丁下与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丁下与", "out": "Take a list of integers; keep the odd numbers, then add one to each, then negate each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the list around, then find the min, defaulting to 0.", "out": "九丐丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then flip the order around, then minimum value, zero otherwise.", "out": "九丐丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then put the elements backwards, then get the minimum value or zero if empty.", "out": "九丐丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then reverse that for me, then give me the min or 0.", "out": "九丐丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip it backwards, then return the smallest number, defaulting to 0.", "out": "九丐丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then make it backwards, then return smallest or zero if empty.", "out": "九丐丛"} {"kind": "builder", "in": "九丐丛", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(reversed(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "九丐丛", "out": "Take a list of people records (name, age); extract the ages, then reverse the order, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values divisible by 3, then true if every value is unique.", "out": "世串乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep items where x mod 3 equals zero, then check for duplicates in the values.", "out": "世串乏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then drop anything not divisible by three, then do all values appear only once.", "out": "世串乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter out everything except multiples of three, then check that there are no duplicates.", "out": "世串乏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only multiples of three, then are the values all unique.", "out": "世串乏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiples of three only, then check if all values are unique.", "out": "世串乏"} {"kind": "builder", "in": "世串乏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "世串乏", "out": "Take a list of integers; drop the first element, then keep multiples of three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then true if any value equals zero.", "out": "且世乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then check for zero.", "out": "且世乍"} {"kind": "builder", "in": "且世乍", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:]\n return 0 in r"} {"kind": "translator", "in": "且世乍", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first element, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then drop anything not divisible by three.", "out": "乂丕串"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then filter out everything except multiples of three.", "out": "乂丕串"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then keep only multiples of three.", "out": "乂丕串"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then multiples of three only.", "out": "乂丕串"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then filter for numbers divisible by three.", "out": "乂丕串"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then give me only the values divisible by three.", "out": "乂丕串"} {"kind": "builder", "in": "乂丕串", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "乂丕串", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then find the min, defaulting to 0.", "out": "世丁丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then minimum value, zero otherwise.", "out": "世丁丛"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then get the minimum value or zero if empty.", "out": "世丁丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then give me the min or 0.", "out": "世丁丛"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then return the smallest number, defaulting to 0.", "out": "世丁丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then return smallest or zero if empty.", "out": "世丁丛"} {"kind": "builder", "in": "世丁丛", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "世丁丛", "out": "Take a list of integers; drop the first element, then keep the odd numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort smallest to largest, then stop at the first non-positive value.", "out": "丁丑乂"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Ascending sort, then keep the leading run of positive numbers.", "out": "丁丑乂"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Sort this ascending, then take values while they are positive.", "out": "丁丑乂"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Sort lowest to highest, then take positive values then stop.", "out": "丁丑乂"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Arrange from smallest to largest, then keep going while positive.", "out": "丁丑乂"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort ascending, then stop at first non positive.", "out": "丁丑乂"} {"kind": "builder", "in": "丁丑乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丁丑乂", "out": "Take a list of integers; keep the odd numbers, then sort ascending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then arrange by magnitude ignoring sign.", "out": "丐久丸"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then put them in order by magnitude.", "out": "丐久丸"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then arrange in order of absolute value.", "out": "丐久丸"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then sort by distance from zero.", "out": "丐久丸"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then order by how far from zero.", "out": "丐久丸"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then order by distance from zero.", "out": "丐久丸"} {"kind": "builder", "in": "丐久丸", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丐久丸", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then drop anything 5 or below, then give the number of evens.", "out": "乃主乓"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep only numbers greater than 5, then find how many values are divisible by two.", "out": "乃主乓"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then filter for numbers above 5, then how many are even.", "out": "乃主乓"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then give me values where x is greater than 5, then get the total number of even values in the list.", "out": "乃主乓"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then show me only the values that are bigger than five, then give me the count of even values.", "out": "乃主乓"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep values greater than five, then I need to know how many of these are even.", "out": "乃主乓"} {"kind": "builder", "in": "乃主乓", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乃主乓", "out": "Take a list of integers; drop the leading negative values, then keep values greater than five, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then skip negatives at the start, then drop the odd numbers.", "out": "丸乃一"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove all negatives at the front, then filter out the odd numbers.", "out": "丸乃一"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the initial run of negative numbers, then drop the odd numbers.", "out": "丸乃一"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then strip the front negatives, then filter out the odd numbers.", "out": "丸乃一"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove leading negative numbers, then drop the odd numbers.", "out": "丸乃一"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then drop negatives from start, then filter out the odd numbers.", "out": "丸乃一"} {"kind": "builder", "in": "丸乃一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丸乃一", "out": "Take a list of integers; sort by absolute value, then drop the leading negative values, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then cut the list at the first zero, then make each twice as big.", "out": "丸久丈"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then cut off after the first zero appears, then multiply each by 2.", "out": "丸久丈"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take values up to (excluding) the first zero, then make each twice as big.", "out": "丸久丈"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the part before the first 0, then multiply each by 2.", "out": "丸久丈"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then truncate at the first zero, then make each twice as big.", "out": "丸久丈"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then delete everything starting with the first zero, then multiply each by 2.", "out": "丸久丈"} {"kind": "builder", "in": "丸久丈", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丸久丈", "out": "Take a list of integers; sort by absolute value, then keep everything before the first zero, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the final 3 elements, then drop anything not divisible by three.", "out": "久丹串"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then drop everything except the final three, then filter out everything except multiples of three.", "out": "久丹串"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then give me the last three elements, then keep only multiples of three.", "out": "久丹串"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep only the last three, then multiples of three only.", "out": "久丹串"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep the final three items, then filter for numbers divisible by three.", "out": "久丹串"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the last three, then give me only the values divisible by three.", "out": "久丹串"} {"kind": "builder", "in": "久丹串", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "久丹串", "out": "Take a list of integers; keep everything before the first zero, then keep only the last three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then order the strings A to Z, then reduce each string to its first character.", "out": "两乖丨"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then make it alphabetical, then take first char drop blanks.", "out": "两乖丨"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then order the strings A to Z, then keep first letters only.", "out": "两乖丨"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then make it alphabetical, then first letter from each item that isn't empty.", "out": "两乖丨"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then order the strings A to Z, then grab the first char from each.", "out": "两乖丨"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then make it alphabetical, then isolate the first character per entry.", "out": "两乖丨"} {"kind": "builder", "in": "两乖丨", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = sorted(r)\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "两乖丨", "out": "Take a list of strings; drop empty strings, then sort alphabetically, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero, then keep only numbers above 5.", "out": "七久主"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears, then exclude values of 5 and below.", "out": "七久主"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero, then remove anything 5 or less.", "out": "七久主"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0, then filter to keep only values above 5.", "out": "七久主"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero, then get rid of values that aren't greater than five.", "out": "七久主"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero, then drop anything 5 or below.", "out": "七久主"} {"kind": "builder", "in": "七久主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "七久主", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; double each, then increase every value by 10, then multiply each by -1.", "out": "丈丽与"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then add 10 to each item, then negate.", "out": "丈丽与"} {"kind": "speaker", "in": "Take a list of integers; double each, then shift each up by ten, then multiply each by -1.", "out": "丈丽与"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then increase all numbers by 10, then negate.", "out": "丈丽与"} {"kind": "speaker", "in": "Take a list of integers; double each, then add 10 to everything, then multiply each by -1.", "out": "丈丽与"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give everything a boost of 10, then negate.", "out": "丈丽与"} {"kind": "builder", "in": "丈丽与", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丈丽与", "out": "Take a list of integers; double each, then add ten to each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then extend to length 3 using zeros, then true if any value equals zero.", "out": "主义乍"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then pad to 3, then check for zero.", "out": "主义乍"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then extend to length 3 using zeros, then true if any value equals zero.", "out": "主义乍"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then pad to 3, then check for zero.", "out": "主义乍"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then extend to length 3 using zeros, then true if any value equals zero.", "out": "主义乍"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then pad to 3, then check for zero.", "out": "主义乍"} {"kind": "builder", "in": "主义乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return 0 in r"} {"kind": "translator", "in": "主义乍", "out": "Take a list of integers; keep values greater than five, then pad with zeros to at least three elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort smallest to largest, then reduce each by one.", "out": "上丑不"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Ascending sort, then Subtract 1 from all.", "out": "上丑不"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then Sort this ascending, then Subtract one from each.", "out": "上丑不"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Sort lowest to highest, then Drop each by one.", "out": "上丑不"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then Arrange from smallest to largest, then Decrease all values by one.", "out": "上丑不"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort ascending, then Remove one from each value.", "out": "上丑不"} {"kind": "builder", "in": "上丑不", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "上丑不", "out": "Take a list of integers; square each, then sort ascending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove all zero values, then true if at least one even value.", "out": "不举之"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then exclude zeros, then any even.", "out": "不举之"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove all zero values, then true if at least one even value.", "out": "不举之"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then exclude zeros, then any even.", "out": "不举之"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove all zero values, then true if at least one even value.", "out": "不举之"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then exclude zeros, then any even.", "out": "不举之"} {"kind": "builder", "in": "不举之", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "不举之", "out": "Take a list of integers; subtract one from each, then drop the zeros, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then replace an empty list with one zero.", "out": "丈丘么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then zero it out if it's empty.", "out": "丈丘么"} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then use zero if the list is empty.", "out": "丈丘么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then default to zero when empty.", "out": "丈丘么"} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then if there's nothing, put in a zero.", "out": "丈丘么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then if no items, add a zero.", "out": "丈丘么"} {"kind": "builder", "in": "丈丘么", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丈丘么", "out": "Take a list of integers; double each, then cap each value at 10, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then shift each up by ten.", "out": "九一丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then increase all numbers by 10.", "out": "九一丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then add 10 to everything.", "out": "九一丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then give everything a boost of 10.", "out": "九一丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then increment each by ten.", "out": "九一丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then add a constant 10 to each.", "out": "九一丽"} {"kind": "builder", "in": "九一丽", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "九一丽", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then default to [0] when there is nothing, then arrange by magnitude ignoring sign.", "out": "万么丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then when the list is empty, substitute a zero value, then put them in order by magnitude.", "out": "万么丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then replace an empty list with one zero, then arrange in order of absolute value.", "out": "万么丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then zero it out if it's empty, then sort by distance from zero.", "out": "万么丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then use zero if the list is empty, then order by how far from zero.", "out": "万么丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then default to zero when empty, then order by distance from zero.", "out": "万么丸"} {"kind": "builder", "in": "万么丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r if r else [0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "万么丸", "out": "Take a list of integers; keep the negative numbers, then if empty, use a single zero, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; square each, then make every value non-negative, then find the min, defaulting to 0.", "out": "上丏丛"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then absolute value for all items, then minimum value, zero otherwise.", "out": "上丏丛"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take absolute values, then get the minimum value or zero if empty.", "out": "上丏丛"} {"kind": "speaker", "in": "Take a list of integers; square them all, then turn negatives into positives, then give me the min or 0.", "out": "上丏丛"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then abs each element, then return the smallest number, defaulting to 0.", "out": "上丏丛"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the absolute value of each, then return smallest or zero if empty.", "out": "上丏丛"} {"kind": "builder", "in": "上丏丛", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [abs(x) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "上丏丛", "out": "Take a list of integers; square each, then take the absolute value of each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then decrement each value, then ensure at least three items by appending zeros.", "out": "举不义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Lower each number by one, then ensure minimum length of three by adding zeros to the end.", "out": "举不义"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then reduce each by one, then ensure at least three items by appending zeros.", "out": "举不义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Subtract 1 from all, then ensure minimum length of three by adding zeros to the end.", "out": "举不义"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Subtract one from each, then ensure at least three items by appending zeros.", "out": "举不义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Drop each by one, then ensure minimum length of three by adding zeros to the end.", "out": "举不义"} {"kind": "builder", "in": "举不义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "举不义", "out": "Take a list of integers; drop the zeros, then subtract one from each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values above zero, then skip the first one.", "out": "上七世"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then filter for positive numbers, then Discard the first element.", "out": "上七世"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only positive numbers, then skip the first one.", "out": "上七世"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the positives, then Discard the first element.", "out": "上七世"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove negatives, then skip the first one.", "out": "上七世"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep the positive numbers, then Discard the first element.", "out": "上七世"} {"kind": "builder", "in": "上七世", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "上七世", "out": "Take a list of integers; square each, then keep the positive numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then give the earliest even value or zero.", "out": "与丈乒"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then fetch the first even element, default to 0.", "out": "与丈乒"} {"kind": "builder", "in": "与丈乒", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * 2 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "与丈乒", "out": "Take a list of integers; negate each, then double each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values above zero, then strip the signs.", "out": "久七丏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then filter for positive numbers, then take abs of each.", "out": "久七丏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only positive numbers, then get the absolute value of everything.", "out": "久七丏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep the positives, then apply absolute value to the whole list.", "out": "久七丏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove negatives, then make them all positive.", "out": "久七丏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep the positive numbers, then make every value non-negative.", "out": "久七丏"} {"kind": "builder", "in": "久七丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "久七丏", "out": "Take a list of integers; keep everything before the first zero, then keep the positive numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then deduplicate the list.", "out": "世丁且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then remove repeats.", "out": "世丁且"} {"kind": "builder", "in": "世丁且", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "世丁且", "out": "Take a list of integers; drop the first element, then keep the odd numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then remove the initial run of negative numbers.", "out": "丈且乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then strip the front negatives.", "out": "丈且乃"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then remove leading negative numbers.", "out": "丈且乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then drop negatives from start.", "out": "丈且乃"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then strip negative values from the start.", "out": "丈且乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then remove negatives before the first non-negative.", "out": "丈且乃"} {"kind": "builder", "in": "丈且乃", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(dict.fromkeys(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丈且乃", "out": "Take a list of integers; double each, then drop duplicates keeping first occurrence, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values divisible by 3, then drop non-positive values.", "out": "专串七"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then keep items where x mod 3 equals zero, then drop the negative numbers.", "out": "专串七"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then drop anything not divisible by three, then filter out the negative ones.", "out": "专串七"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then filter out everything except multiples of three, then remove all negative values.", "out": "专串七"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only multiples of three, then keep positive values only.", "out": "专串七"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiples of three only, then keep values above zero.", "out": "专串七"} {"kind": "builder", "in": "专串七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "专串七", "out": "Take a list of integers; sort descending, then keep multiples of three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then default to [0] when there is nothing, then keep only numbers above 5.", "out": "举么主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then when the list is empty, substitute a zero value, then exclude values of 5 and below.", "out": "举么主"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then replace an empty list with one zero, then remove anything 5 or less.", "out": "举么主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then zero it out if it's empty, then filter to keep only values above 5.", "out": "举么主"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then use zero if the list is empty, then get rid of values that aren't greater than five.", "out": "举么主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then default to zero when empty, then drop anything 5 or below.", "out": "举么主"} {"kind": "builder", "in": "举么主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r if r else [0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "举么主", "out": "Take a list of integers; drop the zeros, then if empty, use a single zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then find the min, defaulting to 0.", "out": "举万丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then minimum value, zero otherwise.", "out": "举万丛"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then get the minimum value or zero if empty.", "out": "举万丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then give me the min or 0.", "out": "举万丛"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then return the smallest number, defaulting to 0.", "out": "举万丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then return smallest or zero if empty.", "out": "举万丛"} {"kind": "builder", "in": "举万丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "举万丛", "out": "Take a list of integers; drop the zeros, then keep the negative numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then add '#' to the start of each string, then remove short strings (under 3 chars).", "out": "丢乘乗"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then make each one start with a hash, then only keep strings with three or more characters.", "out": "丢乘乗"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then add '#' to the start of each string, then keep only strings that are at least three characters long.", "out": "丢乘乗"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then make each one start with a hash, then filter strings shorter than 3 chars.", "out": "丢乘乗"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then add '#' to the start of each string, then drop anything shorter than three characters.", "out": "丢乘乗"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then make each one start with a hash, then keep only strings of length 3 or more.", "out": "丢乘乗"} {"kind": "builder", "in": "丢乘乗", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = ['#' + s for s in r]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "丢乘乗", "out": "Take a list of strings; trim whitespace from each, then prefix each with a hash, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort smallest to largest, then true if already sorted smallest to largest.", "out": "义丑乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Ascending sort, then does this list go in ascending order.", "out": "义丑乎"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Sort this ascending, then check if the list is in ascending order.", "out": "义丑乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Sort lowest to highest, then is the list sorted.", "out": "义丑乎"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Arrange from smallest to largest, then is it sorted.", "out": "义丑乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort ascending, then check if values are in increasing order.", "out": "义丑乎"} {"kind": "builder", "in": "义丑乎", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n return r == sorted(r)"} {"kind": "translator", "in": "义丑乎", "out": "Take a list of integers; pad with zeros to at least three elements, then sort ascending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero, then put the elements backwards.", "out": "丑丸丐"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value, then reverse that for me.", "out": "丑丸丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude, then flip it backwards.", "out": "丑丸丐"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending, then make it backwards.", "out": "丑丸丐"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value, then reverse the list.", "out": "丑丸丐"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value, then invert the sequence.", "out": "丑丸丐"} {"kind": "builder", "in": "丑丸丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丑丸丐", "out": "Take a list of integers; sort ascending, then sort by absolute value, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the list around, then reduce each by one.", "out": "丸丐不"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then flip the order around, then Subtract 1 from all.", "out": "丸丐不"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then put the elements backwards, then Subtract one from each.", "out": "丸丐不"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then reverse that for me, then Drop each by one.", "out": "丸丐不"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip it backwards, then Decrease all values by one.", "out": "丸丐不"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then make it backwards, then Remove one from each value.", "out": "丸丐不"} {"kind": "builder", "in": "丸丐不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(reversed(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丸丐不", "out": "Take a list of integers; sort by absolute value, then reverse the order, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then default to [0] when there is nothing, then keep only non-zero numbers.", "out": "丸么举"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then when the list is empty, substitute a zero value, then strip the zeros.", "out": "丸么举"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then replace an empty list with one zero, then keep only non-zero numbers.", "out": "丸么举"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then zero it out if it's empty, then strip the zeros.", "out": "丸么举"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then use zero if the list is empty, then keep only non-zero numbers.", "out": "丸么举"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then default to zero when empty, then strip the zeros.", "out": "丸么举"} {"kind": "builder", "in": "丸么举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丸么举", "out": "Take a list of integers; sort by absolute value, then if empty, use a single zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then order by distance from zero, then drop non-negative values.", "out": "下丸万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort based on absolute value, then drop all positive numbers.", "out": "下丸万"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then organize by magnitude, then drop non-negative values.", "out": "下丸万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then arrange by absolute value ascending, then drop all positive numbers.", "out": "下丸万"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from smallest to largest absolute value, then drop non-negative values.", "out": "下丸万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by absolute value, then drop all positive numbers.", "out": "下丸万"} {"kind": "builder", "in": "下丸万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "下丸万", "out": "Take a list of integers; add one to each, then sort by absolute value, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the final 3 elements, then limit every value to 10.", "out": "为丹丘"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then drop everything except the final three, then maximum of 10 for all.", "out": "为丹丘"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give me the last three elements, then limit every value to 10.", "out": "为丹丘"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep only the last three, then maximum of 10 for all.", "out": "为丹丘"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep the final three items, then limit every value to 10.", "out": "为丹丘"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the last three, then maximum of 10 for all.", "out": "为丹丘"} {"kind": "builder", "in": "为丹丘", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[-3:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "为丹丘", "out": "Take a list of integers; drop the first and last elements, then keep only the last three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then decrement each value, then find the min, defaulting to 0.", "out": "丽不丛"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Lower each number by one, then minimum value, zero otherwise.", "out": "丽不丛"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then reduce each by one, then get the minimum value or zero if empty.", "out": "丽不丛"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Subtract 1 from all, then give me the min or 0.", "out": "丽不丛"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Subtract one from each, then return the smallest number, defaulting to 0.", "out": "丽不丛"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Drop each by one, then return smallest or zero if empty.", "out": "丽不丛"} {"kind": "builder", "in": "丽不丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丽不丛", "out": "Take a list of integers; add ten to each, then subtract one from each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then truncate to three items.", "out": "与丘丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then show the first three.", "out": "与丘丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then take the first three.", "out": "与丘丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then keep first 3.", "out": "与丘丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then truncate to first three.", "out": "与丘丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then first three.", "out": "与丘丕"} {"kind": "builder", "in": "与丘丕", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [min(x, 10) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "与丘丕", "out": "Take a list of integers; negate each, then cap each value at 10, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; square each, then extend to length 3 using zeros, then give back the product of all values.", "out": "上义乐"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then pad to 3, then product of the list.", "out": "上义乐"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then extend to length 3 using zeros, then what's the product.", "out": "上义乐"} {"kind": "speaker", "in": "Take a list of integers; square them all, then pad to 3, then what do they multiply to.", "out": "上义乐"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then extend to length 3 using zeros, then give me their product.", "out": "上义乐"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then pad to 3, then multiply them all together.", "out": "上义乐"} {"kind": "builder", "in": "上义乐", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "上义乐", "out": "Take a list of integers; square each, then pad with zeros to at least three elements, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything 5 or below, then true if any value equals zero.", "out": "且主乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only numbers greater than 5, then check for zero.", "out": "且主乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then filter for numbers above 5, then true if any value equals zero.", "out": "且主乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give me values where x is greater than 5, then check for zero.", "out": "且主乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then show me only the values that are bigger than five, then true if any value equals zero.", "out": "且主乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep values greater than five, then check for zero.", "out": "且主乍"} {"kind": "builder", "in": "且主乍", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 5]\n return 0 in r"} {"kind": "translator", "in": "且主乍", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep values greater than five, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then stop at the first non-positive value.", "out": "举世乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then keep the leading run of positive numbers.", "out": "举世乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then take values while they are positive.", "out": "举世乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then take positive values then stop.", "out": "举世乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then keep going while positive.", "out": "举世乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then stop at first non positive.", "out": "举世乂"} {"kind": "builder", "in": "举世乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "举世乂", "out": "Take a list of integers; drop the zeros, then drop the first element, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increase every value by 10, then true if every value is unique.", "out": "不丽乏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then add 10 to each item, then check for duplicates in the values.", "out": "不丽乏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then shift each up by ten, then do all values appear only once.", "out": "不丽乏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then increase all numbers by 10, then check that there are no duplicates.", "out": "不丽乏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then add 10 to everything, then are the values all unique.", "out": "不丽乏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then give everything a boost of 10, then check if all values are unique.", "out": "不丽乏"} {"kind": "builder", "in": "不丽乏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "不丽乏", "out": "Take a list of integers; subtract one from each, then add ten to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values divisible by 3, then true if already sorted smallest to largest.", "out": "丘串乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep items where x mod 3 equals zero, then does this list go in ascending order.", "out": "丘串乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then drop anything not divisible by three, then check if the list is in ascending order.", "out": "丘串乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter out everything except multiples of three, then is the list sorted.", "out": "丘串乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only multiples of three, then is it sorted.", "out": "丘串乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiples of three only, then check if values are in increasing order.", "out": "丘串乎"} {"kind": "builder", "in": "丘串乎", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丘串乎", "out": "Take a list of integers; cap each value at 10, then keep multiples of three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the first 3 elements, then remove the initial run of negative numbers.", "out": "么丕乃"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove everything after the third, then strip the front negatives.", "out": "么丕乃"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then truncate to three items, then remove leading negative numbers.", "out": "么丕乃"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then show the first three, then drop negatives from start.", "out": "么丕乃"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then take the first three, then strip negative values from the start.", "out": "么丕乃"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep first 3, then remove negatives before the first non-negative.", "out": "么丕乃"} {"kind": "builder", "in": "么丕乃", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "么丕乃", "out": "Take a list of integers; if empty, use a single zero, then keep only the first three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then true if at least one even value.", "out": "串主之"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then any even.", "out": "串主之"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then true if at least one even value.", "out": "串主之"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then any even.", "out": "串主之"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then true if at least one even value.", "out": "串主之"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then any even.", "out": "串主之"} {"kind": "builder", "in": "串主之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "串主之", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the sign of each, then give the number of evens.", "out": "丑与乓"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then turn positives to negatives and vice versa, then find how many values are divisible by two.", "out": "丑与乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then flip the sign of each, then how many are even.", "out": "丑与乓"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn positives to negatives and vice versa, then get the total number of even values in the list.", "out": "丑与乓"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip the sign of each, then give me the count of even values.", "out": "丑与乓"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then turn positives to negatives and vice versa, then I need to know how many of these are even.", "out": "丑与乓"} {"kind": "builder", "in": "丑与乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [-x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丑与乓", "out": "Take a list of integers; sort ascending, then negate each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then put the elements backwards.", "out": "世丁丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then reverse that for me.", "out": "世丁丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then flip it backwards.", "out": "世丁丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then make it backwards.", "out": "世丁丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then reverse the list.", "out": "世丁丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then invert the sequence.", "out": "世丁丐"} {"kind": "builder", "in": "世丁丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "世丁丐", "out": "Take a list of integers; drop the first element, then keep the odd numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove the first item, then truncate to the last three items.", "out": "丽世丹"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Remove head, then show only the last three.", "out": "丽世丹"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the first item, then remove all but the last three.", "out": "丽世丹"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Remove head, then take the final 3 elements.", "out": "丽世丹"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first item, then drop everything except the final three.", "out": "丽世丹"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Remove head, then give me the last three elements.", "out": "丽世丹"} {"kind": "builder", "in": "丽世丹", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丽世丹", "out": "Take a list of integers; add ten to each, then drop the first element, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values divisible by 3, then give the number of evens.", "out": "七串乓"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "七串乓"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then drop anything not divisible by three, then how many are even.", "out": "七串乓"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then filter out everything except multiples of three, then get the total number of even values in the list.", "out": "七串乓"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only multiples of three, then give me the count of even values.", "out": "七串乓"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then multiples of three only, then I need to know how many of these are even.", "out": "七串乓"} {"kind": "builder", "in": "七串乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "七串乓", "out": "Take a list of integers; keep the positive numbers, then keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove all zero values, then keep only numbers above 5.", "out": "专举主"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then exclude zeros, then exclude values of 5 and below.", "out": "专举主"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove all zero values, then remove anything 5 or less.", "out": "专举主"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then exclude zeros, then filter to keep only values above 5.", "out": "专举主"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove all zero values, then get rid of values that aren't greater than five.", "out": "专举主"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then exclude zeros, then drop anything 5 or below.", "out": "专举主"} {"kind": "builder", "in": "专举主", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "专举主", "out": "Take a list of integers; sort descending, then drop the zeros, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort smallest to largest, then strip the signs.", "out": "丘丑丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Ascending sort, then take abs of each.", "out": "丘丑丏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Sort this ascending, then get the absolute value of everything.", "out": "丘丑丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Sort lowest to highest, then apply absolute value to the whole list.", "out": "丘丑丏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Arrange from smallest to largest, then make them all positive.", "out": "丘丑丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort ascending, then make every value non-negative.", "out": "丘丑丏"} {"kind": "builder", "in": "丘丑丏", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丘丑丏", "out": "Take a list of integers; cap each value at 10, then sort ascending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then find the max, defaulting to 0.", "out": "乂乃业"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then Give me the maximum, but 0 if there are no items.", "out": "乂乃业"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then What's the highest number in the list.", "out": "乂乃业"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then Return the greatest value or default to 0.", "out": "乂乃业"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then Find the largest element, defaulting to zero.", "out": "乂乃业"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then give the largest value (0 if none).", "out": "乂乃业"} {"kind": "builder", "in": "乂乃业", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return max(r) if r else 0"} {"kind": "translator", "in": "乂乃业", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then true if any value equals zero.", "out": "举丁乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then check for zero.", "out": "举丁乍"} {"kind": "builder", "in": "举丁乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n return 0 in r"} {"kind": "translator", "in": "举丁乍", "out": "Take a list of integers; drop the zeros, then keep the odd numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove the first item, then deduplicate the list.", "out": "串世且"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Remove head, then remove repeats.", "out": "串世且"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove the first item, then deduplicate the list.", "out": "串世且"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Remove head, then remove repeats.", "out": "串世且"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first item, then deduplicate the list.", "out": "串世且"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Remove head, then remove repeats.", "out": "串世且"} {"kind": "builder", "in": "串世且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "串世且", "out": "Take a list of integers; keep multiples of three, then drop the first element, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; negate each, then extend to length 3 using zeros, then count the elements.", "out": "与义东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then pad to 3, then how many items remain.", "out": "与义东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then extend to length 3 using zeros, then tell me the length.", "out": "与义东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then pad to 3, then return the length.", "out": "与义东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then extend to length 3 using zeros, then count them.", "out": "与义东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then pad to 3, then what's the count.", "out": "与义东"} {"kind": "builder", "in": "与义东", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return len(r)"} {"kind": "translator", "in": "与义东", "out": "Take a list of integers; negate each, then pad with zeros to at least three elements, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then true if at least one even value.", "out": "丑且之"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then any even.", "out": "丑且之"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then true if at least one even value.", "out": "丑且之"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then any even.", "out": "丑且之"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then true if at least one even value.", "out": "丑且之"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then any even.", "out": "丑且之"} {"kind": "builder", "in": "丑且之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丑且之", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then skip negatives at the start, then arrange in decreasing order.", "out": "丹乃专"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove all negatives at the front, then arrange in descending order.", "out": "丹乃专"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the initial run of negative numbers, then reverse sort.", "out": "丹乃专"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then strip the front negatives, then sort largest to smallest.", "out": "丹乃专"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove leading negative numbers, then sort by descending values.", "out": "丹乃专"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then drop negatives from start, then sort from highest to lowest.", "out": "丹乃专"} {"kind": "builder", "in": "丹乃专", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丹乃专", "out": "Take a list of integers; keep only the last three, then drop the leading negative values, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each value by itself, then give the earliest even value or zero.", "out": "世上乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then square them all, then fetch the first even element, default to 0.", "out": "世上乒"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then raise each to the power of two, then give the earliest even value or zero.", "out": "世上乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then I need each number multiplied by itself, then fetch the first even element, default to 0.", "out": "世上乒"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then square all of them, then give the earliest even value or zero.", "out": "世上乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiply each element by itself, then fetch the first even element, default to 0.", "out": "世上乒"} {"kind": "builder", "in": "世上乒", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * x for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "世上乒", "out": "Take a list of integers; drop the first element, then square each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then limit every value to 10.", "out": "万世丘"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then maximum of 10 for all.", "out": "万世丘"} {"kind": "builder", "in": "万世丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "万世丘", "out": "Take a list of integers; keep the negative numbers, then drop the first element, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below, then skip the first one.", "out": "丏主世"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5, then Discard the first element.", "out": "丏主世"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5, then skip the first one.", "out": "丏主世"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5, then Discard the first element.", "out": "丏主世"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five, then skip the first one.", "out": "丏主世"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five, then Discard the first element.", "out": "丏主世"} {"kind": "builder", "in": "丏主世", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丏主世", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values above zero, then count the elements.", "out": "丑七东"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then filter for positive numbers, then how many items remain.", "out": "丑七东"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only positive numbers, then tell me the length.", "out": "丑七东"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the positives, then return the length.", "out": "丑七东"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove negatives, then count them.", "out": "丑七东"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep the positive numbers, then what's the count.", "out": "丑七东"} {"kind": "builder", "in": "丑七东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 0]\n return len(r)"} {"kind": "translator", "in": "丑七东", "out": "Take a list of integers; sort ascending, then keep the positive numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increase every value by 10, then keep only non-zero numbers.", "out": "为丽举"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then add 10 to each item, then strip the zeros.", "out": "为丽举"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then shift each up by ten, then keep only non-zero numbers.", "out": "为丽举"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then increase all numbers by 10, then strip the zeros.", "out": "为丽举"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then add 10 to everything, then keep only non-zero numbers.", "out": "为丽举"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then give everything a boost of 10, then strip the zeros.", "out": "为丽举"} {"kind": "builder", "in": "为丽举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "为丽举", "out": "Take a list of integers; drop the first and last elements, then add ten to each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove the first item, then make each twice as big.", "out": "为世丈"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Remove head, then multiply each by 2.", "out": "为世丈"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the first item, then make each twice as big.", "out": "为世丈"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Remove head, then multiply each by 2.", "out": "为世丈"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove the first item, then make each twice as big.", "out": "为世丈"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then Remove head, then multiply each by 2.", "out": "为世丈"} {"kind": "builder", "in": "为世丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[1:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "为世丈", "out": "Take a list of integers; drop the first and last elements, then drop the first element, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero, then find the min, defaulting to 0.", "out": "世丸丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value, then minimum value, zero otherwise.", "out": "世丸丛"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude, then get the minimum value or zero if empty.", "out": "世丸丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending, then give me the min or 0.", "out": "世丸丛"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value, then return the smallest number, defaulting to 0.", "out": "世丸丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value, then return smallest or zero if empty.", "out": "世丸丛"} {"kind": "builder", "in": "世丸丛", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n return min(r) if r else 0"} {"kind": "translator", "in": "世丸丛", "out": "Take a list of integers; drop the first element, then sort by absolute value, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then shift each up by ten.", "out": "丈丘丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then increase all numbers by 10.", "out": "丈丘丽"} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then add 10 to everything.", "out": "丈丘丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then give everything a boost of 10.", "out": "丈丘丽"} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then increment each by ten.", "out": "丈丘丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then add a constant 10 to each.", "out": "丈丘丽"} {"kind": "builder", "in": "丈丘丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丈丘丽", "out": "Take a list of integers; double each, then cap each value at 10, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first item, then true if already sorted smallest to largest.", "out": "义世乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Remove head, then does this list go in ascending order.", "out": "义世乎"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first item, then check if the list is in ascending order.", "out": "义世乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Remove head, then is the list sorted.", "out": "义世乎"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first item, then is it sorted.", "out": "义世乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Remove head, then check if values are in increasing order.", "out": "义世乎"} {"kind": "builder", "in": "义世乎", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:]\n return r == sorted(r)"} {"kind": "translator", "in": "义世乎", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the first element, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values above zero, then arrange by magnitude ignoring sign.", "out": "丐七丸"} {"kind": "speaker", "in": "Take a list of integers; reverse, then filter for positive numbers, then put them in order by magnitude.", "out": "丐七丸"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only positive numbers, then arrange in order of absolute value.", "out": "丐七丸"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the positives, then sort by distance from zero.", "out": "丐七丸"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove negatives, then order by how far from zero.", "out": "丐七丸"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep the positive numbers, then order by distance from zero.", "out": "丐七丸"} {"kind": "builder", "in": "丐七丸", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丐七丸", "out": "Take a list of integers; reverse the order, then keep the positive numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each by two, then true only if all are positive.", "out": "久丈乌"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then double each item in the list, then do all of these have positive values.", "out": "久丈乌"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then multiply each by two, then check if every value is positive.", "out": "久丈乌"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then double each item in the list, then confirm all values are positive.", "out": "久丈乌"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then multiply each by two, then all positive.", "out": "久丈乌"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then double each item in the list, then check if every number is above zero.", "out": "久丈乌"} {"kind": "builder", "in": "久丈乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "久丈乌", "out": "Take a list of integers; keep everything before the first zero, then double each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep the leading run of positive numbers, then put the elements backwards.", "out": "不乂丐"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then take values while they are positive, then reverse that for me.", "out": "不乂丐"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take positive values then stop, then flip it backwards.", "out": "不乂丐"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep going while positive, then make it backwards.", "out": "不乂丐"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then stop at first non positive, then reverse the list.", "out": "不乂丐"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take while greater than zero, then invert the sequence.", "out": "不乂丐"} {"kind": "builder", "in": "不乂丐", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "不乂丐", "out": "Take a list of integers; subtract one from each, then take values while they are positive, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep the leading run of positive numbers, then take values up to (excluding) the first zero.", "out": "为乂久"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then take values while they are positive, then keep the part before the first 0.", "out": "为乂久"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take positive values then stop, then truncate at the first zero.", "out": "为乂久"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep going while positive, then delete everything starting with the first zero.", "out": "为乂久"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then stop at first non positive, then remove from the first zero onwards.", "out": "为乂久"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take while greater than zero, then up to but not including the first zero.", "out": "为乂久"} {"kind": "builder", "in": "为乂久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "为乂久", "out": "Take a list of integers; drop the first and last elements, then take values while they are positive, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements, then multiply each by -1.", "out": "义丹与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three, then negate.", "out": "义丹与"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements, then multiply each by -1.", "out": "义丹与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three, then negate.", "out": "义丹与"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items, then multiply each by -1.", "out": "义丹与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three, then negate.", "out": "义丹与"} {"kind": "builder", "in": "义丹与", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "义丹与", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increase every value by 10, then deduplicate the list.", "out": "世丽且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then add 10 to each item, then remove repeats.", "out": "世丽且"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then shift each up by ten, then deduplicate the list.", "out": "世丽且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then increase all numbers by 10, then remove repeats.", "out": "世丽且"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then add 10 to everything, then deduplicate the list.", "out": "世丽且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give everything a boost of 10, then remove repeats.", "out": "世丽且"} {"kind": "builder", "in": "世丽且", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "世丽且", "out": "Take a list of integers; drop the first element, then add ten to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then drop non-positive values.", "out": "丕丸七"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then drop the negative numbers.", "out": "丕丸七"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then filter out the negative ones.", "out": "丕丸七"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then remove all negative values.", "out": "丕丸七"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then keep positive values only.", "out": "丕丸七"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then keep values above zero.", "out": "丕丸七"} {"kind": "builder", "in": "丕丸七", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丕丸七", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then keep only non-empty strings, then return them as one comma-separated string.", "out": "严两中"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then filter empty strings, then separate by comma.", "out": "严两中"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then remove empty strings from the list, then join with commas.", "out": "严两中"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then clean up empty strings, then comma join.", "out": "严两中"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then delete empty entries, then combine using commas.", "out": "严两中"} {"kind": "speaker", "in": "Take a list of strings; length sort, then drop empty strings, then connect with commas between each item.", "out": "严两中"} {"kind": "builder", "in": "严两中", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s for s in r if s]\n return ','.join(r)"} {"kind": "translator", "in": "严两中", "out": "Take a list of strings; sort by length, shortest first, then drop empty strings, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then skip negatives at the start, then drop non-negative values.", "out": "丸乃万"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove all negatives at the front, then drop all positive numbers.", "out": "丸乃万"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the initial run of negative numbers, then drop non-negative values.", "out": "丸乃万"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then strip the front negatives, then drop all positive numbers.", "out": "丸乃万"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove leading negative numbers, then drop non-negative values.", "out": "丸乃万"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then drop negatives from start, then drop all positive numbers.", "out": "丸乃万"} {"kind": "builder", "in": "丸乃万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丸乃万", "out": "Take a list of integers; sort by absolute value, then drop the leading negative values, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort smallest to largest, then make each twice as big.", "out": "主丑丈"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Ascending sort, then multiply each by 2.", "out": "主丑丈"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then Sort this ascending, then make each twice as big.", "out": "主丑丈"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Sort lowest to highest, then multiply each by 2.", "out": "主丑丈"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Arrange from smallest to largest, then make each twice as big.", "out": "主丑丈"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort ascending, then multiply each by 2.", "out": "主丑丈"} {"kind": "builder", "in": "主丑丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "主丑丈", "out": "Take a list of integers; keep values greater than five, then sort ascending, then double each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then skip negatives at the start, then truncate to the last three items.", "out": "不乃丹"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove all negatives at the front, then show only the last three.", "out": "不乃丹"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the initial run of negative numbers, then remove all but the last three.", "out": "不乃丹"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then strip the front negatives, then take the final 3 elements.", "out": "不乃丹"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove leading negative numbers, then drop everything except the final three.", "out": "不乃丹"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then drop negatives from start, then give me the last three elements.", "out": "不乃丹"} {"kind": "builder", "in": "不乃丹", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "不乃丹", "out": "Take a list of integers; subtract one from each, then drop the leading negative values, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values below zero, then arrange by magnitude ignoring sign.", "out": "乃万丸"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then get the negative numbers, then put them in order by magnitude.", "out": "乃万丸"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep values below zero, then arrange in order of absolute value.", "out": "乃万丸"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then get the negative numbers, then sort by distance from zero.", "out": "乃万丸"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep values below zero, then order by how far from zero.", "out": "乃万丸"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the negative numbers, then order by distance from zero.", "out": "乃万丸"} {"kind": "builder", "in": "乃万丸", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "乃万丸", "out": "Take a list of integers; drop the leading negative values, then keep the negative numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the sign of each, then true if already sorted smallest to largest.", "out": "丑与乎"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then turn positives to negatives and vice versa, then does this list go in ascending order.", "out": "丑与乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then flip the sign of each, then check if the list is in ascending order.", "out": "丑与乎"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn positives to negatives and vice versa, then is the list sorted.", "out": "丑与乎"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip the sign of each, then is it sorted.", "out": "丑与乎"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then turn positives to negatives and vice versa, then check if values are in increasing order.", "out": "丑与乎"} {"kind": "builder", "in": "丑与乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [-x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丑与乎", "out": "Take a list of integers; sort ascending, then negate each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then drop anything 5 or below, then trim one element off each end.", "out": "丽主为"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep only numbers greater than 5, then cut off the first and last.", "out": "丽主为"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then filter for numbers above 5, then remove the first and last elements.", "out": "丽主为"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then give me values where x is greater than 5, then keep only the middle part.", "out": "丽主为"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then show me only the values that are bigger than five, then drop first and last.", "out": "丽主为"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep values greater than five, then eliminate the outermost elements.", "out": "丽主为"} {"kind": "builder", "in": "丽主为", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丽主为", "out": "Take a list of integers; add ten to each, then keep values greater than five, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then sort smallest to largest, then find the max, defaulting to 0.", "out": "七丑业"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Ascending sort, then Give me the maximum, but 0 if there are no items.", "out": "七丑业"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then Sort this ascending, then What's the highest number in the list.", "out": "七丑业"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Sort lowest to highest, then Return the greatest value or default to 0.", "out": "七丑业"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Arrange from smallest to largest, then Find the largest element, defaulting to zero.", "out": "七丑业"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort ascending, then give the largest value (0 if none).", "out": "七丑业"} {"kind": "builder", "in": "七丑业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r)\n return max(r) if r else 0"} {"kind": "translator", "in": "七丑业", "out": "Take a list of integers; keep the positive numbers, then sort ascending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then find the max, defaulting to 0.", "out": "乂丕业"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then Give me the maximum, but 0 if there are no items.", "out": "乂丕业"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then What's the highest number in the list.", "out": "乂丕业"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then Return the greatest value or default to 0.", "out": "乂丕业"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then Find the largest element, defaulting to zero.", "out": "乂丕业"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then give the largest value (0 if none).", "out": "乂丕业"} {"kind": "builder", "in": "乂丕业", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return max(r) if r else 0"} {"kind": "translator", "in": "乂丕业", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the list around, then shift each up by ten.", "out": "世丐丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then flip the order around, then increase all numbers by 10.", "out": "世丐丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then put the elements backwards, then add 10 to everything.", "out": "世丐丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then reverse that for me, then give everything a boost of 10.", "out": "世丐丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip it backwards, then increment each by ten.", "out": "世丐丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then make it backwards, then add a constant 10 to each.", "out": "世丐丽"} {"kind": "builder", "in": "世丐丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "世丐丽", "out": "Take a list of integers; drop the first element, then reverse the order, then add ten to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then drop non-negative values.", "out": "九么万"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then drop all positive numbers.", "out": "九么万"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then drop non-negative values.", "out": "九么万"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then drop all positive numbers.", "out": "九么万"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then drop non-negative values.", "out": "九么万"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then drop all positive numbers.", "out": "九么万"} {"kind": "builder", "in": "九么万", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "九么万", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the final 3 elements, then arrange in increasing order.", "out": "丽丹丑"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then drop everything except the final three, then Organize these ascending.", "out": "丽丹丑"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then give me the last three elements, then Sort in ascending order.", "out": "丽丹丑"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep only the last three, then I need this sorted ascending.", "out": "丽丹丑"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep the final three items, then Put these in ascending order.", "out": "丽丹丑"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the last three, then sort smallest to largest.", "out": "丽丹丑"} {"kind": "builder", "in": "丽丹丑", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[-3:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丽丹丑", "out": "Take a list of integers; add ten to each, then keep only the last three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; square each, then increase every value by 10, then drop non-negative values.", "out": "上丽万"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then add 10 to each item, then drop all positive numbers.", "out": "上丽万"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then shift each up by ten, then drop non-negative values.", "out": "上丽万"} {"kind": "speaker", "in": "Take a list of integers; square them all, then increase all numbers by 10, then drop all positive numbers.", "out": "上丽万"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then add 10 to everything, then drop non-negative values.", "out": "上丽万"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then give everything a boost of 10, then drop all positive numbers.", "out": "上丽万"} {"kind": "builder", "in": "上丽万", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "上丽万", "out": "Take a list of integers; square each, then add ten to each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "七丘义"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "七丘义"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "七丘义"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "七丘义"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "七丘义"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "七丘义"} {"kind": "builder", "in": "七丘义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "七丘义", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the leading run of positive numbers, then strip the signs.", "out": "一乂丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take values while they are positive, then take abs of each.", "out": "一乂丏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take positive values then stop, then get the absolute value of everything.", "out": "一乂丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep going while positive, then apply absolute value to the whole list.", "out": "一乂丏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then stop at first non positive, then make them all positive.", "out": "一乂丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take while greater than zero, then make every value non-negative.", "out": "一乂丏"} {"kind": "builder", "in": "一乂丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "一乂丏", "out": "Take a list of integers; keep the even numbers, then take values while they are positive, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then order by distance from zero, then true if already sorted smallest to largest.", "out": "丈丸乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort based on absolute value, then does this list go in ascending order.", "out": "丈丸乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then organize by magnitude, then check if the list is in ascending order.", "out": "丈丸乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then arrange by absolute value ascending, then is the list sorted.", "out": "丈丸乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from smallest to largest absolute value, then is it sorted.", "out": "丈丸乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by absolute value, then check if values are in increasing order.", "out": "丈丸乎"} {"kind": "builder", "in": "丈丸乎", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return r == sorted(r)"} {"kind": "translator", "in": "丈丸乎", "out": "Take a list of integers; double each, then sort by absolute value, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then default to [0] when there is nothing, then truncate to three items.", "out": "一么丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then when the list is empty, substitute a zero value, then show the first three.", "out": "一么丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then replace an empty list with one zero, then take the first three.", "out": "一么丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then zero it out if it's empty, then keep first 3.", "out": "一么丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then use zero if the list is empty, then truncate to first three.", "out": "一么丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then default to zero when empty, then first three.", "out": "一么丕"} {"kind": "builder", "in": "一么丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r if r else [0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "一么丕", "out": "Take a list of integers; keep the even numbers, then if empty, use a single zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then order by distance from zero, then reduce each by one.", "out": "义丸不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort based on absolute value, then Subtract 1 from all.", "out": "义丸不"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then organize by magnitude, then Subtract one from each.", "out": "义丸不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then arrange by absolute value ascending, then Drop each by one.", "out": "义丸不"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from smallest to largest absolute value, then Decrease all values by one.", "out": "义丸不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by absolute value, then Remove one from each value.", "out": "义丸不"} {"kind": "builder", "in": "义丸不", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "义丸不", "out": "Take a list of integers; pad with zeros to at least three elements, then sort by absolute value, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then decrement each value, then true if already sorted smallest to largest.", "out": "七不乎"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Lower each number by one, then does this list go in ascending order.", "out": "七不乎"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then reduce each by one, then check if the list is in ascending order.", "out": "七不乎"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Subtract 1 from all, then is the list sorted.", "out": "七不乎"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Subtract one from each, then is it sorted.", "out": "七不乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Drop each by one, then check if values are in increasing order.", "out": "七不乎"} {"kind": "builder", "in": "七不乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x - 1 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "七不乎", "out": "Take a list of integers; keep the positive numbers, then subtract one from each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the final 3 elements, then true if at least one even value.", "out": "丈丹之"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop everything except the final three, then any even.", "out": "丈丹之"} {"kind": "speaker", "in": "Take a list of integers; double each, then give me the last three elements, then true if at least one even value.", "out": "丈丹之"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the last three, then any even.", "out": "丈丹之"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the final three items, then true if at least one even value.", "out": "丈丹之"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the last three, then any even.", "out": "丈丹之"} {"kind": "builder", "in": "丈丹之", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[-3:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丈丹之", "out": "Take a list of integers; double each, then keep only the last three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then replace an empty list with one zero.", "out": "一丘么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then zero it out if it's empty.", "out": "一丘么"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then use zero if the list is empty.", "out": "一丘么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then default to zero when empty.", "out": "一丘么"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then if there's nothing, put in a zero.", "out": "一丘么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then if no items, add a zero.", "out": "一丘么"} {"kind": "builder", "in": "一丘么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [min(x, 10) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "一丘么", "out": "Take a list of integers; keep the even numbers, then cap each value at 10, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort smallest to largest, then limit every value to 10.", "out": "九丑丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Ascending sort, then maximum of 10 for all.", "out": "九丑丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then Sort this ascending, then limit every value to 10.", "out": "九丑丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Sort lowest to highest, then maximum of 10 for all.", "out": "九丑丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Arrange from smallest to largest, then limit every value to 10.", "out": "九丑丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort ascending, then maximum of 10 for all.", "out": "九丑丘"} {"kind": "builder", "in": "九丑丘", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "九丑丘", "out": "Take a list of people records (name, age); extract the ages, then sort ascending, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep the leading run of positive numbers, then drop non-negative values.", "out": "丸乂万"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then take values while they are positive, then drop all positive numbers.", "out": "丸乂万"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take positive values then stop, then drop non-negative values.", "out": "丸乂万"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep going while positive, then drop all positive numbers.", "out": "丸乂万"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then stop at first non positive, then drop non-negative values.", "out": "丸乂万"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take while greater than zero, then drop all positive numbers.", "out": "丸乂万"} {"kind": "builder", "in": "丸乂万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丸乂万", "out": "Take a list of integers; sort by absolute value, then take values while they are positive, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the list around, then true if at least one even value.", "out": "丸丐之"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then flip the order around, then any even.", "out": "丸丐之"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then put the elements backwards, then true if at least one even value.", "out": "丸丐之"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then reverse that for me, then any even.", "out": "丸丐之"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip it backwards, then true if at least one even value.", "out": "丸丐之"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then make it backwards, then any even.", "out": "丸丐之"} {"kind": "builder", "in": "丸丐之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(reversed(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丸丐之", "out": "Take a list of integers; sort by absolute value, then reverse the order, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then true if already sorted smallest to largest.", "out": "九与乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then does this list go in ascending order.", "out": "九与乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then check if the list is in ascending order.", "out": "九与乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then is the list sorted.", "out": "九与乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then is it sorted.", "out": "九与乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then check if values are in increasing order.", "out": "九与乎"} {"kind": "builder", "in": "九与乎", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "九与乎", "out": "Take a list of people records (name, age); extract the ages, then negate each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove the first item, then true only if all are positive.", "out": "么世乌"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Remove head, then do all of these have positive values.", "out": "么世乌"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the first item, then check if every value is positive.", "out": "么世乌"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Remove head, then confirm all values are positive.", "out": "么世乌"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first item, then all positive.", "out": "么世乌"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Remove head, then check if every number is above zero.", "out": "么世乌"} {"kind": "builder", "in": "么世乌", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "么世乌", "out": "Take a list of integers; if empty, use a single zero, then drop the first element, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then ensure at least three items by appending zeros.", "out": "下丽义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then ensure minimum length of three by adding zeros to the end.", "out": "下丽义"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then ensure at least three items by appending zeros.", "out": "下丽义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then ensure minimum length of three by adding zeros to the end.", "out": "下丽义"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then ensure at least three items by appending zeros.", "out": "下丽义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then ensure minimum length of three by adding zeros to the end.", "out": "下丽义"} {"kind": "builder", "in": "下丽义", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "下丽义", "out": "Take a list of integers; add one to each, then add ten to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove the first item, then drop the even numbers.", "out": "七世丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Remove head, then strip out the evens.", "out": "七世丁"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the first item, then drop the even numbers.", "out": "七世丁"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Remove head, then strip out the evens.", "out": "七世丁"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first item, then drop the even numbers.", "out": "七世丁"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Remove head, then strip out the evens.", "out": "七世丁"} {"kind": "builder", "in": "七世丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "七世丁", "out": "Take a list of integers; keep the positive numbers, then drop the first element, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then order by distance from zero, then arrange in increasing order.", "out": "丹丸丑"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort based on absolute value, then Organize these ascending.", "out": "丹丸丑"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then organize by magnitude, then Sort in ascending order.", "out": "丹丸丑"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then arrange by absolute value ascending, then I need this sorted ascending.", "out": "丹丸丑"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort from smallest to largest absolute value, then Put these in ascending order.", "out": "丹丸丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort by absolute value, then sort smallest to largest.", "out": "丹丸丑"} {"kind": "builder", "in": "丹丸丑", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, key=abs)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丹丸丑", "out": "Take a list of integers; keep only the last three, then sort by absolute value, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then flip the sign of each, then true if already sorted smallest to largest.", "out": "专与乎"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then turn positives to negatives and vice versa, then does this list go in ascending order.", "out": "专与乎"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then flip the sign of each, then check if the list is in ascending order.", "out": "专与乎"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then turn positives to negatives and vice versa, then is the list sorted.", "out": "专与乎"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then flip the sign of each, then is it sorted.", "out": "专与乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then turn positives to negatives and vice versa, then check if values are in increasing order.", "out": "专与乎"} {"kind": "builder", "in": "专与乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [-x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "专与乎", "out": "Take a list of integers; sort descending, then negate each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the list around, then drop anything not divisible by three.", "out": "不丐串"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then flip the order around, then filter out everything except multiples of three.", "out": "不丐串"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then put the elements backwards, then keep only multiples of three.", "out": "不丐串"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then reverse that for me, then multiples of three only.", "out": "不丐串"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip it backwards, then filter for numbers divisible by three.", "out": "不丐串"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then make it backwards, then give me only the values divisible by three.", "out": "不丐串"} {"kind": "builder", "in": "不丐串", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "不丐串", "out": "Take a list of integers; subtract one from each, then reverse the order, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then extend to length 3 using zeros, then give back the total.", "out": "丸义丙"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then pad to 3, then sum r.", "out": "丸义丙"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then extend to length 3 using zeros, then add them up.", "out": "丸义丙"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then pad to 3, then calculate the sum of all elements.", "out": "丸义丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then extend to length 3 using zeros, then what's the total.", "out": "丸义丙"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then pad to 3, then what do they add up to.", "out": "丸义丙"} {"kind": "builder", "in": "丸义丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return sum(r)"} {"kind": "translator", "in": "丸义丙", "out": "Take a list of integers; sort by absolute value, then pad with zeros to at least three elements, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove the first item, then arrange by magnitude ignoring sign.", "out": "上世丸"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Remove head, then put them in order by magnitude.", "out": "上世丸"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the first item, then arrange in order of absolute value.", "out": "上世丸"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Remove head, then sort by distance from zero.", "out": "上世丸"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove the first item, then order by how far from zero.", "out": "上世丸"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then Remove head, then order by distance from zero.", "out": "上世丸"} {"kind": "builder", "in": "上世丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[1:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "上世丸", "out": "Take a list of integers; square each, then drop the first element, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then keep only non-zero numbers.", "out": "为万举"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then strip the zeros.", "out": "为万举"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then keep only non-zero numbers.", "out": "为万举"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then strip the zeros.", "out": "为万举"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then keep only non-zero numbers.", "out": "为万举"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then strip the zeros.", "out": "为万举"} {"kind": "builder", "in": "为万举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "为万举", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increase every value by 10, then truncate to the last three items.", "out": "为丽丹"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then add 10 to each item, then show only the last three.", "out": "为丽丹"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then shift each up by ten, then remove all but the last three.", "out": "为丽丹"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then increase all numbers by 10, then take the final 3 elements.", "out": "为丽丹"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then add 10 to everything, then drop everything except the final three.", "out": "为丽丹"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then give everything a boost of 10, then give me the last three elements.", "out": "为丽丹"} {"kind": "builder", "in": "为丽丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 10 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "为丽丹", "out": "Take a list of integers; drop the first and last elements, then add ten to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values below zero, then arrange by magnitude ignoring sign.", "out": "久万丸"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then get the negative numbers, then put them in order by magnitude.", "out": "久万丸"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep values below zero, then arrange in order of absolute value.", "out": "久万丸"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then get the negative numbers, then sort by distance from zero.", "out": "久万丸"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep values below zero, then order by how far from zero.", "out": "久万丸"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then get the negative numbers, then order by distance from zero.", "out": "久万丸"} {"kind": "builder", "in": "久万丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "久万丸", "out": "Take a list of integers; keep everything before the first zero, then keep the negative numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values below zero, then bump each up by one.", "out": "不万下"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then get the negative numbers, then increment each item.", "out": "不万下"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep values below zero, then bump each up by one.", "out": "不万下"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the negative numbers, then increment each item.", "out": "不万下"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep values below zero, then bump each up by one.", "out": "不万下"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the negative numbers, then increment each item.", "out": "不万下"} {"kind": "builder", "in": "不万下", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "不万下", "out": "Take a list of integers; subtract one from each, then keep the negative numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then skip negatives at the start, then give the earliest even value or zero.", "out": "么乃乒"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove all negatives at the front, then fetch the first even element, default to 0.", "out": "么乃乒"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the initial run of negative numbers, then give the earliest even value or zero.", "out": "么乃乒"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then strip the front negatives, then fetch the first even element, default to 0.", "out": "么乃乒"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove leading negative numbers, then give the earliest even value or zero.", "out": "么乃乒"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then drop negatives from start, then fetch the first even element, default to 0.", "out": "么乃乒"} {"kind": "builder", "in": "么乃乒", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "么乃乒", "out": "Take a list of integers; if empty, use a single zero, then drop the leading negative values, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove both ends, then drop anything not divisible by three.", "out": "一为串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then trim the edges, then filter out everything except multiples of three.", "out": "一为串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then trim one element off each end, then keep only multiples of three.", "out": "一为串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off the first and last, then multiples of three only.", "out": "一为串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first and last elements, then filter for numbers divisible by three.", "out": "一为串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the middle part, then give me only the values divisible by three.", "out": "一为串"} {"kind": "builder", "in": "一为串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "一为串", "out": "Take a list of integers; keep the even numbers, then drop the first and last elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the leading run of positive numbers, then count the elements.", "out": "世乂东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take values while they are positive, then how many items remain.", "out": "世乂东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take positive values then stop, then tell me the length.", "out": "世乂东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep going while positive, then return the length.", "out": "世乂东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then stop at first non positive, then count them.", "out": "世乂东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take while greater than zero, then what's the count.", "out": "世乂东"} {"kind": "builder", "in": "世乂东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return len(r)"} {"kind": "translator", "in": "世乂东", "out": "Take a list of integers; drop the first element, then take values while they are positive, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then multiply each value by itself, then drop anything not divisible by three.", "out": "丹上串"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then square them all, then filter out everything except multiples of three.", "out": "丹上串"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then raise each to the power of two, then keep only multiples of three.", "out": "丹上串"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then I need each number multiplied by itself, then multiples of three only.", "out": "丹上串"} {"kind": "speaker", "in": "Take a list of integers; last three only, then square all of them, then filter for numbers divisible by three.", "out": "丹上串"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiply each element by itself, then give me only the values divisible by three.", "out": "丹上串"} {"kind": "builder", "in": "丹上串", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丹上串", "out": "Take a list of integers; keep only the last three, then square each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then keep only numbers above 5.", "out": "万世主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then exclude values of 5 and below.", "out": "万世主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then remove anything 5 or less.", "out": "万世主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then filter to keep only values above 5.", "out": "万世主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then get rid of values that aren't greater than five.", "out": "万世主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then drop anything 5 or below.", "out": "万世主"} {"kind": "builder", "in": "万世主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "万世主", "out": "Take a list of integers; keep the negative numbers, then drop the first element, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the sign of each, then keep only numbers above 5.", "out": "丏与主"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then turn positives to negatives and vice versa, then exclude values of 5 and below.", "out": "丏与主"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then flip the sign of each, then remove anything 5 or less.", "out": "丏与主"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then turn positives to negatives and vice versa, then filter to keep only values above 5.", "out": "丏与主"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip the sign of each, then get rid of values that aren't greater than five.", "out": "丏与主"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then turn positives to negatives and vice versa, then drop anything 5 or below.", "out": "丏与主"} {"kind": "builder", "in": "丏与主", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丏与主", "out": "Take a list of integers; take the absolute value of each, then negate each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then raise each to the power of two.", "out": "丁丘上"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then I need each number multiplied by itself.", "out": "丁丘上"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then square all of them.", "out": "丁丘上"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then multiply each element by itself.", "out": "丁丘上"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then make each one squared.", "out": "丁丘上"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then square each value in the list.", "out": "丁丘上"} {"kind": "builder", "in": "丁丘上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [min(x, 10) for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丁丘上", "out": "Take a list of integers; keep the odd numbers, then cap each value at 10, then square each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove both ends, then drop the odd numbers.", "out": "丽为一"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then trim the edges, then filter out the odd numbers.", "out": "丽为一"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then trim one element off each end, then drop the odd numbers.", "out": "丽为一"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then cut off the first and last, then filter out the odd numbers.", "out": "丽为一"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first and last elements, then drop the odd numbers.", "out": "丽为一"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep only the middle part, then filter out the odd numbers.", "out": "丽为一"} {"kind": "builder", "in": "丽为一", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丽为一", "out": "Take a list of integers; add ten to each, then drop the first and last elements, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values below zero, then limit every value to 10.", "out": "久万丘"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then get the negative numbers, then maximum of 10 for all.", "out": "久万丘"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep values below zero, then limit every value to 10.", "out": "久万丘"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then get the negative numbers, then maximum of 10 for all.", "out": "久万丘"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep values below zero, then limit every value to 10.", "out": "久万丘"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then get the negative numbers, then maximum of 10 for all.", "out": "久万丘"} {"kind": "builder", "in": "久万丘", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "久万丘", "out": "Take a list of integers; keep everything before the first zero, then keep the negative numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then multiply each by two, then trim one element off each end.", "out": "九丈为"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then double each item in the list, then cut off the first and last.", "out": "九丈为"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then multiply each by two, then remove the first and last elements.", "out": "九丈为"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then double each item in the list, then keep only the middle part.", "out": "九丈为"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then multiply each by two, then drop first and last.", "out": "九丈为"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then double each item in the list, then eliminate the outermost elements.", "out": "九丈为"} {"kind": "builder", "in": "九丈为", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x * 2 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "九丈为", "out": "Take a list of people records (name, age); extract the ages, then double each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then drop anything 5 or below, then keep only non-zero numbers.", "out": "丸主举"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep only numbers greater than 5, then strip the zeros.", "out": "丸主举"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then filter for numbers above 5, then keep only non-zero numbers.", "out": "丸主举"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then give me values where x is greater than 5, then strip the zeros.", "out": "丸主举"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then show me only the values that are bigger than five, then keep only non-zero numbers.", "out": "丸主举"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep values greater than five, then strip the zeros.", "out": "丸主举"} {"kind": "builder", "in": "丸主举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丸主举", "out": "Take a list of integers; sort by absolute value, then keep values greater than five, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove both ends, then true if any value equals zero.", "out": "丹为乍"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then trim the edges, then check for zero.", "out": "丹为乍"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then trim one element off each end, then true if any value equals zero.", "out": "丹为乍"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then cut off the first and last, then check for zero.", "out": "丹为乍"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first and last elements, then true if any value equals zero.", "out": "丹为乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep only the middle part, then check for zero.", "out": "丹为乍"} {"kind": "builder", "in": "丹为乍", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:-1]\n return 0 in r"} {"kind": "translator", "in": "丹为乍", "out": "Take a list of integers; keep only the last three, then drop the first and last elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values above zero, then true if any value equals zero.", "out": "丽七乍"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then filter for positive numbers, then check for zero.", "out": "丽七乍"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only positive numbers, then true if any value equals zero.", "out": "丽七乍"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the positives, then check for zero.", "out": "丽七乍"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove negatives, then true if any value equals zero.", "out": "丽七乍"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep the positive numbers, then check for zero.", "out": "丽七乍"} {"kind": "builder", "in": "丽七乍", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n return 0 in r"} {"kind": "translator", "in": "丽七乍", "out": "Take a list of integers; add ten to each, then keep the positive numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then order by distance from zero, then find the max, defaulting to 0.", "out": "上丸业"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort based on absolute value, then Give me the maximum, but 0 if there are no items.", "out": "上丸业"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then organize by magnitude, then What's the highest number in the list.", "out": "上丸业"} {"kind": "speaker", "in": "Take a list of integers; square them all, then arrange by absolute value ascending, then Return the greatest value or default to 0.", "out": "上丸业"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort from smallest to largest absolute value, then Find the largest element, defaulting to zero.", "out": "上丸业"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort by absolute value, then give the largest value (0 if none).", "out": "上丸业"} {"kind": "builder", "in": "上丸业", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n return max(r) if r else 0"} {"kind": "translator", "in": "上丸业", "out": "Take a list of integers; square each, then sort by absolute value, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then true if any value equals zero.", "out": "主世乍"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then check for zero.", "out": "主世乍"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then true if any value equals zero.", "out": "主世乍"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then check for zero.", "out": "主世乍"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then true if any value equals zero.", "out": "主世乍"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then check for zero.", "out": "主世乍"} {"kind": "builder", "in": "主世乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n return 0 in r"} {"kind": "translator", "in": "主世乍", "out": "Take a list of integers; keep values greater than five, then drop the first element, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep the leading run of positive numbers, then find the min, defaulting to 0.", "out": "为乂丛"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then take values while they are positive, then minimum value, zero otherwise.", "out": "为乂丛"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take positive values then stop, then get the minimum value or zero if empty.", "out": "为乂丛"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep going while positive, then give me the min or 0.", "out": "为乂丛"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then stop at first non positive, then return the smallest number, defaulting to 0.", "out": "为乂丛"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take while greater than zero, then return smallest or zero if empty.", "out": "为乂丛"} {"kind": "builder", "in": "为乂丛", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return min(r) if r else 0"} {"kind": "translator", "in": "为乂丛", "out": "Take a list of integers; drop the first and last elements, then take values while they are positive, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only odd values, then put the elements backwards.", "out": "么丁丐"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then eliminate the even numbers, then reverse that for me.", "out": "么丁丐"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only odd values, then flip it backwards.", "out": "么丁丐"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then eliminate the even numbers, then make it backwards.", "out": "么丁丐"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only odd values, then reverse the list.", "out": "么丁丐"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then eliminate the even numbers, then invert the sequence.", "out": "么丁丐"} {"kind": "builder", "in": "么丁丐", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "么丁丐", "out": "Take a list of integers; if empty, use a single zero, then keep the odd numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the sign of each, then truncate to the last three items.", "out": "乃与丹"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then turn positives to negatives and vice versa, then show only the last three.", "out": "乃与丹"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then flip the sign of each, then remove all but the last three.", "out": "乃与丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn positives to negatives and vice versa, then take the final 3 elements.", "out": "乃与丹"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip the sign of each, then drop everything except the final three.", "out": "乃与丹"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then turn positives to negatives and vice versa, then give me the last three elements.", "out": "乃与丹"} {"kind": "builder", "in": "乃与丹", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "乃与丹", "out": "Take a list of integers; drop the leading negative values, then negate each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; square each, then clamp each to at most ten, then shift each up by ten.", "out": "上丘丽"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then don't let anything exceed 10, then increase all numbers by 10.", "out": "上丘丽"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then clamp each to at most ten, then add 10 to everything.", "out": "上丘丽"} {"kind": "speaker", "in": "Take a list of integers; square them all, then don't let anything exceed 10, then give everything a boost of 10.", "out": "上丘丽"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then clamp each to at most ten, then increment each by ten.", "out": "上丘丽"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then don't let anything exceed 10, then add a constant 10 to each.", "out": "上丘丽"} {"kind": "builder", "in": "上丘丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "上丘丽", "out": "Take a list of integers; square each, then cap each value at 10, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increase every value by 10, then keep only non-zero numbers.", "out": "久丽举"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then add 10 to each item, then strip the zeros.", "out": "久丽举"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then shift each up by ten, then keep only non-zero numbers.", "out": "久丽举"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then increase all numbers by 10, then strip the zeros.", "out": "久丽举"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then add 10 to everything, then keep only non-zero numbers.", "out": "久丽举"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then give everything a boost of 10, then strip the zeros.", "out": "久丽举"} {"kind": "builder", "in": "久丽举", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "久丽举", "out": "Take a list of integers; keep everything before the first zero, then add ten to each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then order by distance from zero, then truncate to three items.", "out": "么丸丕"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then sort based on absolute value, then show the first three.", "out": "么丸丕"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then organize by magnitude, then take the first three.", "out": "么丸丕"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then arrange by absolute value ascending, then keep first 3.", "out": "么丸丕"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then sort from smallest to largest absolute value, then truncate to first three.", "out": "么丸丕"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort by absolute value, then first three.", "out": "么丸丕"} {"kind": "builder", "in": "么丸丕", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r, key=abs)\n r = r[:3]\n return r"} {"kind": "translator", "in": "么丸丕", "out": "Take a list of integers; if empty, use a single zero, then sort by absolute value, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the list around, then truncate to the last three items.", "out": "七丐丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then flip the order around, then show only the last three.", "out": "七丐丹"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then put the elements backwards, then remove all but the last three.", "out": "七丐丹"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then reverse that for me, then take the final 3 elements.", "out": "七丐丹"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip it backwards, then drop everything except the final three.", "out": "七丐丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then make it backwards, then give me the last three elements.", "out": "七丐丹"} {"kind": "builder", "in": "七丐丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(reversed(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "七丐丹", "out": "Take a list of integers; keep the positive numbers, then reverse the order, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove the first item, then truncate to the last three items.", "out": "丐世丹"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Remove head, then show only the last three.", "out": "丐世丹"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the first item, then remove all but the last three.", "out": "丐世丹"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Remove head, then take the final 3 elements.", "out": "丐世丹"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first item, then drop everything except the final three.", "out": "丐世丹"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then Remove head, then give me the last three elements.", "out": "丐世丹"} {"kind": "builder", "in": "丐世丹", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丐世丹", "out": "Take a list of integers; reverse the order, then drop the first element, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then decrement each value, then keep only numbers above 5.", "out": "丏不主"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Lower each number by one, then exclude values of 5 and below.", "out": "丏不主"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then reduce each by one, then remove anything 5 or less.", "out": "丏不主"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Subtract 1 from all, then filter to keep only values above 5.", "out": "丏不主"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Subtract one from each, then get rid of values that aren't greater than five.", "out": "丏不主"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Drop each by one, then drop anything 5 or below.", "out": "丏不主"} {"kind": "builder", "in": "丏不主", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丏不主", "out": "Take a list of integers; take the absolute value of each, then subtract one from each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start, then true if every value is unique.", "out": "专乃乏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front, then check for duplicates in the values.", "out": "专乃乏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers, then do all values appear only once.", "out": "专乃乏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives, then check that there are no duplicates.", "out": "专乃乏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers, then are the values all unique.", "out": "专乃乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start, then check if all values are unique.", "out": "专乃乏"} {"kind": "builder", "in": "专乃乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "专乃乏", "out": "Take a list of integers; sort descending, then drop the leading negative values, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increase every value by 10, then true if every value is unique.", "out": "丕丽乏"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add 10 to each item, then check for duplicates in the values.", "out": "丕丽乏"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then shift each up by ten, then do all values appear only once.", "out": "丕丽乏"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then increase all numbers by 10, then check that there are no duplicates.", "out": "丕丽乏"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add 10 to everything, then are the values all unique.", "out": "丕丽乏"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give everything a boost of 10, then check if all values are unique.", "out": "丕丽乏"} {"kind": "builder", "in": "丕丽乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 10 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丕丽乏", "out": "Take a list of integers; keep only the first three, then add ten to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then make every value non-negative, then drop the even numbers.", "out": "串丏丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then absolute value for all items, then strip out the evens.", "out": "串丏丁"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take absolute values, then drop the even numbers.", "out": "串丏丁"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn negatives into positives, then strip out the evens.", "out": "串丏丁"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then abs each element, then drop the even numbers.", "out": "串丏丁"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the absolute value of each, then strip out the evens.", "out": "串丏丁"} {"kind": "builder", "in": "串丏丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "串丏丁", "out": "Take a list of integers; keep multiples of three, then take the absolute value of each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each value by itself, then put the elements backwards.", "out": "专上丐"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then square them all, then reverse that for me.", "out": "专上丐"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then raise each to the power of two, then flip it backwards.", "out": "专上丐"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then I need each number multiplied by itself, then make it backwards.", "out": "专上丐"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then square all of them, then reverse the list.", "out": "专上丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiply each element by itself, then invert the sequence.", "out": "专上丐"} {"kind": "builder", "in": "专上丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "专上丐", "out": "Take a list of integers; sort descending, then square each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then skip negatives at the start, then find the min, defaulting to 0.", "out": "丹乃丛"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove all negatives at the front, then minimum value, zero otherwise.", "out": "丹乃丛"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the initial run of negative numbers, then get the minimum value or zero if empty.", "out": "丹乃丛"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then strip the front negatives, then give me the min or 0.", "out": "丹乃丛"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove leading negative numbers, then return the smallest number, defaulting to 0.", "out": "丹乃丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then drop negatives from start, then return smallest or zero if empty.", "out": "丹乃丛"} {"kind": "builder", "in": "丹乃丛", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return min(r) if r else 0"} {"kind": "translator", "in": "丹乃丛", "out": "Take a list of integers; keep only the last three, then drop the leading negative values, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then flip the list around, then true only if all are positive.", "out": "丕丐乌"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then flip the order around, then do all of these have positive values.", "out": "丕丐乌"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then put the elements backwards, then check if every value is positive.", "out": "丕丐乌"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then reverse that for me, then confirm all values are positive.", "out": "丕丐乌"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then flip it backwards, then all positive.", "out": "丕丐乌"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then make it backwards, then check if every number is above zero.", "out": "丕丐乌"} {"kind": "builder", "in": "丕丐乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = list(reversed(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丕丐乌", "out": "Take a list of integers; keep only the first three, then reverse the order, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort largest to smallest, then replace an empty list with one zero.", "out": "与专么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort by descending values, then zero it out if it's empty.", "out": "与专么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort from highest to lowest, then use zero if the list is empty.", "out": "与专么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort descending, then default to zero when empty.", "out": "与专么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort largest first, then if there's nothing, put in a zero.", "out": "与专么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort in descending order, then if no items, add a zero.", "out": "与专么"} {"kind": "builder", "in": "与专么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r, reverse=True)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与专么", "out": "Take a list of integers; negate each, then sort descending, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the leading run of positive numbers, then keep only numbers above 5.", "out": "丈乂主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take values while they are positive, then exclude values of 5 and below.", "out": "丈乂主"} {"kind": "speaker", "in": "Take a list of integers; double each, then take positive values then stop, then remove anything 5 or less.", "out": "丈乂主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep going while positive, then filter to keep only values above 5.", "out": "丈乂主"} {"kind": "speaker", "in": "Take a list of integers; double each, then stop at first non positive, then get rid of values that aren't greater than five.", "out": "丈乂主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take while greater than zero, then drop anything 5 or below.", "out": "丈乂主"} {"kind": "builder", "in": "丈乂主", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丈乂主", "out": "Take a list of integers; double each, then take values while they are positive, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values above zero, then truncate to three items.", "out": "主七丕"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then filter for positive numbers, then show the first three.", "out": "主七丕"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only positive numbers, then take the first three.", "out": "主七丕"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the positives, then keep first 3.", "out": "主七丕"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove negatives, then truncate to first three.", "out": "主七丕"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep the positive numbers, then first three.", "out": "主七丕"} {"kind": "builder", "in": "主七丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "主七丕", "out": "Take a list of integers; keep values greater than five, then keep the positive numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then skip negatives at the start, then multiply each by -1.", "out": "丹乃与"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove all negatives at the front, then negate.", "out": "丹乃与"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the initial run of negative numbers, then multiply each by -1.", "out": "丹乃与"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then strip the front negatives, then negate.", "out": "丹乃与"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove leading negative numbers, then multiply each by -1.", "out": "丹乃与"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then drop negatives from start, then negate.", "out": "丹乃与"} {"kind": "builder", "in": "丹乃与", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丹乃与", "out": "Take a list of integers; keep only the last three, then drop the leading negative values, then negate each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove all zero values, then drop non-negative values.", "out": "丐举万"} {"kind": "speaker", "in": "Take a list of integers; reverse, then exclude zeros, then drop all positive numbers.", "out": "丐举万"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove all zero values, then drop non-negative values.", "out": "丐举万"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then exclude zeros, then drop all positive numbers.", "out": "丐举万"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove all zero values, then drop non-negative values.", "out": "丐举万"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then exclude zeros, then drop all positive numbers.", "out": "丐举万"} {"kind": "builder", "in": "丐举万", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丐举万", "out": "Take a list of integers; reverse the order, then drop the zeros, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove both ends, then drop anything not divisible by three.", "out": "义为串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then trim the edges, then filter out everything except multiples of three.", "out": "义为串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then trim one element off each end, then keep only multiples of three.", "out": "义为串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off the first and last, then multiples of three only.", "out": "义为串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first and last elements, then filter for numbers divisible by three.", "out": "义为串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the middle part, then give me only the values divisible by three.", "out": "义为串"} {"kind": "builder", "in": "义为串", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "义为串", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the first and last elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value, then drop the odd numbers.", "out": "串下一"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all, then filter out the odd numbers.", "out": "串下一"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value, then drop the odd numbers.", "out": "串下一"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all, then filter out the odd numbers.", "out": "串下一"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value, then drop the odd numbers.", "out": "串下一"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all, then filter out the odd numbers.", "out": "串下一"} {"kind": "builder", "in": "串下一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "串下一", "out": "Take a list of integers; keep multiples of three, then add one to each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then give the number of evens.", "out": "世万乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then find how many values are divisible by two.", "out": "世万乓"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then how many are even.", "out": "世万乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then get the total number of even values in the list.", "out": "世万乓"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then give me the count of even values.", "out": "世万乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then I need to know how many of these are even.", "out": "世万乓"} {"kind": "builder", "in": "世万乓", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x < 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "世万乓", "out": "Take a list of integers; drop the first element, then keep the negative numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort smallest to largest, then true if at least one even value.", "out": "丏丑之"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Ascending sort, then any even.", "out": "丏丑之"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then Sort this ascending, then true if at least one even value.", "out": "丏丑之"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Sort lowest to highest, then any even.", "out": "丏丑之"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Arrange from smallest to largest, then true if at least one even value.", "out": "丏丑之"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort ascending, then any even.", "out": "丏丑之"} {"kind": "builder", "in": "丏丑之", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丏丑之", "out": "Take a list of integers; take the absolute value of each, then sort ascending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then clamp each to at most ten, then true if already sorted smallest to largest.", "out": "丐丘乎"} {"kind": "speaker", "in": "Take a list of integers; reverse, then don't let anything exceed 10, then does this list go in ascending order.", "out": "丐丘乎"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then clamp each to at most ten, then check if the list is in ascending order.", "out": "丐丘乎"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then don't let anything exceed 10, then is the list sorted.", "out": "丐丘乎"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then clamp each to at most ten, then is it sorted.", "out": "丐丘乎"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then don't let anything exceed 10, then check if values are in increasing order.", "out": "丐丘乎"} {"kind": "builder", "in": "丐丘乎", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丐丘乎", "out": "Take a list of integers; reverse the order, then cap each value at 10, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only even values, then shift each up by ten.", "out": "上一丽"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then extract all even numbers, then increase all numbers by 10.", "out": "上一丽"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only even values, then add 10 to everything.", "out": "上一丽"} {"kind": "speaker", "in": "Take a list of integers; square them all, then extract all even numbers, then give everything a boost of 10.", "out": "上一丽"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only even values, then increment each by ten.", "out": "上一丽"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then extract all even numbers, then add a constant 10 to each.", "out": "上一丽"} {"kind": "builder", "in": "上一丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "上一丽", "out": "Take a list of integers; square each, then keep the even numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then truncate to three items.", "out": "义乂丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then show the first three.", "out": "义乂丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then take the first three.", "out": "义乂丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then keep first 3.", "out": "义乂丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then truncate to first three.", "out": "义乂丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then first three.", "out": "义乂丕"} {"kind": "builder", "in": "义乂丕", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return r"} {"kind": "translator", "in": "义乂丕", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the final 3 elements, then strip the signs.", "out": "与丹丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop everything except the final three, then take abs of each.", "out": "与丹丏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give me the last three elements, then get the absolute value of everything.", "out": "与丹丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the last three, then apply absolute value to the whole list.", "out": "与丹丏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the final three items, then make them all positive.", "out": "与丹丏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the last three, then make every value non-negative.", "out": "与丹丏"} {"kind": "builder", "in": "与丹丏", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[-3:]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "与丹丏", "out": "Take a list of integers; negate each, then keep only the last three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then sort smallest to largest, then true if at least one even value.", "out": "久丑之"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Ascending sort, then any even.", "out": "久丑之"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then Sort this ascending, then true if at least one even value.", "out": "久丑之"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Sort lowest to highest, then any even.", "out": "久丑之"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Arrange from smallest to largest, then true if at least one even value.", "out": "久丑之"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort ascending, then any even.", "out": "久丑之"} {"kind": "builder", "in": "久丑之", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "久丑之", "out": "Take a list of integers; keep everything before the first zero, then sort ascending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then trim one element off each end.", "out": "义且为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then cut off the first and last.", "out": "义且为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then remove the first and last elements.", "out": "义且为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then keep only the middle part.", "out": "义且为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then drop first and last.", "out": "义且为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then eliminate the outermost elements.", "out": "义且为"} {"kind": "builder", "in": "义且为", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "义且为", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then give the number of evens.", "out": "不主乓"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then find how many values are divisible by two.", "out": "不主乓"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then how many are even.", "out": "不主乓"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then get the total number of even values in the list.", "out": "不主乓"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then give me the count of even values.", "out": "不主乓"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then I need to know how many of these are even.", "out": "不主乓"} {"kind": "builder", "in": "不主乓", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "不主乓", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then take the final 3 elements, then limit every value to 10.", "out": "专丹丘"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then drop everything except the final three, then maximum of 10 for all.", "out": "专丹丘"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then give me the last three elements, then limit every value to 10.", "out": "专丹丘"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep only the last three, then maximum of 10 for all.", "out": "专丹丘"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep the final three items, then limit every value to 10.", "out": "专丹丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the last three, then maximum of 10 for all.", "out": "专丹丘"} {"kind": "builder", "in": "专丹丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "专丹丘", "out": "Take a list of integers; sort descending, then keep only the last three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then default to [0] when there is nothing, then true if at least one even value.", "out": "举么之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then when the list is empty, substitute a zero value, then any even.", "out": "举么之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then replace an empty list with one zero, then true if at least one even value.", "out": "举么之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then zero it out if it's empty, then any even.", "out": "举么之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then use zero if the list is empty, then true if at least one even value.", "out": "举么之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then default to zero when empty, then any even.", "out": "举么之"} {"kind": "builder", "in": "举么之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "举么之", "out": "Take a list of integers; drop the zeros, then if empty, use a single zero, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then multiply each by -1.", "out": "一丁与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then negate.", "out": "一丁与"} {"kind": "builder", "in": "一丁与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "一丁与", "out": "Take a list of integers; keep the even numbers, then keep the odd numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each value by itself, then true if any value equals zero.", "out": "且上乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then square them all, then check for zero.", "out": "且上乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then raise each to the power of two, then true if any value equals zero.", "out": "且上乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then I need each number multiplied by itself, then check for zero.", "out": "且上乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then square all of them, then true if any value equals zero.", "out": "且上乍"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiply each element by itself, then check for zero.", "out": "且上乍"} {"kind": "builder", "in": "且上乍", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n return 0 in r"} {"kind": "translator", "in": "且上乍", "out": "Take a list of integers; drop duplicates keeping first occurrence, then square each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then strip the signs.", "out": "义乂丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then take abs of each.", "out": "义乂丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then get the absolute value of everything.", "out": "义乂丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then apply absolute value to the whole list.", "out": "义乂丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then make them all positive.", "out": "义乂丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then make every value non-negative.", "out": "义乂丏"} {"kind": "builder", "in": "义乂丏", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "义乂丏", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the first 3 elements, then keep only non-zero numbers.", "out": "丈丕举"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then remove everything after the third, then strip the zeros.", "out": "丈丕举"} {"kind": "speaker", "in": "Take a list of integers; double each, then truncate to three items, then keep only non-zero numbers.", "out": "丈丕举"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then show the first three, then strip the zeros.", "out": "丈丕举"} {"kind": "speaker", "in": "Take a list of integers; double each, then take the first three, then keep only non-zero numbers.", "out": "丈丕举"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep first 3, then strip the zeros.", "out": "丈丕举"} {"kind": "builder", "in": "丈丕举", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:3]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丈丕举", "out": "Take a list of integers; double each, then keep only the first three, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each value by itself, then skip the first one.", "out": "万上世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then square them all, then Discard the first element.", "out": "万上世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then raise each to the power of two, then skip the first one.", "out": "万上世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then I need each number multiplied by itself, then Discard the first element.", "out": "万上世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then square all of them, then skip the first one.", "out": "万上世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiply each element by itself, then Discard the first element.", "out": "万上世"} {"kind": "builder", "in": "万上世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x * x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "万上世", "out": "Take a list of integers; keep the negative numbers, then square each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then true if already sorted smallest to largest.", "out": "丘万乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then does this list go in ascending order.", "out": "丘万乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then check if the list is in ascending order.", "out": "丘万乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then is the list sorted.", "out": "丘万乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then is it sorted.", "out": "丘万乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then check if values are in increasing order.", "out": "丘万乎"} {"kind": "builder", "in": "丘万乎", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丘万乎", "out": "Take a list of integers; cap each value at 10, then keep the negative numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the final 3 elements, then drop non-negative values.", "out": "九丹万"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then drop everything except the final three, then drop all positive numbers.", "out": "九丹万"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then give me the last three elements, then drop non-negative values.", "out": "九丹万"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep only the last three, then drop all positive numbers.", "out": "九丹万"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep the final three items, then drop non-negative values.", "out": "九丹万"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the last three, then drop all positive numbers.", "out": "九丹万"} {"kind": "builder", "in": "九丹万", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[-3:]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "九丹万", "out": "Take a list of people records (name, age); extract the ages, then keep only the last three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each by two, then shift each up by ten.", "out": "不丈丽"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then double each item in the list, then increase all numbers by 10.", "out": "不丈丽"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then multiply each by two, then add 10 to everything.", "out": "不丈丽"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then double each item in the list, then give everything a boost of 10.", "out": "不丈丽"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then multiply each by two, then increment each by ten.", "out": "不丈丽"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then double each item in the list, then add a constant 10 to each.", "out": "不丈丽"} {"kind": "builder", "in": "不丈丽", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "不丈丽", "out": "Take a list of integers; subtract one from each, then double each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then stop at the first non-positive value.", "out": "为万乂"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then keep the leading run of positive numbers.", "out": "为万乂"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then take values while they are positive.", "out": "为万乂"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then take positive values then stop.", "out": "为万乂"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then keep going while positive.", "out": "为万乂"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then stop at first non positive.", "out": "为万乂"} {"kind": "builder", "in": "为万乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "为万乂", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each by two, then stop at the first non-positive value.", "out": "专丈乂"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then double each item in the list, then keep the leading run of positive numbers.", "out": "专丈乂"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then multiply each by two, then take values while they are positive.", "out": "专丈乂"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then double each item in the list, then take positive values then stop.", "out": "专丈乂"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then multiply each by two, then keep going while positive.", "out": "专丈乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then double each item in the list, then stop at first non positive.", "out": "专丈乂"} {"kind": "builder", "in": "专丈乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "专丈乂", "out": "Take a list of integers; sort descending, then double each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values above zero, then drop non-negative values.", "out": "下七万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter for positive numbers, then drop all positive numbers.", "out": "下七万"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only positive numbers, then drop non-negative values.", "out": "下七万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positives, then drop all positive numbers.", "out": "下七万"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove negatives, then drop non-negative values.", "out": "下七万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positive numbers, then drop all positive numbers.", "out": "下七万"} {"kind": "builder", "in": "下七万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "下七万", "out": "Take a list of integers; add one to each, then keep the positive numbers, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove all zero values, then count the elements.", "out": "丹举东"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then exclude zeros, then how many items remain.", "out": "丹举东"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove all zero values, then tell me the length.", "out": "丹举东"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then exclude zeros, then return the length.", "out": "丹举东"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove all zero values, then count them.", "out": "丹举东"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then exclude zeros, then what's the count.", "out": "丹举东"} {"kind": "builder", "in": "丹举东", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x != 0]\n return len(r)"} {"kind": "translator", "in": "丹举东", "out": "Take a list of integers; keep only the last three, then drop the zeros, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values divisible by 3, then strip the signs.", "out": "上串丏"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep items where x mod 3 equals zero, then take abs of each.", "out": "上串丏"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then drop anything not divisible by three, then get the absolute value of everything.", "out": "上串丏"} {"kind": "speaker", "in": "Take a list of integers; square them all, then filter out everything except multiples of three, then apply absolute value to the whole list.", "out": "上串丏"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only multiples of three, then make them all positive.", "out": "上串丏"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then multiples of three only, then make every value non-negative.", "out": "上串丏"} {"kind": "builder", "in": "上串丏", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "上串丏", "out": "Take a list of integers; square each, then keep multiples of three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values divisible by 3, then give the number of evens.", "out": "主串乓"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "主串乓"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then drop anything not divisible by three, then how many are even.", "out": "主串乓"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then filter out everything except multiples of three, then get the total number of even values in the list.", "out": "主串乓"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only multiples of three, then give me the count of even values.", "out": "主串乓"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiples of three only, then I need to know how many of these are even.", "out": "主串乓"} {"kind": "builder", "in": "主串乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "主串乓", "out": "Take a list of integers; keep values greater than five, then keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then true if at least one even value.", "out": "丁义之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then any even.", "out": "丁义之"} {"kind": "builder", "in": "丁义之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丁义之", "out": "Take a list of integers; keep the odd numbers, then pad with zeros to at least three elements, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values above zero, then give the number of evens.", "out": "举七乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter for positive numbers, then find how many values are divisible by two.", "out": "举七乓"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only positive numbers, then how many are even.", "out": "举七乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positives, then get the total number of even values in the list.", "out": "举七乓"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove negatives, then give me the count of even values.", "out": "举七乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positive numbers, then I need to know how many of these are even.", "out": "举七乓"} {"kind": "builder", "in": "举七乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "举七乓", "out": "Take a list of integers; drop the zeros, then keep the positive numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then order by distance from zero, then drop non-positive values.", "out": "丏丸七"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort based on absolute value, then drop the negative numbers.", "out": "丏丸七"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then organize by magnitude, then filter out the negative ones.", "out": "丏丸七"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then arrange by absolute value ascending, then remove all negative values.", "out": "丏丸七"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort from smallest to largest absolute value, then keep positive values only.", "out": "丏丸七"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort by absolute value, then keep values above zero.", "out": "丏丸七"} {"kind": "builder", "in": "丏丸七", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丏丸七", "out": "Take a list of integers; take the absolute value of each, then sort by absolute value, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then remove the initial run of negative numbers.", "out": "丘丈乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then strip the front negatives.", "out": "丘丈乃"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then remove leading negative numbers.", "out": "丘丈乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then drop negatives from start.", "out": "丘丈乃"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then strip negative values from the start.", "out": "丘丈乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then remove negatives before the first non-negative.", "out": "丘丈乃"} {"kind": "builder", "in": "丘丈乃", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * 2 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丘丈乃", "out": "Take a list of integers; cap each value at 10, then double each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then make every value non-negative, then true if already sorted smallest to largest.", "out": "乂丏乎"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then absolute value for all items, then does this list go in ascending order.", "out": "乂丏乎"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then take absolute values, then check if the list is in ascending order.", "out": "乂丏乎"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then turn negatives into positives, then is the list sorted.", "out": "乂丏乎"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then abs each element, then is it sorted.", "out": "乂丏乎"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the absolute value of each, then check if values are in increasing order.", "out": "乂丏乎"} {"kind": "builder", "in": "乂丏乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "乂丏乎", "out": "Take a list of integers; take values while they are positive, then take the absolute value of each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then put the elements backwards.", "out": "下丁丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then reverse that for me.", "out": "下丁丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then flip it backwards.", "out": "下丁丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then make it backwards.", "out": "下丁丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then reverse the list.", "out": "下丁丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then invert the sequence.", "out": "下丁丐"} {"kind": "builder", "in": "下丁丐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "下丁丐", "out": "Take a list of integers; add one to each, then keep the odd numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort largest to smallest, then arrange by magnitude ignoring sign.", "out": "主专丸"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort by descending values, then put them in order by magnitude.", "out": "主专丸"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then sort from highest to lowest, then arrange in order of absolute value.", "out": "主专丸"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then sort descending, then sort by distance from zero.", "out": "主专丸"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort largest first, then order by how far from zero.", "out": "主专丸"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort in descending order, then order by distance from zero.", "out": "主专丸"} {"kind": "builder", "in": "主专丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "主专丸", "out": "Take a list of integers; keep values greater than five, then sort descending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then take values up to (excluding) the first zero.", "out": "一丁久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then keep the part before the first 0.", "out": "一丁久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then truncate at the first zero.", "out": "一丁久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then delete everything starting with the first zero.", "out": "一丁久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then remove from the first zero onwards.", "out": "一丁久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then up to but not including the first zero.", "out": "一丁久"} {"kind": "builder", "in": "一丁久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "一丁久", "out": "Take a list of integers; keep the even numbers, then keep the odd numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then order by distance from zero, then give the earliest even value or zero.", "out": "为丸乒"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "为丸乒"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then organize by magnitude, then give the earliest even value or zero.", "out": "为丸乒"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "为丸乒"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "为丸乒"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort by absolute value, then fetch the first even element, default to 0.", "out": "为丸乒"} {"kind": "builder", "in": "为丸乒", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "为丸乒", "out": "Take a list of integers; drop the first and last elements, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then drop the odd numbers.", "out": "下丘一"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then filter out the odd numbers.", "out": "下丘一"} {"kind": "builder", "in": "下丘一", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "下丘一", "out": "Take a list of integers; add one to each, then cap each value at 10, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then clamp each to at most ten, then arrange by magnitude ignoring sign.", "out": "丕丘丸"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then don't let anything exceed 10, then put them in order by magnitude.", "out": "丕丘丸"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then clamp each to at most ten, then arrange in order of absolute value.", "out": "丕丘丸"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then don't let anything exceed 10, then sort by distance from zero.", "out": "丕丘丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then clamp each to at most ten, then order by how far from zero.", "out": "丕丘丸"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then don't let anything exceed 10, then order by distance from zero.", "out": "丕丘丸"} {"kind": "builder", "in": "丕丘丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丕丘丸", "out": "Take a list of integers; keep only the first three, then cap each value at 10, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements, then strip the signs.", "out": "义丕丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third, then take abs of each.", "out": "义丕丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items, then get the absolute value of everything.", "out": "义丕丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three, then apply absolute value to the whole list.", "out": "义丕丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three, then make them all positive.", "out": "义丕丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3, then make every value non-negative.", "out": "义丕丏"} {"kind": "builder", "in": "义丕丏", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "义丕丏", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values above zero, then drop the odd numbers.", "out": "且七一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter for positive numbers, then filter out the odd numbers.", "out": "且七一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only positive numbers, then drop the odd numbers.", "out": "且七一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positives, then filter out the odd numbers.", "out": "且七一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove negatives, then drop the odd numbers.", "out": "且七一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positive numbers, then filter out the odd numbers.", "out": "且七一"} {"kind": "builder", "in": "且七一", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "且七一", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the positive numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then default to [0] when there is nothing, then strip the signs.", "out": "乂么丏"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then when the list is empty, substitute a zero value, then take abs of each.", "out": "乂么丏"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then replace an empty list with one zero, then get the absolute value of everything.", "out": "乂么丏"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then zero it out if it's empty, then apply absolute value to the whole list.", "out": "乂么丏"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then use zero if the list is empty, then make them all positive.", "out": "乂么丏"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then default to zero when empty, then make every value non-negative.", "out": "乂么丏"} {"kind": "builder", "in": "乂么丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "乂么丏", "out": "Take a list of integers; take values while they are positive, then if empty, use a single zero, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove all zero values, then reduce each by one.", "out": "丏举不"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then exclude zeros, then Subtract 1 from all.", "out": "丏举不"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove all zero values, then Subtract one from each.", "out": "丏举不"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then exclude zeros, then Drop each by one.", "out": "丏举不"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove all zero values, then Decrease all values by one.", "out": "丏举不"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then exclude zeros, then Remove one from each value.", "out": "丏举不"} {"kind": "builder", "in": "丏举不", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丏举不", "out": "Take a list of integers; take the absolute value of each, then drop the zeros, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then make every value non-negative, then true if any value equals zero.", "out": "么丏乍"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then absolute value for all items, then check for zero.", "out": "么丏乍"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take absolute values, then true if any value equals zero.", "out": "么丏乍"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn negatives into positives, then check for zero.", "out": "么丏乍"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then abs each element, then true if any value equals zero.", "out": "么丏乍"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the absolute value of each, then check for zero.", "out": "么丏乍"} {"kind": "builder", "in": "么丏乍", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [abs(x) for x in r]\n return 0 in r"} {"kind": "translator", "in": "么丏乍", "out": "Take a list of integers; if empty, use a single zero, then take the absolute value of each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then extend to length 3 using zeros, then find the max, defaulting to 0.", "out": "丐义业"} {"kind": "speaker", "in": "Take a list of integers; reverse, then pad to 3, then Give me the maximum, but 0 if there are no items.", "out": "丐义业"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then extend to length 3 using zeros, then What's the highest number in the list.", "out": "丐义业"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then pad to 3, then Return the greatest value or default to 0.", "out": "丐义业"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then extend to length 3 using zeros, then Find the largest element, defaulting to zero.", "out": "丐义业"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then pad to 3, then give the largest value (0 if none).", "out": "丐义业"} {"kind": "builder", "in": "丐义业", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return max(r) if r else 0"} {"kind": "translator", "in": "丐义业", "out": "Take a list of integers; reverse the order, then pad with zeros to at least three elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then take the final 3 elements, then arrange in increasing order.", "out": "主丹丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then drop everything except the final three, then Organize these ascending.", "out": "主丹丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then give me the last three elements, then Sort in ascending order.", "out": "主丹丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep only the last three, then I need this sorted ascending.", "out": "主丹丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep the final three items, then Put these in ascending order.", "out": "主丹丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take the last three, then sort smallest to largest.", "out": "主丹丑"} {"kind": "builder", "in": "主丹丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[-3:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主丹丑", "out": "Take a list of integers; keep values greater than five, then keep only the last three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then skip negatives at the start, then drop the odd numbers.", "out": "丘乃一"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then remove all negatives at the front, then filter out the odd numbers.", "out": "丘乃一"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the initial run of negative numbers, then drop the odd numbers.", "out": "丘乃一"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then strip the front negatives, then filter out the odd numbers.", "out": "丘乃一"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove leading negative numbers, then drop the odd numbers.", "out": "丘乃一"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop negatives from start, then filter out the odd numbers.", "out": "丘乃一"} {"kind": "builder", "in": "丘乃一", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丘乃一", "out": "Take a list of integers; cap each value at 10, then drop the leading negative values, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort largest to smallest, then keep only numbers above 5.", "out": "丕专主"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort by descending values, then exclude values of 5 and below.", "out": "丕专主"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then sort from highest to lowest, then remove anything 5 or less.", "out": "丕专主"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sort descending, then filter to keep only values above 5.", "out": "丕专主"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort largest first, then get rid of values that aren't greater than five.", "out": "丕专主"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort in descending order, then drop anything 5 or below.", "out": "丕专主"} {"kind": "builder", "in": "丕专主", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, reverse=True)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丕专主", "out": "Take a list of integers; keep only the first three, then sort descending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then raise each to the power of two.", "out": "不主上"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then I need each number multiplied by itself.", "out": "不主上"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then square all of them.", "out": "不主上"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then multiply each element by itself.", "out": "不主上"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then make each one squared.", "out": "不主上"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then square each value in the list.", "out": "不主上"} {"kind": "builder", "in": "不主上", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "不主上", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then square each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then make every value non-negative, then true if at least one even value.", "out": "丘丏之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then absolute value for all items, then any even.", "out": "丘丏之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take absolute values, then true if at least one even value.", "out": "丘丏之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn negatives into positives, then any even.", "out": "丘丏之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then abs each element, then true if at least one even value.", "out": "丘丏之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the absolute value of each, then any even.", "out": "丘丏之"} {"kind": "builder", "in": "丘丏之", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丘丏之", "out": "Take a list of integers; cap each value at 10, then take the absolute value of each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort largest to smallest, then limit every value to 10.", "out": "丏专丘"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort by descending values, then maximum of 10 for all.", "out": "丏专丘"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then sort from highest to lowest, then limit every value to 10.", "out": "丏专丘"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then sort descending, then maximum of 10 for all.", "out": "丏专丘"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort largest first, then limit every value to 10.", "out": "丏专丘"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort in descending order, then maximum of 10 for all.", "out": "丏专丘"} {"kind": "builder", "in": "丏专丘", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丏专丘", "out": "Take a list of integers; take the absolute value of each, then sort descending, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep only odd values, then put the elements backwards.", "out": "丸丁丐"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then eliminate the even numbers, then reverse that for me.", "out": "丸丁丐"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only odd values, then flip it backwards.", "out": "丸丁丐"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then eliminate the even numbers, then make it backwards.", "out": "丸丁丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only odd values, then reverse the list.", "out": "丸丁丐"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then eliminate the even numbers, then invert the sequence.", "out": "丸丁丐"} {"kind": "builder", "in": "丸丁丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丸丁丐", "out": "Take a list of integers; sort by absolute value, then keep the odd numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep the leading run of positive numbers, then arrange in decreasing order.", "out": "串乂专"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then take values while they are positive, then arrange in descending order.", "out": "串乂专"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take positive values then stop, then reverse sort.", "out": "串乂专"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep going while positive, then sort largest to smallest.", "out": "串乂专"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then stop at first non positive, then sort by descending values.", "out": "串乂专"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take while greater than zero, then sort from highest to lowest.", "out": "串乂专"} {"kind": "builder", "in": "串乂专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "串乂专", "out": "Take a list of integers; keep multiples of three, then take values while they are positive, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; square each, then drop anything 5 or below, then count the elements.", "out": "上主东"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep only numbers greater than 5, then how many items remain.", "out": "上主东"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then filter for numbers above 5, then tell me the length.", "out": "上主东"} {"kind": "speaker", "in": "Take a list of integers; square them all, then give me values where x is greater than 5, then return the length.", "out": "上主东"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then show me only the values that are bigger than five, then count them.", "out": "上主东"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep values greater than five, then what's the count.", "out": "上主东"} {"kind": "builder", "in": "上主东", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 5]\n return len(r)"} {"kind": "translator", "in": "上主东", "out": "Take a list of integers; square each, then keep values greater than five, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then arrange in decreasing order.", "out": "丘丁专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then arrange in descending order.", "out": "丘丁专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then reverse sort.", "out": "丘丁专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then sort largest to smallest.", "out": "丘丁专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then sort by descending values.", "out": "丘丁专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then sort from highest to lowest.", "out": "丘丁专"} {"kind": "builder", "in": "丘丁专", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丘丁专", "out": "Take a list of integers; cap each value at 10, then keep the odd numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then default to [0] when there is nothing, then put the elements backwards.", "out": "不么丐"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then when the list is empty, substitute a zero value, then reverse that for me.", "out": "不么丐"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then replace an empty list with one zero, then flip it backwards.", "out": "不么丐"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then zero it out if it's empty, then make it backwards.", "out": "不么丐"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then use zero if the list is empty, then reverse the list.", "out": "不么丐"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then default to zero when empty, then invert the sequence.", "out": "不么丐"} {"kind": "builder", "in": "不么丐", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r if r else [0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "不么丐", "out": "Take a list of integers; subtract one from each, then if empty, use a single zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the sign of each, then find the max, defaulting to 0.", "out": "主与业"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then turn positives to negatives and vice versa, then Give me the maximum, but 0 if there are no items.", "out": "主与业"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then flip the sign of each, then What's the highest number in the list.", "out": "主与业"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then turn positives to negatives and vice versa, then Return the greatest value or default to 0.", "out": "主与业"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip the sign of each, then Find the largest element, defaulting to zero.", "out": "主与业"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then turn positives to negatives and vice versa, then give the largest value (0 if none).", "out": "主与业"} {"kind": "builder", "in": "主与业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "主与业", "out": "Take a list of integers; keep values greater than five, then negate each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then order by distance from zero, then true if any value equals zero.", "out": "义丸乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort based on absolute value, then check for zero.", "out": "义丸乍"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then organize by magnitude, then true if any value equals zero.", "out": "义丸乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then arrange by absolute value ascending, then check for zero.", "out": "义丸乍"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from smallest to largest absolute value, then true if any value equals zero.", "out": "义丸乍"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by absolute value, then check for zero.", "out": "义丸乍"} {"kind": "builder", "in": "义丸乍", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n return 0 in r"} {"kind": "translator", "in": "义丸乍", "out": "Take a list of integers; pad with zeros to at least three elements, then sort by absolute value, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then drop non-positive values.", "out": "不主七"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then drop the negative numbers.", "out": "不主七"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then filter out the negative ones.", "out": "不主七"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then remove all negative values.", "out": "不主七"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then keep positive values only.", "out": "不主七"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then keep values above zero.", "out": "不主七"} {"kind": "builder", "in": "不主七", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "不主七", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then clamp each to at most ten, then give the number of evens.", "out": "上丘乓"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then don't let anything exceed 10, then find how many values are divisible by two.", "out": "上丘乓"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then clamp each to at most ten, then how many are even.", "out": "上丘乓"} {"kind": "speaker", "in": "Take a list of integers; square them all, then don't let anything exceed 10, then get the total number of even values in the list.", "out": "上丘乓"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then clamp each to at most ten, then give me the count of even values.", "out": "上丘乓"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then don't let anything exceed 10, then I need to know how many of these are even.", "out": "上丘乓"} {"kind": "builder", "in": "上丘乓", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [min(x, 10) for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "上丘乓", "out": "Take a list of integers; square each, then cap each value at 10, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove the first item, then true if every value is unique.", "out": "丑世乏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then Remove head, then check for duplicates in the values.", "out": "丑世乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove the first item, then do all values appear only once.", "out": "丑世乏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then Remove head, then check that there are no duplicates.", "out": "丑世乏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first item, then are the values all unique.", "out": "丑世乏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then Remove head, then check if all values are unique.", "out": "丑世乏"} {"kind": "builder", "in": "丑世乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丑世乏", "out": "Take a list of integers; sort ascending, then drop the first element, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then make every value non-negative, then reduce each by one.", "out": "专丏不"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then absolute value for all items, then Subtract 1 from all.", "out": "专丏不"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take absolute values, then Subtract one from each.", "out": "专丏不"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then turn negatives into positives, then Drop each by one.", "out": "专丏不"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then abs each element, then Decrease all values by one.", "out": "专丏不"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the absolute value of each, then Remove one from each value.", "out": "专丏不"} {"kind": "builder", "in": "专丏不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "专丏不", "out": "Take a list of integers; sort descending, then take the absolute value of each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort largest to smallest, then limit every value to 10.", "out": "九专丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort by descending values, then maximum of 10 for all.", "out": "九专丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then sort from highest to lowest, then limit every value to 10.", "out": "九专丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then sort descending, then maximum of 10 for all.", "out": "九专丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort largest first, then limit every value to 10.", "out": "九专丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort in descending order, then maximum of 10 for all.", "out": "九专丘"} {"kind": "builder", "in": "九专丘", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, reverse=True)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "九专丘", "out": "Take a list of people records (name, age); extract the ages, then sort descending, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then arrange in increasing order.", "out": "丈丁丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then Organize these ascending.", "out": "丈丁丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then Sort in ascending order.", "out": "丈丁丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then I need this sorted ascending.", "out": "丈丁丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then Put these in ascending order.", "out": "丈丁丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then sort smallest to largest.", "out": "丈丁丑"} {"kind": "builder", "in": "丈丁丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丈丁丑", "out": "Take a list of integers; double each, then keep the odd numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything 5 or below, then deduplicate the list.", "out": "与主且"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only numbers greater than 5, then remove repeats.", "out": "与主且"} {"kind": "speaker", "in": "Take a list of integers; negate each, then filter for numbers above 5, then deduplicate the list.", "out": "与主且"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give me values where x is greater than 5, then remove repeats.", "out": "与主且"} {"kind": "speaker", "in": "Take a list of integers; negate each, then show me only the values that are bigger than five, then deduplicate the list.", "out": "与主且"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep values greater than five, then remove repeats.", "out": "与主且"} {"kind": "builder", "in": "与主且", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "与主且", "out": "Take a list of integers; negate each, then keep values greater than five, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest to smallest, then stop at the first non-positive value.", "out": "下专乂"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by descending values, then keep the leading run of positive numbers.", "out": "下专乂"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from highest to lowest, then take values while they are positive.", "out": "下专乂"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort descending, then take positive values then stop.", "out": "下专乂"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest first, then keep going while positive.", "out": "下专乂"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort in descending order, then stop at first non positive.", "out": "下专乂"} {"kind": "builder", "in": "下专乂", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "下专乂", "out": "Take a list of integers; add one to each, then sort descending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then order by distance from zero, then truncate to the last three items.", "out": "久丸丹"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort based on absolute value, then show only the last three.", "out": "久丸丹"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then organize by magnitude, then remove all but the last three.", "out": "久丸丹"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then arrange by absolute value ascending, then take the final 3 elements.", "out": "久丸丹"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort from smallest to largest absolute value, then drop everything except the final three.", "out": "久丸丹"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort by absolute value, then give me the last three elements.", "out": "久丸丹"} {"kind": "builder", "in": "久丸丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "久丸丹", "out": "Take a list of integers; keep everything before the first zero, then sort by absolute value, then keep only the last three."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then strip spaces around each string, then count characters across all strings.", "out": "严丢个"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then remove leading and trailing spaces, then character count.", "out": "严丢个"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then remove whitespace from each item, then count all the characters.", "out": "严丢个"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then clean whitespace from each entry, then total number of characters.", "out": "严丢个"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then trim each string, then what's the total character count.", "out": "严丢个"} {"kind": "speaker", "in": "Take a list of strings; length sort, then trim whitespace from each, then add up the lengths.", "out": "严丢个"} {"kind": "builder", "in": "严丢个", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.strip() for s in r]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "严丢个", "out": "Take a list of strings; sort by length, shortest first, then trim whitespace from each, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each by two, then take values up to (excluding) the first zero.", "out": "乂丈久"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then double each item in the list, then keep the part before the first 0.", "out": "乂丈久"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then multiply each by two, then truncate at the first zero.", "out": "乂丈久"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then double each item in the list, then delete everything starting with the first zero.", "out": "乂丈久"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then multiply each by two, then remove from the first zero onwards.", "out": "乂丈久"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then double each item in the list, then up to but not including the first zero.", "out": "乂丈久"} {"kind": "builder", "in": "乂丈久", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "乂丈久", "out": "Take a list of integers; take values while they are positive, then double each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then give back the total.", "out": "下一丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then sum r.", "out": "下一丙"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then add them up.", "out": "下一丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then calculate the sum of all elements.", "out": "下一丙"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then what's the total.", "out": "下一丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then what do they add up to.", "out": "下一丙"} {"kind": "builder", "in": "下一丙", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return sum(r)"} {"kind": "translator", "in": "下一丙", "out": "Take a list of integers; add one to each, then keep the even numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the leading run of positive numbers, then bump each up by one.", "out": "丈乂下"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take values while they are positive, then increment each item.", "out": "丈乂下"} {"kind": "speaker", "in": "Take a list of integers; double each, then take positive values then stop, then bump each up by one.", "out": "丈乂下"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep going while positive, then increment each item.", "out": "丈乂下"} {"kind": "speaker", "in": "Take a list of integers; double each, then stop at first non positive, then bump each up by one.", "out": "丈乂下"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take while greater than zero, then increment each item.", "out": "丈乂下"} {"kind": "builder", "in": "丈乂下", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丈乂下", "out": "Take a list of integers; double each, then take values while they are positive, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then arrange in decreasing order.", "out": "丽乂专"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then arrange in descending order.", "out": "丽乂专"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then reverse sort.", "out": "丽乂专"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then sort largest to smallest.", "out": "丽乂专"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then sort by descending values.", "out": "丽乂专"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then sort from highest to lowest.", "out": "丽乂专"} {"kind": "builder", "in": "丽乂专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丽乂专", "out": "Take a list of integers; add ten to each, then take values while they are positive, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then replace an empty list with one zero.", "out": "世举么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then zero it out if it's empty.", "out": "世举么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then use zero if the list is empty.", "out": "世举么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then default to zero when empty.", "out": "世举么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then if there's nothing, put in a zero.", "out": "世举么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then if no items, add a zero.", "out": "世举么"} {"kind": "builder", "in": "世举么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "世举么", "out": "Take a list of integers; drop the first element, then drop the zeros, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then extend to length 3 using zeros, then limit every value to 10.", "out": "丑义丘"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then pad to 3, then maximum of 10 for all.", "out": "丑义丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then extend to length 3 using zeros, then limit every value to 10.", "out": "丑义丘"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then pad to 3, then maximum of 10 for all.", "out": "丑义丘"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then extend to length 3 using zeros, then limit every value to 10.", "out": "丑义丘"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then pad to 3, then maximum of 10 for all.", "out": "丑义丘"} {"kind": "builder", "in": "丑义丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丑义丘", "out": "Take a list of integers; sort ascending, then pad with zeros to at least three elements, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the list around, then truncate to three items.", "out": "丁丐丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then flip the order around, then show the first three.", "out": "丁丐丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then put the elements backwards, then take the first three.", "out": "丁丐丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then reverse that for me, then keep first 3.", "out": "丁丐丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip it backwards, then truncate to first three.", "out": "丁丐丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then make it backwards, then first three.", "out": "丁丐丕"} {"kind": "builder", "in": "丁丐丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n r = r[:3]\n return r"} {"kind": "translator", "in": "丁丐丕", "out": "Take a list of integers; keep the odd numbers, then reverse the order, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then drop the odd numbers.", "out": "串丐一"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then filter out the odd numbers.", "out": "串丐一"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then drop the odd numbers.", "out": "串丐一"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then filter out the odd numbers.", "out": "串丐一"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then drop the odd numbers.", "out": "串丐一"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then filter out the odd numbers.", "out": "串丐一"} {"kind": "builder", "in": "串丐一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "串丐一", "out": "Take a list of integers; keep multiples of three, then reverse the order, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values below zero, then trim one element off each end.", "out": "丐万为"} {"kind": "speaker", "in": "Take a list of integers; reverse, then get the negative numbers, then cut off the first and last.", "out": "丐万为"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep values below zero, then remove the first and last elements.", "out": "丐万为"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then get the negative numbers, then keep only the middle part.", "out": "丐万为"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep values below zero, then drop first and last.", "out": "丐万为"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then get the negative numbers, then eliminate the outermost elements.", "out": "丐万为"} {"kind": "builder", "in": "丐万为", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丐万为", "out": "Take a list of integers; reverse the order, then keep the negative numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort smallest to largest, then keep only numbers above 5.", "out": "一丑主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Ascending sort, then exclude values of 5 and below.", "out": "一丑主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Sort this ascending, then remove anything 5 or less.", "out": "一丑主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Sort lowest to highest, then filter to keep only values above 5.", "out": "一丑主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Arrange from smallest to largest, then get rid of values that aren't greater than five.", "out": "一丑主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort ascending, then drop anything 5 or below.", "out": "一丑主"} {"kind": "builder", "in": "一丑主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "一丑主", "out": "Take a list of integers; keep the even numbers, then sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increase every value by 10, then remove the initial run of negative numbers.", "out": "与丽乃"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then add 10 to each item, then strip the front negatives.", "out": "与丽乃"} {"kind": "speaker", "in": "Take a list of integers; negate each, then shift each up by ten, then remove leading negative numbers.", "out": "与丽乃"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then increase all numbers by 10, then drop negatives from start.", "out": "与丽乃"} {"kind": "speaker", "in": "Take a list of integers; negate each, then add 10 to everything, then strip negative values from the start.", "out": "与丽乃"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give everything a boost of 10, then remove negatives before the first non-negative.", "out": "与丽乃"} {"kind": "builder", "in": "与丽乃", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "与丽乃", "out": "Take a list of integers; negate each, then add ten to each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then make every value non-negative, then drop the even numbers.", "out": "下丏丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then absolute value for all items, then strip out the evens.", "out": "下丏丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take absolute values, then drop the even numbers.", "out": "下丏丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then turn negatives into positives, then strip out the evens.", "out": "下丏丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then abs each element, then drop the even numbers.", "out": "下丏丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the absolute value of each, then strip out the evens.", "out": "下丏丁"} {"kind": "builder", "in": "下丏丁", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "下丏丁", "out": "Take a list of integers; add one to each, then take the absolute value of each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep only strings of length 3 or more, then remove surrounding whitespace.", "out": "乖乗丢"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then get rid of short ones, then trim the whitespace off everything.", "out": "乖乗丢"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove strings with less than three characters, then strip spaces from all strings.", "out": "乖乗丢"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove all strings under three characters in length, then strip all the strings.", "out": "乖乗丢"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then filter out short strings under three chars, then clean up whitespace in the list.", "out": "乖乗丢"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop strings shorter than three characters, then strip spaces around each string.", "out": "乖乗丢"} {"kind": "builder", "in": "乖乗丢", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s for s in r if len(s) >= 3]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "乖乗丢", "out": "Take a list of strings; sort alphabetically, then drop strings shorter than three characters, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; double each, then sort smallest to largest, then give the number of evens.", "out": "丈丑乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Ascending sort, then find how many values are divisible by two.", "out": "丈丑乓"} {"kind": "speaker", "in": "Take a list of integers; double each, then Sort this ascending, then how many are even.", "out": "丈丑乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Sort lowest to highest, then get the total number of even values in the list.", "out": "丈丑乓"} {"kind": "speaker", "in": "Take a list of integers; double each, then Arrange from smallest to largest, then give me the count of even values.", "out": "丈丑乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort ascending, then I need to know how many of these are even.", "out": "丈丑乓"} {"kind": "builder", "in": "丈丑乓", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丈丑乓", "out": "Take a list of integers; double each, then sort ascending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only odd values, then true if any value equals zero.", "out": "上丁乍"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then eliminate the even numbers, then check for zero.", "out": "上丁乍"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only odd values, then true if any value equals zero.", "out": "上丁乍"} {"kind": "speaker", "in": "Take a list of integers; square them all, then eliminate the even numbers, then check for zero.", "out": "上丁乍"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only odd values, then true if any value equals zero.", "out": "上丁乍"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then eliminate the even numbers, then check for zero.", "out": "上丁乍"} {"kind": "builder", "in": "上丁乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 != 0]\n return 0 in r"} {"kind": "translator", "in": "上丁乍", "out": "Take a list of integers; square each, then keep the odd numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself, then true only if all are positive.", "out": "乃上乌"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all, then do all of these have positive values.", "out": "乃上乌"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two, then check if every value is positive.", "out": "乃上乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself, then confirm all values are positive.", "out": "乃上乌"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them, then all positive.", "out": "乃上乌"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself, then check if every number is above zero.", "out": "乃上乌"} {"kind": "builder", "in": "乃上乌", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乃上乌", "out": "Take a list of integers; drop the leading negative values, then square each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then flip the sign of each, then drop non-negative values.", "out": "丐与万"} {"kind": "speaker", "in": "Take a list of integers; reverse, then turn positives to negatives and vice versa, then drop all positive numbers.", "out": "丐与万"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then flip the sign of each, then drop non-negative values.", "out": "丐与万"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn positives to negatives and vice versa, then drop all positive numbers.", "out": "丐与万"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then flip the sign of each, then drop non-negative values.", "out": "丐与万"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then turn positives to negatives and vice versa, then drop all positive numbers.", "out": "丐与万"} {"kind": "builder", "in": "丐与万", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [-x for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丐与万", "out": "Take a list of integers; reverse the order, then negate each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep only even values, then keep only numbers above 5.", "out": "丸一主"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then extract all even numbers, then exclude values of 5 and below.", "out": "丸一主"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only even values, then remove anything 5 or less.", "out": "丸一主"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then extract all even numbers, then filter to keep only values above 5.", "out": "丸一主"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only even values, then get rid of values that aren't greater than five.", "out": "丸一主"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then extract all even numbers, then drop anything 5 or below.", "out": "丸一主"} {"kind": "builder", "in": "丸一主", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丸一主", "out": "Take a list of integers; sort by absolute value, then keep the even numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values divisible by 3, then put the elements backwards.", "out": "一串丐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep items where x mod 3 equals zero, then reverse that for me.", "out": "一串丐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything not divisible by three, then flip it backwards.", "out": "一串丐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter out everything except multiples of three, then make it backwards.", "out": "一串丐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only multiples of three, then reverse the list.", "out": "一串丐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiples of three only, then invert the sequence.", "out": "一串丐"} {"kind": "builder", "in": "一串丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "一串丐", "out": "Take a list of integers; keep the even numbers, then keep multiples of three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the list around, then skip the first one.", "out": "举丐世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then flip the order around, then Discard the first element.", "out": "举丐世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then put the elements backwards, then skip the first one.", "out": "举丐世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then reverse that for me, then Discard the first element.", "out": "举丐世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip it backwards, then skip the first one.", "out": "举丐世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then make it backwards, then Discard the first element.", "out": "举丐世"} {"kind": "builder", "in": "举丐世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n r = r[1:]\n return r"} {"kind": "translator", "in": "举丐世", "out": "Take a list of integers; drop the zeros, then reverse the order, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丸丘乒"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丸丘乒"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丸丘乒"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丸丘乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丸丘乒"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丸丘乒"} {"kind": "builder", "in": "丸丘乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丸丘乒", "out": "Take a list of integers; sort by absolute value, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then cut the list at the first zero, then find the max, defaulting to 0.", "out": "丏久业"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then cut off after the first zero appears, then Give me the maximum, but 0 if there are no items.", "out": "丏久业"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take values up to (excluding) the first zero, then What's the highest number in the list.", "out": "丏久业"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the part before the first 0, then Return the greatest value or default to 0.", "out": "丏久业"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then truncate at the first zero, then Find the largest element, defaulting to zero.", "out": "丏久业"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then delete everything starting with the first zero, then give the largest value (0 if none).", "out": "丏久业"} {"kind": "builder", "in": "丏久业", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return max(r) if r else 0"} {"kind": "translator", "in": "丏久业", "out": "Take a list of integers; take the absolute value of each, then keep everything before the first zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then default to [0] when there is nothing, then truncate to the last three items.", "out": "丘么丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then when the list is empty, substitute a zero value, then show only the last three.", "out": "丘么丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then replace an empty list with one zero, then remove all but the last three.", "out": "丘么丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then zero it out if it's empty, then take the final 3 elements.", "out": "丘么丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then use zero if the list is empty, then drop everything except the final three.", "out": "丘么丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then default to zero when empty, then give me the last three elements.", "out": "丘么丹"} {"kind": "builder", "in": "丘么丹", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r if r else [0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丘么丹", "out": "Take a list of integers; cap each value at 10, then if empty, use a single zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then reduce each by one.", "out": "串丐不"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then Subtract 1 from all.", "out": "串丐不"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then Subtract one from each.", "out": "串丐不"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then Drop each by one.", "out": "串丐不"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then Decrease all values by one.", "out": "串丐不"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then Remove one from each value.", "out": "串丐不"} {"kind": "builder", "in": "串丐不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "串丐不", "out": "Take a list of integers; keep multiples of three, then reverse the order, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort smallest to largest, then truncate to three items.", "out": "下丑丕"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Ascending sort, then show the first three.", "out": "下丑丕"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Sort this ascending, then take the first three.", "out": "下丑丕"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Sort lowest to highest, then keep first 3.", "out": "下丑丕"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Arrange from smallest to largest, then truncate to first three.", "out": "下丑丕"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort ascending, then first three.", "out": "下丑丕"} {"kind": "builder", "in": "下丑丕", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r)\n r = r[:3]\n return r"} {"kind": "translator", "in": "下丑丕", "out": "Take a list of integers; add one to each, then sort ascending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then drop non-negative values.", "out": "九乃万"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then drop all positive numbers.", "out": "九乃万"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then drop non-negative values.", "out": "九乃万"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then drop all positive numbers.", "out": "九乃万"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then drop non-negative values.", "out": "九乃万"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then drop all positive numbers.", "out": "九乃万"} {"kind": "builder", "in": "九乃万", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "九乃万", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove all zero values, then put the elements backwards.", "out": "为举丐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then exclude zeros, then reverse that for me.", "out": "为举丐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove all zero values, then flip it backwards.", "out": "为举丐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then exclude zeros, then make it backwards.", "out": "为举丐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove all zero values, then reverse the list.", "out": "为举丐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then exclude zeros, then invert the sequence.", "out": "为举丐"} {"kind": "builder", "in": "为举丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "为举丐", "out": "Take a list of integers; drop the first and last elements, then drop the zeros, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increase every value by 10, then stop at the first non-positive value.", "out": "主丽乂"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then add 10 to each item, then keep the leading run of positive numbers.", "out": "主丽乂"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then shift each up by ten, then take values while they are positive.", "out": "主丽乂"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then increase all numbers by 10, then take positive values then stop.", "out": "主丽乂"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then add 10 to everything, then keep going while positive.", "out": "主丽乂"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then give everything a boost of 10, then stop at first non positive.", "out": "主丽乂"} {"kind": "builder", "in": "主丽乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "主丽乂", "out": "Take a list of integers; keep values greater than five, then add ten to each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values divisible by 3, then shift each up by ten.", "out": "上串丽"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep items where x mod 3 equals zero, then increase all numbers by 10.", "out": "上串丽"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then drop anything not divisible by three, then add 10 to everything.", "out": "上串丽"} {"kind": "speaker", "in": "Take a list of integers; square them all, then filter out everything except multiples of three, then give everything a boost of 10.", "out": "上串丽"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only multiples of three, then increment each by ten.", "out": "上串丽"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then multiples of three only, then add a constant 10 to each.", "out": "上串丽"} {"kind": "builder", "in": "上串丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "上串丽", "out": "Take a list of integers; square each, then keep multiples of three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove the first item, then true if any value equals zero.", "out": "乂世乍"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Remove head, then check for zero.", "out": "乂世乍"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the first item, then true if any value equals zero.", "out": "乂世乍"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Remove head, then check for zero.", "out": "乂世乍"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first item, then true if any value equals zero.", "out": "乂世乍"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then Remove head, then check for zero.", "out": "乂世乍"} {"kind": "builder", "in": "乂世乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:]\n return 0 in r"} {"kind": "translator", "in": "乂世乍", "out": "Take a list of integers; take values while they are positive, then drop the first element, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove all zero values, then true if any value equals zero.", "out": "乃举乍"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then exclude zeros, then check for zero.", "out": "乃举乍"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove all zero values, then true if any value equals zero.", "out": "乃举乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then exclude zeros, then check for zero.", "out": "乃举乍"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove all zero values, then true if any value equals zero.", "out": "乃举乍"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then exclude zeros, then check for zero.", "out": "乃举乍"} {"kind": "builder", "in": "乃举乍", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x != 0]\n return 0 in r"} {"kind": "translator", "in": "乃举乍", "out": "Take a list of integers; drop the leading negative values, then drop the zeros, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then clamp each to at most ten, then count the elements.", "out": "丐丘东"} {"kind": "speaker", "in": "Take a list of integers; reverse, then don't let anything exceed 10, then how many items remain.", "out": "丐丘东"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then clamp each to at most ten, then tell me the length.", "out": "丐丘东"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then don't let anything exceed 10, then return the length.", "out": "丐丘东"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then clamp each to at most ten, then count them.", "out": "丐丘东"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then don't let anything exceed 10, then what's the count.", "out": "丐丘东"} {"kind": "builder", "in": "丐丘东", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n return len(r)"} {"kind": "translator", "in": "丐丘东", "out": "Take a list of integers; reverse the order, then cap each value at 10, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove repeated values, then remove the initial run of negative numbers.", "out": "专且乃"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then unique values preserving order, then strip the front negatives.", "out": "专且乃"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove repeated values, then remove leading negative numbers.", "out": "专且乃"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then unique values preserving order, then drop negatives from start.", "out": "专且乃"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove repeated values, then strip negative values from the start.", "out": "专且乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then unique values preserving order, then remove negatives before the first non-negative.", "out": "专且乃"} {"kind": "builder", "in": "专且乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(dict.fromkeys(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "专且乃", "out": "Take a list of integers; sort descending, then drop duplicates keeping first occurrence, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep the leading run of positive numbers, then drop anything not divisible by three.", "out": "久乂串"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then take values while they are positive, then filter out everything except multiples of three.", "out": "久乂串"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take positive values then stop, then keep only multiples of three.", "out": "久乂串"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep going while positive, then multiples of three only.", "out": "久乂串"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then stop at first non positive, then filter for numbers divisible by three.", "out": "久乂串"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take while greater than zero, then give me only the values divisible by three.", "out": "久乂串"} {"kind": "builder", "in": "久乂串", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "久乂串", "out": "Take a list of integers; keep everything before the first zero, then take values while they are positive, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "万与义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "万与义"} {"kind": "builder", "in": "万与义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "万与义", "out": "Take a list of integers; keep the negative numbers, then negate each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then extend to length 3 using zeros, then find the min, defaulting to 0.", "out": "串义丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then pad to 3, then minimum value, zero otherwise.", "out": "串义丛"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then extend to length 3 using zeros, then get the minimum value or zero if empty.", "out": "串义丛"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then pad to 3, then give me the min or 0.", "out": "串义丛"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then extend to length 3 using zeros, then return the smallest number, defaulting to 0.", "out": "串义丛"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then pad to 3, then return smallest or zero if empty.", "out": "串义丛"} {"kind": "builder", "in": "串义丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return min(r) if r else 0"} {"kind": "translator", "in": "串义丛", "out": "Take a list of integers; keep multiples of three, then pad with zeros to at least three elements, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove the first item, then give the number of evens.", "out": "不世乓"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Remove head, then find how many values are divisible by two.", "out": "不世乓"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the first item, then how many are even.", "out": "不世乓"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Remove head, then get the total number of even values in the list.", "out": "不世乓"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove the first item, then give me the count of even values.", "out": "不世乓"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then Remove head, then I need to know how many of these are even.", "out": "不世乓"} {"kind": "builder", "in": "不世乓", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[1:]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "不世乓", "out": "Take a list of integers; subtract one from each, then drop the first element, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each value by itself, then skip the first one.", "out": "乂上世"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then square them all, then Discard the first element.", "out": "乂上世"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then raise each to the power of two, then skip the first one.", "out": "乂上世"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then I need each number multiplied by itself, then Discard the first element.", "out": "乂上世"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then square all of them, then skip the first one.", "out": "乂上世"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiply each element by itself, then Discard the first element.", "out": "乂上世"} {"kind": "builder", "in": "乂上世", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "乂上世", "out": "Take a list of integers; take values while they are positive, then square each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values divisible by 3, then limit every value to 10.", "out": "丽串丘"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep items where x mod 3 equals zero, then maximum of 10 for all.", "out": "丽串丘"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then drop anything not divisible by three, then limit every value to 10.", "out": "丽串丘"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then filter out everything except multiples of three, then maximum of 10 for all.", "out": "丽串丘"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only multiples of three, then limit every value to 10.", "out": "丽串丘"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiples of three only, then maximum of 10 for all.", "out": "丽串丘"} {"kind": "builder", "in": "丽串丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丽串丘", "out": "Take a list of integers; add ten to each, then keep multiples of three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove repeated values, then take values up to (excluding) the first zero.", "out": "九且久"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then unique values preserving order, then keep the part before the first 0.", "out": "九且久"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove repeated values, then truncate at the first zero.", "out": "九且久"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then unique values preserving order, then delete everything starting with the first zero.", "out": "九且久"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove repeated values, then remove from the first zero onwards.", "out": "九且久"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then unique values preserving order, then up to but not including the first zero.", "out": "九且久"} {"kind": "builder", "in": "九且久", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "九且久", "out": "Take a list of people records (name, age); extract the ages, then drop duplicates keeping first occurrence, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove both ends, then arrange by magnitude ignoring sign.", "out": "世为丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then trim the edges, then put them in order by magnitude.", "out": "世为丸"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then trim one element off each end, then arrange in order of absolute value.", "out": "世为丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off the first and last, then sort by distance from zero.", "out": "世为丸"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the first and last elements, then order by how far from zero.", "out": "世为丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the middle part, then order by distance from zero.", "out": "世为丸"} {"kind": "builder", "in": "世为丸", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[1:-1]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "世为丸", "out": "Take a list of integers; drop the first element, then drop the first and last elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the sign of each, then deduplicate the list.", "out": "么与且"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then turn positives to negatives and vice versa, then remove repeats.", "out": "么与且"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then flip the sign of each, then deduplicate the list.", "out": "么与且"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn positives to negatives and vice versa, then remove repeats.", "out": "么与且"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip the sign of each, then deduplicate the list.", "out": "么与且"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then turn positives to negatives and vice versa, then remove repeats.", "out": "么与且"} {"kind": "builder", "in": "么与且", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "么与且", "out": "Take a list of integers; if empty, use a single zero, then negate each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each value by itself, then drop non-positive values.", "out": "串上七"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then square them all, then drop the negative numbers.", "out": "串上七"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then raise each to the power of two, then filter out the negative ones.", "out": "串上七"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then I need each number multiplied by itself, then remove all negative values.", "out": "串上七"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then square all of them, then keep positive values only.", "out": "串上七"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then multiply each element by itself, then keep values above zero.", "out": "串上七"} {"kind": "builder", "in": "串上七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "串上七", "out": "Take a list of integers; keep multiples of three, then square each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increase every value by 10, then ensure at least three items by appending zeros.", "out": "丏丽义"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then add 10 to each item, then ensure minimum length of three by adding zeros to the end.", "out": "丏丽义"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then shift each up by ten, then ensure at least three items by appending zeros.", "out": "丏丽义"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then increase all numbers by 10, then ensure minimum length of three by adding zeros to the end.", "out": "丏丽义"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then add 10 to everything, then ensure at least three items by appending zeros.", "out": "丏丽义"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then give everything a boost of 10, then ensure minimum length of three by adding zeros to the end.", "out": "丏丽义"} {"kind": "builder", "in": "丏丽义", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丏丽义", "out": "Take a list of integers; take the absolute value of each, then add ten to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then decrement each value, then true if every value is unique.", "out": "丸不乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Lower each number by one, then check for duplicates in the values.", "out": "丸不乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then reduce each by one, then do all values appear only once.", "out": "丸不乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Subtract 1 from all, then check that there are no duplicates.", "out": "丸不乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Subtract one from each, then are the values all unique.", "out": "丸不乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Drop each by one, then check if all values are unique.", "out": "丸不乏"} {"kind": "builder", "in": "丸不乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x - 1 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸不乏", "out": "Take a list of integers; sort by absolute value, then subtract one from each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then decrement each value, then shift each up by ten.", "out": "且不丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Lower each number by one, then increase all numbers by 10.", "out": "且不丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then reduce each by one, then add 10 to everything.", "out": "且不丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Subtract 1 from all, then give everything a boost of 10.", "out": "且不丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Subtract one from each, then increment each by ten.", "out": "且不丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Drop each by one, then add a constant 10 to each.", "out": "且不丽"} {"kind": "builder", "in": "且不丽", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "且不丽", "out": "Take a list of integers; drop duplicates keeping first occurrence, then subtract one from each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then trim one element off each end.", "out": "丈举为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then cut off the first and last.", "out": "丈举为"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then remove the first and last elements.", "out": "丈举为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then keep only the middle part.", "out": "丈举为"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then drop first and last.", "out": "丈举为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then eliminate the outermost elements.", "out": "丈举为"} {"kind": "builder", "in": "丈举为", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丈举为", "out": "Take a list of integers; double each, then drop the zeros, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then make every value non-negative, then count the elements.", "out": "丕丏东"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then absolute value for all items, then how many items remain.", "out": "丕丏东"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take absolute values, then tell me the length.", "out": "丕丏东"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn negatives into positives, then return the length.", "out": "丕丏东"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then abs each element, then count them.", "out": "丕丏东"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the absolute value of each, then what's the count.", "out": "丕丏东"} {"kind": "builder", "in": "丕丏东", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [abs(x) for x in r]\n return len(r)"} {"kind": "translator", "in": "丕丏东", "out": "Take a list of integers; keep only the first three, then take the absolute value of each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then extend to length 3 using zeros, then shift each up by ten.", "out": "专义丽"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then pad to 3, then increase all numbers by 10.", "out": "专义丽"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then extend to length 3 using zeros, then add 10 to everything.", "out": "专义丽"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then pad to 3, then give everything a boost of 10.", "out": "专义丽"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then extend to length 3 using zeros, then increment each by ten.", "out": "专义丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then pad to 3, then add a constant 10 to each.", "out": "专义丽"} {"kind": "builder", "in": "专义丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "专义丽", "out": "Take a list of integers; sort descending, then pad with zeros to at least three elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort largest to smallest, then reduce each by one.", "out": "丏专不"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort by descending values, then Subtract 1 from all.", "out": "丏专不"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then sort from highest to lowest, then Subtract one from each.", "out": "丏专不"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then sort descending, then Drop each by one.", "out": "丏专不"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort largest first, then Decrease all values by one.", "out": "丏专不"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort in descending order, then Remove one from each value.", "out": "丏专不"} {"kind": "builder", "in": "丏专不", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丏专不", "out": "Take a list of integers; take the absolute value of each, then sort descending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values above zero, then arrange in decreasing order.", "out": "丈七专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter for positive numbers, then arrange in descending order.", "out": "丈七专"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only positive numbers, then reverse sort.", "out": "丈七专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positives, then sort largest to smallest.", "out": "丈七专"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove negatives, then sort by descending values.", "out": "丈七专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positive numbers, then sort from highest to lowest.", "out": "丈七专"} {"kind": "builder", "in": "丈七专", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丈七专", "out": "Take a list of integers; double each, then keep the positive numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then count the elements.", "out": "一丘东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then how many items remain.", "out": "一丘东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then tell me the length.", "out": "一丘东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then return the length.", "out": "一丘东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then count them.", "out": "一丘东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then what's the count.", "out": "一丘东"} {"kind": "builder", "in": "一丘东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [min(x, 10) for x in r]\n return len(r)"} {"kind": "translator", "in": "一丘东", "out": "Take a list of integers; keep the even numbers, then cap each value at 10, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then raise each to the power of two.", "out": "一世上"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then I need each number multiplied by itself.", "out": "一世上"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then square all of them.", "out": "一世上"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then multiply each element by itself.", "out": "一世上"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then make each one squared.", "out": "一世上"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then square each value in the list.", "out": "一世上"} {"kind": "builder", "in": "一世上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "一世上", "out": "Take a list of integers; keep the even numbers, then drop the first element, then square each."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then reduce each string to its first character.", "out": "乖乘丨"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then take first char drop blanks.", "out": "乖乘丨"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then keep first letters only.", "out": "乖乘丨"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then first letter from each item that isn't empty.", "out": "乖乘丨"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then grab the first char from each.", "out": "乖乘丨"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then isolate the first character per entry.", "out": "乖乘丨"} {"kind": "builder", "in": "乖乘丨", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = ['#' + s for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乖乘丨", "out": "Take a list of strings; sort alphabetically, then prefix each with a hash, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only odd values, then true if already sorted smallest to largest.", "out": "丐丁乎"} {"kind": "speaker", "in": "Take a list of integers; reverse, then eliminate the even numbers, then does this list go in ascending order.", "out": "丐丁乎"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only odd values, then check if the list is in ascending order.", "out": "丐丁乎"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then eliminate the even numbers, then is the list sorted.", "out": "丐丁乎"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only odd values, then is it sorted.", "out": "丐丁乎"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then eliminate the even numbers, then check if values are in increasing order.", "out": "丐丁乎"} {"kind": "builder", "in": "丐丁乎", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丐丁乎", "out": "Take a list of integers; reverse the order, then keep the odd numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then arrange in increasing order.", "out": "举义丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then Organize these ascending.", "out": "举义丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then Sort in ascending order.", "out": "举义丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then I need this sorted ascending.", "out": "举义丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then Put these in ascending order.", "out": "举义丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then sort smallest to largest.", "out": "举义丑"} {"kind": "builder", "in": "举义丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "举义丑", "out": "Take a list of integers; drop the zeros, then pad with zeros to at least three elements, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then make every value non-negative, then truncate to the last three items.", "out": "久丏丹"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then absolute value for all items, then show only the last three.", "out": "久丏丹"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take absolute values, then remove all but the last three.", "out": "久丏丹"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn negatives into positives, then take the final 3 elements.", "out": "久丏丹"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then abs each element, then drop everything except the final three.", "out": "久丏丹"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the absolute value of each, then give me the last three elements.", "out": "久丏丹"} {"kind": "builder", "in": "久丏丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "久丏丹", "out": "Take a list of integers; keep everything before the first zero, then take the absolute value of each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then make every value non-negative, then arrange in decreasing order.", "out": "七丏专"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then absolute value for all items, then arrange in descending order.", "out": "七丏专"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take absolute values, then reverse sort.", "out": "七丏专"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn negatives into positives, then sort largest to smallest.", "out": "七丏专"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then abs each element, then sort by descending values.", "out": "七丏专"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the absolute value of each, then sort from highest to lowest.", "out": "七丏专"} {"kind": "builder", "in": "七丏专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "七丏专", "out": "Take a list of integers; keep the positive numbers, then take the absolute value of each, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then keep only non-zero numbers.", "out": "九与举"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then strip the zeros.", "out": "九与举"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then keep only non-zero numbers.", "out": "九与举"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then strip the zeros.", "out": "九与举"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then keep only non-zero numbers.", "out": "九与举"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then strip the zeros.", "out": "九与举"} {"kind": "builder", "in": "九与举", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "九与举", "out": "Take a list of people records (name, age); extract the ages, then negate each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values above zero, then true if already sorted smallest to largest.", "out": "丈七乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter for positive numbers, then does this list go in ascending order.", "out": "丈七乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only positive numbers, then check if the list is in ascending order.", "out": "丈七乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positives, then is the list sorted.", "out": "丈七乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove negatives, then is it sorted.", "out": "丈七乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positive numbers, then check if values are in increasing order.", "out": "丈七乎"} {"kind": "builder", "in": "丈七乎", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丈七乎", "out": "Take a list of integers; double each, then keep the positive numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then make every value non-negative, then drop non-negative values.", "out": "一丏万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then absolute value for all items, then drop all positive numbers.", "out": "一丏万"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take absolute values, then drop non-negative values.", "out": "一丏万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn negatives into positives, then drop all positive numbers.", "out": "一丏万"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then abs each element, then drop non-negative values.", "out": "一丏万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the absolute value of each, then drop all positive numbers.", "out": "一丏万"} {"kind": "builder", "in": "一丏万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [abs(x) for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "一丏万", "out": "Take a list of integers; keep the even numbers, then take the absolute value of each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item, then true if any value equals zero.", "out": "与世乍"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head, then check for zero.", "out": "与世乍"} {"kind": "builder", "in": "与世乍", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[1:]\n return 0 in r"} {"kind": "translator", "in": "与世乍", "out": "Take a list of integers; negate each, then drop the first element, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then give the earliest even value or zero.", "out": "丽丐乒"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then fetch the first even element, default to 0.", "out": "丽丐乒"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then give the earliest even value or zero.", "out": "丽丐乒"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then fetch the first even element, default to 0.", "out": "丽丐乒"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then give the earliest even value or zero.", "out": "丽丐乒"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then fetch the first even element, default to 0.", "out": "丽丐乒"} {"kind": "builder", "in": "丽丐乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丽丐乒", "out": "Take a list of integers; add ten to each, then reverse the order, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove both ends, then count the elements.", "out": "且为东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then trim the edges, then how many items remain.", "out": "且为东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then trim one element off each end, then tell me the length.", "out": "且为东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off the first and last, then return the length.", "out": "且为东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first and last elements, then count them.", "out": "且为东"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the middle part, then what's the count.", "out": "且为东"} {"kind": "builder", "in": "且为东", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:-1]\n return len(r)"} {"kind": "translator", "in": "且为东", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first and last elements, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then decrement each value, then remove the initial run of negative numbers.", "out": "万不乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Lower each number by one, then strip the front negatives.", "out": "万不乃"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then reduce each by one, then remove leading negative numbers.", "out": "万不乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Subtract 1 from all, then drop negatives from start.", "out": "万不乃"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Subtract one from each, then strip negative values from the start.", "out": "万不乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Drop each by one, then remove negatives before the first non-negative.", "out": "万不乃"} {"kind": "builder", "in": "万不乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "万不乃", "out": "Take a list of integers; keep the negative numbers, then subtract one from each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the list around, then trim one element off each end.", "out": "丹丐为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then flip the order around, then cut off the first and last.", "out": "丹丐为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then put the elements backwards, then remove the first and last elements.", "out": "丹丐为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then reverse that for me, then keep only the middle part.", "out": "丹丐为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip it backwards, then drop first and last.", "out": "丹丐为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then make it backwards, then eliminate the outermost elements.", "out": "丹丐为"} {"kind": "builder", "in": "丹丐为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = list(reversed(r))\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹丐为", "out": "Take a list of integers; keep only the last three, then reverse the order, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero, then true if every value is unique.", "out": "不七乏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers, then check for duplicates in the values.", "out": "不七乏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers, then do all values appear only once.", "out": "不七乏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives, then check that there are no duplicates.", "out": "不七乏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives, then are the values all unique.", "out": "不七乏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers, then check if all values are unique.", "out": "不七乏"} {"kind": "builder", "in": "不七乏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "不七乏", "out": "Take a list of integers; subtract one from each, then keep the positive numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then truncate to three items.", "out": "且丽丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then show the first three.", "out": "且丽丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then take the first three.", "out": "且丽丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then keep first 3.", "out": "且丽丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then truncate to first three.", "out": "且丽丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then first three.", "out": "且丽丕"} {"kind": "builder", "in": "且丽丕", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "且丽丕", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then default to [0] when there is nothing, then ensure at least three items by appending zeros.", "out": "串么义"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then when the list is empty, substitute a zero value, then ensure minimum length of three by adding zeros to the end.", "out": "串么义"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then replace an empty list with one zero, then ensure at least three items by appending zeros.", "out": "串么义"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then zero it out if it's empty, then ensure minimum length of three by adding zeros to the end.", "out": "串么义"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then use zero if the list is empty, then ensure at least three items by appending zeros.", "out": "串么义"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then default to zero when empty, then ensure minimum length of three by adding zeros to the end.", "out": "串么义"} {"kind": "builder", "in": "串么义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r if r else [0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "串么义", "out": "Take a list of integers; keep multiples of three, then if empty, use a single zero, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then default to [0] when there is nothing, then truncate to the last three items.", "out": "七么丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then when the list is empty, substitute a zero value, then show only the last three.", "out": "七么丹"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then replace an empty list with one zero, then remove all but the last three.", "out": "七么丹"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then zero it out if it's empty, then take the final 3 elements.", "out": "七么丹"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then use zero if the list is empty, then drop everything except the final three.", "out": "七么丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then default to zero when empty, then give me the last three elements.", "out": "七么丹"} {"kind": "builder", "in": "七么丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r if r else [0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "七么丹", "out": "Take a list of integers; keep the positive numbers, then if empty, use a single zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove the first item, then strip the signs.", "out": "么世丏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Remove head, then take abs of each.", "out": "么世丏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the first item, then get the absolute value of everything.", "out": "么世丏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Remove head, then apply absolute value to the whole list.", "out": "么世丏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first item, then make them all positive.", "out": "么世丏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Remove head, then make every value non-negative.", "out": "么世丏"} {"kind": "builder", "in": "么世丏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "么世丏", "out": "Take a list of integers; if empty, use a single zero, then drop the first element, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; square each, then drop anything 5 or below, then truncate to three items.", "out": "上主丕"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep only numbers greater than 5, then show the first three.", "out": "上主丕"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then filter for numbers above 5, then take the first three.", "out": "上主丕"} {"kind": "speaker", "in": "Take a list of integers; square them all, then give me values where x is greater than 5, then keep first 3.", "out": "上主丕"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then show me only the values that are bigger than five, then truncate to first three.", "out": "上主丕"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep values greater than five, then first three.", "out": "上主丕"} {"kind": "builder", "in": "上主丕", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 5]\n r = r[:3]\n return r"} {"kind": "translator", "in": "上主丕", "out": "Take a list of integers; square each, then keep values greater than five, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then remove the initial run of negative numbers.", "out": "串主乃"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then strip the front negatives.", "out": "串主乃"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then remove leading negative numbers.", "out": "串主乃"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then drop negatives from start.", "out": "串主乃"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then strip negative values from the start.", "out": "串主乃"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then remove negatives before the first non-negative.", "out": "串主乃"} {"kind": "builder", "in": "串主乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "串主乃", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only odd values, then count the elements.", "out": "久丁东"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then eliminate the even numbers, then how many items remain.", "out": "久丁东"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only odd values, then tell me the length.", "out": "久丁东"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then eliminate the even numbers, then return the length.", "out": "久丁东"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only odd values, then count them.", "out": "久丁东"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then eliminate the even numbers, then what's the count.", "out": "久丁东"} {"kind": "builder", "in": "久丁东", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n return len(r)"} {"kind": "translator", "in": "久丁东", "out": "Take a list of integers; keep everything before the first zero, then keep the odd numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then cut the list at the first zero, then drop non-positive values.", "out": "且久七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off after the first zero appears, then drop the negative numbers.", "out": "且久七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take values up to (excluding) the first zero, then filter out the negative ones.", "out": "且久七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the part before the first 0, then remove all negative values.", "out": "且久七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate at the first zero, then keep positive values only.", "out": "且久七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then delete everything starting with the first zero, then keep values above zero.", "out": "且久七"} {"kind": "builder", "in": "且久七", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "且久七", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep everything before the first zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove the first item, then replace an empty list with one zero.", "out": "专世么"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Remove head, then zero it out if it's empty.", "out": "专世么"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the first item, then use zero if the list is empty.", "out": "专世么"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Remove head, then default to zero when empty.", "out": "专世么"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove the first item, then if there's nothing, put in a zero.", "out": "专世么"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then Remove head, then if no items, add a zero.", "out": "专世么"} {"kind": "builder", "in": "专世么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[1:]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "专世么", "out": "Take a list of integers; sort descending, then drop the first element, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then skip negatives at the start, then truncate to three items.", "out": "主乃丕"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then remove all negatives at the front, then show the first three.", "out": "主乃丕"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the initial run of negative numbers, then take the first three.", "out": "主乃丕"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then strip the front negatives, then keep first 3.", "out": "主乃丕"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove leading negative numbers, then truncate to first three.", "out": "主乃丕"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then drop negatives from start, then first three.", "out": "主乃丕"} {"kind": "builder", "in": "主乃丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n return r"} {"kind": "translator", "in": "主乃丕", "out": "Take a list of integers; keep values greater than five, then drop the leading negative values, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values above zero, then arrange by magnitude ignoring sign.", "out": "万七丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter for positive numbers, then put them in order by magnitude.", "out": "万七丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only positive numbers, then arrange in order of absolute value.", "out": "万七丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positives, then sort by distance from zero.", "out": "万七丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove negatives, then order by how far from zero.", "out": "万七丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positive numbers, then order by distance from zero.", "out": "万七丸"} {"kind": "builder", "in": "万七丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "万七丸", "out": "Take a list of integers; keep the negative numbers, then keep the positive numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each value by itself, then give the number of evens.", "out": "义上乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then square them all, then find how many values are divisible by two.", "out": "义上乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then raise each to the power of two, then how many are even.", "out": "义上乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then I need each number multiplied by itself, then get the total number of even values in the list.", "out": "义上乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then square all of them, then give me the count of even values.", "out": "义上乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiply each element by itself, then I need to know how many of these are even.", "out": "义上乓"} {"kind": "builder", "in": "义上乓", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "义上乓", "out": "Take a list of integers; pad with zeros to at least three elements, then square each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then replace an empty list with one zero.", "out": "且丽么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then zero it out if it's empty.", "out": "且丽么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then use zero if the list is empty.", "out": "且丽么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then default to zero when empty.", "out": "且丽么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then if there's nothing, put in a zero.", "out": "且丽么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then if no items, add a zero.", "out": "且丽么"} {"kind": "builder", "in": "且丽么", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "且丽么", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then shift each up by ten.", "out": "丕丈丽"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then increase all numbers by 10.", "out": "丕丈丽"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then add 10 to everything.", "out": "丕丈丽"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then give everything a boost of 10.", "out": "丕丈丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then increment each by ten.", "out": "丕丈丽"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then add a constant 10 to each.", "out": "丕丈丽"} {"kind": "builder", "in": "丕丈丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丕丈丽", "out": "Take a list of integers; keep only the first three, then double each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then put the elements backwards.", "out": "乂丕丐"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then reverse that for me.", "out": "乂丕丐"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then flip it backwards.", "out": "乂丕丐"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then make it backwards.", "out": "乂丕丐"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then reverse the list.", "out": "乂丕丐"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then invert the sequence.", "out": "乂丕丐"} {"kind": "builder", "in": "乂丕丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "乂丕丐", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then clamp each to at most ten, then make each twice as big.", "out": "丕丘丈"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then don't let anything exceed 10, then multiply each by 2.", "out": "丕丘丈"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then clamp each to at most ten, then make each twice as big.", "out": "丕丘丈"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then don't let anything exceed 10, then multiply each by 2.", "out": "丕丘丈"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then clamp each to at most ten, then make each twice as big.", "out": "丕丘丈"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then don't let anything exceed 10, then multiply each by 2.", "out": "丕丘丈"} {"kind": "builder", "in": "丕丘丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [min(x, 10) for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丕丘丈", "out": "Take a list of integers; keep only the first three, then cap each value at 10, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the list around, then replace an empty list with one zero.", "out": "世丐么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then flip the order around, then zero it out if it's empty.", "out": "世丐么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then put the elements backwards, then use zero if the list is empty.", "out": "世丐么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then reverse that for me, then default to zero when empty.", "out": "世丐么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip it backwards, then if there's nothing, put in a zero.", "out": "世丐么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then make it backwards, then if no items, add a zero.", "out": "世丐么"} {"kind": "builder", "in": "世丐么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(reversed(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "世丐么", "out": "Take a list of integers; drop the first element, then reverse the order, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then add '#' to the start of each string, then remove surrounding whitespace.", "out": "丨乘丢"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make each one start with a hash, then trim the whitespace off everything.", "out": "丨乘丢"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then add '#' to the start of each string, then strip spaces from all strings.", "out": "丨乘丢"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make each one start with a hash, then strip all the strings.", "out": "丨乘丢"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then add '#' to the start of each string, then clean up whitespace in the list.", "out": "丨乘丢"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make each one start with a hash, then strip spaces around each string.", "out": "丨乘丢"} {"kind": "builder", "in": "丨乘丢", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = ['#' + s for s in r]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "丨乘丢", "out": "Take a list of strings; keep the first character of each (dropping empties), then prefix each with a hash, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the sign of each, then deduplicate the list.", "out": "丹与且"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then turn positives to negatives and vice versa, then remove repeats.", "out": "丹与且"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then flip the sign of each, then deduplicate the list.", "out": "丹与且"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn positives to negatives and vice versa, then remove repeats.", "out": "丹与且"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip the sign of each, then deduplicate the list.", "out": "丹与且"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then turn positives to negatives and vice versa, then remove repeats.", "out": "丹与且"} {"kind": "builder", "in": "丹与且", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丹与且", "out": "Take a list of integers; keep only the last three, then negate each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then order strings from shortest to longest, then true if a blank string is present.", "out": "乗严乙"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then shortest to longest, then check for empty strings in the list.", "out": "乗严乙"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then arrange by string length ascending, then check if there's an empty string.", "out": "乗严乙"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then length sort, then does the collection contain an empty string value somewhere.", "out": "乗严乙"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then sort by length shortest first, then whether any element is blank.", "out": "乗严乙"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then organize by string length least to greatest, then check for an empty string.", "out": "乗严乙"} {"kind": "builder", "in": "乗严乙", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = sorted(r, key=len)\n return any(s == '' for s in r)"} {"kind": "translator", "in": "乗严乙", "out": "Take a list of strings; drop strings shorter than three characters, then sort by length, shortest first, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increase every value by 10, then give back the product of all values.", "out": "丕丽乐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add 10 to each item, then product of the list.", "out": "丕丽乐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then shift each up by ten, then what's the product.", "out": "丕丽乐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then increase all numbers by 10, then what do they multiply to.", "out": "丕丽乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add 10 to everything, then give me their product.", "out": "丕丽乐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give everything a boost of 10, then multiply them all together.", "out": "丕丽乐"} {"kind": "builder", "in": "丕丽乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 10 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丕丽乐", "out": "Take a list of integers; keep only the first three, then add ten to each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then remove the initial run of negative numbers.", "out": "且举乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then strip the front negatives.", "out": "且举乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then remove leading negative numbers.", "out": "且举乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then drop negatives from start.", "out": "且举乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then strip negative values from the start.", "out": "且举乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then remove negatives before the first non-negative.", "out": "且举乃"} {"kind": "builder", "in": "且举乃", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "且举乃", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the zeros, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then keep only non-empty strings, then reduce each string to its first character.", "out": "乘两丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then filter empty strings, then take first char drop blanks.", "out": "乘两丨"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then remove empty strings from the list, then keep first letters only.", "out": "乘两丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then clean up empty strings, then first letter from each item that isn't empty.", "out": "乘两丨"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then delete empty entries, then grab the first char from each.", "out": "乘两丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then drop empty strings, then isolate the first character per entry.", "out": "乘两丨"} {"kind": "builder", "in": "乘两丨", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s for s in r if s]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乘两丨", "out": "Take a list of strings; prefix each with a hash, then drop empty strings, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then true if every value is unique.", "out": "不主乏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then check for duplicates in the values.", "out": "不主乏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then do all values appear only once.", "out": "不主乏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then check that there are no duplicates.", "out": "不主乏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then are the values all unique.", "out": "不主乏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then check if all values are unique.", "out": "不主乏"} {"kind": "builder", "in": "不主乏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "不主乏", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values above zero, then skip the first one.", "out": "义七世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter for positive numbers, then Discard the first element.", "out": "义七世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only positive numbers, then skip the first one.", "out": "义七世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positives, then Discard the first element.", "out": "义七世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove negatives, then skip the first one.", "out": "义七世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positive numbers, then Discard the first element.", "out": "义七世"} {"kind": "builder", "in": "义七世", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "义七世", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the positive numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then extend to length 3 using zeros, then truncate to three items.", "out": "七义丕"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then pad to 3, then show the first three.", "out": "七义丕"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then extend to length 3 using zeros, then take the first three.", "out": "七义丕"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then pad to 3, then keep first 3.", "out": "七义丕"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then extend to length 3 using zeros, then truncate to first three.", "out": "七义丕"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then pad to 3, then first three.", "out": "七义丕"} {"kind": "builder", "in": "七义丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n return r"} {"kind": "translator", "in": "七义丕", "out": "Take a list of integers; keep the positive numbers, then pad with zeros to at least three elements, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then shift each up by ten.", "out": "一举丽"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then increase all numbers by 10.", "out": "一举丽"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then add 10 to everything.", "out": "一举丽"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then give everything a boost of 10.", "out": "一举丽"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then increment each by ten.", "out": "一举丽"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then add a constant 10 to each.", "out": "一举丽"} {"kind": "builder", "in": "一举丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "一举丽", "out": "Take a list of integers; keep the even numbers, then drop the zeros, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the sign of each, then find the min, defaulting to 0.", "out": "七与丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then turn positives to negatives and vice versa, then minimum value, zero otherwise.", "out": "七与丛"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then flip the sign of each, then get the minimum value or zero if empty.", "out": "七与丛"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn positives to negatives and vice versa, then give me the min or 0.", "out": "七与丛"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip the sign of each, then return the smallest number, defaulting to 0.", "out": "七与丛"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then turn positives to negatives and vice versa, then return smallest or zero if empty.", "out": "七与丛"} {"kind": "builder", "in": "七与丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "七与丛", "out": "Take a list of integers; keep the positive numbers, then negate each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove repeated values, then give the earliest even value or zero.", "out": "专且乒"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then unique values preserving order, then fetch the first even element, default to 0.", "out": "专且乒"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove repeated values, then give the earliest even value or zero.", "out": "专且乒"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then unique values preserving order, then fetch the first even element, default to 0.", "out": "专且乒"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove repeated values, then give the earliest even value or zero.", "out": "专且乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then unique values preserving order, then fetch the first even element, default to 0.", "out": "专且乒"} {"kind": "builder", "in": "专且乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(dict.fromkeys(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "专且乒", "out": "Take a list of integers; sort descending, then drop duplicates keeping first occurrence, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort smallest to largest, then keep only numbers above 5.", "out": "丏丑主"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Ascending sort, then exclude values of 5 and below.", "out": "丏丑主"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then Sort this ascending, then remove anything 5 or less.", "out": "丏丑主"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Sort lowest to highest, then filter to keep only values above 5.", "out": "丏丑主"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Arrange from smallest to largest, then get rid of values that aren't greater than five.", "out": "丏丑主"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort ascending, then drop anything 5 or below.", "out": "丏丑主"} {"kind": "builder", "in": "丏丑主", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丏丑主", "out": "Take a list of integers; take the absolute value of each, then sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then put the elements backwards.", "out": "丸万丐"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then reverse that for me.", "out": "丸万丐"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then flip it backwards.", "out": "丸万丐"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then make it backwards.", "out": "丸万丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then reverse the list.", "out": "丸万丐"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then invert the sequence.", "out": "丸万丐"} {"kind": "builder", "in": "丸万丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丸万丐", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then drop the even numbers.", "out": "丽乂丁"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then strip out the evens.", "out": "丽乂丁"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then drop the even numbers.", "out": "丽乂丁"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then strip out the evens.", "out": "丽乂丁"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then drop the even numbers.", "out": "丽乂丁"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then strip out the evens.", "out": "丽乂丁"} {"kind": "builder", "in": "丽乂丁", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丽乂丁", "out": "Take a list of integers; add ten to each, then take values while they are positive, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each value by itself, then shift each up by ten.", "out": "乂上丽"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then square them all, then increase all numbers by 10.", "out": "乂上丽"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then raise each to the power of two, then add 10 to everything.", "out": "乂上丽"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then I need each number multiplied by itself, then give everything a boost of 10.", "out": "乂上丽"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then square all of them, then increment each by ten.", "out": "乂上丽"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiply each element by itself, then add a constant 10 to each.", "out": "乂上丽"} {"kind": "builder", "in": "乂上丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乂上丽", "out": "Take a list of integers; take values while they are positive, then square each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort largest to smallest, then drop the even numbers.", "out": "上专丁"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort by descending values, then strip out the evens.", "out": "上专丁"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then sort from highest to lowest, then drop the even numbers.", "out": "上专丁"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sort descending, then strip out the evens.", "out": "上专丁"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort largest first, then drop the even numbers.", "out": "上专丁"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort in descending order, then strip out the evens.", "out": "上专丁"} {"kind": "builder", "in": "上专丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "上专丁", "out": "Take a list of integers; square each, then sort descending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then remove short strings (under 3 chars).", "out": "乖乘乗"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then only keep strings with three or more characters.", "out": "乖乘乗"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then keep only strings that are at least three characters long.", "out": "乖乘乗"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then filter strings shorter than 3 chars.", "out": "乖乘乗"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then drop anything shorter than three characters.", "out": "乖乘乗"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then keep only strings of length 3 or more.", "out": "乖乘乗"} {"kind": "builder", "in": "乖乘乗", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = ['#' + s for s in r]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "乖乘乗", "out": "Take a list of strings; sort alphabetically, then prefix each with a hash, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then reduce each by one.", "out": "举丑不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then Subtract 1 from all.", "out": "举丑不"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then Subtract one from each.", "out": "举丑不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then Drop each by one.", "out": "举丑不"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then Decrease all values by one.", "out": "举丑不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then Remove one from each value.", "out": "举丑不"} {"kind": "builder", "in": "举丑不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "举丑不", "out": "Take a list of integers; drop the zeros, then sort ascending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then take the first 3 elements, then drop the odd numbers.", "out": "丑丕一"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove everything after the third, then filter out the odd numbers.", "out": "丑丕一"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then truncate to three items, then drop the odd numbers.", "out": "丑丕一"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then show the first three, then filter out the odd numbers.", "out": "丑丕一"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then take the first three, then drop the odd numbers.", "out": "丑丕一"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep first 3, then filter out the odd numbers.", "out": "丑丕一"} {"kind": "builder", "in": "丑丕一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:3]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丑丕一", "out": "Take a list of integers; sort ascending, then keep only the first three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then default to [0] when there is nothing, then arrange in decreasing order.", "out": "义么专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then when the list is empty, substitute a zero value, then arrange in descending order.", "out": "义么专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then replace an empty list with one zero, then reverse sort.", "out": "义么专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then zero it out if it's empty, then sort largest to smallest.", "out": "义么专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then use zero if the list is empty, then sort by descending values.", "out": "义么专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then default to zero when empty, then sort from highest to lowest.", "out": "义么专"} {"kind": "builder", "in": "义么专", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r if r else [0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "义么专", "out": "Take a list of integers; pad with zeros to at least three elements, then if empty, use a single zero, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep the leading run of positive numbers, then strip the signs.", "out": "为乂丏"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then take values while they are positive, then take abs of each.", "out": "为乂丏"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take positive values then stop, then get the absolute value of everything.", "out": "为乂丏"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep going while positive, then apply absolute value to the whole list.", "out": "为乂丏"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then stop at first non positive, then make them all positive.", "out": "为乂丏"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take while greater than zero, then make every value non-negative.", "out": "为乂丏"} {"kind": "builder", "in": "为乂丏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "为乂丏", "out": "Take a list of integers; drop the first and last elements, then take values while they are positive, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then default to [0] when there is nothing, then ensure at least three items by appending zeros.", "out": "七么义"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then when the list is empty, substitute a zero value, then ensure minimum length of three by adding zeros to the end.", "out": "七么义"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then replace an empty list with one zero, then ensure at least three items by appending zeros.", "out": "七么义"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then zero it out if it's empty, then ensure minimum length of three by adding zeros to the end.", "out": "七么义"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then use zero if the list is empty, then ensure at least three items by appending zeros.", "out": "七么义"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then default to zero when empty, then ensure minimum length of three by adding zeros to the end.", "out": "七么义"} {"kind": "builder", "in": "七么义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r if r else [0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "七么义", "out": "Take a list of integers; keep the positive numbers, then if empty, use a single zero, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then order by distance from zero, then give the earliest even value or zero.", "out": "专丸乒"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "专丸乒"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then organize by magnitude, then give the earliest even value or zero.", "out": "专丸乒"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "专丸乒"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "专丸乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort by absolute value, then fetch the first even element, default to 0.", "out": "专丸乒"} {"kind": "builder", "in": "专丸乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "专丸乒", "out": "Take a list of integers; sort descending, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then sort smallest to largest, then drop anything not divisible by three.", "out": "久丑串"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Ascending sort, then filter out everything except multiples of three.", "out": "久丑串"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then Sort this ascending, then keep only multiples of three.", "out": "久丑串"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Sort lowest to highest, then multiples of three only.", "out": "久丑串"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Arrange from smallest to largest, then filter for numbers divisible by three.", "out": "久丑串"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort ascending, then give me only the values divisible by three.", "out": "久丑串"} {"kind": "builder", "in": "久丑串", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "久丑串", "out": "Take a list of integers; keep everything before the first zero, then sort ascending, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increment each value, then reduce each by one.", "out": "专下不"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then plus one for all, then Subtract 1 from all.", "out": "专下不"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then increment each value, then Subtract one from each.", "out": "专下不"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then plus one for all, then Drop each by one.", "out": "专下不"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then increment each value, then Decrease all values by one.", "out": "专下不"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then plus one for all, then Remove one from each value.", "out": "专下不"} {"kind": "builder", "in": "专下不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "专下不", "out": "Take a list of integers; sort descending, then add one to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; square each, then order by distance from zero, then stop at the first non-positive value.", "out": "上丸乂"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort based on absolute value, then keep the leading run of positive numbers.", "out": "上丸乂"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then organize by magnitude, then take values while they are positive.", "out": "上丸乂"} {"kind": "speaker", "in": "Take a list of integers; square them all, then arrange by absolute value ascending, then take positive values then stop.", "out": "上丸乂"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort from smallest to largest absolute value, then keep going while positive.", "out": "上丸乂"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort by absolute value, then stop at first non positive.", "out": "上丸乂"} {"kind": "builder", "in": "上丸乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "上丸乂", "out": "Take a list of integers; square each, then sort by absolute value, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove both ends, then true if already sorted smallest to largest.", "out": "久为乎"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then trim the edges, then does this list go in ascending order.", "out": "久为乎"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then trim one element off each end, then check if the list is in ascending order.", "out": "久为乎"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then cut off the first and last, then is the list sorted.", "out": "久为乎"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first and last elements, then is it sorted.", "out": "久为乎"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep only the middle part, then check if values are in increasing order.", "out": "久为乎"} {"kind": "builder", "in": "久为乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return r == sorted(r)"} {"kind": "translator", "in": "久为乎", "out": "Take a list of integers; keep everything before the first zero, then drop the first and last elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only odd values, then deduplicate the list.", "out": "丕丁且"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then eliminate the even numbers, then remove repeats.", "out": "丕丁且"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only odd values, then deduplicate the list.", "out": "丕丁且"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then eliminate the even numbers, then remove repeats.", "out": "丕丁且"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only odd values, then deduplicate the list.", "out": "丕丁且"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then eliminate the even numbers, then remove repeats.", "out": "丕丁且"} {"kind": "builder", "in": "丕丁且", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丕丁且", "out": "Take a list of integers; keep only the first three, then keep the odd numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then extend to length 3 using zeros, then arrange in increasing order.", "out": "乂义丑"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then pad to 3, then Organize these ascending.", "out": "乂义丑"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then extend to length 3 using zeros, then Sort in ascending order.", "out": "乂义丑"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then pad to 3, then I need this sorted ascending.", "out": "乂义丑"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then extend to length 3 using zeros, then Put these in ascending order.", "out": "乂义丑"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then pad to 3, then sort smallest to largest.", "out": "乂义丑"} {"kind": "builder", "in": "乂义丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乂义丑", "out": "Take a list of integers; take values while they are positive, then pad with zeros to at least three elements, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values divisible by 3, then ensure at least three items by appending zeros.", "out": "丸串义"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep items where x mod 3 equals zero, then ensure minimum length of three by adding zeros to the end.", "out": "丸串义"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then drop anything not divisible by three, then ensure at least three items by appending zeros.", "out": "丸串义"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then filter out everything except multiples of three, then ensure minimum length of three by adding zeros to the end.", "out": "丸串义"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only multiples of three, then ensure at least three items by appending zeros.", "out": "丸串义"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiples of three only, then ensure minimum length of three by adding zeros to the end.", "out": "丸串义"} {"kind": "builder", "in": "丸串义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丸串义", "out": "Take a list of integers; sort by absolute value, then keep multiples of three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each by two, then limit every value to 10.", "out": "七丈丘"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then double each item in the list, then maximum of 10 for all.", "out": "七丈丘"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then multiply each by two, then limit every value to 10.", "out": "七丈丘"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then double each item in the list, then maximum of 10 for all.", "out": "七丈丘"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then multiply each by two, then limit every value to 10.", "out": "七丈丘"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then double each item in the list, then maximum of 10 for all.", "out": "七丈丘"} {"kind": "builder", "in": "七丈丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "七丈丘", "out": "Take a list of integers; keep the positive numbers, then double each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increase every value by 10, then drop the odd numbers.", "out": "丐丽一"} {"kind": "speaker", "in": "Take a list of integers; reverse, then add 10 to each item, then filter out the odd numbers.", "out": "丐丽一"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then shift each up by ten, then drop the odd numbers.", "out": "丐丽一"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then increase all numbers by 10, then filter out the odd numbers.", "out": "丐丽一"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then add 10 to everything, then drop the odd numbers.", "out": "丐丽一"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give everything a boost of 10, then filter out the odd numbers.", "out": "丐丽一"} {"kind": "builder", "in": "丐丽一", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丐丽一", "out": "Take a list of integers; reverse the order, then add ten to each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove the first item, then arrange by magnitude ignoring sign.", "out": "乃世丸"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Remove head, then put them in order by magnitude.", "out": "乃世丸"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove the first item, then arrange in order of absolute value.", "out": "乃世丸"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Remove head, then sort by distance from zero.", "out": "乃世丸"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first item, then order by how far from zero.", "out": "乃世丸"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Remove head, then order by distance from zero.", "out": "乃世丸"} {"kind": "builder", "in": "乃世丸", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "乃世丸", "out": "Take a list of integers; drop the leading negative values, then drop the first element, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements, then give the number of evens.", "out": "义丕乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third, then find how many values are divisible by two.", "out": "义丕乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items, then how many are even.", "out": "义丕乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three, then get the total number of even values in the list.", "out": "义丕乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three, then give me the count of even values.", "out": "义丕乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3, then I need to know how many of these are even.", "out": "义丕乓"} {"kind": "builder", "in": "义丕乓", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "义丕乓", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then count the elements.", "out": "万下东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then how many items remain.", "out": "万下东"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then tell me the length.", "out": "万下东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then return the length.", "out": "万下东"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then count them.", "out": "万下东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then what's the count.", "out": "万下东"} {"kind": "builder", "in": "万下东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n return len(r)"} {"kind": "translator", "in": "万下东", "out": "Take a list of integers; keep the negative numbers, then add one to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then order by distance from zero, then raise each to the power of two.", "out": "七丸上"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort based on absolute value, then I need each number multiplied by itself.", "out": "七丸上"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then organize by magnitude, then square all of them.", "out": "七丸上"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then arrange by absolute value ascending, then multiply each element by itself.", "out": "七丸上"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort from smallest to largest absolute value, then make each one squared.", "out": "七丸上"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort by absolute value, then square each value in the list.", "out": "七丸上"} {"kind": "builder", "in": "七丸上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "七丸上", "out": "Take a list of integers; keep the positive numbers, then sort by absolute value, then square each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then true if at least one even value.", "out": "义且之"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then any even.", "out": "义且之"} {"kind": "builder", "in": "义且之", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "义且之", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then find the max, defaulting to 0.", "out": "丑且业"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then Give me the maximum, but 0 if there are no items.", "out": "丑且业"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then What's the highest number in the list.", "out": "丑且业"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then Return the greatest value or default to 0.", "out": "丑且业"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then Find the largest element, defaulting to zero.", "out": "丑且业"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then give the largest value (0 if none).", "out": "丑且业"} {"kind": "builder", "in": "丑且业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return max(r) if r else 0"} {"kind": "translator", "in": "丑且业", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then drop anything 5 or below, then give the number of evens.", "out": "乂主乓"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep only numbers greater than 5, then find how many values are divisible by two.", "out": "乂主乓"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then filter for numbers above 5, then how many are even.", "out": "乂主乓"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then give me values where x is greater than 5, then get the total number of even values in the list.", "out": "乂主乓"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then show me only the values that are bigger than five, then give me the count of even values.", "out": "乂主乓"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep values greater than five, then I need to know how many of these are even.", "out": "乂主乓"} {"kind": "builder", "in": "乂主乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 5]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乂主乓", "out": "Take a list of integers; take values while they are positive, then keep values greater than five, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the list around, then reduce each by one.", "out": "为丐不"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then flip the order around, then Subtract 1 from all.", "out": "为丐不"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then put the elements backwards, then Subtract one from each.", "out": "为丐不"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then reverse that for me, then Drop each by one.", "out": "为丐不"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip it backwards, then Decrease all values by one.", "out": "为丐不"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then make it backwards, then Remove one from each value.", "out": "为丐不"} {"kind": "builder", "in": "为丐不", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(reversed(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "为丐不", "out": "Take a list of integers; drop the first and last elements, then reverse the order, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values divisible by 3, then skip the first one.", "out": "义串世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep items where x mod 3 equals zero, then Discard the first element.", "out": "义串世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything not divisible by three, then skip the first one.", "out": "义串世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter out everything except multiples of three, then Discard the first element.", "out": "义串世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only multiples of three, then skip the first one.", "out": "义串世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiples of three only, then Discard the first element.", "out": "义串世"} {"kind": "builder", "in": "义串世", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 3 == 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "义串世", "out": "Take a list of integers; pad with zeros to at least three elements, then keep multiples of three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then replace an empty list with one zero.", "out": "串主么"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then zero it out if it's empty.", "out": "串主么"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then use zero if the list is empty.", "out": "串主么"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then default to zero when empty.", "out": "串主么"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then if there's nothing, put in a zero.", "out": "串主么"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then if no items, add a zero.", "out": "串主么"} {"kind": "builder", "in": "串主么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "串主么", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove repeated values, then shift each up by ten.", "out": "丏且丽"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then unique values preserving order, then increase all numbers by 10.", "out": "丏且丽"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove repeated values, then add 10 to everything.", "out": "丏且丽"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then unique values preserving order, then give everything a boost of 10.", "out": "丏且丽"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove repeated values, then increment each by ten.", "out": "丏且丽"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then unique values preserving order, then add a constant 10 to each.", "out": "丏且丽"} {"kind": "builder", "in": "丏且丽", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丏且丽", "out": "Take a list of integers; take the absolute value of each, then drop duplicates keeping first occurrence, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort smallest to largest, then true if at least one even value.", "out": "丐丑之"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Ascending sort, then any even.", "out": "丐丑之"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then Sort this ascending, then true if at least one even value.", "out": "丐丑之"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Sort lowest to highest, then any even.", "out": "丐丑之"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then Arrange from smallest to largest, then true if at least one even value.", "out": "丐丑之"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort ascending, then any even.", "out": "丐丑之"} {"kind": "builder", "in": "丐丑之", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丐丑之", "out": "Take a list of integers; reverse the order, then sort ascending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then keep only non-zero numbers.", "out": "么主举"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then strip the zeros.", "out": "么主举"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then keep only non-zero numbers.", "out": "么主举"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then strip the zeros.", "out": "么主举"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then keep only non-zero numbers.", "out": "么主举"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then strip the zeros.", "out": "么主举"} {"kind": "builder", "in": "么主举", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "么主举", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove all zero values, then limit every value to 10.", "out": "么举丘"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then exclude zeros, then maximum of 10 for all.", "out": "么举丘"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove all zero values, then limit every value to 10.", "out": "么举丘"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then exclude zeros, then maximum of 10 for all.", "out": "么举丘"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove all zero values, then limit every value to 10.", "out": "么举丘"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then exclude zeros, then maximum of 10 for all.", "out": "么举丘"} {"kind": "builder", "in": "么举丘", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "么举丘", "out": "Take a list of integers; if empty, use a single zero, then drop the zeros, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements, then raise each to the power of two.", "out": "丕丹上"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three, then I need each number multiplied by itself.", "out": "丕丹上"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements, then square all of them.", "out": "丕丹上"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three, then multiply each element by itself.", "out": "丕丹上"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items, then make each one squared.", "out": "丕丹上"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three, then square each value in the list.", "out": "丕丹上"} {"kind": "builder", "in": "丕丹上", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丕丹上", "out": "Take a list of integers; keep only the first three, then keep only the last three, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each value by itself, then give back the product of all values.", "out": "久上乐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then square them all, then product of the list.", "out": "久上乐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then raise each to the power of two, then what's the product.", "out": "久上乐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then I need each number multiplied by itself, then what do they multiply to.", "out": "久上乐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then square all of them, then give me their product.", "out": "久上乐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiply each element by itself, then multiply them all together.", "out": "久上乐"} {"kind": "builder", "in": "久上乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * x for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "久上乐", "out": "Take a list of integers; keep everything before the first zero, then square each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then remove the initial run of negative numbers.", "out": "丐久乃"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then strip the front negatives.", "out": "丐久乃"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then remove leading negative numbers.", "out": "丐久乃"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then drop negatives from start.", "out": "丐久乃"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then strip negative values from the start.", "out": "丐久乃"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then remove negatives before the first non-negative.", "out": "丐久乃"} {"kind": "builder", "in": "丐久乃", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丐久乃", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then convert each to lower case, then return them as one comma-separated string.", "out": "乘丞中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then lowercase each one, then separate by comma.", "out": "乘丞中"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then convert each to lower case, then join with commas.", "out": "乘丞中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then lowercase each one, then comma join.", "out": "乘丞中"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then convert each to lower case, then combine using commas.", "out": "乘丞中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then lowercase each one, then connect with commas between each item.", "out": "乘丞中"} {"kind": "builder", "in": "乘丞中", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s.lower() for s in r]\n return ','.join(r)"} {"kind": "translator", "in": "乘丞中", "out": "Take a list of strings; prefix each with a hash, then lowercase each string, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then arrange in decreasing order.", "out": "义丁专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then arrange in descending order.", "out": "义丁专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then reverse sort.", "out": "义丁专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then sort largest to smallest.", "out": "义丁专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then sort by descending values.", "out": "义丁专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then sort from highest to lowest.", "out": "义丁专"} {"kind": "builder", "in": "义丁专", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "义丁专", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the odd numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove repeated values, then drop the even numbers.", "out": "丘且丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then unique values preserving order, then strip out the evens.", "out": "丘且丁"} {"kind": "builder", "in": "丘且丁", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丘且丁", "out": "Take a list of integers; cap each value at 10, then drop duplicates keeping first occurrence, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then drop anything 5 or below, then true only if all are positive.", "out": "丕主乌"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then keep only numbers greater than 5, then do all of these have positive values.", "out": "丕主乌"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then filter for numbers above 5, then check if every value is positive.", "out": "丕主乌"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then give me values where x is greater than 5, then confirm all values are positive.", "out": "丕主乌"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then show me only the values that are bigger than five, then all positive.", "out": "丕主乌"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep values greater than five, then check if every number is above zero.", "out": "丕主乌"} {"kind": "builder", "in": "丕主乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 5]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丕主乌", "out": "Take a list of integers; keep only the first three, then keep values greater than five, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then true if at least one even value.", "out": "么丽之"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then any even.", "out": "么丽之"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then true if at least one even value.", "out": "么丽之"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then any even.", "out": "么丽之"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then true if at least one even value.", "out": "么丽之"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then any even.", "out": "么丽之"} {"kind": "builder", "in": "么丽之", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "么丽之", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the list around, then multiply each by -1.", "out": "七丐与"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then flip the order around, then negate.", "out": "七丐与"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then put the elements backwards, then multiply each by -1.", "out": "七丐与"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then reverse that for me, then negate.", "out": "七丐与"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip it backwards, then multiply each by -1.", "out": "七丐与"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then make it backwards, then negate.", "out": "七丐与"} {"kind": "builder", "in": "七丐与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(reversed(r))\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "七丐与", "out": "Take a list of integers; keep the positive numbers, then reverse the order, then negate each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the final 3 elements, then give back the product of all values.", "out": "丐丹乐"} {"kind": "speaker", "in": "Take a list of integers; reverse, then drop everything except the final three, then product of the list.", "out": "丐丹乐"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then give me the last three elements, then what's the product.", "out": "丐丹乐"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep only the last three, then what do they multiply to.", "out": "丐丹乐"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep the final three items, then give me their product.", "out": "丐丹乐"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the last three, then multiply them all together.", "out": "丐丹乐"} {"kind": "builder", "in": "丐丹乐", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丐丹乐", "out": "Take a list of integers; reverse the order, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove repeated values, then limit every value to 10.", "out": "丽且丘"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then unique values preserving order, then maximum of 10 for all.", "out": "丽且丘"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove repeated values, then limit every value to 10.", "out": "丽且丘"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then unique values preserving order, then maximum of 10 for all.", "out": "丽且丘"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove repeated values, then limit every value to 10.", "out": "丽且丘"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then unique values preserving order, then maximum of 10 for all.", "out": "丽且丘"} {"kind": "builder", "in": "丽且丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丽且丘", "out": "Take a list of integers; add ten to each, then drop duplicates keeping first occurrence, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then drop the odd numbers.", "out": "万丁一"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then filter out the odd numbers.", "out": "万丁一"} {"kind": "builder", "in": "万丁一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "万丁一", "out": "Take a list of integers; keep the negative numbers, then keep the odd numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero, then remove the initial run of negative numbers.", "out": "丑丸乃"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value, then strip the front negatives.", "out": "丑丸乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude, then remove leading negative numbers.", "out": "丑丸乃"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending, then drop negatives from start.", "out": "丑丸乃"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value, then strip negative values from the start.", "out": "丑丸乃"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value, then remove negatives before the first non-negative.", "out": "丑丸乃"} {"kind": "builder", "in": "丑丸乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丑丸乃", "out": "Take a list of integers; sort ascending, then sort by absolute value, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then order by distance from zero, then take values up to (excluding) the first zero.", "out": "丐丸久"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort based on absolute value, then keep the part before the first 0.", "out": "丐丸久"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then organize by magnitude, then truncate at the first zero.", "out": "丐丸久"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then arrange by absolute value ascending, then delete everything starting with the first zero.", "out": "丐丸久"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort from smallest to largest absolute value, then remove from the first zero onwards.", "out": "丐丸久"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort by absolute value, then up to but not including the first zero.", "out": "丐丸久"} {"kind": "builder", "in": "丐丸久", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丐丸久", "out": "Take a list of integers; reverse the order, then sort by absolute value, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the final 3 elements, then skip the first one.", "out": "举丹世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop everything except the final three, then Discard the first element.", "out": "举丹世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give me the last three elements, then skip the first one.", "out": "举丹世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the last three, then Discard the first element.", "out": "举丹世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the final three items, then skip the first one.", "out": "举丹世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the last three, then Discard the first element.", "out": "举丹世"} {"kind": "builder", "in": "举丹世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[-3:]\n r = r[1:]\n return r"} {"kind": "translator", "in": "举丹世", "out": "Take a list of integers; drop the zeros, then keep only the last three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then raise each to the power of two.", "out": "且义上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then I need each number multiplied by itself.", "out": "且义上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then square all of them.", "out": "且义上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then multiply each element by itself.", "out": "且义上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then make each one squared.", "out": "且义上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then square each value in the list.", "out": "且义上"} {"kind": "builder", "in": "且义上", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "且义上", "out": "Take a list of integers; drop duplicates keeping first occurrence, then pad with zeros to at least three elements, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then clamp each to at most ten, then deduplicate the list.", "out": "丕丘且"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then don't let anything exceed 10, then remove repeats.", "out": "丕丘且"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then clamp each to at most ten, then deduplicate the list.", "out": "丕丘且"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then don't let anything exceed 10, then remove repeats.", "out": "丕丘且"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then clamp each to at most ten, then deduplicate the list.", "out": "丕丘且"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then don't let anything exceed 10, then remove repeats.", "out": "丕丘且"} {"kind": "builder", "in": "丕丘且", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丕丘且", "out": "Take a list of integers; keep only the first three, then cap each value at 10, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then extend to length 3 using zeros, then give back the product of all values.", "out": "丹义乐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then pad to 3, then product of the list.", "out": "丹义乐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then extend to length 3 using zeros, then what's the product.", "out": "丹义乐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then pad to 3, then what do they multiply to.", "out": "丹义乐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then extend to length 3 using zeros, then give me their product.", "out": "丹义乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then pad to 3, then multiply them all together.", "out": "丹义乐"} {"kind": "builder", "in": "丹义乐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丹义乐", "out": "Take a list of integers; keep only the last three, then pad with zeros to at least three elements, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increase every value by 10, then put the elements backwards.", "out": "丑丽丐"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then add 10 to each item, then reverse that for me.", "out": "丑丽丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then shift each up by ten, then flip it backwards.", "out": "丑丽丐"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then increase all numbers by 10, then make it backwards.", "out": "丑丽丐"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then add 10 to everything, then reverse the list.", "out": "丑丽丐"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then give everything a boost of 10, then invert the sequence.", "out": "丑丽丐"} {"kind": "builder", "in": "丑丽丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丑丽丐", "out": "Take a list of integers; sort ascending, then add ten to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then sort smallest to largest, then true if every value is unique.", "out": "久丑乏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Ascending sort, then check for duplicates in the values.", "out": "久丑乏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then Sort this ascending, then do all values appear only once.", "out": "久丑乏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Sort lowest to highest, then check that there are no duplicates.", "out": "久丑乏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Arrange from smallest to largest, then are the values all unique.", "out": "久丑乏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort ascending, then check if all values are unique.", "out": "久丑乏"} {"kind": "builder", "in": "久丑乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "久丑乏", "out": "Take a list of integers; keep everything before the first zero, then sort ascending, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then order by distance from zero, then ensure at least three items by appending zeros.", "out": "久丸义"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort based on absolute value, then ensure minimum length of three by adding zeros to the end.", "out": "久丸义"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then organize by magnitude, then ensure at least three items by appending zeros.", "out": "久丸义"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then arrange by absolute value ascending, then ensure minimum length of three by adding zeros to the end.", "out": "久丸义"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort from smallest to largest absolute value, then ensure at least three items by appending zeros.", "out": "久丸义"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort by absolute value, then ensure minimum length of three by adding zeros to the end.", "out": "久丸义"} {"kind": "builder", "in": "久丸义", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "久丸义", "out": "Take a list of integers; keep everything before the first zero, then sort by absolute value, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increase every value by 10, then make each twice as big.", "out": "串丽丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then add 10 to each item, then multiply each by 2.", "out": "串丽丈"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then shift each up by ten, then make each twice as big.", "out": "串丽丈"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then increase all numbers by 10, then multiply each by 2.", "out": "串丽丈"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then add 10 to everything, then make each twice as big.", "out": "串丽丈"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then give everything a boost of 10, then multiply each by 2.", "out": "串丽丈"} {"kind": "builder", "in": "串丽丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "串丽丈", "out": "Take a list of integers; keep multiples of three, then add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each value by itself, then arrange in increasing order.", "out": "且上丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then square them all, then Organize these ascending.", "out": "且上丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then raise each to the power of two, then Sort in ascending order.", "out": "且上丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then I need each number multiplied by itself, then I need this sorted ascending.", "out": "且上丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then square all of them, then Put these in ascending order.", "out": "且上丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiply each element by itself, then sort smallest to largest.", "out": "且上丑"} {"kind": "builder", "in": "且上丑", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "且上丑", "out": "Take a list of integers; drop duplicates keeping first occurrence, then square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep the leading run of positive numbers, then trim one element off each end.", "out": "久乂为"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then take values while they are positive, then cut off the first and last.", "out": "久乂为"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take positive values then stop, then remove the first and last elements.", "out": "久乂为"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep going while positive, then keep only the middle part.", "out": "久乂为"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then stop at first non positive, then drop first and last.", "out": "久乂为"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take while greater than zero, then eliminate the outermost elements.", "out": "久乂为"} {"kind": "builder", "in": "久乂为", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "久乂为", "out": "Take a list of integers; keep everything before the first zero, then take values while they are positive, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value, then give the earliest even value or zero.", "out": "串下乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all, then fetch the first even element, default to 0.", "out": "串下乒"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value, then give the earliest even value or zero.", "out": "串下乒"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all, then fetch the first even element, default to 0.", "out": "串下乒"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value, then give the earliest even value or zero.", "out": "串下乒"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all, then fetch the first even element, default to 0.", "out": "串下乒"} {"kind": "builder", "in": "串下乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "串下乒", "out": "Take a list of integers; keep multiples of three, then add one to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then decrement each value, then trim one element off each end.", "out": "丹不为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Lower each number by one, then cut off the first and last.", "out": "丹不为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then reduce each by one, then remove the first and last elements.", "out": "丹不为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Subtract 1 from all, then keep only the middle part.", "out": "丹不为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Subtract one from each, then drop first and last.", "out": "丹不为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Drop each by one, then eliminate the outermost elements.", "out": "丹不为"} {"kind": "builder", "in": "丹不为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x - 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹不为", "out": "Take a list of integers; keep only the last three, then subtract one from each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then multiply each by -1.", "out": "丁万与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then negate.", "out": "丁万与"} {"kind": "builder", "in": "丁万与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丁万与", "out": "Take a list of integers; keep the odd numbers, then keep the negative numbers, then negate each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then decrement each value, then ensure at least three items by appending zeros.", "out": "九不义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Lower each number by one, then ensure minimum length of three by adding zeros to the end.", "out": "九不义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then reduce each by one, then ensure at least three items by appending zeros.", "out": "九不义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Subtract 1 from all, then ensure minimum length of three by adding zeros to the end.", "out": "九不义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Subtract one from each, then ensure at least three items by appending zeros.", "out": "九不义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Drop each by one, then ensure minimum length of three by adding zeros to the end.", "out": "九不义"} {"kind": "builder", "in": "九不义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九不义", "out": "Take a list of people records (name, age); extract the ages, then subtract one from each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each value by itself, then arrange in decreasing order.", "out": "丸上专"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then square them all, then arrange in descending order.", "out": "丸上专"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then raise each to the power of two, then reverse sort.", "out": "丸上专"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then I need each number multiplied by itself, then sort largest to smallest.", "out": "丸上专"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then square all of them, then sort by descending values.", "out": "丸上专"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiply each element by itself, then sort from highest to lowest.", "out": "丸上专"} {"kind": "builder", "in": "丸上专", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丸上专", "out": "Take a list of integers; sort by absolute value, then square each, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then limit every value to 10.", "out": "九与丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then maximum of 10 for all.", "out": "九与丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then limit every value to 10.", "out": "九与丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then maximum of 10 for all.", "out": "九与丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then limit every value to 10.", "out": "九与丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then maximum of 10 for all.", "out": "九与丘"} {"kind": "builder", "in": "九与丘", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "九与丘", "out": "Take a list of people records (name, age); extract the ages, then negate each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort largest to smallest, then give the number of evens.", "out": "主专乓"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort by descending values, then find how many values are divisible by two.", "out": "主专乓"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then sort from highest to lowest, then how many are even.", "out": "主专乓"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then sort descending, then get the total number of even values in the list.", "out": "主专乓"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort largest first, then give me the count of even values.", "out": "主专乓"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort in descending order, then I need to know how many of these are even.", "out": "主专乓"} {"kind": "builder", "in": "主专乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, reverse=True)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "主专乓", "out": "Take a list of integers; keep values greater than five, then sort descending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then skip negatives at the start, then make each twice as big.", "out": "义乃丈"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove all negatives at the front, then multiply each by 2.", "out": "义乃丈"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the initial run of negative numbers, then make each twice as big.", "out": "义乃丈"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then strip the front negatives, then multiply each by 2.", "out": "义乃丈"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove leading negative numbers, then make each twice as big.", "out": "义乃丈"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop negatives from start, then multiply each by 2.", "out": "义乃丈"} {"kind": "builder", "in": "义乃丈", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "义乃丈", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the leading negative values, then double each."} {"kind": "speaker", "in": "Take a list of integers; square each, then drop anything 5 or below, then replace an empty list with one zero.", "out": "上主么"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep only numbers greater than 5, then zero it out if it's empty.", "out": "上主么"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then filter for numbers above 5, then use zero if the list is empty.", "out": "上主么"} {"kind": "speaker", "in": "Take a list of integers; square them all, then give me values where x is greater than 5, then default to zero when empty.", "out": "上主么"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then show me only the values that are bigger than five, then if there's nothing, put in a zero.", "out": "上主么"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep values greater than five, then if no items, add a zero.", "out": "上主么"} {"kind": "builder", "in": "上主么", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "上主么", "out": "Take a list of integers; square each, then keep values greater than five, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements, then drop the odd numbers.", "out": "下丹一"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three, then filter out the odd numbers.", "out": "下丹一"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements, then drop the odd numbers.", "out": "下丹一"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three, then filter out the odd numbers.", "out": "下丹一"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items, then drop the odd numbers.", "out": "下丹一"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three, then filter out the odd numbers.", "out": "下丹一"} {"kind": "builder", "in": "下丹一", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "下丹一", "out": "Take a list of integers; add one to each, then keep only the last three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the first 3 elements, then count the elements.", "out": "九丕东"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove everything after the third, then how many items remain.", "out": "九丕东"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then truncate to three items, then tell me the length.", "out": "九丕东"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then show the first three, then return the length.", "out": "九丕东"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then take the first three, then count them.", "out": "九丕东"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep first 3, then what's the count.", "out": "九丕东"} {"kind": "builder", "in": "九丕东", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:3]\n return len(r)"} {"kind": "translator", "in": "九丕东", "out": "Take a list of people records (name, age); extract the ages, then keep only the first three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then clamp each to at most ten, then drop the even numbers.", "out": "丐丘丁"} {"kind": "speaker", "in": "Take a list of integers; reverse, then don't let anything exceed 10, then strip out the evens.", "out": "丐丘丁"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then clamp each to at most ten, then drop the even numbers.", "out": "丐丘丁"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then don't let anything exceed 10, then strip out the evens.", "out": "丐丘丁"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then clamp each to at most ten, then drop the even numbers.", "out": "丐丘丁"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then don't let anything exceed 10, then strip out the evens.", "out": "丐丘丁"} {"kind": "builder", "in": "丐丘丁", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丐丘丁", "out": "Take a list of integers; reverse the order, then cap each value at 10, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the first 3 elements, then find the min, defaulting to 0.", "out": "久丕丛"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then remove everything after the third, then minimum value, zero otherwise.", "out": "久丕丛"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then truncate to three items, then get the minimum value or zero if empty.", "out": "久丕丛"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then show the first three, then give me the min or 0.", "out": "久丕丛"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then take the first three, then return the smallest number, defaulting to 0.", "out": "久丕丛"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep first 3, then return smallest or zero if empty.", "out": "久丕丛"} {"kind": "builder", "in": "久丕丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:3]\n return min(r) if r else 0"} {"kind": "translator", "in": "久丕丛", "out": "Take a list of integers; keep everything before the first zero, then keep only the first three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort smallest to largest, then put the elements backwards.", "out": "串丑丐"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Ascending sort, then reverse that for me.", "out": "串丑丐"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then Sort this ascending, then flip it backwards.", "out": "串丑丐"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Sort lowest to highest, then make it backwards.", "out": "串丑丐"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Arrange from smallest to largest, then reverse the list.", "out": "串丑丐"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort ascending, then invert the sequence.", "out": "串丑丐"} {"kind": "builder", "in": "串丑丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "串丑丐", "out": "Take a list of integers; keep multiples of three, then sort ascending, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then decrement each value, then drop the even numbers.", "out": "世不丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Lower each number by one, then strip out the evens.", "out": "世不丁"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then reduce each by one, then drop the even numbers.", "out": "世不丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Subtract 1 from all, then strip out the evens.", "out": "世不丁"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Subtract one from each, then drop the even numbers.", "out": "世不丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Drop each by one, then strip out the evens.", "out": "世不丁"} {"kind": "builder", "in": "世不丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "世不丁", "out": "Take a list of integers; drop the first element, then subtract one from each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then trim one element off each end.", "out": "丹久为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then cut off the first and last.", "out": "丹久为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then remove the first and last elements.", "out": "丹久为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then keep only the middle part.", "out": "丹久为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then drop first and last.", "out": "丹久为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then eliminate the outermost elements.", "out": "丹久为"} {"kind": "builder", "in": "丹久为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹久为", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then cut the list at the first zero, then drop anything not divisible by three.", "out": "下久串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off after the first zero appears, then filter out everything except multiples of three.", "out": "下久串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take values up to (excluding) the first zero, then keep only multiples of three.", "out": "下久串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the part before the first 0, then multiples of three only.", "out": "下久串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate at the first zero, then filter for numbers divisible by three.", "out": "下久串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then delete everything starting with the first zero, then give me only the values divisible by three.", "out": "下久串"} {"kind": "builder", "in": "下久串", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "下久串", "out": "Take a list of integers; add one to each, then keep everything before the first zero, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then true only if all are positive.", "out": "丐丈乌"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then do all of these have positive values.", "out": "丐丈乌"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then check if every value is positive.", "out": "丐丈乌"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then confirm all values are positive.", "out": "丐丈乌"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then all positive.", "out": "丐丈乌"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then check if every number is above zero.", "out": "丐丈乌"} {"kind": "builder", "in": "丐丈乌", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丐丈乌", "out": "Take a list of integers; reverse the order, then double each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove the first item, then deduplicate the list.", "out": "丐世且"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Remove head, then remove repeats.", "out": "丐世且"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the first item, then deduplicate the list.", "out": "丐世且"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Remove head, then remove repeats.", "out": "丐世且"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first item, then deduplicate the list.", "out": "丐世且"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then Remove head, then remove repeats.", "out": "丐世且"} {"kind": "builder", "in": "丐世且", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丐世且", "out": "Take a list of integers; reverse the order, then drop the first element, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest to smallest, then truncate to three items.", "out": "世专丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by descending values, then show the first three.", "out": "世专丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from highest to lowest, then take the first three.", "out": "世专丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort descending, then keep first 3.", "out": "世专丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest first, then truncate to first three.", "out": "世专丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort in descending order, then first three.", "out": "世专丕"} {"kind": "builder", "in": "世专丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, reverse=True)\n r = r[:3]\n return r"} {"kind": "translator", "in": "世专丕", "out": "Take a list of integers; drop the first element, then sort descending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then give back the product of all values.", "out": "下丽乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then product of the list.", "out": "下丽乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then what's the product.", "out": "下丽乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then what do they multiply to.", "out": "下丽乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then give me their product.", "out": "下丽乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then multiply them all together.", "out": "下丽乐"} {"kind": "builder", "in": "下丽乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "下丽乐", "out": "Take a list of integers; add one to each, then add ten to each, then return their product."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then strip spaces around each string, then make every string lowercase.", "out": "乞丢丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then remove leading and trailing spaces, then make it all lowercase.", "out": "乞丢丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove whitespace from each item, then make every string lowercase.", "out": "乞丢丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then clean whitespace from each entry, then make it all lowercase.", "out": "乞丢丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then trim each string, then make every string lowercase.", "out": "乞丢丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then trim whitespace from each, then make it all lowercase.", "out": "乞丢丞"} {"kind": "builder", "in": "乞丢丞", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s.strip() for s in r]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "乞丢丞", "out": "Take a list of people records (name, age); extract the names, then trim whitespace from each, then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep the leading run of positive numbers, then put the elements backwards.", "out": "七乂丐"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then take values while they are positive, then reverse that for me.", "out": "七乂丐"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take positive values then stop, then flip it backwards.", "out": "七乂丐"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep going while positive, then make it backwards.", "out": "七乂丐"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then stop at first non positive, then reverse the list.", "out": "七乂丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take while greater than zero, then invert the sequence.", "out": "七乂丐"} {"kind": "builder", "in": "七乂丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "七乂丐", "out": "Take a list of integers; keep the positive numbers, then take values while they are positive, then reverse the order."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then drop anything 5 or below, then drop non-positive values.", "out": "九主七"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep only numbers greater than 5, then drop the negative numbers.", "out": "九主七"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then filter for numbers above 5, then filter out the negative ones.", "out": "九主七"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then give me values where x is greater than 5, then remove all negative values.", "out": "九主七"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then show me only the values that are bigger than five, then keep positive values only.", "out": "九主七"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep values greater than five, then keep values above zero.", "out": "九主七"} {"kind": "builder", "in": "九主七", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "九主七", "out": "Take a list of people records (name, age); extract the ages, then keep values greater than five, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values below zero, then drop the even numbers.", "out": "不万丁"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then get the negative numbers, then strip out the evens.", "out": "不万丁"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep values below zero, then drop the even numbers.", "out": "不万丁"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the negative numbers, then strip out the evens.", "out": "不万丁"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep values below zero, then drop the even numbers.", "out": "不万丁"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the negative numbers, then strip out the evens.", "out": "不万丁"} {"kind": "builder", "in": "不万丁", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "不万丁", "out": "Take a list of integers; subtract one from each, then keep the negative numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then extend to length 3 using zeros, then true if already sorted smallest to largest.", "out": "丑义乎"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then pad to 3, then does this list go in ascending order.", "out": "丑义乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then extend to length 3 using zeros, then check if the list is in ascending order.", "out": "丑义乎"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then pad to 3, then is the list sorted.", "out": "丑义乎"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then extend to length 3 using zeros, then is it sorted.", "out": "丑义乎"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then pad to 3, then check if values are in increasing order.", "out": "丑义乎"} {"kind": "builder", "in": "丑义乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r == sorted(r)"} {"kind": "translator", "in": "丑义乎", "out": "Take a list of integers; sort ascending, then pad with zeros to at least three elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the first 3 elements, then find the max, defaulting to 0.", "out": "与丕业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then remove everything after the third, then Give me the maximum, but 0 if there are no items.", "out": "与丕业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate to three items, then What's the highest number in the list.", "out": "与丕业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then show the first three, then Return the greatest value or default to 0.", "out": "与丕业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the first three, then Find the largest element, defaulting to zero.", "out": "与丕业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep first 3, then give the largest value (0 if none).", "out": "与丕业"} {"kind": "builder", "in": "与丕业", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:3]\n return max(r) if r else 0"} {"kind": "translator", "in": "与丕业", "out": "Take a list of integers; negate each, then keep only the first three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the final 3 elements, then true if already sorted smallest to largest.", "out": "举丹乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop everything except the final three, then does this list go in ascending order.", "out": "举丹乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give me the last three elements, then check if the list is in ascending order.", "out": "举丹乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the last three, then is the list sorted.", "out": "举丹乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the final three items, then is it sorted.", "out": "举丹乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the last three, then check if values are in increasing order.", "out": "举丹乎"} {"kind": "builder", "in": "举丹乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[-3:]\n return r == sorted(r)"} {"kind": "translator", "in": "举丹乎", "out": "Take a list of integers; drop the zeros, then keep only the last three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values divisible by 3, then shift each up by ten.", "out": "丑串丽"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep items where x mod 3 equals zero, then increase all numbers by 10.", "out": "丑串丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then drop anything not divisible by three, then add 10 to everything.", "out": "丑串丽"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then filter out everything except multiples of three, then give everything a boost of 10.", "out": "丑串丽"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only multiples of three, then increment each by ten.", "out": "丑串丽"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then multiples of three only, then add a constant 10 to each.", "out": "丑串丽"} {"kind": "builder", "in": "丑串丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丑串丽", "out": "Take a list of integers; sort ascending, then keep multiples of three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each by two, then arrange in decreasing order.", "out": "七丈专"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then double each item in the list, then arrange in descending order.", "out": "七丈专"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then multiply each by two, then reverse sort.", "out": "七丈专"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then double each item in the list, then sort largest to smallest.", "out": "七丈专"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then multiply each by two, then sort by descending values.", "out": "七丈专"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then double each item in the list, then sort from highest to lowest.", "out": "七丈专"} {"kind": "builder", "in": "七丈专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "七丈专", "out": "Take a list of integers; keep the positive numbers, then double each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then decrement each value, then limit every value to 10.", "out": "七不丘"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Lower each number by one, then maximum of 10 for all.", "out": "七不丘"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then reduce each by one, then limit every value to 10.", "out": "七不丘"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Subtract 1 from all, then maximum of 10 for all.", "out": "七不丘"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Subtract one from each, then limit every value to 10.", "out": "七不丘"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Drop each by one, then maximum of 10 for all.", "out": "七不丘"} {"kind": "builder", "in": "七不丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "七不丘", "out": "Take a list of integers; keep the positive numbers, then subtract one from each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; double each, then make every value non-negative, then drop non-positive values.", "out": "丈丏七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then absolute value for all items, then drop the negative numbers.", "out": "丈丏七"} {"kind": "speaker", "in": "Take a list of integers; double each, then take absolute values, then filter out the negative ones.", "out": "丈丏七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn negatives into positives, then remove all negative values.", "out": "丈丏七"} {"kind": "speaker", "in": "Take a list of integers; double each, then abs each element, then keep positive values only.", "out": "丈丏七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the absolute value of each, then keep values above zero.", "out": "丈丏七"} {"kind": "builder", "in": "丈丏七", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丈丏七", "out": "Take a list of integers; double each, then take the absolute value of each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then drop the even numbers.", "out": "一世丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then strip out the evens.", "out": "一世丁"} {"kind": "builder", "in": "一世丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "一世丁", "out": "Take a list of integers; keep the even numbers, then drop the first element, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then drop anything 5 or below, then true if at least one even value.", "out": "九主之"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep only numbers greater than 5, then any even.", "out": "九主之"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then filter for numbers above 5, then true if at least one even value.", "out": "九主之"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then give me values where x is greater than 5, then any even.", "out": "九主之"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then show me only the values that are bigger than five, then true if at least one even value.", "out": "九主之"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep values greater than five, then any even.", "out": "九主之"} {"kind": "builder", "in": "九主之", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 5]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "九主之", "out": "Take a list of people records (name, age); extract the ages, then keep values greater than five, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then decrement each value, then give the earliest even value or zero.", "out": "久不乒"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Lower each number by one, then fetch the first even element, default to 0.", "out": "久不乒"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then reduce each by one, then give the earliest even value or zero.", "out": "久不乒"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Subtract 1 from all, then fetch the first even element, default to 0.", "out": "久不乒"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Subtract one from each, then give the earliest even value or zero.", "out": "久不乒"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Drop each by one, then fetch the first even element, default to 0.", "out": "久不乒"} {"kind": "builder", "in": "久不乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "久不乒", "out": "Take a list of integers; keep everything before the first zero, then subtract one from each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increase every value by 10, then true only if all are positive.", "out": "丕丽乌"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add 10 to each item, then do all of these have positive values.", "out": "丕丽乌"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then shift each up by ten, then check if every value is positive.", "out": "丕丽乌"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then increase all numbers by 10, then confirm all values are positive.", "out": "丕丽乌"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add 10 to everything, then all positive.", "out": "丕丽乌"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give everything a boost of 10, then check if every number is above zero.", "out": "丕丽乌"} {"kind": "builder", "in": "丕丽乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 10 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丕丽乌", "out": "Take a list of integers; keep only the first three, then add ten to each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values above zero, then find the max, defaulting to 0.", "out": "上七业"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then filter for positive numbers, then Give me the maximum, but 0 if there are no items.", "out": "上七业"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only positive numbers, then What's the highest number in the list.", "out": "上七业"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the positives, then Return the greatest value or default to 0.", "out": "上七业"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove negatives, then Find the largest element, defaulting to zero.", "out": "上七业"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep the positive numbers, then give the largest value (0 if none).", "out": "上七业"} {"kind": "builder", "in": "上七业", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "上七业", "out": "Take a list of integers; square each, then keep the positive numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then truncate to three items.", "out": "么丽丕"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then show the first three.", "out": "么丽丕"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then take the first three.", "out": "么丽丕"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then keep first 3.", "out": "么丽丕"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then truncate to first three.", "out": "么丽丕"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then first three.", "out": "么丽丕"} {"kind": "builder", "in": "么丽丕", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "么丽丕", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the list around, then true if every value is unique.", "out": "丸丐乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then flip the order around, then check for duplicates in the values.", "out": "丸丐乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then put the elements backwards, then do all values appear only once.", "out": "丸丐乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then reverse that for me, then check that there are no duplicates.", "out": "丸丐乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip it backwards, then are the values all unique.", "out": "丸丐乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then make it backwards, then check if all values are unique.", "out": "丸丐乏"} {"kind": "builder", "in": "丸丐乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(reversed(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸丐乏", "out": "Take a list of integers; sort by absolute value, then reverse the order, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then cut the list at the first zero, then give the earliest even value or zero.", "out": "丘久乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off after the first zero appears, then fetch the first even element, default to 0.", "out": "丘久乒"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take values up to (excluding) the first zero, then give the earliest even value or zero.", "out": "丘久乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the part before the first 0, then fetch the first even element, default to 0.", "out": "丘久乒"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate at the first zero, then give the earliest even value or zero.", "out": "丘久乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then delete everything starting with the first zero, then fetch the first even element, default to 0.", "out": "丘久乒"} {"kind": "builder", "in": "丘久乒", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丘久乒", "out": "Take a list of integers; cap each value at 10, then keep everything before the first zero, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then convert each to lower case, then find how long the longest string is.", "out": "丟丞乜"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then lowercase each one, then give the length of the longest string in the list.", "out": "丟丞乜"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then convert each to lower case, then get me the longest string's length.", "out": "丟丞乜"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then lowercase each one, then give the maximum string length.", "out": "丟丞乜"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then convert each to lower case, then max length of all strings.", "out": "丟丞乜"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then lowercase each one, then what's the max string length.", "out": "丟丞乜"} {"kind": "builder", "in": "丟丞乜", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s.lower() for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丟丞乜", "out": "Take a list of strings; uppercase each string, then lowercase each string, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the sign of each, then take values up to (excluding) the first zero.", "out": "丑与久"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then turn positives to negatives and vice versa, then keep the part before the first 0.", "out": "丑与久"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then flip the sign of each, then truncate at the first zero.", "out": "丑与久"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn positives to negatives and vice versa, then delete everything starting with the first zero.", "out": "丑与久"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip the sign of each, then remove from the first zero onwards.", "out": "丑与久"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then turn positives to negatives and vice versa, then up to but not including the first zero.", "out": "丑与久"} {"kind": "builder", "in": "丑与久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丑与久", "out": "Take a list of integers; sort ascending, then negate each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only even values, then give back the product of all values.", "out": "专一乐"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then extract all even numbers, then product of the list.", "out": "专一乐"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only even values, then what's the product.", "out": "专一乐"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then extract all even numbers, then what do they multiply to.", "out": "专一乐"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only even values, then give me their product.", "out": "专一乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then extract all even numbers, then multiply them all together.", "out": "专一乐"} {"kind": "builder", "in": "专一乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "专一乐", "out": "Take a list of integers; sort descending, then keep the even numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the list around, then shift each up by ten.", "out": "丹丐丽"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then flip the order around, then increase all numbers by 10.", "out": "丹丐丽"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then put the elements backwards, then add 10 to everything.", "out": "丹丐丽"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then reverse that for me, then give everything a boost of 10.", "out": "丹丐丽"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip it backwards, then increment each by ten.", "out": "丹丐丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then make it backwards, then add a constant 10 to each.", "out": "丹丐丽"} {"kind": "builder", "in": "丹丐丽", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丹丐丽", "out": "Take a list of integers; keep only the last three, then reverse the order, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then multiply each by -1.", "out": "丈一与"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then negate.", "out": "丈一与"} {"kind": "builder", "in": "丈一与", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丈一与", "out": "Take a list of integers; double each, then keep the even numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative, then drop non-positive values.", "out": "与丏七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items, then drop the negative numbers.", "out": "与丏七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values, then filter out the negative ones.", "out": "与丏七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives, then remove all negative values.", "out": "与丏七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element, then keep positive values only.", "out": "与丏七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each, then keep values above zero.", "out": "与丏七"} {"kind": "builder", "in": "与丏七", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "与丏七", "out": "Take a list of integers; negate each, then take the absolute value of each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then drop the odd numbers.", "out": "举丘一"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then filter out the odd numbers.", "out": "举丘一"} {"kind": "builder", "in": "举丘一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "举丘一", "out": "Take a list of integers; drop the zeros, then cap each value at 10, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then count the elements.", "out": "丸丈东"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then how many items remain.", "out": "丸丈东"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then tell me the length.", "out": "丸丈东"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then return the length.", "out": "丸丈东"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then count them.", "out": "丸丈东"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then what's the count.", "out": "丸丈东"} {"kind": "builder", "in": "丸丈东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n return len(r)"} {"kind": "translator", "in": "丸丈东", "out": "Take a list of integers; sort by absolute value, then double each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort smallest to largest, then stop at the first non-positive value.", "out": "一丑乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Ascending sort, then keep the leading run of positive numbers.", "out": "一丑乂"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Sort this ascending, then take values while they are positive.", "out": "一丑乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Sort lowest to highest, then take positive values then stop.", "out": "一丑乂"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Arrange from smallest to largest, then keep going while positive.", "out": "一丑乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort ascending, then stop at first non positive.", "out": "一丑乂"} {"kind": "builder", "in": "一丑乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "一丑乂", "out": "Take a list of integers; keep the even numbers, then sort ascending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort smallest to largest, then true if already sorted smallest to largest.", "out": "与丑乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Ascending sort, then does this list go in ascending order.", "out": "与丑乎"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Sort this ascending, then check if the list is in ascending order.", "out": "与丑乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Sort lowest to highest, then is the list sorted.", "out": "与丑乎"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Arrange from smallest to largest, then is it sorted.", "out": "与丑乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort ascending, then check if values are in increasing order.", "out": "与丑乎"} {"kind": "builder", "in": "与丑乎", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r)\n return r == sorted(r)"} {"kind": "translator", "in": "与丑乎", "out": "Take a list of integers; negate each, then sort ascending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the sign of each, then raise each to the power of two.", "out": "主与上"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then turn positives to negatives and vice versa, then I need each number multiplied by itself.", "out": "主与上"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then flip the sign of each, then square all of them.", "out": "主与上"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then turn positives to negatives and vice versa, then multiply each element by itself.", "out": "主与上"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip the sign of each, then make each one squared.", "out": "主与上"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then turn positives to negatives and vice versa, then square each value in the list.", "out": "主与上"} {"kind": "builder", "in": "主与上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "主与上", "out": "Take a list of integers; keep values greater than five, then negate each, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove both ends, then truncate to the last three items.", "out": "九为丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then trim the edges, then show only the last three.", "out": "九为丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then trim one element off each end, then remove all but the last three.", "out": "九为丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then cut off the first and last, then take the final 3 elements.", "out": "九为丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first and last elements, then drop everything except the final three.", "out": "九为丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep only the middle part, then give me the last three elements.", "out": "九为丹"} {"kind": "builder", "in": "九为丹", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:-1]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "九为丹", "out": "Take a list of people records (name, age); extract the ages, then drop the first and last elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then cut the list at the first zero, then true if at least one even value.", "out": "义久之"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off after the first zero appears, then any even.", "out": "义久之"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take values up to (excluding) the first zero, then true if at least one even value.", "out": "义久之"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the part before the first 0, then any even.", "out": "义久之"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate at the first zero, then true if at least one even value.", "out": "义久之"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then delete everything starting with the first zero, then any even.", "out": "义久之"} {"kind": "builder", "in": "义久之", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "义久之", "out": "Take a list of integers; pad with zeros to at least three elements, then keep everything before the first zero, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then flip the sign of each, then give the number of evens.", "out": "丐与乓"} {"kind": "speaker", "in": "Take a list of integers; reverse, then turn positives to negatives and vice versa, then find how many values are divisible by two.", "out": "丐与乓"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then flip the sign of each, then how many are even.", "out": "丐与乓"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn positives to negatives and vice versa, then get the total number of even values in the list.", "out": "丐与乓"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then flip the sign of each, then give me the count of even values.", "out": "丐与乓"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then turn positives to negatives and vice versa, then I need to know how many of these are even.", "out": "丐与乓"} {"kind": "builder", "in": "丐与乓", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [-x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丐与乓", "out": "Take a list of integers; reverse the order, then negate each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then default to [0] when there is nothing, then keep only numbers above 5.", "out": "世么主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then when the list is empty, substitute a zero value, then exclude values of 5 and below.", "out": "世么主"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then replace an empty list with one zero, then remove anything 5 or less.", "out": "世么主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then zero it out if it's empty, then filter to keep only values above 5.", "out": "世么主"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then use zero if the list is empty, then get rid of values that aren't greater than five.", "out": "世么主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then default to zero when empty, then drop anything 5 or below.", "out": "世么主"} {"kind": "builder", "in": "世么主", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r if r else [0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "世么主", "out": "Take a list of integers; drop the first element, then if empty, use a single zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep only even values, then give the earliest even value or zero.", "out": "丑一乒"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then extract all even numbers, then fetch the first even element, default to 0.", "out": "丑一乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only even values, then give the earliest even value or zero.", "out": "丑一乒"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then extract all even numbers, then fetch the first even element, default to 0.", "out": "丑一乒"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only even values, then give the earliest even value or zero.", "out": "丑一乒"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then extract all even numbers, then fetch the first even element, default to 0.", "out": "丑一乒"} {"kind": "builder", "in": "丑一乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 2 == 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丑一乒", "out": "Take a list of integers; sort ascending, then keep the even numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each value by itself, then true if already sorted smallest to largest.", "out": "举上乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then square them all, then does this list go in ascending order.", "out": "举上乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then raise each to the power of two, then check if the list is in ascending order.", "out": "举上乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then I need each number multiplied by itself, then is the list sorted.", "out": "举上乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then square all of them, then is it sorted.", "out": "举上乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiply each element by itself, then check if values are in increasing order.", "out": "举上乎"} {"kind": "builder", "in": "举上乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "举上乎", "out": "Take a list of integers; drop the zeros, then square each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then cut the list at the first zero, then replace an empty list with one zero.", "out": "举久么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off after the first zero appears, then zero it out if it's empty.", "out": "举久么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take values up to (excluding) the first zero, then use zero if the list is empty.", "out": "举久么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the part before the first 0, then default to zero when empty.", "out": "举久么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate at the first zero, then if there's nothing, put in a zero.", "out": "举久么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then delete everything starting with the first zero, then if no items, add a zero.", "out": "举久么"} {"kind": "builder", "in": "举久么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "举久么", "out": "Take a list of integers; drop the zeros, then keep everything before the first zero, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item, then take values up to (excluding) the first zero.", "out": "九世久"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head, then keep the part before the first 0.", "out": "九世久"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item, then truncate at the first zero.", "out": "九世久"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head, then delete everything starting with the first zero.", "out": "九世久"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item, then remove from the first zero onwards.", "out": "九世久"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head, then up to but not including the first zero.", "out": "九世久"} {"kind": "builder", "in": "九世久", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "九世久", "out": "Take a list of people records (name, age); extract the ages, then drop the first element, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the list around, then keep only non-zero numbers.", "out": "不丐举"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then flip the order around, then strip the zeros.", "out": "不丐举"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then put the elements backwards, then keep only non-zero numbers.", "out": "不丐举"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then reverse that for me, then strip the zeros.", "out": "不丐举"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip it backwards, then keep only non-zero numbers.", "out": "不丐举"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then make it backwards, then strip the zeros.", "out": "不丐举"} {"kind": "builder", "in": "不丐举", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "不丐举", "out": "Take a list of integers; subtract one from each, then reverse the order, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero, then arrange in increasing order.", "out": "世久丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears, then Organize these ascending.", "out": "世久丑"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero, then Sort in ascending order.", "out": "世久丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0, then I need this sorted ascending.", "out": "世久丑"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero, then Put these in ascending order.", "out": "世久丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero, then sort smallest to largest.", "out": "世久丑"} {"kind": "builder", "in": "世久丑", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "世久丑", "out": "Take a list of integers; drop the first element, then keep everything before the first zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increase every value by 10, then remove the initial run of negative numbers.", "out": "主丽乃"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then add 10 to each item, then strip the front negatives.", "out": "主丽乃"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then shift each up by ten, then remove leading negative numbers.", "out": "主丽乃"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then increase all numbers by 10, then drop negatives from start.", "out": "主丽乃"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then add 10 to everything, then strip negative values from the start.", "out": "主丽乃"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then give everything a boost of 10, then remove negatives before the first non-negative.", "out": "主丽乃"} {"kind": "builder", "in": "主丽乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "主丽乃", "out": "Take a list of integers; keep values greater than five, then add ten to each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each by two, then replace an empty list with one zero.", "out": "串丈么"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then double each item in the list, then zero it out if it's empty.", "out": "串丈么"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then multiply each by two, then use zero if the list is empty.", "out": "串丈么"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then double each item in the list, then default to zero when empty.", "out": "串丈么"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then multiply each by two, then if there's nothing, put in a zero.", "out": "串丈么"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then double each item in the list, then if no items, add a zero.", "out": "串丈么"} {"kind": "builder", "in": "串丈么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "串丈么", "out": "Take a list of integers; keep multiples of three, then double each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove the first item, then multiply each by -1.", "out": "么世与"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Remove head, then negate.", "out": "么世与"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the first item, then multiply each by -1.", "out": "么世与"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Remove head, then negate.", "out": "么世与"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first item, then multiply each by -1.", "out": "么世与"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Remove head, then negate.", "out": "么世与"} {"kind": "builder", "in": "么世与", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "么世与", "out": "Take a list of integers; if empty, use a single zero, then drop the first element, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero, then raise each to the power of two.", "out": "七久上"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears, then I need each number multiplied by itself.", "out": "七久上"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero, then square all of them.", "out": "七久上"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0, then multiply each element by itself.", "out": "七久上"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero, then make each one squared.", "out": "七久上"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero, then square each value in the list.", "out": "七久上"} {"kind": "builder", "in": "七久上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "七久上", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero, then square each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only odd values, then stop at the first non-positive value.", "out": "丏丁乂"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then eliminate the even numbers, then keep the leading run of positive numbers.", "out": "丏丁乂"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only odd values, then take values while they are positive.", "out": "丏丁乂"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then eliminate the even numbers, then take positive values then stop.", "out": "丏丁乂"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only odd values, then keep going while positive.", "out": "丏丁乂"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then eliminate the even numbers, then stop at first non positive.", "out": "丏丁乂"} {"kind": "builder", "in": "丏丁乂", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丏丁乂", "out": "Take a list of integers; take the absolute value of each, then keep the odd numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then drop anything 5 or below, then replace an empty list with one zero.", "out": "丐主么"} {"kind": "speaker", "in": "Take a list of integers; reverse, then keep only numbers greater than 5, then zero it out if it's empty.", "out": "丐主么"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then filter for numbers above 5, then use zero if the list is empty.", "out": "丐主么"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then give me values where x is greater than 5, then default to zero when empty.", "out": "丐主么"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then show me only the values that are bigger than five, then if there's nothing, put in a zero.", "out": "丐主么"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep values greater than five, then if no items, add a zero.", "out": "丐主么"} {"kind": "builder", "in": "丐主么", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丐主么", "out": "Take a list of integers; reverse the order, then keep values greater than five, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values above zero, then skip the first one.", "out": "九七世"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then filter for positive numbers, then Discard the first element.", "out": "九七世"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only positive numbers, then skip the first one.", "out": "九七世"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the positives, then Discard the first element.", "out": "九七世"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove negatives, then skip the first one.", "out": "九七世"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep the positive numbers, then Discard the first element.", "out": "九七世"} {"kind": "builder", "in": "九七世", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "九七世", "out": "Take a list of people records (name, age); extract the ages, then keep the positive numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then skip negatives at the start, then drop non-negative values.", "out": "丽乃万"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove all negatives at the front, then drop all positive numbers.", "out": "丽乃万"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the initial run of negative numbers, then drop non-negative values.", "out": "丽乃万"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then strip the front negatives, then drop all positive numbers.", "out": "丽乃万"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove leading negative numbers, then drop non-negative values.", "out": "丽乃万"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then drop negatives from start, then drop all positive numbers.", "out": "丽乃万"} {"kind": "builder", "in": "丽乃万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丽乃万", "out": "Take a list of integers; add ten to each, then drop the leading negative values, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then true if already sorted smallest to largest.", "out": "下义乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then does this list go in ascending order.", "out": "下义乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then check if the list is in ascending order.", "out": "下义乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then is the list sorted.", "out": "下义乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then is it sorted.", "out": "下义乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then check if values are in increasing order.", "out": "下义乎"} {"kind": "builder", "in": "下义乎", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r == sorted(r)"} {"kind": "translator", "in": "下义乎", "out": "Take a list of integers; add one to each, then pad with zeros to at least three elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the sign of each, then true if at least one even value.", "out": "为与之"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then turn positives to negatives and vice versa, then any even.", "out": "为与之"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then flip the sign of each, then true if at least one even value.", "out": "为与之"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn positives to negatives and vice versa, then any even.", "out": "为与之"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip the sign of each, then true if at least one even value.", "out": "为与之"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then turn positives to negatives and vice versa, then any even.", "out": "为与之"} {"kind": "builder", "in": "为与之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [-x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "为与之", "out": "Take a list of integers; drop the first and last elements, then negate each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then take values up to (excluding) the first zero.", "out": "且丈久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then keep the part before the first 0.", "out": "且丈久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then truncate at the first zero.", "out": "且丈久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then delete everything starting with the first zero.", "out": "且丈久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then remove from the first zero onwards.", "out": "且丈久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then up to but not including the first zero.", "out": "且丈久"} {"kind": "builder", "in": "且丈久", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "且丈久", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values divisible by 3, then trim one element off each end.", "out": "七串为"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep items where x mod 3 equals zero, then cut off the first and last.", "out": "七串为"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then drop anything not divisible by three, then remove the first and last elements.", "out": "七串为"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then filter out everything except multiples of three, then keep only the middle part.", "out": "七串为"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only multiples of three, then drop first and last.", "out": "七串为"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then multiples of three only, then eliminate the outermost elements.", "out": "七串为"} {"kind": "builder", "in": "七串为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "七串为", "out": "Take a list of integers; keep the positive numbers, then keep multiples of three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then skip negatives at the start, then multiply each by -1.", "out": "丸乃与"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove all negatives at the front, then negate.", "out": "丸乃与"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the initial run of negative numbers, then multiply each by -1.", "out": "丸乃与"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then strip the front negatives, then negate.", "out": "丸乃与"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove leading negative numbers, then multiply each by -1.", "out": "丸乃与"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then drop negatives from start, then negate.", "out": "丸乃与"} {"kind": "builder", "in": "丸乃与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丸乃与", "out": "Take a list of integers; sort by absolute value, then drop the leading negative values, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then clamp each to at most ten, then drop the even numbers.", "out": "久丘丁"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then don't let anything exceed 10, then strip out the evens.", "out": "久丘丁"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then clamp each to at most ten, then drop the even numbers.", "out": "久丘丁"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then don't let anything exceed 10, then strip out the evens.", "out": "久丘丁"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then clamp each to at most ten, then drop the even numbers.", "out": "久丘丁"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then don't let anything exceed 10, then strip out the evens.", "out": "久丘丁"} {"kind": "builder", "in": "久丘丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "久丘丁", "out": "Take a list of integers; keep everything before the first zero, then cap each value at 10, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first 3 elements, then trim one element off each end.", "out": "举丕为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove everything after the third, then cut off the first and last.", "out": "举丕为"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate to three items, then remove the first and last elements.", "out": "举丕为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then show the first three, then keep only the middle part.", "out": "举丕为"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first three, then drop first and last.", "out": "举丕为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep first 3, then eliminate the outermost elements.", "out": "举丕为"} {"kind": "builder", "in": "举丕为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:3]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "举丕为", "out": "Take a list of integers; drop the zeros, then keep only the first three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the first 3 elements, then trim one element off each end.", "out": "丐丕为"} {"kind": "speaker", "in": "Take a list of integers; reverse, then remove everything after the third, then cut off the first and last.", "out": "丐丕为"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then truncate to three items, then remove the first and last elements.", "out": "丐丕为"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then show the first three, then keep only the middle part.", "out": "丐丕为"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then take the first three, then drop first and last.", "out": "丐丕为"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep first 3, then eliminate the outermost elements.", "out": "丐丕为"} {"kind": "builder", "in": "丐丕为", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:3]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丐丕为", "out": "Take a list of integers; reverse the order, then keep only the first three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then stop at the first non-positive value.", "out": "万为乂"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then keep the leading run of positive numbers.", "out": "万为乂"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then take values while they are positive.", "out": "万为乂"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then take positive values then stop.", "out": "万为乂"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then keep going while positive.", "out": "万为乂"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then stop at first non positive.", "out": "万为乂"} {"kind": "builder", "in": "万为乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "万为乂", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then stop at the first non-positive value.", "out": "么主乂"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then keep the leading run of positive numbers.", "out": "么主乂"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then take values while they are positive.", "out": "么主乂"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then take positive values then stop.", "out": "么主乂"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then keep going while positive.", "out": "么主乂"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then stop at first non positive.", "out": "么主乂"} {"kind": "builder", "in": "么主乂", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "么主乂", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values above zero, then truncate to the last three items.", "out": "乃七丹"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then filter for positive numbers, then show only the last three.", "out": "乃七丹"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only positive numbers, then remove all but the last three.", "out": "乃七丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the positives, then take the final 3 elements.", "out": "乃七丹"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove negatives, then drop everything except the final three.", "out": "乃七丹"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep the positive numbers, then give me the last three elements.", "out": "乃七丹"} {"kind": "builder", "in": "乃七丹", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "乃七丹", "out": "Take a list of integers; drop the leading negative values, then keep the positive numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values divisible by 3, then arrange in decreasing order.", "out": "主串专"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then keep items where x mod 3 equals zero, then arrange in descending order.", "out": "主串专"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then drop anything not divisible by three, then reverse sort.", "out": "主串专"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then filter out everything except multiples of three, then sort largest to smallest.", "out": "主串专"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only multiples of three, then sort by descending values.", "out": "主串专"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiples of three only, then sort from highest to lowest.", "out": "主串专"} {"kind": "builder", "in": "主串专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "主串专", "out": "Take a list of integers; keep values greater than five, then keep multiples of three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then order by distance from zero, then true if any value equals zero.", "out": "七丸乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort based on absolute value, then check for zero.", "out": "七丸乍"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then organize by magnitude, then true if any value equals zero.", "out": "七丸乍"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then arrange by absolute value ascending, then check for zero.", "out": "七丸乍"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort from smallest to largest absolute value, then true if any value equals zero.", "out": "七丸乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort by absolute value, then check for zero.", "out": "七丸乍"} {"kind": "builder", "in": "七丸乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n return 0 in r"} {"kind": "translator", "in": "七丸乍", "out": "Take a list of integers; keep the positive numbers, then sort by absolute value, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep only odd values, then give back the total.", "out": "乂丁丙"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then eliminate the even numbers, then sum r.", "out": "乂丁丙"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only odd values, then add them up.", "out": "乂丁丙"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then eliminate the even numbers, then calculate the sum of all elements.", "out": "乂丁丙"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only odd values, then what's the total.", "out": "乂丁丙"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then eliminate the even numbers, then what do they add up to.", "out": "乂丁丙"} {"kind": "builder", "in": "乂丁丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n return sum(r)"} {"kind": "translator", "in": "乂丁丙", "out": "Take a list of integers; take values while they are positive, then keep the odd numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove all zero values, then find the min, defaulting to 0.", "out": "九举丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then exclude zeros, then minimum value, zero otherwise.", "out": "九举丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove all zero values, then get the minimum value or zero if empty.", "out": "九举丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then exclude zeros, then give me the min or 0.", "out": "九举丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove all zero values, then return the smallest number, defaulting to 0.", "out": "九举丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then exclude zeros, then return smallest or zero if empty.", "out": "九举丛"} {"kind": "builder", "in": "九举丛", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "九举丛", "out": "Take a list of people records (name, age); extract the ages, then drop the zeros, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then cut the list at the first zero, then count the elements.", "out": "义久东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off after the first zero appears, then how many items remain.", "out": "义久东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take values up to (excluding) the first zero, then tell me the length.", "out": "义久东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the part before the first 0, then return the length.", "out": "义久东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate at the first zero, then count them.", "out": "义久东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then delete everything starting with the first zero, then what's the count.", "out": "义久东"} {"kind": "builder", "in": "义久东", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n return len(r)"} {"kind": "translator", "in": "义久东", "out": "Take a list of integers; pad with zeros to at least three elements, then keep everything before the first zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each by two, then drop non-negative values.", "out": "么丈万"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then double each item in the list, then drop all positive numbers.", "out": "么丈万"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then multiply each by two, then drop non-negative values.", "out": "么丈万"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then double each item in the list, then drop all positive numbers.", "out": "么丈万"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then multiply each by two, then drop non-negative values.", "out": "么丈万"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then double each item in the list, then drop all positive numbers.", "out": "么丈万"} {"kind": "builder", "in": "么丈万", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "么丈万", "out": "Take a list of integers; if empty, use a single zero, then double each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increase every value by 10, then drop the even numbers.", "out": "专丽丁"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then add 10 to each item, then strip out the evens.", "out": "专丽丁"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then shift each up by ten, then drop the even numbers.", "out": "专丽丁"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then increase all numbers by 10, then strip out the evens.", "out": "专丽丁"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then add 10 to everything, then drop the even numbers.", "out": "专丽丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then give everything a boost of 10, then strip out the evens.", "out": "专丽丁"} {"kind": "builder", "in": "专丽丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "专丽丁", "out": "Take a list of integers; sort descending, then add ten to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then add '#' to the start of each string, then true if a blank string is present.", "out": "丧乘乙"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then make each one start with a hash, then check for empty strings in the list.", "out": "丧乘乙"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then add '#' to the start of each string, then check if there's an empty string.", "out": "丧乘乙"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then make each one start with a hash, then does the collection contain an empty string value somewhere.", "out": "丧乘乙"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then add '#' to the start of each string, then whether any element is blank.", "out": "丧乘乙"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then make each one start with a hash, then check for an empty string.", "out": "丧乘乙"} {"kind": "builder", "in": "丧乘乙", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = ['#' + s for s in r]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丧乘乙", "out": "Take a list of strings; drop duplicate strings keeping the first, then prefix each with a hash, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only odd values, then count the elements.", "out": "七丁东"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then eliminate the even numbers, then how many items remain.", "out": "七丁东"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only odd values, then tell me the length.", "out": "七丁东"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then eliminate the even numbers, then return the length.", "out": "七丁东"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only odd values, then count them.", "out": "七丁东"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then eliminate the even numbers, then what's the count.", "out": "七丁东"} {"kind": "builder", "in": "七丁东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n return len(r)"} {"kind": "translator", "in": "七丁东", "out": "Take a list of integers; keep the positive numbers, then keep the odd numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the first 3 elements, then drop non-negative values.", "out": "与丕万"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then remove everything after the third, then drop all positive numbers.", "out": "与丕万"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate to three items, then drop non-negative values.", "out": "与丕万"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then show the first three, then drop all positive numbers.", "out": "与丕万"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the first three, then drop non-negative values.", "out": "与丕万"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep first 3, then drop all positive numbers.", "out": "与丕万"} {"kind": "builder", "in": "与丕万", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:3]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "与丕万", "out": "Take a list of integers; negate each, then keep only the first three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then extend to length 3 using zeros, then bump each up by one.", "out": "丕义下"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then pad to 3, then increment each item.", "out": "丕义下"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then extend to length 3 using zeros, then bump each up by one.", "out": "丕义下"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then pad to 3, then increment each item.", "out": "丕义下"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then extend to length 3 using zeros, then bump each up by one.", "out": "丕义下"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then pad to 3, then increment each item.", "out": "丕义下"} {"kind": "builder", "in": "丕义下", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丕义下", "out": "Take a list of integers; keep only the first three, then pad with zeros to at least three elements, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values above zero, then give back the product of all values.", "out": "万七乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter for positive numbers, then product of the list.", "out": "万七乐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only positive numbers, then what's the product.", "out": "万七乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positives, then what do they multiply to.", "out": "万七乐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove negatives, then give me their product.", "out": "万七乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positive numbers, then multiply them all together.", "out": "万七乐"} {"kind": "builder", "in": "万七乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "万七乐", "out": "Take a list of integers; keep the negative numbers, then keep the positive numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values above zero, then keep only numbers above 5.", "out": "一七主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter for positive numbers, then exclude values of 5 and below.", "out": "一七主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only positive numbers, then remove anything 5 or less.", "out": "一七主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the positives, then filter to keep only values above 5.", "out": "一七主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove negatives, then get rid of values that aren't greater than five.", "out": "一七主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the positive numbers, then drop anything 5 or below.", "out": "一七主"} {"kind": "builder", "in": "一七主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "一七主", "out": "Take a list of integers; keep the even numbers, then keep the positive numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the list around, then find the max, defaulting to 0.", "out": "么丐业"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then flip the order around, then Give me the maximum, but 0 if there are no items.", "out": "么丐业"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then put the elements backwards, then What's the highest number in the list.", "out": "么丐业"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then reverse that for me, then Return the greatest value or default to 0.", "out": "么丐业"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip it backwards, then Find the largest element, defaulting to zero.", "out": "么丐业"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then make it backwards, then give the largest value (0 if none).", "out": "么丐业"} {"kind": "builder", "in": "么丐业", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = list(reversed(r))\n return max(r) if r else 0"} {"kind": "translator", "in": "么丐业", "out": "Take a list of integers; if empty, use a single zero, then reverse the order, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove the first item, then true only if all are positive.", "out": "上世乌"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Remove head, then do all of these have positive values.", "out": "上世乌"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the first item, then check if every value is positive.", "out": "上世乌"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Remove head, then confirm all values are positive.", "out": "上世乌"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove the first item, then all positive.", "out": "上世乌"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then Remove head, then check if every number is above zero.", "out": "上世乌"} {"kind": "builder", "in": "上世乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[1:]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "上世乌", "out": "Take a list of integers; square each, then drop the first element, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values below zero, then arrange in increasing order.", "out": "串万丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then get the negative numbers, then Organize these ascending.", "out": "串万丑"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep values below zero, then Sort in ascending order.", "out": "串万丑"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then get the negative numbers, then I need this sorted ascending.", "out": "串万丑"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep values below zero, then Put these in ascending order.", "out": "串万丑"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then get the negative numbers, then sort smallest to largest.", "out": "串万丑"} {"kind": "builder", "in": "串万丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "串万丑", "out": "Take a list of integers; keep multiples of three, then keep the negative numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep the leading run of positive numbers, then drop the even numbers.", "out": "丏乂丁"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then take values while they are positive, then strip out the evens.", "out": "丏乂丁"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take positive values then stop, then drop the even numbers.", "out": "丏乂丁"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep going while positive, then strip out the evens.", "out": "丏乂丁"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then stop at first non positive, then drop the even numbers.", "out": "丏乂丁"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take while greater than zero, then strip out the evens.", "out": "丏乂丁"} {"kind": "builder", "in": "丏乂丁", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丏乂丁", "out": "Take a list of integers; take the absolute value of each, then take values while they are positive, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only even values, then true only if all are positive.", "out": "为一乌"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then extract all even numbers, then do all of these have positive values.", "out": "为一乌"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only even values, then check if every value is positive.", "out": "为一乌"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then extract all even numbers, then confirm all values are positive.", "out": "为一乌"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only even values, then all positive.", "out": "为一乌"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then extract all even numbers, then check if every number is above zero.", "out": "为一乌"} {"kind": "builder", "in": "为一乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "为一乌", "out": "Take a list of integers; drop the first and last elements, then keep the even numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove both ends, then drop the even numbers.", "out": "主为丁"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then trim the edges, then strip out the evens.", "out": "主为丁"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then trim one element off each end, then drop the even numbers.", "out": "主为丁"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then cut off the first and last, then strip out the evens.", "out": "主为丁"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first and last elements, then drop the even numbers.", "out": "主为丁"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep only the middle part, then strip out the evens.", "out": "主为丁"} {"kind": "builder", "in": "主为丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:-1]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "主为丁", "out": "Take a list of integers; keep values greater than five, then drop the first and last elements, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then truncate to three items.", "out": "举与丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then show the first three.", "out": "举与丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then take the first three.", "out": "举与丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then keep first 3.", "out": "举与丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then truncate to first three.", "out": "举与丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then first three.", "out": "举与丕"} {"kind": "builder", "in": "举与丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "举与丕", "out": "Take a list of integers; drop the zeros, then negate each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the leading run of positive numbers, then arrange in decreasing order.", "out": "丈乂专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take values while they are positive, then arrange in descending order.", "out": "丈乂专"} {"kind": "speaker", "in": "Take a list of integers; double each, then take positive values then stop, then reverse sort.", "out": "丈乂专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep going while positive, then sort largest to smallest.", "out": "丈乂专"} {"kind": "speaker", "in": "Take a list of integers; double each, then stop at first non positive, then sort by descending values.", "out": "丈乂专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take while greater than zero, then sort from highest to lowest.", "out": "丈乂专"} {"kind": "builder", "in": "丈乂专", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丈乂专", "out": "Take a list of integers; double each, then take values while they are positive, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then drop anything 5 or below, then drop the odd numbers.", "out": "丕主一"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then keep only numbers greater than 5, then filter out the odd numbers.", "out": "丕主一"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then filter for numbers above 5, then drop the odd numbers.", "out": "丕主一"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then give me values where x is greater than 5, then filter out the odd numbers.", "out": "丕主一"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then show me only the values that are bigger than five, then drop the odd numbers.", "out": "丕主一"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep values greater than five, then filter out the odd numbers.", "out": "丕主一"} {"kind": "builder", "in": "丕主一", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丕主一", "out": "Take a list of integers; keep only the first three, then keep values greater than five, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first 3 elements, then stop at the first non-positive value.", "out": "世丕乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove everything after the third, then keep the leading run of positive numbers.", "out": "世丕乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate to three items, then take values while they are positive.", "out": "世丕乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then show the first three, then take positive values then stop.", "out": "世丕乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first three, then keep going while positive.", "out": "世丕乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep first 3, then stop at first non positive.", "out": "世丕乂"} {"kind": "builder", "in": "世丕乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "世丕乂", "out": "Take a list of integers; drop the first element, then keep only the first three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then shift each up by ten.", "out": "丈且丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then increase all numbers by 10.", "out": "丈且丽"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then add 10 to everything.", "out": "丈且丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then give everything a boost of 10.", "out": "丈且丽"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then increment each by ten.", "out": "丈且丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then add a constant 10 to each.", "out": "丈且丽"} {"kind": "builder", "in": "丈且丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丈且丽", "out": "Take a list of integers; double each, then drop duplicates keeping first occurrence, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero, then arrange in increasing order.", "out": "乂丸丑"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value, then Organize these ascending.", "out": "乂丸丑"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude, then Sort in ascending order.", "out": "乂丸丑"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending, then I need this sorted ascending.", "out": "乂丸丑"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value, then Put these in ascending order.", "out": "乂丸丑"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value, then sort smallest to largest.", "out": "乂丸丑"} {"kind": "builder", "in": "乂丸丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乂丸丑", "out": "Take a list of integers; take values while they are positive, then sort by absolute value, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values divisible by 3, then give the number of evens.", "out": "丽串乓"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "丽串乓"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then drop anything not divisible by three, then how many are even.", "out": "丽串乓"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then filter out everything except multiples of three, then get the total number of even values in the list.", "out": "丽串乓"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only multiples of three, then give me the count of even values.", "out": "丽串乓"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiples of three only, then I need to know how many of these are even.", "out": "丽串乓"} {"kind": "builder", "in": "丽串乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丽串乓", "out": "Take a list of integers; add ten to each, then keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest to smallest, then raise each to the power of two.", "out": "下专上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by descending values, then I need each number multiplied by itself.", "out": "下专上"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from highest to lowest, then square all of them.", "out": "下专上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort descending, then multiply each element by itself.", "out": "下专上"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest first, then make each one squared.", "out": "下专上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort in descending order, then square each value in the list.", "out": "下专上"} {"kind": "builder", "in": "下专上", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "下专上", "out": "Take a list of integers; add one to each, then sort descending, then square each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increase every value by 10, then raise each to the power of two.", "out": "丘丽上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then add 10 to each item, then I need each number multiplied by itself.", "out": "丘丽上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then shift each up by ten, then square all of them.", "out": "丘丽上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then increase all numbers by 10, then multiply each element by itself.", "out": "丘丽上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then add 10 to everything, then make each one squared.", "out": "丘丽上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give everything a boost of 10, then square each value in the list.", "out": "丘丽上"} {"kind": "builder", "in": "丘丽上", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丘丽上", "out": "Take a list of integers; cap each value at 10, then add ten to each, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then reduce each by one.", "out": "主乂不"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then Subtract 1 from all.", "out": "主乂不"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then Subtract one from each.", "out": "主乂不"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then Drop each by one.", "out": "主乂不"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then Decrease all values by one.", "out": "主乂不"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then Remove one from each value.", "out": "主乂不"} {"kind": "builder", "in": "主乂不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "主乂不", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then drop anything 5 or below, then take values up to (excluding) the first zero.", "out": "丽主久"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep only numbers greater than 5, then keep the part before the first 0.", "out": "丽主久"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then filter for numbers above 5, then truncate at the first zero.", "out": "丽主久"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then give me values where x is greater than 5, then delete everything starting with the first zero.", "out": "丽主久"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then show me only the values that are bigger than five, then remove from the first zero onwards.", "out": "丽主久"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep values greater than five, then up to but not including the first zero.", "out": "丽主久"} {"kind": "builder", "in": "丽主久", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丽主久", "out": "Take a list of integers; add ten to each, then keep values greater than five, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then decrement each value, then give the number of evens.", "out": "乂不乓"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Lower each number by one, then find how many values are divisible by two.", "out": "乂不乓"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then reduce each by one, then how many are even.", "out": "乂不乓"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Subtract 1 from all, then get the total number of even values in the list.", "out": "乂不乓"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then Subtract one from each, then give me the count of even values.", "out": "乂不乓"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then Drop each by one, then I need to know how many of these are even.", "out": "乂不乓"} {"kind": "builder", "in": "乂不乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x - 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乂不乓", "out": "Take a list of integers; take values while they are positive, then subtract one from each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then decrement each value, then true only if all are positive.", "out": "丑不乌"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then Lower each number by one, then do all of these have positive values.", "out": "丑不乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then reduce each by one, then check if every value is positive.", "out": "丑不乌"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then Subtract 1 from all, then confirm all values are positive.", "out": "丑不乌"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then Subtract one from each, then all positive.", "out": "丑不乌"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then Drop each by one, then check if every number is above zero.", "out": "丑不乌"} {"kind": "builder", "in": "丑不乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x - 1 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丑不乌", "out": "Take a list of integers; sort ascending, then subtract one from each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort smallest to largest, then keep only numbers above 5.", "out": "丘丑主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Ascending sort, then exclude values of 5 and below.", "out": "丘丑主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Sort this ascending, then remove anything 5 or less.", "out": "丘丑主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Sort lowest to highest, then filter to keep only values above 5.", "out": "丘丑主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Arrange from smallest to largest, then get rid of values that aren't greater than five.", "out": "丘丑主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort ascending, then drop anything 5 or below.", "out": "丘丑主"} {"kind": "builder", "in": "丘丑主", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丘丑主", "out": "Take a list of integers; cap each value at 10, then sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then take the first 3 elements, then keep only non-zero numbers.", "out": "丸丕举"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove everything after the third, then strip the zeros.", "out": "丸丕举"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then truncate to three items, then keep only non-zero numbers.", "out": "丸丕举"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then show the first three, then strip the zeros.", "out": "丸丕举"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then take the first three, then keep only non-zero numbers.", "out": "丸丕举"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep first 3, then strip the zeros.", "out": "丸丕举"} {"kind": "builder", "in": "丸丕举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:3]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丸丕举", "out": "Take a list of integers; sort by absolute value, then keep only the first three, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each value by itself, then ensure at least three items by appending zeros.", "out": "为上义"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then square them all, then ensure minimum length of three by adding zeros to the end.", "out": "为上义"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then raise each to the power of two, then ensure at least three items by appending zeros.", "out": "为上义"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then I need each number multiplied by itself, then ensure minimum length of three by adding zeros to the end.", "out": "为上义"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then square all of them, then ensure at least three items by appending zeros.", "out": "为上义"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiply each element by itself, then ensure minimum length of three by adding zeros to the end.", "out": "为上义"} {"kind": "builder", "in": "为上义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "为上义", "out": "Take a list of integers; drop the first and last elements, then square each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove both ends, then take values up to (excluding) the first zero.", "out": "乃为久"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then trim the edges, then keep the part before the first 0.", "out": "乃为久"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then trim one element off each end, then truncate at the first zero.", "out": "乃为久"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then cut off the first and last, then delete everything starting with the first zero.", "out": "乃为久"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first and last elements, then remove from the first zero onwards.", "out": "乃为久"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep only the middle part, then up to but not including the first zero.", "out": "乃为久"} {"kind": "builder", "in": "乃为久", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "乃为久", "out": "Take a list of integers; drop the leading negative values, then drop the first and last elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then make every value non-negative, then arrange in increasing order.", "out": "丐丏丑"} {"kind": "speaker", "in": "Take a list of integers; reverse, then absolute value for all items, then Organize these ascending.", "out": "丐丏丑"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take absolute values, then Sort in ascending order.", "out": "丐丏丑"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn negatives into positives, then I need this sorted ascending.", "out": "丐丏丑"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then abs each element, then Put these in ascending order.", "out": "丐丏丑"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the absolute value of each, then sort smallest to largest.", "out": "丐丏丑"} {"kind": "builder", "in": "丐丏丑", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [abs(x) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丐丏丑", "out": "Take a list of integers; reverse the order, then take the absolute value of each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each value by itself, then arrange by magnitude ignoring sign.", "out": "么上丸"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then square them all, then put them in order by magnitude.", "out": "么上丸"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then raise each to the power of two, then arrange in order of absolute value.", "out": "么上丸"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then I need each number multiplied by itself, then sort by distance from zero.", "out": "么上丸"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then square all of them, then order by how far from zero.", "out": "么上丸"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiply each element by itself, then order by distance from zero.", "out": "么上丸"} {"kind": "builder", "in": "么上丸", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "么上丸", "out": "Take a list of integers; if empty, use a single zero, then square each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each value by itself, then arrange by magnitude ignoring sign.", "out": "义上丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then square them all, then put them in order by magnitude.", "out": "义上丸"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then raise each to the power of two, then arrange in order of absolute value.", "out": "义上丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then I need each number multiplied by itself, then sort by distance from zero.", "out": "义上丸"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then square all of them, then order by how far from zero.", "out": "义上丸"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiply each element by itself, then order by distance from zero.", "out": "义上丸"} {"kind": "builder", "in": "义上丸", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "义上丸", "out": "Take a list of integers; pad with zeros to at least three elements, then square each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything 5 or below, then drop non-negative values.", "out": "义主万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only numbers greater than 5, then drop all positive numbers.", "out": "义主万"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then filter for numbers above 5, then drop non-negative values.", "out": "义主万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give me values where x is greater than 5, then drop all positive numbers.", "out": "义主万"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then show me only the values that are bigger than five, then drop non-negative values.", "out": "义主万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep values greater than five, then drop all positive numbers.", "out": "义主万"} {"kind": "builder", "in": "义主万", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "义主万", "out": "Take a list of integers; pad with zeros to at least three elements, then keep values greater than five, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove both ends, then give the earliest even value or zero.", "out": "丐为乒"} {"kind": "speaker", "in": "Take a list of integers; reverse, then trim the edges, then fetch the first even element, default to 0.", "out": "丐为乒"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then trim one element off each end, then give the earliest even value or zero.", "out": "丐为乒"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then cut off the first and last, then fetch the first even element, default to 0.", "out": "丐为乒"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first and last elements, then give the earliest even value or zero.", "out": "丐为乒"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep only the middle part, then fetch the first even element, default to 0.", "out": "丐为乒"} {"kind": "builder", "in": "丐为乒", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:-1]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丐为乒", "out": "Take a list of integers; reverse the order, then drop the first and last elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest to smallest, then keep only non-zero numbers.", "out": "一专举"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by descending values, then strip the zeros.", "out": "一专举"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from highest to lowest, then keep only non-zero numbers.", "out": "一专举"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort descending, then strip the zeros.", "out": "一专举"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest first, then keep only non-zero numbers.", "out": "一专举"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort in descending order, then strip the zeros.", "out": "一专举"} {"kind": "builder", "in": "一专举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "一专举", "out": "Take a list of integers; keep the even numbers, then sort descending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then extend to length 3 using zeros, then true only if all are positive.", "out": "专义乌"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then pad to 3, then do all of these have positive values.", "out": "专义乌"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then extend to length 3 using zeros, then check if every value is positive.", "out": "专义乌"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then pad to 3, then confirm all values are positive.", "out": "专义乌"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then extend to length 3 using zeros, then all positive.", "out": "专义乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then pad to 3, then check if every number is above zero.", "out": "专义乌"} {"kind": "builder", "in": "专义乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "专义乌", "out": "Take a list of integers; sort descending, then pad with zeros to at least three elements, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then order by distance from zero, then drop non-positive values.", "out": "丹丸七"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort based on absolute value, then drop the negative numbers.", "out": "丹丸七"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then organize by magnitude, then filter out the negative ones.", "out": "丹丸七"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then arrange by absolute value ascending, then remove all negative values.", "out": "丹丸七"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort from smallest to largest absolute value, then keep positive values only.", "out": "丹丸七"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort by absolute value, then keep values above zero.", "out": "丹丸七"} {"kind": "builder", "in": "丹丸七", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丹丸七", "out": "Take a list of integers; keep only the last three, then sort by absolute value, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then convert each to upper case, then reduce each string to its first character.", "out": "乗丟丨"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then change all strings to uppercase, then take first char drop blanks.", "out": "乗丟丨"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then make every string uppercase, then keep first letters only.", "out": "乗丟丨"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then uppercase each one, then first letter from each item that isn't empty.", "out": "乗丟丨"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then make all the strings uppercase, then grab the first char from each.", "out": "乗丟丨"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then convert all strings to uppercase letters, then isolate the first character per entry.", "out": "乗丟丨"} {"kind": "builder", "in": "乗丟丨", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.upper() for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乗丟丨", "out": "Take a list of strings; drop strings shorter than three characters, then uppercase each string, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then extend to length 3 using zeros, then find the min, defaulting to 0.", "out": "九义丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then pad to 3, then minimum value, zero otherwise.", "out": "九义丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then extend to length 3 using zeros, then get the minimum value or zero if empty.", "out": "九义丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then pad to 3, then give me the min or 0.", "out": "九义丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then extend to length 3 using zeros, then return the smallest number, defaulting to 0.", "out": "九义丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then pad to 3, then return smallest or zero if empty.", "out": "九义丛"} {"kind": "builder", "in": "九义丛", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return min(r) if r else 0"} {"kind": "translator", "in": "九义丛", "out": "Take a list of people records (name, age); extract the ages, then pad with zeros to at least three elements, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then deduplicate the list.", "out": "世万且"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then remove repeats.", "out": "世万且"} {"kind": "builder", "in": "世万且", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "世万且", "out": "Take a list of integers; drop the first element, then keep the negative numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero, then true if any value equals zero.", "out": "不七乍"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers, then check for zero.", "out": "不七乍"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers, then true if any value equals zero.", "out": "不七乍"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives, then check for zero.", "out": "不七乍"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives, then true if any value equals zero.", "out": "不七乍"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers, then check for zero.", "out": "不七乍"} {"kind": "builder", "in": "不七乍", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n return 0 in r"} {"kind": "translator", "in": "不七乍", "out": "Take a list of integers; subtract one from each, then keep the positive numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item, then truncate to three items.", "out": "与世丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head, then show the first three.", "out": "与世丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item, then take the first three.", "out": "与世丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head, then keep first 3.", "out": "与世丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item, then truncate to first three.", "out": "与世丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head, then first three.", "out": "与世丕"} {"kind": "builder", "in": "与世丕", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[1:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "与世丕", "out": "Take a list of integers; negate each, then drop the first element, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements, then reduce each by one.", "out": "下丹不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three, then Subtract 1 from all.", "out": "下丹不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements, then Subtract one from each.", "out": "下丹不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three, then Drop each by one.", "out": "下丹不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items, then Decrease all values by one.", "out": "下丹不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three, then Remove one from each value.", "out": "下丹不"} {"kind": "builder", "in": "下丹不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "下丹不", "out": "Take a list of integers; add one to each, then keep only the last three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each by two, then drop non-positive values.", "out": "串丈七"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then double each item in the list, then drop the negative numbers.", "out": "串丈七"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then multiply each by two, then filter out the negative ones.", "out": "串丈七"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then double each item in the list, then remove all negative values.", "out": "串丈七"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then multiply each by two, then keep positive values only.", "out": "串丈七"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then double each item in the list, then keep values above zero.", "out": "串丈七"} {"kind": "builder", "in": "串丈七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "串丈七", "out": "Take a list of integers; keep multiples of three, then double each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only even values, then take values up to (excluding) the first zero.", "out": "串一久"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then extract all even numbers, then keep the part before the first 0.", "out": "串一久"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only even values, then truncate at the first zero.", "out": "串一久"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then extract all even numbers, then delete everything starting with the first zero.", "out": "串一久"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only even values, then remove from the first zero onwards.", "out": "串一久"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then extract all even numbers, then up to but not including the first zero.", "out": "串一久"} {"kind": "builder", "in": "串一久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "串一久", "out": "Take a list of integers; keep multiples of three, then keep the even numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then take the final 3 elements, then stop at the first non-positive value.", "out": "串丹乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then drop everything except the final three, then keep the leading run of positive numbers.", "out": "串丹乂"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then give me the last three elements, then take values while they are positive.", "out": "串丹乂"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep only the last three, then take positive values then stop.", "out": "串丹乂"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep the final three items, then keep going while positive.", "out": "串丹乂"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the last three, then stop at first non positive.", "out": "串丹乂"} {"kind": "builder", "in": "串丹乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[-3:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "串丹乂", "out": "Take a list of integers; keep multiples of three, then keep only the last three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then reduce each by one.", "out": "举世不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then Subtract 1 from all.", "out": "举世不"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then Subtract one from each.", "out": "举世不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then Drop each by one.", "out": "举世不"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then Decrease all values by one.", "out": "举世不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then Remove one from each value.", "out": "举世不"} {"kind": "builder", "in": "举世不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "举世不", "out": "Take a list of integers; drop the zeros, then drop the first element, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort smallest to largest, then ensure at least three items by appending zeros.", "out": "丹丑义"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Ascending sort, then ensure minimum length of three by adding zeros to the end.", "out": "丹丑义"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then Sort this ascending, then ensure at least three items by appending zeros.", "out": "丹丑义"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Sort lowest to highest, then ensure minimum length of three by adding zeros to the end.", "out": "丹丑义"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Arrange from smallest to largest, then ensure at least three items by appending zeros.", "out": "丹丑义"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort ascending, then ensure minimum length of three by adding zeros to the end.", "out": "丹丑义"} {"kind": "builder", "in": "丹丑义", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丹丑义", "out": "Take a list of integers; keep only the last three, then sort ascending, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the leading run of positive numbers, then true if already sorted smallest to largest.", "out": "丁乂乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take values while they are positive, then does this list go in ascending order.", "out": "丁乂乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take positive values then stop, then check if the list is in ascending order.", "out": "丁乂乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep going while positive, then is the list sorted.", "out": "丁乂乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then stop at first non positive, then is it sorted.", "out": "丁乂乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take while greater than zero, then check if values are in increasing order.", "out": "丁乂乎"} {"kind": "builder", "in": "丁乂乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r == sorted(r)"} {"kind": "translator", "in": "丁乂乎", "out": "Take a list of integers; keep the odd numbers, then take values while they are positive, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then sort largest to smallest, then take values up to (excluding) the first zero.", "out": "为专久"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort by descending values, then keep the part before the first 0.", "out": "为专久"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then sort from highest to lowest, then truncate at the first zero.", "out": "为专久"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then sort descending, then delete everything starting with the first zero.", "out": "为专久"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort largest first, then remove from the first zero onwards.", "out": "为专久"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort in descending order, then up to but not including the first zero.", "out": "为专久"} {"kind": "builder", "in": "为专久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, reverse=True)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "为专久", "out": "Take a list of integers; drop the first and last elements, then sort descending, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then order by distance from zero, then find the max, defaulting to 0.", "out": "下丸业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort based on absolute value, then Give me the maximum, but 0 if there are no items.", "out": "下丸业"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then organize by magnitude, then What's the highest number in the list.", "out": "下丸业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then arrange by absolute value ascending, then Return the greatest value or default to 0.", "out": "下丸业"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from smallest to largest absolute value, then Find the largest element, defaulting to zero.", "out": "下丸业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by absolute value, then give the largest value (0 if none).", "out": "下丸业"} {"kind": "builder", "in": "下丸业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, key=abs)\n return max(r) if r else 0"} {"kind": "translator", "in": "下丸业", "out": "Take a list of integers; add one to each, then sort by absolute value, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then order by distance from zero, then arrange in decreasing order.", "out": "乃丸专"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then sort based on absolute value, then arrange in descending order.", "out": "乃丸专"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then organize by magnitude, then reverse sort.", "out": "乃丸专"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then arrange by absolute value ascending, then sort largest to smallest.", "out": "乃丸专"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then sort from smallest to largest absolute value, then sort by descending values.", "out": "乃丸专"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort by absolute value, then sort from highest to lowest.", "out": "乃丸专"} {"kind": "builder", "in": "乃丸专", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, key=abs)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乃丸专", "out": "Take a list of integers; drop the leading negative values, then sort by absolute value, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increment each value, then true only if all are positive.", "out": "不下乌"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then plus one for all, then do all of these have positive values.", "out": "不下乌"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then increment each value, then check if every value is positive.", "out": "不下乌"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then plus one for all, then confirm all values are positive.", "out": "不下乌"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then increment each value, then all positive.", "out": "不下乌"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then plus one for all, then check if every number is above zero.", "out": "不下乌"} {"kind": "builder", "in": "不下乌", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 1 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "不下乌", "out": "Take a list of integers; subtract one from each, then add one to each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values divisible by 3, then deduplicate the list.", "out": "万串且"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep items where x mod 3 equals zero, then remove repeats.", "out": "万串且"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then drop anything not divisible by three, then deduplicate the list.", "out": "万串且"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter out everything except multiples of three, then remove repeats.", "out": "万串且"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only multiples of three, then deduplicate the list.", "out": "万串且"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiples of three only, then remove repeats.", "out": "万串且"} {"kind": "builder", "in": "万串且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 3 == 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "万串且", "out": "Take a list of integers; keep the negative numbers, then keep multiples of three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then remove short strings (under 3 chars).", "out": "丞乖乗"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then only keep strings with three or more characters.", "out": "丞乖乗"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then keep only strings that are at least three characters long.", "out": "丞乖乗"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then filter strings shorter than 3 chars.", "out": "丞乖乗"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then drop anything shorter than three characters.", "out": "丞乖乗"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then keep only strings of length 3 or more.", "out": "丞乖乗"} {"kind": "builder", "in": "丞乖乗", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = sorted(r)\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "丞乖乗", "out": "Take a list of strings; lowercase each string, then sort alphabetically, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values above zero, then drop the odd numbers.", "out": "丈七一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter for positive numbers, then filter out the odd numbers.", "out": "丈七一"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only positive numbers, then drop the odd numbers.", "out": "丈七一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positives, then filter out the odd numbers.", "out": "丈七一"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove negatives, then drop the odd numbers.", "out": "丈七一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positive numbers, then filter out the odd numbers.", "out": "丈七一"} {"kind": "builder", "in": "丈七一", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丈七一", "out": "Take a list of integers; double each, then keep the positive numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then decrement each value, then multiply each by -1.", "out": "丁不与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Lower each number by one, then negate.", "out": "丁不与"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then reduce each by one, then multiply each by -1.", "out": "丁不与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Subtract 1 from all, then negate.", "out": "丁不与"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Subtract one from each, then multiply each by -1.", "out": "丁不与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Drop each by one, then negate.", "out": "丁不与"} {"kind": "builder", "in": "丁不与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x - 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丁不与", "out": "Take a list of integers; keep the odd numbers, then subtract one from each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then drop non-positive values.", "out": "丈丘七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then drop the negative numbers.", "out": "丈丘七"} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then filter out the negative ones.", "out": "丈丘七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then remove all negative values.", "out": "丈丘七"} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then keep positive values only.", "out": "丈丘七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then keep values above zero.", "out": "丈丘七"} {"kind": "builder", "in": "丈丘七", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丈丘七", "out": "Take a list of integers; double each, then cap each value at 10, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each value by itself, then shift each up by ten.", "out": "且上丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then square them all, then increase all numbers by 10.", "out": "且上丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then raise each to the power of two, then add 10 to everything.", "out": "且上丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then I need each number multiplied by itself, then give everything a boost of 10.", "out": "且上丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then square all of them, then increment each by ten.", "out": "且上丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiply each element by itself, then add a constant 10 to each.", "out": "且上丽"} {"kind": "builder", "in": "且上丽", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "且上丽", "out": "Take a list of integers; drop duplicates keeping first occurrence, then square each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each value by itself, then true if already sorted smallest to largest.", "out": "世上乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then square them all, then does this list go in ascending order.", "out": "世上乎"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then raise each to the power of two, then check if the list is in ascending order.", "out": "世上乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then I need each number multiplied by itself, then is the list sorted.", "out": "世上乎"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then square all of them, then is it sorted.", "out": "世上乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiply each element by itself, then check if values are in increasing order.", "out": "世上乎"} {"kind": "builder", "in": "世上乎", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "世上乎", "out": "Take a list of integers; drop the first element, then square each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then keep only numbers above 5.", "out": "下且主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then exclude values of 5 and below.", "out": "下且主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then remove anything 5 or less.", "out": "下且主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then filter to keep only values above 5.", "out": "下且主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then get rid of values that aren't greater than five.", "out": "下且主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then drop anything 5 or below.", "out": "下且主"} {"kind": "builder", "in": "下且主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "下且主", "out": "Take a list of integers; add one to each, then drop duplicates keeping first occurrence, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increment each value, then find the max, defaulting to 0.", "out": "丑下业"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then plus one for all, then Give me the maximum, but 0 if there are no items.", "out": "丑下业"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then increment each value, then What's the highest number in the list.", "out": "丑下业"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then plus one for all, then Return the greatest value or default to 0.", "out": "丑下业"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then increment each value, then Find the largest element, defaulting to zero.", "out": "丑下业"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then plus one for all, then give the largest value (0 if none).", "out": "丑下业"} {"kind": "builder", "in": "丑下业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 1 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丑下业", "out": "Take a list of integers; sort ascending, then add one to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values above zero, then bump each up by one.", "out": "么七下"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then filter for positive numbers, then increment each item.", "out": "么七下"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only positive numbers, then bump each up by one.", "out": "么七下"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the positives, then increment each item.", "out": "么七下"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove negatives, then bump each up by one.", "out": "么七下"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep the positive numbers, then increment each item.", "out": "么七下"} {"kind": "builder", "in": "么七下", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "么七下", "out": "Take a list of integers; if empty, use a single zero, then keep the positive numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only even values, then stop at the first non-positive value.", "out": "丏一乂"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then extract all even numbers, then keep the leading run of positive numbers.", "out": "丏一乂"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only even values, then take values while they are positive.", "out": "丏一乂"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then extract all even numbers, then take positive values then stop.", "out": "丏一乂"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only even values, then keep going while positive.", "out": "丏一乂"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then extract all even numbers, then stop at first non positive.", "out": "丏一乂"} {"kind": "builder", "in": "丏一乂", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丏一乂", "out": "Take a list of integers; take the absolute value of each, then keep the even numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself, then deduplicate the list.", "out": "乃上且"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all, then remove repeats.", "out": "乃上且"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two, then deduplicate the list.", "out": "乃上且"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself, then remove repeats.", "out": "乃上且"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them, then deduplicate the list.", "out": "乃上且"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself, then remove repeats.", "out": "乃上且"} {"kind": "builder", "in": "乃上且", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乃上且", "out": "Take a list of integers; drop the leading negative values, then square each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then skip negatives at the start, then drop non-positive values.", "out": "举乃七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove all negatives at the front, then drop the negative numbers.", "out": "举乃七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the initial run of negative numbers, then filter out the negative ones.", "out": "举乃七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then strip the front negatives, then remove all negative values.", "out": "举乃七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove leading negative numbers, then keep positive values only.", "out": "举乃七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop negatives from start, then keep values above zero.", "out": "举乃七"} {"kind": "builder", "in": "举乃七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "举乃七", "out": "Take a list of integers; drop the zeros, then drop the leading negative values, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then order by distance from zero, then limit every value to 10.", "out": "义丸丘"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort based on absolute value, then maximum of 10 for all.", "out": "义丸丘"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then organize by magnitude, then limit every value to 10.", "out": "义丸丘"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then arrange by absolute value ascending, then maximum of 10 for all.", "out": "义丸丘"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from smallest to largest absolute value, then limit every value to 10.", "out": "义丸丘"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by absolute value, then maximum of 10 for all.", "out": "义丸丘"} {"kind": "builder", "in": "义丸丘", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "义丸丘", "out": "Take a list of integers; pad with zeros to at least three elements, then sort by absolute value, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values above zero, then arrange in increasing order.", "out": "丸七丑"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then filter for positive numbers, then Organize these ascending.", "out": "丸七丑"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only positive numbers, then Sort in ascending order.", "out": "丸七丑"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the positives, then I need this sorted ascending.", "out": "丸七丑"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove negatives, then Put these in ascending order.", "out": "丸七丑"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep the positive numbers, then sort smallest to largest.", "out": "丸七丑"} {"kind": "builder", "in": "丸七丑", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丸七丑", "out": "Take a list of integers; sort by absolute value, then keep the positive numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep the leading run of positive numbers, then drop non-positive values.", "out": "九乂七"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then take values while they are positive, then drop the negative numbers.", "out": "九乂七"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take positive values then stop, then filter out the negative ones.", "out": "九乂七"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep going while positive, then remove all negative values.", "out": "九乂七"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then stop at first non positive, then keep positive values only.", "out": "九乂七"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take while greater than zero, then keep values above zero.", "out": "九乂七"} {"kind": "builder", "in": "九乂七", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "九乂七", "out": "Take a list of people records (name, age); extract the ages, then take values while they are positive, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove the first item, then count the elements.", "out": "七世东"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Remove head, then how many items remain.", "out": "七世东"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the first item, then tell me the length.", "out": "七世东"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Remove head, then return the length.", "out": "七世东"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first item, then count them.", "out": "七世东"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Remove head, then what's the count.", "out": "七世东"} {"kind": "builder", "in": "七世东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:]\n return len(r)"} {"kind": "translator", "in": "七世东", "out": "Take a list of integers; keep the positive numbers, then drop the first element, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then arrange in increasing order.", "out": "万世丑"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then Organize these ascending.", "out": "万世丑"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then Sort in ascending order.", "out": "万世丑"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then I need this sorted ascending.", "out": "万世丑"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then Put these in ascending order.", "out": "万世丑"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then sort smallest to largest.", "out": "万世丑"} {"kind": "builder", "in": "万世丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "万世丑", "out": "Take a list of integers; keep the negative numbers, then drop the first element, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove both ends, then give the earliest even value or zero.", "out": "不为乒"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then trim the edges, then fetch the first even element, default to 0.", "out": "不为乒"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then trim one element off each end, then give the earliest even value or zero.", "out": "不为乒"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then cut off the first and last, then fetch the first even element, default to 0.", "out": "不为乒"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove the first and last elements, then give the earliest even value or zero.", "out": "不为乒"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep only the middle part, then fetch the first even element, default to 0.", "out": "不为乒"} {"kind": "builder", "in": "不为乒", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[1:-1]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "不为乒", "out": "Take a list of integers; subtract one from each, then drop the first and last elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep only odd values, then true if already sorted smallest to largest.", "out": "丑丁乎"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then eliminate the even numbers, then does this list go in ascending order.", "out": "丑丁乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only odd values, then check if the list is in ascending order.", "out": "丑丁乎"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then eliminate the even numbers, then is the list sorted.", "out": "丑丁乎"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only odd values, then is it sorted.", "out": "丑丁乎"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then eliminate the even numbers, then check if values are in increasing order.", "out": "丑丁乎"} {"kind": "builder", "in": "丑丁乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丑丁乎", "out": "Take a list of integers; sort ascending, then keep the odd numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then skip negatives at the start, then true if any value equals zero.", "out": "串乃乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then remove all negatives at the front, then check for zero.", "out": "串乃乍"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove the initial run of negative numbers, then true if any value equals zero.", "out": "串乃乍"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then strip the front negatives, then check for zero.", "out": "串乃乍"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove leading negative numbers, then true if any value equals zero.", "out": "串乃乍"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then drop negatives from start, then check for zero.", "out": "串乃乍"} {"kind": "builder", "in": "串乃乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return 0 in r"} {"kind": "translator", "in": "串乃乍", "out": "Take a list of integers; keep multiples of three, then drop the leading negative values, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero, then shift each up by ten.", "out": "世久丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears, then increase all numbers by 10.", "out": "世久丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero, then add 10 to everything.", "out": "世久丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0, then give everything a boost of 10.", "out": "世久丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero, then increment each by ten.", "out": "世久丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero, then add a constant 10 to each.", "out": "世久丽"} {"kind": "builder", "in": "世久丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "世久丽", "out": "Take a list of integers; drop the first element, then keep everything before the first zero, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove all zero values, then strip the signs.", "out": "不举丏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then exclude zeros, then take abs of each.", "out": "不举丏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove all zero values, then get the absolute value of everything.", "out": "不举丏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then exclude zeros, then apply absolute value to the whole list.", "out": "不举丏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove all zero values, then make them all positive.", "out": "不举丏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then exclude zeros, then make every value non-negative.", "out": "不举丏"} {"kind": "builder", "in": "不举丏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "不举丏", "out": "Take a list of integers; subtract one from each, then drop the zeros, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then drop anything 5 or below, then put the elements backwards.", "out": "乃主丐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep only numbers greater than 5, then reverse that for me.", "out": "乃主丐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then filter for numbers above 5, then flip it backwards.", "out": "乃主丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then give me values where x is greater than 5, then make it backwards.", "out": "乃主丐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then show me only the values that are bigger than five, then reverse the list.", "out": "乃主丐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep values greater than five, then invert the sequence.", "out": "乃主丐"} {"kind": "builder", "in": "乃主丐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "乃主丐", "out": "Take a list of integers; drop the leading negative values, then keep values greater than five, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each value by itself, then stop at the first non-positive value.", "out": "七上乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then square them all, then keep the leading run of positive numbers.", "out": "七上乂"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then raise each to the power of two, then take values while they are positive.", "out": "七上乂"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then I need each number multiplied by itself, then take positive values then stop.", "out": "七上乂"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then square all of them, then keep going while positive.", "out": "七上乂"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then multiply each element by itself, then stop at first non positive.", "out": "七上乂"} {"kind": "builder", "in": "七上乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "七上乂", "out": "Take a list of integers; keep the positive numbers, then square each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the sign of each, then true if any value equals zero.", "out": "丸与乍"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then turn positives to negatives and vice versa, then check for zero.", "out": "丸与乍"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then flip the sign of each, then true if any value equals zero.", "out": "丸与乍"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn positives to negatives and vice versa, then check for zero.", "out": "丸与乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip the sign of each, then true if any value equals zero.", "out": "丸与乍"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then turn positives to negatives and vice versa, then check for zero.", "out": "丸与乍"} {"kind": "builder", "in": "丸与乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [-x for x in r]\n return 0 in r"} {"kind": "translator", "in": "丸与乍", "out": "Take a list of integers; sort by absolute value, then negate each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then sort smallest to largest, then drop the even numbers.", "out": "专丑丁"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Ascending sort, then strip out the evens.", "out": "专丑丁"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then Sort this ascending, then drop the even numbers.", "out": "专丑丁"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Sort lowest to highest, then strip out the evens.", "out": "专丑丁"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then Arrange from smallest to largest, then drop the even numbers.", "out": "专丑丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort ascending, then strip out the evens.", "out": "专丑丁"} {"kind": "builder", "in": "专丑丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "专丑丁", "out": "Take a list of integers; sort descending, then sort ascending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero, then keep only non-zero numbers.", "out": "七久举"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears, then strip the zeros.", "out": "七久举"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero, then keep only non-zero numbers.", "out": "七久举"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0, then strip the zeros.", "out": "七久举"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero, then keep only non-zero numbers.", "out": "七久举"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero, then strip the zeros.", "out": "七久举"} {"kind": "builder", "in": "七久举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "七久举", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove both ends, then skip the first one.", "out": "义为世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then trim the edges, then Discard the first element.", "out": "义为世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then trim one element off each end, then skip the first one.", "out": "义为世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off the first and last, then Discard the first element.", "out": "义为世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first and last elements, then skip the first one.", "out": "义为世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the middle part, then Discard the first element.", "out": "义为世"} {"kind": "builder", "in": "义为世", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n r = r[1:]\n return r"} {"kind": "translator", "in": "义为世", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the first and last elements, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove repeated values, then true only if all are positive.", "out": "七且乌"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then unique values preserving order, then do all of these have positive values.", "out": "七且乌"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove repeated values, then check if every value is positive.", "out": "七且乌"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then unique values preserving order, then confirm all values are positive.", "out": "七且乌"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove repeated values, then all positive.", "out": "七且乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then unique values preserving order, then check if every number is above zero.", "out": "七且乌"} {"kind": "builder", "in": "七且乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(dict.fromkeys(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "七且乌", "out": "Take a list of integers; keep the positive numbers, then drop duplicates keeping first occurrence, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each by two, then give the number of evens.", "out": "么丈乓"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then double each item in the list, then find how many values are divisible by two.", "out": "么丈乓"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then multiply each by two, then how many are even.", "out": "么丈乓"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then double each item in the list, then get the total number of even values in the list.", "out": "么丈乓"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then multiply each by two, then give me the count of even values.", "out": "么丈乓"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then double each item in the list, then I need to know how many of these are even.", "out": "么丈乓"} {"kind": "builder", "in": "么丈乓", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * 2 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "么丈乓", "out": "Take a list of integers; if empty, use a single zero, then double each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then order the strings A to Z, then remove blanks.", "out": "丨乖两"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make it alphabetical, then eliminate empty string values.", "out": "丨乖两"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then order the strings A to Z, then filter out blank strings.", "out": "丨乖两"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make it alphabetical, then remove strings that are empty.", "out": "丨乖两"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then order the strings A to Z, then strip out empty strings.", "out": "丨乖两"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make it alphabetical, then keep only non-empty strings.", "out": "丨乖两"} {"kind": "builder", "in": "丨乖两", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = sorted(r)\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "丨乖两", "out": "Take a list of strings; keep the first character of each (dropping empties), then sort alphabetically, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then extend to length 3 using zeros, then truncate to three items.", "out": "专义丕"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then pad to 3, then show the first three.", "out": "专义丕"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then extend to length 3 using zeros, then take the first three.", "out": "专义丕"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then pad to 3, then keep first 3.", "out": "专义丕"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then extend to length 3 using zeros, then truncate to first three.", "out": "专义丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then pad to 3, then first three.", "out": "专义丕"} {"kind": "builder", "in": "专义丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n return r"} {"kind": "translator", "in": "专义丕", "out": "Take a list of integers; sort descending, then pad with zeros to at least three elements, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then default to [0] when there is nothing, then find the max, defaulting to 0.", "out": "丽么业"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then when the list is empty, substitute a zero value, then Give me the maximum, but 0 if there are no items.", "out": "丽么业"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then replace an empty list with one zero, then What's the highest number in the list.", "out": "丽么业"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then zero it out if it's empty, then Return the greatest value or default to 0.", "out": "丽么业"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then use zero if the list is empty, then Find the largest element, defaulting to zero.", "out": "丽么业"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then default to zero when empty, then give the largest value (0 if none).", "out": "丽么业"} {"kind": "builder", "in": "丽么业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r if r else [0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丽么业", "out": "Take a list of integers; add ten to each, then if empty, use a single zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then decrement each value, then true if any value equals zero.", "out": "么不乍"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Lower each number by one, then check for zero.", "out": "么不乍"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then reduce each by one, then true if any value equals zero.", "out": "么不乍"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Subtract 1 from all, then check for zero.", "out": "么不乍"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Subtract one from each, then true if any value equals zero.", "out": "么不乍"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Drop each by one, then check for zero.", "out": "么不乍"} {"kind": "builder", "in": "么不乍", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x - 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "么不乍", "out": "Take a list of integers; if empty, use a single zero, then subtract one from each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then make every value non-negative, then take values up to (excluding) the first zero.", "out": "不丏久"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then absolute value for all items, then keep the part before the first 0.", "out": "不丏久"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take absolute values, then truncate at the first zero.", "out": "不丏久"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn negatives into positives, then delete everything starting with the first zero.", "out": "不丏久"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then abs each element, then remove from the first zero onwards.", "out": "不丏久"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the absolute value of each, then up to but not including the first zero.", "out": "不丏久"} {"kind": "builder", "in": "不丏久", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "不丏久", "out": "Take a list of integers; subtract one from each, then take the absolute value of each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then sort smallest to largest, then replace an empty list with one zero.", "out": "七丑么"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Ascending sort, then zero it out if it's empty.", "out": "七丑么"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then Sort this ascending, then use zero if the list is empty.", "out": "七丑么"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Sort lowest to highest, then default to zero when empty.", "out": "七丑么"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Arrange from smallest to largest, then if there's nothing, put in a zero.", "out": "七丑么"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort ascending, then if no items, add a zero.", "out": "七丑么"} {"kind": "builder", "in": "七丑么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "七丑么", "out": "Take a list of integers; keep the positive numbers, then sort ascending, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then cut the list at the first zero, then count the elements.", "out": "串久东"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then cut off after the first zero appears, then how many items remain.", "out": "串久东"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take values up to (excluding) the first zero, then tell me the length.", "out": "串久东"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the part before the first 0, then return the length.", "out": "串久东"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then truncate at the first zero, then count them.", "out": "串久东"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then delete everything starting with the first zero, then what's the count.", "out": "串久东"} {"kind": "builder", "in": "串久东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return len(r)"} {"kind": "translator", "in": "串久东", "out": "Take a list of integers; keep multiples of three, then keep everything before the first zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below, then arrange by magnitude ignoring sign.", "out": "丏主丸"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5, then put them in order by magnitude.", "out": "丏主丸"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5, then arrange in order of absolute value.", "out": "丏主丸"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5, then sort by distance from zero.", "out": "丏主丸"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five, then order by how far from zero.", "out": "丏主丸"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five, then order by distance from zero.", "out": "丏主丸"} {"kind": "builder", "in": "丏主丸", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丏主丸", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the first 3 elements, then arrange in increasing order.", "out": "乃丕丑"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then remove everything after the third, then Organize these ascending.", "out": "乃丕丑"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then truncate to three items, then Sort in ascending order.", "out": "乃丕丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then show the first three, then I need this sorted ascending.", "out": "乃丕丑"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then take the first three, then Put these in ascending order.", "out": "乃丕丑"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep first 3, then sort smallest to largest.", "out": "乃丕丑"} {"kind": "builder", "in": "乃丕丑", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乃丕丑", "out": "Take a list of integers; drop the leading negative values, then keep only the first three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the sign of each, then remove the initial run of negative numbers.", "out": "么与乃"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then turn positives to negatives and vice versa, then strip the front negatives.", "out": "么与乃"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then flip the sign of each, then remove leading negative numbers.", "out": "么与乃"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn positives to negatives and vice versa, then drop negatives from start.", "out": "么与乃"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip the sign of each, then strip negative values from the start.", "out": "么与乃"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then turn positives to negatives and vice versa, then remove negatives before the first non-negative.", "out": "么与乃"} {"kind": "builder", "in": "么与乃", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [-x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "么与乃", "out": "Take a list of integers; if empty, use a single zero, then negate each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each value by itself, then put the elements backwards.", "out": "下上丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then square them all, then reverse that for me.", "out": "下上丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then raise each to the power of two, then flip it backwards.", "out": "下上丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then I need each number multiplied by itself, then make it backwards.", "out": "下上丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then square all of them, then reverse the list.", "out": "下上丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiply each element by itself, then invert the sequence.", "out": "下上丐"} {"kind": "builder", "in": "下上丐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * x for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "下上丐", "out": "Take a list of integers; add one to each, then square each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then multiply each by two, then keep only non-zero numbers.", "out": "丏丈举"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then double each item in the list, then strip the zeros.", "out": "丏丈举"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then multiply each by two, then keep only non-zero numbers.", "out": "丏丈举"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then double each item in the list, then strip the zeros.", "out": "丏丈举"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then multiply each by two, then keep only non-zero numbers.", "out": "丏丈举"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then double each item in the list, then strip the zeros.", "out": "丏丈举"} {"kind": "builder", "in": "丏丈举", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丏丈举", "out": "Take a list of integers; take the absolute value of each, then double each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then multiply each value by itself, then limit every value to 10.", "out": "九上丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then square them all, then maximum of 10 for all.", "out": "九上丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then raise each to the power of two, then limit every value to 10.", "out": "九上丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then I need each number multiplied by itself, then maximum of 10 for all.", "out": "九上丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then square all of them, then limit every value to 10.", "out": "九上丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiply each element by itself, then maximum of 10 for all.", "out": "九上丘"} {"kind": "builder", "in": "九上丘", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x * x for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "九上丘", "out": "Take a list of people records (name, age); extract the ages, then square each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then replace an empty list with one zero.", "out": "下丽么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then zero it out if it's empty.", "out": "下丽么"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then use zero if the list is empty.", "out": "下丽么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then default to zero when empty.", "out": "下丽么"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then if there's nothing, put in a zero.", "out": "下丽么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then if no items, add a zero.", "out": "下丽么"} {"kind": "builder", "in": "下丽么", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "下丽么", "out": "Take a list of integers; add one to each, then add ten to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then shift each up by ten.", "out": "与万丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then increase all numbers by 10.", "out": "与万丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then add 10 to everything.", "out": "与万丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then give everything a boost of 10.", "out": "与万丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then increment each by ten.", "out": "与万丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then add a constant 10 to each.", "out": "与万丽"} {"kind": "builder", "in": "与万丽", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "与万丽", "out": "Take a list of integers; negate each, then keep the negative numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then true if already sorted smallest to largest.", "out": "丹丽乎"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then does this list go in ascending order.", "out": "丹丽乎"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then check if the list is in ascending order.", "out": "丹丽乎"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then is the list sorted.", "out": "丹丽乎"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then is it sorted.", "out": "丹丽乎"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then check if values are in increasing order.", "out": "丹丽乎"} {"kind": "builder", "in": "丹丽乎", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丹丽乎", "out": "Take a list of integers; keep only the last three, then add ten to each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values divisible by 3, then shift each up by ten.", "out": "丹串丽"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep items where x mod 3 equals zero, then increase all numbers by 10.", "out": "丹串丽"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then drop anything not divisible by three, then add 10 to everything.", "out": "丹串丽"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then filter out everything except multiples of three, then give everything a boost of 10.", "out": "丹串丽"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only multiples of three, then increment each by ten.", "out": "丹串丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiples of three only, then add a constant 10 to each.", "out": "丹串丽"} {"kind": "builder", "in": "丹串丽", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丹串丽", "out": "Take a list of integers; keep only the last three, then keep multiples of three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then clamp each to at most ten, then true if every value is unique.", "out": "丹丘乏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then don't let anything exceed 10, then check for duplicates in the values.", "out": "丹丘乏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then clamp each to at most ten, then do all values appear only once.", "out": "丹丘乏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then don't let anything exceed 10, then check that there are no duplicates.", "out": "丹丘乏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then clamp each to at most ten, then are the values all unique.", "out": "丹丘乏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then don't let anything exceed 10, then check if all values are unique.", "out": "丹丘乏"} {"kind": "builder", "in": "丹丘乏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丹丘乏", "out": "Take a list of integers; keep only the last three, then cap each value at 10, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then skip negatives at the start, then make each twice as big.", "out": "丑乃丈"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove all negatives at the front, then multiply each by 2.", "out": "丑乃丈"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove the initial run of negative numbers, then make each twice as big.", "out": "丑乃丈"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then strip the front negatives, then multiply each by 2.", "out": "丑乃丈"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove leading negative numbers, then make each twice as big.", "out": "丑乃丈"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then drop negatives from start, then multiply each by 2.", "out": "丑乃丈"} {"kind": "builder", "in": "丑乃丈", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丑乃丈", "out": "Take a list of integers; sort ascending, then drop the leading negative values, then double each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values below zero, then give the earliest even value or zero.", "out": "九万乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then get the negative numbers, then fetch the first even element, default to 0.", "out": "九万乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep values below zero, then give the earliest even value or zero.", "out": "九万乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then get the negative numbers, then fetch the first even element, default to 0.", "out": "九万乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep values below zero, then give the earliest even value or zero.", "out": "九万乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then get the negative numbers, then fetch the first even element, default to 0.", "out": "九万乒"} {"kind": "builder", "in": "九万乒", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x < 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "九万乒", "out": "Take a list of people records (name, age); extract the ages, then keep the negative numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; double each, then decrement each value, then drop anything not divisible by three.", "out": "丈不串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Lower each number by one, then filter out everything except multiples of three.", "out": "丈不串"} {"kind": "speaker", "in": "Take a list of integers; double each, then reduce each by one, then keep only multiples of three.", "out": "丈不串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Subtract 1 from all, then multiples of three only.", "out": "丈不串"} {"kind": "speaker", "in": "Take a list of integers; double each, then Subtract one from each, then filter for numbers divisible by three.", "out": "丈不串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Drop each by one, then give me only the values divisible by three.", "out": "丈不串"} {"kind": "builder", "in": "丈不串", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丈不串", "out": "Take a list of integers; double each, then subtract one from each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then deduplicate the list.", "out": "举万且"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then remove repeats.", "out": "举万且"} {"kind": "builder", "in": "举万且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "举万且", "out": "Take a list of integers; drop the zeros, then keep the negative numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then cut the list at the first zero, then reduce each by one.", "out": "丏久不"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then cut off after the first zero appears, then Subtract 1 from all.", "out": "丏久不"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take values up to (excluding) the first zero, then Subtract one from each.", "out": "丏久不"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the part before the first 0, then Drop each by one.", "out": "丏久不"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then truncate at the first zero, then Decrease all values by one.", "out": "丏久不"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then delete everything starting with the first zero, then Remove one from each value.", "out": "丏久不"} {"kind": "builder", "in": "丏久不", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丏久不", "out": "Take a list of integers; take the absolute value of each, then keep everything before the first zero, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the list around, then find the min, defaulting to 0.", "out": "丁丐丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then flip the order around, then minimum value, zero otherwise.", "out": "丁丐丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then put the elements backwards, then get the minimum value or zero if empty.", "out": "丁丐丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then reverse that for me, then give me the min or 0.", "out": "丁丐丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip it backwards, then return the smallest number, defaulting to 0.", "out": "丁丐丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then make it backwards, then return smallest or zero if empty.", "out": "丁丐丛"} {"kind": "builder", "in": "丁丐丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "丁丐丛", "out": "Take a list of integers; keep the odd numbers, then reverse the order, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove all zero values, then stop at the first non-positive value.", "out": "乃举乂"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then exclude zeros, then keep the leading run of positive numbers.", "out": "乃举乂"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove all zero values, then take values while they are positive.", "out": "乃举乂"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then exclude zeros, then take positive values then stop.", "out": "乃举乂"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove all zero values, then keep going while positive.", "out": "乃举乂"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then exclude zeros, then stop at first non positive.", "out": "乃举乂"} {"kind": "builder", "in": "乃举乂", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "乃举乂", "out": "Take a list of integers; drop the leading negative values, then drop the zeros, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then arrange in increasing order.", "out": "且丽丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then Organize these ascending.", "out": "且丽丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then Sort in ascending order.", "out": "且丽丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then I need this sorted ascending.", "out": "且丽丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then Put these in ascending order.", "out": "且丽丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then sort smallest to largest.", "out": "且丽丑"} {"kind": "builder", "in": "且丽丑", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "且丽丑", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the final 3 elements, then limit every value to 10.", "out": "不丹丘"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then drop everything except the final three, then maximum of 10 for all.", "out": "不丹丘"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give me the last three elements, then limit every value to 10.", "out": "不丹丘"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep only the last three, then maximum of 10 for all.", "out": "不丹丘"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep the final three items, then limit every value to 10.", "out": "不丹丘"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the last three, then maximum of 10 for all.", "out": "不丹丘"} {"kind": "builder", "in": "不丹丘", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[-3:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "不丹丘", "out": "Take a list of integers; subtract one from each, then keep only the last three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only even values, then ensure at least three items by appending zeros.", "out": "么一义"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "么一义"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only even values, then ensure at least three items by appending zeros.", "out": "么一义"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "么一义"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only even values, then ensure at least three items by appending zeros.", "out": "么一义"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "么一义"} {"kind": "builder", "in": "么一义", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "么一义", "out": "Take a list of integers; if empty, use a single zero, then keep the even numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the list around, then true if every value is unique.", "out": "久丐乏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then flip the order around, then check for duplicates in the values.", "out": "久丐乏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then put the elements backwards, then do all values appear only once.", "out": "久丐乏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then reverse that for me, then check that there are no duplicates.", "out": "久丐乏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip it backwards, then are the values all unique.", "out": "久丐乏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then make it backwards, then check if all values are unique.", "out": "久丐乏"} {"kind": "builder", "in": "久丐乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "久丐乏", "out": "Take a list of integers; keep everything before the first zero, then reverse the order, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then drop anything 5 or below, then take values up to (excluding) the first zero.", "out": "丘主久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only numbers greater than 5, then keep the part before the first 0.", "out": "丘主久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then filter for numbers above 5, then truncate at the first zero.", "out": "丘主久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give me values where x is greater than 5, then delete everything starting with the first zero.", "out": "丘主久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then show me only the values that are bigger than five, then remove from the first zero onwards.", "out": "丘主久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep values greater than five, then up to but not including the first zero.", "out": "丘主久"} {"kind": "builder", "in": "丘主久", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丘主久", "out": "Take a list of integers; cap each value at 10, then keep values greater than five, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove all zero values, then true if already sorted smallest to largest.", "out": "专举乎"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then exclude zeros, then does this list go in ascending order.", "out": "专举乎"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove all zero values, then check if the list is in ascending order.", "out": "专举乎"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then exclude zeros, then is the list sorted.", "out": "专举乎"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove all zero values, then is it sorted.", "out": "专举乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then exclude zeros, then check if values are in increasing order.", "out": "专举乎"} {"kind": "builder", "in": "专举乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "专举乎", "out": "Take a list of integers; sort descending, then drop the zeros, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then multiply each by -1.", "out": "且一与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then negate.", "out": "且一与"} {"kind": "builder", "in": "且一与", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "且一与", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the even numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the final 3 elements, then find the max, defaulting to 0.", "out": "丏丹业"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then drop everything except the final three, then Give me the maximum, but 0 if there are no items.", "out": "丏丹业"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then give me the last three elements, then What's the highest number in the list.", "out": "丏丹业"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep only the last three, then Return the greatest value or default to 0.", "out": "丏丹业"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep the final three items, then Find the largest element, defaulting to zero.", "out": "丏丹业"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take the last three, then give the largest value (0 if none).", "out": "丏丹业"} {"kind": "builder", "in": "丏丹业", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[-3:]\n return max(r) if r else 0"} {"kind": "translator", "in": "丏丹业", "out": "Take a list of integers; take the absolute value of each, then keep only the last three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then arrange in decreasing order.", "out": "且举专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then arrange in descending order.", "out": "且举专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then reverse sort.", "out": "且举专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then sort largest to smallest.", "out": "且举专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then sort by descending values.", "out": "且举专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then sort from highest to lowest.", "out": "且举专"} {"kind": "builder", "in": "且举专", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "且举专", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the zeros, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values, then give back the product of all values.", "out": "丕举乐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros, then product of the list.", "out": "丕举乐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values, then what's the product.", "out": "丕举乐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros, then what do they multiply to.", "out": "丕举乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values, then give me their product.", "out": "丕举乐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros, then multiply them all together.", "out": "丕举乐"} {"kind": "builder", "in": "丕举乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丕举乐", "out": "Take a list of integers; keep only the first three, then drop the zeros, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only even values, then find the max, defaulting to 0.", "out": "为一业"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then extract all even numbers, then Give me the maximum, but 0 if there are no items.", "out": "为一业"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only even values, then What's the highest number in the list.", "out": "为一业"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then extract all even numbers, then Return the greatest value or default to 0.", "out": "为一业"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only even values, then Find the largest element, defaulting to zero.", "out": "为一业"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then extract all even numbers, then give the largest value (0 if none).", "out": "为一业"} {"kind": "builder", "in": "为一业", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "为一业", "out": "Take a list of integers; drop the first and last elements, then keep the even numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then skip negatives at the start, then true if already sorted smallest to largest.", "out": "七乃乎"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove all negatives at the front, then does this list go in ascending order.", "out": "七乃乎"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the initial run of negative numbers, then check if the list is in ascending order.", "out": "七乃乎"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then strip the front negatives, then is the list sorted.", "out": "七乃乎"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove leading negative numbers, then is it sorted.", "out": "七乃乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then drop negatives from start, then check if values are in increasing order.", "out": "七乃乎"} {"kind": "builder", "in": "七乃乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r == sorted(r)"} {"kind": "translator", "in": "七乃乎", "out": "Take a list of integers; keep the positive numbers, then drop the leading negative values, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then trim one element off each end.", "out": "主世为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then cut off the first and last.", "out": "主世为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then remove the first and last elements.", "out": "主世为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then keep only the middle part.", "out": "主世为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then drop first and last.", "out": "主世为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then eliminate the outermost elements.", "out": "主世为"} {"kind": "builder", "in": "主世为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主世为", "out": "Take a list of integers; keep values greater than five, then drop the first element, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the final 3 elements, then skip the first one.", "out": "久丹世"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then drop everything except the final three, then Discard the first element.", "out": "久丹世"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then give me the last three elements, then skip the first one.", "out": "久丹世"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep only the last three, then Discard the first element.", "out": "久丹世"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep the final three items, then skip the first one.", "out": "久丹世"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the last three, then Discard the first element.", "out": "久丹世"} {"kind": "builder", "in": "久丹世", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n r = r[1:]\n return r"} {"kind": "translator", "in": "久丹世", "out": "Take a list of integers; keep everything before the first zero, then keep only the last three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep the leading run of positive numbers, then drop the even numbers.", "out": "不乂丁"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then take values while they are positive, then strip out the evens.", "out": "不乂丁"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take positive values then stop, then drop the even numbers.", "out": "不乂丁"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep going while positive, then strip out the evens.", "out": "不乂丁"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then stop at first non positive, then drop the even numbers.", "out": "不乂丁"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take while greater than zero, then strip out the evens.", "out": "不乂丁"} {"kind": "builder", "in": "不乂丁", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "不乂丁", "out": "Take a list of integers; subtract one from each, then take values while they are positive, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then make every value non-negative, then trim one element off each end.", "out": "丈丏为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then absolute value for all items, then cut off the first and last.", "out": "丈丏为"} {"kind": "speaker", "in": "Take a list of integers; double each, then take absolute values, then remove the first and last elements.", "out": "丈丏为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn negatives into positives, then keep only the middle part.", "out": "丈丏为"} {"kind": "speaker", "in": "Take a list of integers; double each, then abs each element, then drop first and last.", "out": "丈丏为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the absolute value of each, then eliminate the outermost elements.", "out": "丈丏为"} {"kind": "builder", "in": "丈丏为", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丈丏为", "out": "Take a list of integers; double each, then take the absolute value of each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values, then ensure at least three items by appending zeros.", "out": "丕举义"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros, then ensure minimum length of three by adding zeros to the end.", "out": "丕举义"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values, then ensure at least three items by appending zeros.", "out": "丕举义"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros, then ensure minimum length of three by adding zeros to the end.", "out": "丕举义"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values, then ensure at least three items by appending zeros.", "out": "丕举义"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros, then ensure minimum length of three by adding zeros to the end.", "out": "丕举义"} {"kind": "builder", "in": "丕举义", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丕举义", "out": "Take a list of integers; keep only the first three, then drop the zeros, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then give the number of evens.", "out": "与举乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then find how many values are divisible by two.", "out": "与举乓"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then how many are even.", "out": "与举乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then get the total number of even values in the list.", "out": "与举乓"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then give me the count of even values.", "out": "与举乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then I need to know how many of these are even.", "out": "与举乓"} {"kind": "builder", "in": "与举乓", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "与举乓", "out": "Take a list of integers; negate each, then drop the zeros, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the first 3 elements, then truncate to the last three items.", "out": "乃丕丹"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then remove everything after the third, then show only the last three.", "out": "乃丕丹"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then truncate to three items, then remove all but the last three.", "out": "乃丕丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then show the first three, then take the final 3 elements.", "out": "乃丕丹"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then take the first three, then drop everything except the final three.", "out": "乃丕丹"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep first 3, then give me the last three elements.", "out": "乃丕丹"} {"kind": "builder", "in": "乃丕丹", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "乃丕丹", "out": "Take a list of integers; drop the leading negative values, then keep only the first three, then keep only the last three."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then remove repeated strings, then find how long the longest string is.", "out": "两丧乜"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then keep unique strings first appearance, then give the length of the longest string in the list.", "out": "两丧乜"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then eliminate repeated strings preserve first occurrence, then get me the longest string's length.", "out": "两丧乜"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then drop duplicate strings keeping the first, then give the maximum string length.", "out": "两丧乜"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then dedupe, then max length of all strings.", "out": "两丧乜"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then remove duplicate strings keep first, then what's the max string length.", "out": "两丧乜"} {"kind": "builder", "in": "两丧乜", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = list(dict.fromkeys(r))\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "两丧乜", "out": "Take a list of strings; drop empty strings, then drop duplicate strings keeping the first, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then deduplicate the list.", "out": "万丘且"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then remove repeats.", "out": "万丘且"} {"kind": "builder", "in": "万丘且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "万丘且", "out": "Take a list of integers; keep the negative numbers, then cap each value at 10, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove all zero values, then arrange by magnitude ignoring sign.", "out": "丐举丸"} {"kind": "speaker", "in": "Take a list of integers; reverse, then exclude zeros, then put them in order by magnitude.", "out": "丐举丸"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove all zero values, then arrange in order of absolute value.", "out": "丐举丸"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then exclude zeros, then sort by distance from zero.", "out": "丐举丸"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove all zero values, then order by how far from zero.", "out": "丐举丸"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then exclude zeros, then order by distance from zero.", "out": "丐举丸"} {"kind": "builder", "in": "丐举丸", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丐举丸", "out": "Take a list of integers; reverse the order, then drop the zeros, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove repeated values, then arrange by magnitude ignoring sign.", "out": "专且丸"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then unique values preserving order, then put them in order by magnitude.", "out": "专且丸"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove repeated values, then arrange in order of absolute value.", "out": "专且丸"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then unique values preserving order, then sort by distance from zero.", "out": "专且丸"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove repeated values, then order by how far from zero.", "out": "专且丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then unique values preserving order, then order by distance from zero.", "out": "专且丸"} {"kind": "builder", "in": "专且丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(dict.fromkeys(r))\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "专且丸", "out": "Take a list of integers; sort descending, then drop duplicates keeping first occurrence, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the final 3 elements, then make each twice as big.", "out": "丏丹丈"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then drop everything except the final three, then multiply each by 2.", "out": "丏丹丈"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then give me the last three elements, then make each twice as big.", "out": "丏丹丈"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep only the last three, then multiply each by 2.", "out": "丏丹丈"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep the final three items, then make each twice as big.", "out": "丏丹丈"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take the last three, then multiply each by 2.", "out": "丏丹丈"} {"kind": "builder", "in": "丏丹丈", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[-3:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丏丹丈", "out": "Take a list of integers; take the absolute value of each, then keep only the last three, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove both ends, then stop at the first non-positive value.", "out": "一为乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then trim the edges, then keep the leading run of positive numbers.", "out": "一为乂"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then trim one element off each end, then take values while they are positive.", "out": "一为乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off the first and last, then take positive values then stop.", "out": "一为乂"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first and last elements, then keep going while positive.", "out": "一为乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the middle part, then stop at first non positive.", "out": "一为乂"} {"kind": "builder", "in": "一为乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "一为乂", "out": "Take a list of integers; keep the even numbers, then drop the first and last elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the sign of each, then drop the even numbers.", "out": "为与丁"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then turn positives to negatives and vice versa, then strip out the evens.", "out": "为与丁"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then flip the sign of each, then drop the even numbers.", "out": "为与丁"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn positives to negatives and vice versa, then strip out the evens.", "out": "为与丁"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip the sign of each, then drop the even numbers.", "out": "为与丁"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then turn positives to negatives and vice versa, then strip out the evens.", "out": "为与丁"} {"kind": "builder", "in": "为与丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "为与丁", "out": "Take a list of integers; drop the first and last elements, then negate each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then drop anything 5 or below, then truncate to three items.", "out": "世主丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only numbers greater than 5, then show the first three.", "out": "世主丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then filter for numbers above 5, then take the first three.", "out": "世主丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give me values where x is greater than 5, then keep first 3.", "out": "世主丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then show me only the values that are bigger than five, then truncate to first three.", "out": "世主丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep values greater than five, then first three.", "out": "世主丕"} {"kind": "builder", "in": "世主丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 5]\n r = r[:3]\n return r"} {"kind": "translator", "in": "世主丕", "out": "Take a list of integers; drop the first element, then keep values greater than five, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then sort smallest to largest, then give the number of evens.", "out": "久丑乓"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Ascending sort, then find how many values are divisible by two.", "out": "久丑乓"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then Sort this ascending, then how many are even.", "out": "久丑乓"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Sort lowest to highest, then get the total number of even values in the list.", "out": "久丑乓"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Arrange from smallest to largest, then give me the count of even values.", "out": "久丑乓"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort ascending, then I need to know how many of these are even.", "out": "久丑乓"} {"kind": "builder", "in": "久丑乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "久丑乓", "out": "Take a list of integers; keep everything before the first zero, then sort ascending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then count the elements.", "out": "下丈东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then how many items remain.", "out": "下丈东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then tell me the length.", "out": "下丈东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then return the length.", "out": "下丈东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then count them.", "out": "下丈东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then what's the count.", "out": "下丈东"} {"kind": "builder", "in": "下丈东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * 2 for x in r]\n return len(r)"} {"kind": "translator", "in": "下丈东", "out": "Take a list of integers; add one to each, then double each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then drop non-positive values.", "out": "且丽七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then drop the negative numbers.", "out": "且丽七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then filter out the negative ones.", "out": "且丽七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then remove all negative values.", "out": "且丽七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then keep positive values only.", "out": "且丽七"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then keep values above zero.", "out": "且丽七"} {"kind": "builder", "in": "且丽七", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "且丽七", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero, then true only if all are positive.", "out": "不七乌"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers, then do all of these have positive values.", "out": "不七乌"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers, then check if every value is positive.", "out": "不七乌"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives, then confirm all values are positive.", "out": "不七乌"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives, then all positive.", "out": "不七乌"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers, then check if every number is above zero.", "out": "不七乌"} {"kind": "builder", "in": "不七乌", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "不七乌", "out": "Take a list of integers; subtract one from each, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then decrement each value, then truncate to three items.", "out": "串不丕"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Lower each number by one, then show the first three.", "out": "串不丕"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then reduce each by one, then take the first three.", "out": "串不丕"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Subtract 1 from all, then keep first 3.", "out": "串不丕"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Subtract one from each, then truncate to first three.", "out": "串不丕"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Drop each by one, then first three.", "out": "串不丕"} {"kind": "builder", "in": "串不丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x - 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "串不丕", "out": "Take a list of integers; keep multiples of three, then subtract one from each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increase every value by 10, then find the min, defaulting to 0.", "out": "义丽丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then add 10 to each item, then minimum value, zero otherwise.", "out": "义丽丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then shift each up by ten, then get the minimum value or zero if empty.", "out": "义丽丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then increase all numbers by 10, then give me the min or 0.", "out": "义丽丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then add 10 to everything, then return the smallest number, defaulting to 0.", "out": "义丽丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give everything a boost of 10, then return smallest or zero if empty.", "out": "义丽丛"} {"kind": "builder", "in": "义丽丛", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "义丽丛", "out": "Take a list of integers; pad with zeros to at least three elements, then add ten to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then default to [0] when there is nothing, then arrange in decreasing order.", "out": "举么专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then when the list is empty, substitute a zero value, then arrange in descending order.", "out": "举么专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then replace an empty list with one zero, then reverse sort.", "out": "举么专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then zero it out if it's empty, then sort largest to smallest.", "out": "举么专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then use zero if the list is empty, then sort by descending values.", "out": "举么专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then default to zero when empty, then sort from highest to lowest.", "out": "举么专"} {"kind": "builder", "in": "举么专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r if r else [0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "举么专", "out": "Take a list of integers; drop the zeros, then if empty, use a single zero, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the final 3 elements, then take values up to (excluding) the first zero.", "out": "丐丹久"} {"kind": "speaker", "in": "Take a list of integers; reverse, then drop everything except the final three, then keep the part before the first 0.", "out": "丐丹久"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then give me the last three elements, then truncate at the first zero.", "out": "丐丹久"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep only the last three, then delete everything starting with the first zero.", "out": "丐丹久"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep the final three items, then remove from the first zero onwards.", "out": "丐丹久"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the last three, then up to but not including the first zero.", "out": "丐丹久"} {"kind": "builder", "in": "丐丹久", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丐丹久", "out": "Take a list of integers; reverse the order, then keep only the last three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only odd values, then arrange in increasing order.", "out": "么丁丑"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then eliminate the even numbers, then Organize these ascending.", "out": "么丁丑"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only odd values, then Sort in ascending order.", "out": "么丁丑"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then eliminate the even numbers, then I need this sorted ascending.", "out": "么丁丑"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only odd values, then Put these in ascending order.", "out": "么丁丑"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then eliminate the even numbers, then sort smallest to largest.", "out": "么丁丑"} {"kind": "builder", "in": "么丁丑", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "么丁丑", "out": "Take a list of integers; if empty, use a single zero, then keep the odd numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then arrange by magnitude ignoring sign.", "out": "九么丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then put them in order by magnitude.", "out": "九么丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then arrange in order of absolute value.", "out": "九么丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then sort by distance from zero.", "out": "九么丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then order by how far from zero.", "out": "九么丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then order by distance from zero.", "out": "九么丸"} {"kind": "builder", "in": "九么丸", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "九么丸", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then decrement each value, then put the elements backwards.", "out": "乃不丐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Lower each number by one, then reverse that for me.", "out": "乃不丐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then reduce each by one, then flip it backwards.", "out": "乃不丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Subtract 1 from all, then make it backwards.", "out": "乃不丐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then Subtract one from each, then reverse the list.", "out": "乃不丐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Drop each by one, then invert the sequence.", "out": "乃不丐"} {"kind": "builder", "in": "乃不丐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x - 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "乃不丐", "out": "Take a list of integers; drop the leading negative values, then subtract one from each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then order by distance from zero, then keep only numbers above 5.", "out": "丐丸主"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort based on absolute value, then exclude values of 5 and below.", "out": "丐丸主"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then organize by magnitude, then remove anything 5 or less.", "out": "丐丸主"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then arrange by absolute value ascending, then filter to keep only values above 5.", "out": "丐丸主"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort from smallest to largest absolute value, then get rid of values that aren't greater than five.", "out": "丐丸主"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort by absolute value, then drop anything 5 or below.", "out": "丐丸主"} {"kind": "builder", "in": "丐丸主", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丐丸主", "out": "Take a list of integers; reverse the order, then sort by absolute value, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then arrange by magnitude ignoring sign.", "out": "丐丈丸"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then put them in order by magnitude.", "out": "丐丈丸"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then arrange in order of absolute value.", "out": "丐丈丸"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then sort by distance from zero.", "out": "丐丈丸"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then order by how far from zero.", "out": "丐丈丸"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then order by distance from zero.", "out": "丐丈丸"} {"kind": "builder", "in": "丐丈丸", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丐丈丸", "out": "Take a list of integers; reverse the order, then double each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep the leading run of positive numbers, then remove the initial run of negative numbers.", "out": "丕乂乃"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then take values while they are positive, then strip the front negatives.", "out": "丕乂乃"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take positive values then stop, then remove leading negative numbers.", "out": "丕乂乃"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep going while positive, then drop negatives from start.", "out": "丕乂乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then stop at first non positive, then strip negative values from the start.", "out": "丕乂乃"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take while greater than zero, then remove negatives before the first non-negative.", "out": "丕乂乃"} {"kind": "builder", "in": "丕乂乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丕乂乃", "out": "Take a list of integers; keep only the first three, then take values while they are positive, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then give the earliest even value or zero.", "out": "义丘乒"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "义丘乒"} {"kind": "builder", "in": "义丘乒", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "义丘乒", "out": "Take a list of integers; pad with zeros to at least three elements, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then remove repeated strings, then arrange by string length ascending.", "out": "乞丧严"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then keep unique strings first appearance, then length sort.", "out": "乞丧严"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then eliminate repeated strings preserve first occurrence, then sort by length shortest first.", "out": "乞丧严"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then drop duplicate strings keeping the first, then organize by string length least to greatest.", "out": "乞丧严"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then dedupe, then shortest strings first.", "out": "乞丧严"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then remove duplicate strings keep first, then i want them ordered by how short they are.", "out": "乞丧严"} {"kind": "builder", "in": "乞丧严", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = list(dict.fromkeys(r))\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "乞丧严", "out": "Take a list of people records (name, age); extract the names, then drop duplicate strings keeping the first, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything 5 or below, then trim one element off each end.", "out": "下主为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only numbers greater than 5, then cut off the first and last.", "out": "下主为"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then filter for numbers above 5, then remove the first and last elements.", "out": "下主为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me values where x is greater than 5, then keep only the middle part.", "out": "下主为"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then show me only the values that are bigger than five, then drop first and last.", "out": "下主为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep values greater than five, then eliminate the outermost elements.", "out": "下主为"} {"kind": "builder", "in": "下主为", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 5]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "下主为", "out": "Take a list of integers; add one to each, then keep values greater than five, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then keep only strings of length 3 or more, then make every string uppercase.", "out": "丧乗丟"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then get rid of short ones, then uppercase each one.", "out": "丧乗丟"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then remove strings with less than three characters, then make all the strings uppercase.", "out": "丧乗丟"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then remove all strings under three characters in length, then convert all strings to uppercase letters.", "out": "丧乗丟"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then filter out short strings under three chars, then convert to uppercase.", "out": "丧乗丟"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then drop strings shorter than three characters, then i need these in uppercase.", "out": "丧乗丟"} {"kind": "builder", "in": "丧乗丟", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s for s in r if len(s) >= 3]\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "丧乗丟", "out": "Take a list of strings; drop duplicate strings keeping the first, then drop strings shorter than three characters, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove both ends, then bump each up by one.", "out": "乂为下"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then trim the edges, then increment each item.", "out": "乂为下"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then trim one element off each end, then bump each up by one.", "out": "乂为下"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then cut off the first and last, then increment each item.", "out": "乂为下"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first and last elements, then bump each up by one.", "out": "乂为下"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep only the middle part, then increment each item.", "out": "乂为下"} {"kind": "builder", "in": "乂为下", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "乂为下", "out": "Take a list of integers; take values while they are positive, then drop the first and last elements, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then drop non-negative values.", "out": "且丽万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then drop all positive numbers.", "out": "且丽万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then drop non-negative values.", "out": "且丽万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then drop all positive numbers.", "out": "且丽万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then drop non-negative values.", "out": "且丽万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then drop all positive numbers.", "out": "且丽万"} {"kind": "builder", "in": "且丽万", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "且丽万", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then skip negatives at the start, then trim one element off each end.", "out": "不乃为"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove all negatives at the front, then cut off the first and last.", "out": "不乃为"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the initial run of negative numbers, then remove the first and last elements.", "out": "不乃为"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then strip the front negatives, then keep only the middle part.", "out": "不乃为"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove leading negative numbers, then drop first and last.", "out": "不乃为"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then drop negatives from start, then eliminate the outermost elements.", "out": "不乃为"} {"kind": "builder", "in": "不乃为", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "不乃为", "out": "Take a list of integers; subtract one from each, then drop the leading negative values, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then make every value non-negative, then drop non-positive values.", "out": "丸丏七"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then absolute value for all items, then drop the negative numbers.", "out": "丸丏七"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take absolute values, then filter out the negative ones.", "out": "丸丏七"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn negatives into positives, then remove all negative values.", "out": "丸丏七"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then abs each element, then keep positive values only.", "out": "丸丏七"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the absolute value of each, then keep values above zero.", "out": "丸丏七"} {"kind": "builder", "in": "丸丏七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丸丏七", "out": "Take a list of integers; sort by absolute value, then take the absolute value of each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort largest to smallest, then keep only non-zero numbers.", "out": "且专举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort by descending values, then strip the zeros.", "out": "且专举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort from highest to lowest, then keep only non-zero numbers.", "out": "且专举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort descending, then strip the zeros.", "out": "且专举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort largest first, then keep only non-zero numbers.", "out": "且专举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort in descending order, then strip the zeros.", "out": "且专举"} {"kind": "builder", "in": "且专举", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "且专举", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort descending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then skip negatives at the start, then bump each up by one.", "out": "一乃下"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then remove all negatives at the front, then increment each item.", "out": "一乃下"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the initial run of negative numbers, then bump each up by one.", "out": "一乃下"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then strip the front negatives, then increment each item.", "out": "一乃下"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove leading negative numbers, then bump each up by one.", "out": "一乃下"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop negatives from start, then increment each item.", "out": "一乃下"} {"kind": "builder", "in": "一乃下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "一乃下", "out": "Take a list of integers; keep the even numbers, then drop the leading negative values, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements, then replace an empty list with one zero.", "out": "义丕么"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third, then zero it out if it's empty.", "out": "义丕么"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items, then use zero if the list is empty.", "out": "义丕么"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three, then default to zero when empty.", "out": "义丕么"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three, then if there's nothing, put in a zero.", "out": "义丕么"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3, then if no items, add a zero.", "out": "义丕么"} {"kind": "builder", "in": "义丕么", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "义丕么", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then order by distance from zero, then true if already sorted smallest to largest.", "out": "九丸乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort based on absolute value, then does this list go in ascending order.", "out": "九丸乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then organize by magnitude, then check if the list is in ascending order.", "out": "九丸乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then arrange by absolute value ascending, then is the list sorted.", "out": "九丸乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort from smallest to largest absolute value, then is it sorted.", "out": "九丸乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort by absolute value, then check if values are in increasing order.", "out": "九丸乎"} {"kind": "builder", "in": "九丸乎", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, key=abs)\n return r == sorted(r)"} {"kind": "translator", "in": "九丸乎", "out": "Take a list of people records (name, age); extract the ages, then sort by absolute value, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then cut the list at the first zero, then trim one element off each end.", "out": "丁久为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off after the first zero appears, then cut off the first and last.", "out": "丁久为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take values up to (excluding) the first zero, then remove the first and last elements.", "out": "丁久为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the part before the first 0, then keep only the middle part.", "out": "丁久为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate at the first zero, then drop first and last.", "out": "丁久为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then delete everything starting with the first zero, then eliminate the outermost elements.", "out": "丁久为"} {"kind": "builder", "in": "丁久为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丁久为", "out": "Take a list of integers; keep the odd numbers, then keep everything before the first zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then extend to length 3 using zeros, then multiply each by -1.", "out": "专义与"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then pad to 3, then negate.", "out": "专义与"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then extend to length 3 using zeros, then multiply each by -1.", "out": "专义与"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then pad to 3, then negate.", "out": "专义与"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then extend to length 3 using zeros, then multiply each by -1.", "out": "专义与"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then pad to 3, then negate.", "out": "专义与"} {"kind": "builder", "in": "专义与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "专义与", "out": "Take a list of integers; sort descending, then pad with zeros to at least three elements, then negate each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values below zero, then true if at least one even value.", "out": "乂万之"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then get the negative numbers, then any even.", "out": "乂万之"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep values below zero, then true if at least one even value.", "out": "乂万之"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then get the negative numbers, then any even.", "out": "乂万之"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep values below zero, then true if at least one even value.", "out": "乂万之"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then get the negative numbers, then any even.", "out": "乂万之"} {"kind": "builder", "in": "乂万之", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x < 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乂万之", "out": "Take a list of integers; take values while they are positive, then keep the negative numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only even values, then ensure at least three items by appending zeros.", "out": "专一义"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "专一义"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only even values, then ensure at least three items by appending zeros.", "out": "专一义"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "专一义"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only even values, then ensure at least three items by appending zeros.", "out": "专一义"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "专一义"} {"kind": "builder", "in": "专一义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "专一义", "out": "Take a list of integers; sort descending, then keep the even numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the final 3 elements, then true if any value equals zero.", "out": "世丹乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop everything except the final three, then check for zero.", "out": "世丹乍"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then give me the last three elements, then true if any value equals zero.", "out": "世丹乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the last three, then check for zero.", "out": "世丹乍"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the final three items, then true if any value equals zero.", "out": "世丹乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the last three, then check for zero.", "out": "世丹乍"} {"kind": "builder", "in": "世丹乍", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[-3:]\n return 0 in r"} {"kind": "translator", "in": "世丹乍", "out": "Take a list of integers; drop the first element, then keep only the last three, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each value by itself, then ensure at least three items by appending zeros.", "out": "丸上义"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then square them all, then ensure minimum length of three by adding zeros to the end.", "out": "丸上义"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then raise each to the power of two, then ensure at least three items by appending zeros.", "out": "丸上义"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then I need each number multiplied by itself, then ensure minimum length of three by adding zeros to the end.", "out": "丸上义"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then square all of them, then ensure at least three items by appending zeros.", "out": "丸上义"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiply each element by itself, then ensure minimum length of three by adding zeros to the end.", "out": "丸上义"} {"kind": "builder", "in": "丸上义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丸上义", "out": "Take a list of integers; sort by absolute value, then square each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then shift each up by ten.", "out": "主乂丽"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then increase all numbers by 10.", "out": "主乂丽"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then add 10 to everything.", "out": "主乂丽"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then give everything a boost of 10.", "out": "主乂丽"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then increment each by ten.", "out": "主乂丽"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then add a constant 10 to each.", "out": "主乂丽"} {"kind": "builder", "in": "主乂丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "主乂丽", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then give the earliest even value or zero.", "out": "一丈乒"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then fetch the first even element, default to 0.", "out": "一丈乒"} {"kind": "builder", "in": "一丈乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "一丈乒", "out": "Take a list of integers; keep the even numbers, then double each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then strip spaces around each string, then return them as one comma-separated string.", "out": "乖丢中"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove leading and trailing spaces, then separate by comma.", "out": "乖丢中"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove whitespace from each item, then join with commas.", "out": "乖丢中"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then clean whitespace from each entry, then comma join.", "out": "乖丢中"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then trim each string, then combine using commas.", "out": "乖丢中"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then trim whitespace from each, then connect with commas between each item.", "out": "乖丢中"} {"kind": "builder", "in": "乖丢中", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s.strip() for s in r]\n return ','.join(r)"} {"kind": "translator", "in": "乖丢中", "out": "Take a list of strings; sort alphabetically, then trim whitespace from each, then join them with commas."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then give the number of evens.", "out": "九与乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then find how many values are divisible by two.", "out": "九与乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then how many are even.", "out": "九与乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then get the total number of even values in the list.", "out": "九与乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then give me the count of even values.", "out": "九与乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then I need to know how many of these are even.", "out": "九与乓"} {"kind": "builder", "in": "九与乓", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "九与乓", "out": "Take a list of people records (name, age); extract the ages, then negate each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then cut the list at the first zero, then truncate to the last three items.", "out": "为久丹"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then cut off after the first zero appears, then show only the last three.", "out": "为久丹"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take values up to (excluding) the first zero, then remove all but the last three.", "out": "为久丹"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the part before the first 0, then take the final 3 elements.", "out": "为久丹"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then truncate at the first zero, then drop everything except the final three.", "out": "为久丹"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then delete everything starting with the first zero, then give me the last three elements.", "out": "为久丹"} {"kind": "builder", "in": "为久丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "为久丹", "out": "Take a list of integers; drop the first and last elements, then keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each by two, then count the elements.", "out": "主丈东"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then double each item in the list, then how many items remain.", "out": "主丈东"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then multiply each by two, then tell me the length.", "out": "主丈东"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then double each item in the list, then return the length.", "out": "主丈东"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then multiply each by two, then count them.", "out": "主丈东"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then double each item in the list, then what's the count.", "out": "主丈东"} {"kind": "builder", "in": "主丈东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * 2 for x in r]\n return len(r)"} {"kind": "translator", "in": "主丈东", "out": "Take a list of integers; keep values greater than five, then double each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove both ends, then strip the signs.", "out": "串为丏"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then trim the edges, then take abs of each.", "out": "串为丏"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then trim one element off each end, then get the absolute value of everything.", "out": "串为丏"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then cut off the first and last, then apply absolute value to the whole list.", "out": "串为丏"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first and last elements, then make them all positive.", "out": "串为丏"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep only the middle part, then make every value non-negative.", "out": "串为丏"} {"kind": "builder", "in": "串为丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "串为丏", "out": "Take a list of integers; keep multiples of three, then drop the first and last elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values divisible by 3, then drop non-positive values.", "out": "丏串七"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep items where x mod 3 equals zero, then drop the negative numbers.", "out": "丏串七"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then drop anything not divisible by three, then filter out the negative ones.", "out": "丏串七"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then filter out everything except multiples of three, then remove all negative values.", "out": "丏串七"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only multiples of three, then keep positive values only.", "out": "丏串七"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then multiples of three only, then keep values above zero.", "out": "丏串七"} {"kind": "builder", "in": "丏串七", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丏串七", "out": "Take a list of integers; take the absolute value of each, then keep multiples of three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then order by distance from zero, then find the min, defaulting to 0.", "out": "不丸丛"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then sort based on absolute value, then minimum value, zero otherwise.", "out": "不丸丛"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then organize by magnitude, then get the minimum value or zero if empty.", "out": "不丸丛"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then arrange by absolute value ascending, then give me the min or 0.", "out": "不丸丛"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then sort from smallest to largest absolute value, then return the smallest number, defaulting to 0.", "out": "不丸丛"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then sort by absolute value, then return smallest or zero if empty.", "out": "不丸丛"} {"kind": "builder", "in": "不丸丛", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = sorted(r, key=abs)\n return min(r) if r else 0"} {"kind": "translator", "in": "不丸丛", "out": "Take a list of integers; subtract one from each, then sort by absolute value, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then order the strings A to Z, then true if a blank string is present.", "out": "乞乖乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then make it alphabetical, then check for empty strings in the list.", "out": "乞乖乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then order the strings A to Z, then check if there's an empty string.", "out": "乞乖乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then make it alphabetical, then does the collection contain an empty string value somewhere.", "out": "乞乖乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then order the strings A to Z, then whether any element is blank.", "out": "乞乖乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then make it alphabetical, then check for an empty string.", "out": "乞乖乙"} {"kind": "builder", "in": "乞乖乙", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = sorted(r)\n return any(s == '' for s in r)"} {"kind": "translator", "in": "乞乖乙", "out": "Take a list of people records (name, age); extract the names, then sort alphabetically, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then make every value non-negative, then drop the odd numbers.", "out": "丽丏一"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then absolute value for all items, then filter out the odd numbers.", "out": "丽丏一"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take absolute values, then drop the odd numbers.", "out": "丽丏一"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn negatives into positives, then filter out the odd numbers.", "out": "丽丏一"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then abs each element, then drop the odd numbers.", "out": "丽丏一"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the absolute value of each, then filter out the odd numbers.", "out": "丽丏一"} {"kind": "builder", "in": "丽丏一", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丽丏一", "out": "Take a list of integers; add ten to each, then take the absolute value of each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the leading run of positive numbers, then true if any value equals zero.", "out": "一乂乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take values while they are positive, then check for zero.", "out": "一乂乍"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take positive values then stop, then true if any value equals zero.", "out": "一乂乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep going while positive, then check for zero.", "out": "一乂乍"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then stop at first non positive, then true if any value equals zero.", "out": "一乂乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take while greater than zero, then check for zero.", "out": "一乂乍"} {"kind": "builder", "in": "一乂乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return 0 in r"} {"kind": "translator", "in": "一乂乍", "out": "Take a list of integers; keep the even numbers, then take values while they are positive, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then keep only numbers above 5.", "out": "义且主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then exclude values of 5 and below.", "out": "义且主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then remove anything 5 or less.", "out": "义且主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then filter to keep only values above 5.", "out": "义且主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then get rid of values that aren't greater than five.", "out": "义且主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then drop anything 5 or below.", "out": "义且主"} {"kind": "builder", "in": "义且主", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "义且主", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then make every value non-negative, then drop non-positive values.", "out": "世丏七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then absolute value for all items, then drop the negative numbers.", "out": "世丏七"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take absolute values, then filter out the negative ones.", "out": "世丏七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn negatives into positives, then remove all negative values.", "out": "世丏七"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then abs each element, then keep positive values only.", "out": "世丏七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the absolute value of each, then keep values above zero.", "out": "世丏七"} {"kind": "builder", "in": "世丏七", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "世丏七", "out": "Take a list of integers; drop the first element, then take the absolute value of each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then cut the list at the first zero, then arrange in decreasing order.", "out": "举久专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off after the first zero appears, then arrange in descending order.", "out": "举久专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take values up to (excluding) the first zero, then reverse sort.", "out": "举久专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the part before the first 0, then sort largest to smallest.", "out": "举久专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate at the first zero, then sort by descending values.", "out": "举久专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then delete everything starting with the first zero, then sort from highest to lowest.", "out": "举久专"} {"kind": "builder", "in": "举久专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "举久专", "out": "Take a list of integers; drop the zeros, then keep everything before the first zero, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then true if every value is unique.", "out": "丸丈乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then check for duplicates in the values.", "out": "丸丈乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then do all values appear only once.", "out": "丸丈乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then check that there are no duplicates.", "out": "丸丈乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then are the values all unique.", "out": "丸丈乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then check if all values are unique.", "out": "丸丈乏"} {"kind": "builder", "in": "丸丈乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸丈乏", "out": "Take a list of integers; sort by absolute value, then double each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each by two, then true if already sorted smallest to largest.", "out": "主丈乎"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then double each item in the list, then does this list go in ascending order.", "out": "主丈乎"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then multiply each by two, then check if the list is in ascending order.", "out": "主丈乎"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then double each item in the list, then is the list sorted.", "out": "主丈乎"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then multiply each by two, then is it sorted.", "out": "主丈乎"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then double each item in the list, then check if values are in increasing order.", "out": "主丈乎"} {"kind": "builder", "in": "主丈乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * 2 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "主丈乎", "out": "Take a list of integers; keep values greater than five, then double each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the final 3 elements, then drop the even numbers.", "out": "七丹丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then drop everything except the final three, then strip out the evens.", "out": "七丹丁"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then give me the last three elements, then drop the even numbers.", "out": "七丹丁"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep only the last three, then strip out the evens.", "out": "七丹丁"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep the final three items, then drop the even numbers.", "out": "七丹丁"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the last three, then strip out the evens.", "out": "七丹丁"} {"kind": "builder", "in": "七丹丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "七丹丁", "out": "Take a list of integers; keep the positive numbers, then keep only the last three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove both ends, then true if every value is unique.", "out": "丹为乏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then trim the edges, then check for duplicates in the values.", "out": "丹为乏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then trim one element off each end, then do all values appear only once.", "out": "丹为乏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then cut off the first and last, then check that there are no duplicates.", "out": "丹为乏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first and last elements, then are the values all unique.", "out": "丹为乏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep only the middle part, then check if all values are unique.", "out": "丹为乏"} {"kind": "builder", "in": "丹为乏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:-1]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丹为乏", "out": "Take a list of integers; keep only the last three, then drop the first and last elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then truncate to three items.", "out": "丽丐丕"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then show the first three.", "out": "丽丐丕"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then take the first three.", "out": "丽丐丕"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then keep first 3.", "out": "丽丐丕"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then truncate to first three.", "out": "丽丐丕"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then first three.", "out": "丽丐丕"} {"kind": "builder", "in": "丽丐丕", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n r = r[:3]\n return r"} {"kind": "translator", "in": "丽丐丕", "out": "Take a list of integers; add ten to each, then reverse the order, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values divisible by 3, then reduce each by one.", "out": "乂串不"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep items where x mod 3 equals zero, then Subtract 1 from all.", "out": "乂串不"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then drop anything not divisible by three, then Subtract one from each.", "out": "乂串不"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then filter out everything except multiples of three, then Drop each by one.", "out": "乂串不"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only multiples of three, then Decrease all values by one.", "out": "乂串不"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiples of three only, then Remove one from each value.", "out": "乂串不"} {"kind": "builder", "in": "乂串不", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 3 == 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "乂串不", "out": "Take a list of integers; take values while they are positive, then keep multiples of three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then give back the total.", "out": "举乂丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then sum r.", "out": "举乂丙"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then add them up.", "out": "举乂丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then calculate the sum of all elements.", "out": "举乂丙"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then what's the total.", "out": "举乂丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then what do they add up to.", "out": "举乂丙"} {"kind": "builder", "in": "举乂丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return sum(r)"} {"kind": "translator", "in": "举乂丙", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each value by itself, then shift each up by ten.", "out": "世上丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then square them all, then increase all numbers by 10.", "out": "世上丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then raise each to the power of two, then add 10 to everything.", "out": "世上丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then I need each number multiplied by itself, then give everything a boost of 10.", "out": "世上丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then square all of them, then increment each by ten.", "out": "世上丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiply each element by itself, then add a constant 10 to each.", "out": "世上丽"} {"kind": "builder", "in": "世上丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "世上丽", "out": "Take a list of integers; drop the first element, then square each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each value by itself, then drop anything not divisible by three.", "out": "且上串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then square them all, then filter out everything except multiples of three.", "out": "且上串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then raise each to the power of two, then keep only multiples of three.", "out": "且上串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then I need each number multiplied by itself, then multiples of three only.", "out": "且上串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then square all of them, then filter for numbers divisible by three.", "out": "且上串"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiply each element by itself, then give me only the values divisible by three.", "out": "且上串"} {"kind": "builder", "in": "且上串", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "且上串", "out": "Take a list of integers; drop duplicates keeping first occurrence, then square each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then truncate to the last three items.", "out": "丈下丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then show only the last three.", "out": "丈下丹"} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then remove all but the last three.", "out": "丈下丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then take the final 3 elements.", "out": "丈下丹"} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then drop everything except the final three.", "out": "丈下丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then give me the last three elements.", "out": "丈下丹"} {"kind": "builder", "in": "丈下丹", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丈下丹", "out": "Take a list of integers; double each, then add one to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the sign of each, then drop non-negative values.", "out": "且与万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn positives to negatives and vice versa, then drop all positive numbers.", "out": "且与万"} {"kind": "builder", "in": "且与万", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [-x for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "且与万", "out": "Take a list of integers; drop duplicates keeping first occurrence, then negate each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then increment each value, then raise each to the power of two.", "out": "丸下上"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then plus one for all, then I need each number multiplied by itself.", "out": "丸下上"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then increment each value, then square all of them.", "out": "丸下上"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then plus one for all, then multiply each element by itself.", "out": "丸下上"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then increment each value, then make each one squared.", "out": "丸下上"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then plus one for all, then square each value in the list.", "out": "丸下上"} {"kind": "builder", "in": "丸下上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x + 1 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丸下上", "out": "Take a list of integers; sort by absolute value, then add one to each, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then stop at the first non-positive value.", "out": "串主乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then keep the leading run of positive numbers.", "out": "串主乂"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then take values while they are positive.", "out": "串主乂"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then take positive values then stop.", "out": "串主乂"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then keep going while positive.", "out": "串主乂"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then stop at first non positive.", "out": "串主乂"} {"kind": "builder", "in": "串主乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "串主乂", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then multiply each by -1.", "out": "丐丈与"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then negate.", "out": "丐丈与"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then multiply each by -1.", "out": "丐丈与"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then negate.", "out": "丐丈与"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then multiply each by -1.", "out": "丐丈与"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then negate.", "out": "丐丈与"} {"kind": "builder", "in": "丐丈与", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丐丈与", "out": "Take a list of integers; reverse the order, then double each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then default to [0] when there is nothing, then true if any value equals zero.", "out": "七么乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then when the list is empty, substitute a zero value, then check for zero.", "out": "七么乍"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then replace an empty list with one zero, then true if any value equals zero.", "out": "七么乍"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then zero it out if it's empty, then check for zero.", "out": "七么乍"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then use zero if the list is empty, then true if any value equals zero.", "out": "七么乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then default to zero when empty, then check for zero.", "out": "七么乍"} {"kind": "builder", "in": "七么乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r if r else [0]\n return 0 in r"} {"kind": "translator", "in": "七么乍", "out": "Take a list of integers; keep the positive numbers, then if empty, use a single zero, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything 5 or below, then keep only non-zero numbers.", "out": "义主举"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only numbers greater than 5, then strip the zeros.", "out": "义主举"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then filter for numbers above 5, then keep only non-zero numbers.", "out": "义主举"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give me values where x is greater than 5, then strip the zeros.", "out": "义主举"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then show me only the values that are bigger than five, then keep only non-zero numbers.", "out": "义主举"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep values greater than five, then strip the zeros.", "out": "义主举"} {"kind": "builder", "in": "义主举", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "义主举", "out": "Take a list of integers; pad with zeros to at least three elements, then keep values greater than five, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort smallest to largest, then reduce each by one.", "out": "主丑不"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Ascending sort, then Subtract 1 from all.", "out": "主丑不"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then Sort this ascending, then Subtract one from each.", "out": "主丑不"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Sort lowest to highest, then Drop each by one.", "out": "主丑不"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Arrange from smallest to largest, then Decrease all values by one.", "out": "主丑不"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort ascending, then Remove one from each value.", "out": "主丑不"} {"kind": "builder", "in": "主丑不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "主丑不", "out": "Take a list of integers; keep values greater than five, then sort ascending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values below zero, then limit every value to 10.", "out": "一万丘"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then get the negative numbers, then maximum of 10 for all.", "out": "一万丘"} {"kind": "builder", "in": "一万丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "一万丘", "out": "Take a list of integers; keep the even numbers, then keep the negative numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then cut the list at the first zero, then true if every value is unique.", "out": "乃久乏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then cut off after the first zero appears, then check for duplicates in the values.", "out": "乃久乏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take values up to (excluding) the first zero, then do all values appear only once.", "out": "乃久乏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the part before the first 0, then check that there are no duplicates.", "out": "乃久乏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then truncate at the first zero, then are the values all unique.", "out": "乃久乏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then delete everything starting with the first zero, then check if all values are unique.", "out": "乃久乏"} {"kind": "builder", "in": "乃久乏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:r.index(0)] if 0 in r else r\n return len(r) == len(set(r))"} {"kind": "translator", "in": "乃久乏", "out": "Take a list of integers; drop the leading negative values, then keep everything before the first zero, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then drop anything 5 or below, then strip the signs.", "out": "丘主丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only numbers greater than 5, then take abs of each.", "out": "丘主丏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then filter for numbers above 5, then get the absolute value of everything.", "out": "丘主丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give me values where x is greater than 5, then apply absolute value to the whole list.", "out": "丘主丏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then show me only the values that are bigger than five, then make them all positive.", "out": "丘主丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep values greater than five, then make every value non-negative.", "out": "丘主丏"} {"kind": "builder", "in": "丘主丏", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丘主丏", "out": "Take a list of integers; cap each value at 10, then keep values greater than five, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then drop the odd numbers.", "out": "丘与一"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "丘与一"} {"kind": "builder", "in": "丘与一", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丘与一", "out": "Take a list of integers; cap each value at 10, then negate each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then keep only numbers above 5.", "out": "万丈主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then exclude values of 5 and below.", "out": "万丈主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then remove anything 5 or less.", "out": "万丈主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then filter to keep only values above 5.", "out": "万丈主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then get rid of values that aren't greater than five.", "out": "万丈主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then drop anything 5 or below.", "out": "万丈主"} {"kind": "builder", "in": "万丈主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "万丈主", "out": "Take a list of integers; keep the negative numbers, then double each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then make every value non-negative, then give the number of evens.", "out": "丁丏乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then absolute value for all items, then find how many values are divisible by two.", "out": "丁丏乓"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take absolute values, then how many are even.", "out": "丁丏乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn negatives into positives, then get the total number of even values in the list.", "out": "丁丏乓"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then abs each element, then give me the count of even values.", "out": "丁丏乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the absolute value of each, then I need to know how many of these are even.", "out": "丁丏乓"} {"kind": "builder", "in": "丁丏乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丁丏乓", "out": "Take a list of integers; keep the odd numbers, then take the absolute value of each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then clamp each to at most ten, then strip the signs.", "out": "丹丘丏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then don't let anything exceed 10, then take abs of each.", "out": "丹丘丏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then clamp each to at most ten, then get the absolute value of everything.", "out": "丹丘丏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then don't let anything exceed 10, then apply absolute value to the whole list.", "out": "丹丘丏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then clamp each to at most ten, then make them all positive.", "out": "丹丘丏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then don't let anything exceed 10, then make every value non-negative.", "out": "丹丘丏"} {"kind": "builder", "in": "丹丘丏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丹丘丏", "out": "Take a list of integers; keep only the last three, then cap each value at 10, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values above zero, then find the max, defaulting to 0.", "out": "举七业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter for positive numbers, then Give me the maximum, but 0 if there are no items.", "out": "举七业"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only positive numbers, then What's the highest number in the list.", "out": "举七业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positives, then Return the greatest value or default to 0.", "out": "举七业"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove negatives, then Find the largest element, defaulting to zero.", "out": "举七业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positive numbers, then give the largest value (0 if none).", "out": "举七业"} {"kind": "builder", "in": "举七业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "举七业", "out": "Take a list of integers; drop the zeros, then keep the positive numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove repeated values, then arrange in increasing order.", "out": "丏且丑"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then unique values preserving order, then Organize these ascending.", "out": "丏且丑"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove repeated values, then Sort in ascending order.", "out": "丏且丑"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then unique values preserving order, then I need this sorted ascending.", "out": "丏且丑"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove repeated values, then Put these in ascending order.", "out": "丏且丑"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then unique values preserving order, then sort smallest to largest.", "out": "丏且丑"} {"kind": "builder", "in": "丏且丑", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丏且丑", "out": "Take a list of integers; take the absolute value of each, then drop duplicates keeping first occurrence, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then clamp each to at most ten, then put the elements backwards.", "out": "久丘丐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then don't let anything exceed 10, then reverse that for me.", "out": "久丘丐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then clamp each to at most ten, then flip it backwards.", "out": "久丘丐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then don't let anything exceed 10, then make it backwards.", "out": "久丘丐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then clamp each to at most ten, then reverse the list.", "out": "久丘丐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then don't let anything exceed 10, then invert the sequence.", "out": "久丘丐"} {"kind": "builder", "in": "久丘丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "久丘丐", "out": "Take a list of integers; keep everything before the first zero, then cap each value at 10, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values below zero, then give the earliest even value or zero.", "out": "主万乒"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then get the negative numbers, then fetch the first even element, default to 0.", "out": "主万乒"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep values below zero, then give the earliest even value or zero.", "out": "主万乒"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then get the negative numbers, then fetch the first even element, default to 0.", "out": "主万乒"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep values below zero, then give the earliest even value or zero.", "out": "主万乒"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then get the negative numbers, then fetch the first even element, default to 0.", "out": "主万乒"} {"kind": "builder", "in": "主万乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "主万乒", "out": "Take a list of integers; keep values greater than five, then keep the negative numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then strip the signs.", "out": "世且丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then take abs of each.", "out": "世且丏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then get the absolute value of everything.", "out": "世且丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then apply absolute value to the whole list.", "out": "世且丏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then make them all positive.", "out": "世且丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then make every value non-negative.", "out": "世且丏"} {"kind": "builder", "in": "世且丏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(dict.fromkeys(r))\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "世且丏", "out": "Take a list of integers; drop the first element, then drop duplicates keeping first occurrence, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the final 3 elements, then truncate to three items.", "out": "九丹丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then drop everything except the final three, then show the first three.", "out": "九丹丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then give me the last three elements, then take the first three.", "out": "九丹丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep only the last three, then keep first 3.", "out": "九丹丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep the final three items, then truncate to first three.", "out": "九丹丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the last three, then first three.", "out": "九丹丕"} {"kind": "builder", "in": "九丹丕", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[-3:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "九丹丕", "out": "Take a list of people records (name, age); extract the ages, then keep only the last three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the final 3 elements, then drop non-positive values.", "out": "乂丹七"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then drop everything except the final three, then drop the negative numbers.", "out": "乂丹七"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give me the last three elements, then filter out the negative ones.", "out": "乂丹七"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep only the last three, then remove all negative values.", "out": "乂丹七"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep the final three items, then keep positive values only.", "out": "乂丹七"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the last three, then keep values above zero.", "out": "乂丹七"} {"kind": "builder", "in": "乂丹七", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "乂丹七", "out": "Take a list of integers; take values while they are positive, then keep only the last three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then skip negatives at the start, then give the earliest even value or zero.", "out": "下乃乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove all negatives at the front, then fetch the first even element, default to 0.", "out": "下乃乒"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the initial run of negative numbers, then give the earliest even value or zero.", "out": "下乃乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then strip the front negatives, then fetch the first even element, default to 0.", "out": "下乃乒"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove leading negative numbers, then give the earliest even value or zero.", "out": "下乃乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop negatives from start, then fetch the first even element, default to 0.", "out": "下乃乒"} {"kind": "builder", "in": "下乃乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "下乃乒", "out": "Take a list of integers; add one to each, then drop the leading negative values, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then take the final 3 elements, then true if any value equals zero.", "out": "丸丹乍"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then drop everything except the final three, then check for zero.", "out": "丸丹乍"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then give me the last three elements, then true if any value equals zero.", "out": "丸丹乍"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep only the last three, then check for zero.", "out": "丸丹乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep the final three items, then true if any value equals zero.", "out": "丸丹乍"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the last three, then check for zero.", "out": "丸丹乍"} {"kind": "builder", "in": "丸丹乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[-3:]\n return 0 in r"} {"kind": "translator", "in": "丸丹乍", "out": "Take a list of integers; sort by absolute value, then keep only the last three, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each by two, then take values up to (excluding) the first zero.", "out": "串丈久"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then double each item in the list, then keep the part before the first 0.", "out": "串丈久"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then multiply each by two, then truncate at the first zero.", "out": "串丈久"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then double each item in the list, then delete everything starting with the first zero.", "out": "串丈久"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then multiply each by two, then remove from the first zero onwards.", "out": "串丈久"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then double each item in the list, then up to but not including the first zero.", "out": "串丈久"} {"kind": "builder", "in": "串丈久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "串丈久", "out": "Take a list of integers; keep multiples of three, then double each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then make each twice as big.", "out": "丘举丈"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then multiply each by 2.", "out": "丘举丈"} {"kind": "builder", "in": "丘举丈", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丘举丈", "out": "Take a list of integers; cap each value at 10, then drop the zeros, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove both ends, then bump each up by one.", "out": "主为下"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then trim the edges, then increment each item.", "out": "主为下"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then trim one element off each end, then bump each up by one.", "out": "主为下"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then cut off the first and last, then increment each item.", "out": "主为下"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first and last elements, then bump each up by one.", "out": "主为下"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep only the middle part, then increment each item.", "out": "主为下"} {"kind": "builder", "in": "主为下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:-1]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "主为下", "out": "Take a list of integers; keep values greater than five, then drop the first and last elements, then add one to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then order strings from shortest to longest, then return them as one comma-separated string.", "out": "乞严中"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then shortest to longest, then separate by comma.", "out": "乞严中"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then arrange by string length ascending, then join with commas.", "out": "乞严中"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then length sort, then comma join.", "out": "乞严中"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then sort by length shortest first, then combine using commas.", "out": "乞严中"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then organize by string length least to greatest, then connect with commas between each item.", "out": "乞严中"} {"kind": "builder", "in": "乞严中", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = sorted(r, key=len)\n return ','.join(r)"} {"kind": "translator", "in": "乞严中", "out": "Take a list of people records (name, age); extract the names, then sort by length, shortest first, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then find the max, defaulting to 0.", "out": "万世业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then Give me the maximum, but 0 if there are no items.", "out": "万世业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then What's the highest number in the list.", "out": "万世业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then Return the greatest value or default to 0.", "out": "万世业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then Find the largest element, defaulting to zero.", "out": "万世业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then give the largest value (0 if none).", "out": "万世业"} {"kind": "builder", "in": "万世业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:]\n return max(r) if r else 0"} {"kind": "translator", "in": "万世业", "out": "Take a list of integers; keep the negative numbers, then drop the first element, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove both ends, then remove the initial run of negative numbers.", "out": "丸为乃"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then trim the edges, then strip the front negatives.", "out": "丸为乃"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then trim one element off each end, then remove leading negative numbers.", "out": "丸为乃"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then cut off the first and last, then drop negatives from start.", "out": "丸为乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first and last elements, then strip negative values from the start.", "out": "丸为乃"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep only the middle part, then remove negatives before the first non-negative.", "out": "丸为乃"} {"kind": "builder", "in": "丸为乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丸为乃", "out": "Take a list of integers; sort by absolute value, then drop the first and last elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then remove repeated strings, then return them as one comma-separated string.", "out": "乗丧中"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then keep unique strings first appearance, then separate by comma.", "out": "乗丧中"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then eliminate repeated strings preserve first occurrence, then join with commas.", "out": "乗丧中"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then drop duplicate strings keeping the first, then comma join.", "out": "乗丧中"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then dedupe, then combine using commas.", "out": "乗丧中"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then remove duplicate strings keep first, then connect with commas between each item.", "out": "乗丧中"} {"kind": "builder", "in": "乗丧中", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = list(dict.fromkeys(r))\n return ','.join(r)"} {"kind": "translator", "in": "乗丧中", "out": "Take a list of strings; drop strings shorter than three characters, then drop duplicate strings keeping the first, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove all zero values, then replace an empty list with one zero.", "out": "丑举么"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then exclude zeros, then zero it out if it's empty.", "out": "丑举么"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove all zero values, then use zero if the list is empty.", "out": "丑举么"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then exclude zeros, then default to zero when empty.", "out": "丑举么"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove all zero values, then if there's nothing, put in a zero.", "out": "丑举么"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then exclude zeros, then if no items, add a zero.", "out": "丑举么"} {"kind": "builder", "in": "丑举么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丑举么", "out": "Take a list of integers; sort ascending, then drop the zeros, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the list around, then give back the product of all values.", "out": "一丐乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then flip the order around, then product of the list.", "out": "一丐乐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then put the elements backwards, then what's the product.", "out": "一丐乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then reverse that for me, then what do they multiply to.", "out": "一丐乐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip it backwards, then give me their product.", "out": "一丐乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then make it backwards, then multiply them all together.", "out": "一丐乐"} {"kind": "builder", "in": "一丐乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(reversed(r))\n return __import__('math').prod(r)"} {"kind": "translator", "in": "一丐乐", "out": "Take a list of integers; keep the even numbers, then reverse the order, then return their product."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values above zero, then true if already sorted smallest to largest.", "out": "丏七乎"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then filter for positive numbers, then does this list go in ascending order.", "out": "丏七乎"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only positive numbers, then check if the list is in ascending order.", "out": "丏七乎"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the positives, then is the list sorted.", "out": "丏七乎"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove negatives, then is it sorted.", "out": "丏七乎"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep the positive numbers, then check if values are in increasing order.", "out": "丏七乎"} {"kind": "builder", "in": "丏七乎", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丏七乎", "out": "Take a list of integers; take the absolute value of each, then keep the positive numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then clamp each to at most ten, then keep only numbers above 5.", "out": "九丘主"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then don't let anything exceed 10, then exclude values of 5 and below.", "out": "九丘主"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then clamp each to at most ten, then remove anything 5 or less.", "out": "九丘主"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then don't let anything exceed 10, then filter to keep only values above 5.", "out": "九丘主"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then clamp each to at most ten, then get rid of values that aren't greater than five.", "out": "九丘主"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then don't let anything exceed 10, then drop anything 5 or below.", "out": "九丘主"} {"kind": "builder", "in": "九丘主", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "九丘主", "out": "Take a list of people records (name, age); extract the ages, then cap each value at 10, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then remove repeated strings, then count characters across all strings.", "out": "丞丧个"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then keep unique strings first appearance, then character count.", "out": "丞丧个"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then eliminate repeated strings preserve first occurrence, then count all the characters.", "out": "丞丧个"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then drop duplicate strings keeping the first, then total number of characters.", "out": "丞丧个"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then dedupe, then what's the total character count.", "out": "丞丧个"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then remove duplicate strings keep first, then add up the lengths.", "out": "丞丧个"} {"kind": "builder", "in": "丞丧个", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = list(dict.fromkeys(r))\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "丞丧个", "out": "Take a list of strings; lowercase each string, then drop duplicate strings keeping the first, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values divisible by 3, then true only if all are positive.", "out": "主串乌"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then keep items where x mod 3 equals zero, then do all of these have positive values.", "out": "主串乌"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then drop anything not divisible by three, then check if every value is positive.", "out": "主串乌"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then filter out everything except multiples of three, then confirm all values are positive.", "out": "主串乌"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only multiples of three, then all positive.", "out": "主串乌"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiples of three only, then check if every number is above zero.", "out": "主串乌"} {"kind": "builder", "in": "主串乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "主串乌", "out": "Take a list of integers; keep values greater than five, then keep multiples of three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then decrement each value, then arrange by magnitude ignoring sign.", "out": "主不丸"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Lower each number by one, then put them in order by magnitude.", "out": "主不丸"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then reduce each by one, then arrange in order of absolute value.", "out": "主不丸"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Subtract 1 from all, then sort by distance from zero.", "out": "主不丸"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Subtract one from each, then order by how far from zero.", "out": "主不丸"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Drop each by one, then order by distance from zero.", "out": "主不丸"} {"kind": "builder", "in": "主不丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x - 1 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "主不丸", "out": "Take a list of integers; keep values greater than five, then subtract one from each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then decrement each value, then true if already sorted smallest to largest.", "out": "么不乎"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Lower each number by one, then does this list go in ascending order.", "out": "么不乎"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then reduce each by one, then check if the list is in ascending order.", "out": "么不乎"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Subtract 1 from all, then is the list sorted.", "out": "么不乎"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Subtract one from each, then is it sorted.", "out": "么不乎"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Drop each by one, then check if values are in increasing order.", "out": "么不乎"} {"kind": "builder", "in": "么不乎", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x - 1 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "么不乎", "out": "Take a list of integers; if empty, use a single zero, then subtract one from each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values above zero, then arrange by magnitude ignoring sign.", "out": "举七丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter for positive numbers, then put them in order by magnitude.", "out": "举七丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only positive numbers, then arrange in order of absolute value.", "out": "举七丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positives, then sort by distance from zero.", "out": "举七丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove negatives, then order by how far from zero.", "out": "举七丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the positive numbers, then order by distance from zero.", "out": "举七丸"} {"kind": "builder", "in": "举七丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "举七丸", "out": "Take a list of integers; drop the zeros, then keep the positive numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then true if every value is unique.", "out": "与丘乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then check for duplicates in the values.", "out": "与丘乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then do all values appear only once.", "out": "与丘乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then check that there are no duplicates.", "out": "与丘乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then are the values all unique.", "out": "与丘乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then check if all values are unique.", "out": "与丘乏"} {"kind": "builder", "in": "与丘乏", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [min(x, 10) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "与丘乏", "out": "Take a list of integers; negate each, then cap each value at 10, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each value by itself, then remove the initial run of negative numbers.", "out": "专上乃"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then square them all, then strip the front negatives.", "out": "专上乃"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then raise each to the power of two, then remove leading negative numbers.", "out": "专上乃"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then I need each number multiplied by itself, then drop negatives from start.", "out": "专上乃"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then square all of them, then strip negative values from the start.", "out": "专上乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiply each element by itself, then remove negatives before the first non-negative.", "out": "专上乃"} {"kind": "builder", "in": "专上乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "专上乃", "out": "Take a list of integers; sort descending, then square each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only odd values, then give the number of evens.", "out": "七丁乓"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then eliminate the even numbers, then find how many values are divisible by two.", "out": "七丁乓"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only odd values, then how many are even.", "out": "七丁乓"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then eliminate the even numbers, then get the total number of even values in the list.", "out": "七丁乓"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only odd values, then give me the count of even values.", "out": "七丁乓"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then eliminate the even numbers, then I need to know how many of these are even.", "out": "七丁乓"} {"kind": "builder", "in": "七丁乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "七丁乓", "out": "Take a list of integers; keep the positive numbers, then keep the odd numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then drop anything 5 or below, then true if at least one even value.", "out": "丑主之"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep only numbers greater than 5, then any even.", "out": "丑主之"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then filter for numbers above 5, then true if at least one even value.", "out": "丑主之"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then give me values where x is greater than 5, then any even.", "out": "丑主之"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then show me only the values that are bigger than five, then true if at least one even value.", "out": "丑主之"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep values greater than five, then any even.", "out": "丑主之"} {"kind": "builder", "in": "丑主之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 5]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丑主之", "out": "Take a list of integers; sort ascending, then keep values greater than five, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values divisible by 3, then drop the even numbers.", "out": "丈串丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep items where x mod 3 equals zero, then strip out the evens.", "out": "丈串丁"} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything not divisible by three, then drop the even numbers.", "out": "丈串丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter out everything except multiples of three, then strip out the evens.", "out": "丈串丁"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only multiples of three, then drop the even numbers.", "out": "丈串丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiples of three only, then strip out the evens.", "out": "丈串丁"} {"kind": "builder", "in": "丈串丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丈串丁", "out": "Take a list of integers; double each, then keep multiples of three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then make every value non-negative, then trim one element off each end.", "out": "不丏为"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then absolute value for all items, then cut off the first and last.", "out": "不丏为"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take absolute values, then remove the first and last elements.", "out": "不丏为"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn negatives into positives, then keep only the middle part.", "out": "不丏为"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then abs each element, then drop first and last.", "out": "不丏为"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the absolute value of each, then eliminate the outermost elements.", "out": "不丏为"} {"kind": "builder", "in": "不丏为", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "不丏为", "out": "Take a list of integers; subtract one from each, then take the absolute value of each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then drop non-negative values.", "out": "义丈万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then drop all positive numbers.", "out": "义丈万"} {"kind": "builder", "in": "义丈万", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "义丈万", "out": "Take a list of integers; pad with zeros to at least three elements, then double each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values divisible by 3, then give back the total.", "out": "万串丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep items where x mod 3 equals zero, then sum r.", "out": "万串丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then drop anything not divisible by three, then add them up.", "out": "万串丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter out everything except multiples of three, then calculate the sum of all elements.", "out": "万串丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only multiples of three, then what's the total.", "out": "万串丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiples of three only, then what do they add up to.", "out": "万串丙"} {"kind": "builder", "in": "万串丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 3 == 0]\n return sum(r)"} {"kind": "translator", "in": "万串丙", "out": "Take a list of integers; keep the negative numbers, then keep multiples of three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each value by itself, then true only if all are positive.", "out": "且上乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then square them all, then do all of these have positive values.", "out": "且上乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then raise each to the power of two, then check if every value is positive.", "out": "且上乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then I need each number multiplied by itself, then confirm all values are positive.", "out": "且上乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then square all of them, then all positive.", "out": "且上乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiply each element by itself, then check if every number is above zero.", "out": "且上乌"} {"kind": "builder", "in": "且上乌", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "且上乌", "out": "Take a list of integers; drop duplicates keeping first occurrence, then square each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the first 3 elements, then give the number of evens.", "out": "乃丕乓"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then remove everything after the third, then find how many values are divisible by two.", "out": "乃丕乓"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then truncate to three items, then how many are even.", "out": "乃丕乓"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then show the first three, then get the total number of even values in the list.", "out": "乃丕乓"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then take the first three, then give me the count of even values.", "out": "乃丕乓"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep first 3, then I need to know how many of these are even.", "out": "乃丕乓"} {"kind": "builder", "in": "乃丕乓", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乃丕乓", "out": "Take a list of integers; drop the leading negative values, then keep only the first three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values below zero, then truncate to three items.", "out": "不万丕"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then get the negative numbers, then show the first three.", "out": "不万丕"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep values below zero, then take the first three.", "out": "不万丕"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the negative numbers, then keep first 3.", "out": "不万丕"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep values below zero, then truncate to first three.", "out": "不万丕"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the negative numbers, then first three.", "out": "不万丕"} {"kind": "builder", "in": "不万丕", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "不万丕", "out": "Take a list of integers; subtract one from each, then keep the negative numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increase every value by 10, then arrange by magnitude ignoring sign.", "out": "与丽丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then add 10 to each item, then put them in order by magnitude.", "out": "与丽丸"} {"kind": "speaker", "in": "Take a list of integers; negate each, then shift each up by ten, then arrange in order of absolute value.", "out": "与丽丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then increase all numbers by 10, then sort by distance from zero.", "out": "与丽丸"} {"kind": "speaker", "in": "Take a list of integers; negate each, then add 10 to everything, then order by how far from zero.", "out": "与丽丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give everything a boost of 10, then order by distance from zero.", "out": "与丽丸"} {"kind": "builder", "in": "与丽丸", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 10 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "与丽丸", "out": "Take a list of integers; negate each, then add ten to each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove the first item, then find the min, defaulting to 0.", "out": "丕世丛"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Remove head, then minimum value, zero otherwise.", "out": "丕世丛"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the first item, then get the minimum value or zero if empty.", "out": "丕世丛"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Remove head, then give me the min or 0.", "out": "丕世丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first item, then return the smallest number, defaulting to 0.", "out": "丕世丛"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Remove head, then return smallest or zero if empty.", "out": "丕世丛"} {"kind": "builder", "in": "丕世丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:]\n return min(r) if r else 0"} {"kind": "translator", "in": "丕世丛", "out": "Take a list of integers; keep only the first three, then drop the first element, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then cut the list at the first zero, then raise each to the power of two.", "out": "丁久上"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off after the first zero appears, then I need each number multiplied by itself.", "out": "丁久上"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take values up to (excluding) the first zero, then square all of them.", "out": "丁久上"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the part before the first 0, then multiply each element by itself.", "out": "丁久上"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate at the first zero, then make each one squared.", "out": "丁久上"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then delete everything starting with the first zero, then square each value in the list.", "out": "丁久上"} {"kind": "builder", "in": "丁久上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丁久上", "out": "Take a list of integers; keep the odd numbers, then keep everything before the first zero, then square each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increase every value by 10, then true if already sorted smallest to largest.", "out": "专丽乎"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then add 10 to each item, then does this list go in ascending order.", "out": "专丽乎"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then shift each up by ten, then check if the list is in ascending order.", "out": "专丽乎"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then increase all numbers by 10, then is the list sorted.", "out": "专丽乎"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then add 10 to everything, then is it sorted.", "out": "专丽乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then give everything a boost of 10, then check if values are in increasing order.", "out": "专丽乎"} {"kind": "builder", "in": "专丽乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 10 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "专丽乎", "out": "Take a list of integers; sort descending, then add ten to each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then strip spaces around each string, then arrange in lexicographic order.", "out": "两丢乖"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then remove leading and trailing spaces, then sort by letter.", "out": "两丢乖"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then remove whitespace from each item, then arrange in lexicographic order.", "out": "两丢乖"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then clean whitespace from each entry, then sort by letter.", "out": "两丢乖"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then trim each string, then arrange in lexicographic order.", "out": "两丢乖"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then trim whitespace from each, then sort by letter.", "out": "两丢乖"} {"kind": "builder", "in": "两丢乖", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.strip() for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "两丢乖", "out": "Take a list of strings; drop empty strings, then trim whitespace from each, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then count the elements.", "out": "世万东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then how many items remain.", "out": "世万东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then tell me the length.", "out": "世万东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then return the length.", "out": "世万东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then count them.", "out": "世万东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then what's the count.", "out": "世万东"} {"kind": "builder", "in": "世万东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x < 0]\n return len(r)"} {"kind": "translator", "in": "世万东", "out": "Take a list of integers; drop the first element, then keep the negative numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; negate each, then default to [0] when there is nothing, then drop the odd numbers.", "out": "与么一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then when the list is empty, substitute a zero value, then filter out the odd numbers.", "out": "与么一"} {"kind": "speaker", "in": "Take a list of integers; negate each, then replace an empty list with one zero, then drop the odd numbers.", "out": "与么一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then zero it out if it's empty, then filter out the odd numbers.", "out": "与么一"} {"kind": "speaker", "in": "Take a list of integers; negate each, then use zero if the list is empty, then drop the odd numbers.", "out": "与么一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then default to zero when empty, then filter out the odd numbers.", "out": "与么一"} {"kind": "builder", "in": "与么一", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "与么一", "out": "Take a list of integers; negate each, then if empty, use a single zero, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then extend to length 3 using zeros, then count the elements.", "out": "丐义东"} {"kind": "speaker", "in": "Take a list of integers; reverse, then pad to 3, then how many items remain.", "out": "丐义东"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then extend to length 3 using zeros, then tell me the length.", "out": "丐义东"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then pad to 3, then return the length.", "out": "丐义东"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then extend to length 3 using zeros, then count them.", "out": "丐义东"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then pad to 3, then what's the count.", "out": "丐义东"} {"kind": "builder", "in": "丐义东", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return len(r)"} {"kind": "translator", "in": "丐义东", "out": "Take a list of integers; reverse the order, then pad with zeros to at least three elements, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove both ends, then put the elements backwards.", "out": "乃为丐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then trim the edges, then reverse that for me.", "out": "乃为丐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then trim one element off each end, then flip it backwards.", "out": "乃为丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then cut off the first and last, then make it backwards.", "out": "乃为丐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first and last elements, then reverse the list.", "out": "乃为丐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep only the middle part, then invert the sequence.", "out": "乃为丐"} {"kind": "builder", "in": "乃为丐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "乃为丐", "out": "Take a list of integers; drop the leading negative values, then drop the first and last elements, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increase every value by 10, then give the number of evens.", "out": "乂丽乓"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then add 10 to each item, then find how many values are divisible by two.", "out": "乂丽乓"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then shift each up by ten, then how many are even.", "out": "乂丽乓"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then increase all numbers by 10, then get the total number of even values in the list.", "out": "乂丽乓"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then add 10 to everything, then give me the count of even values.", "out": "乂丽乓"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then give everything a boost of 10, then I need to know how many of these are even.", "out": "乂丽乓"} {"kind": "builder", "in": "乂丽乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乂丽乓", "out": "Take a list of integers; take values while they are positive, then add ten to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; square each, then flip the sign of each, then drop the odd numbers.", "out": "上与一"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "上与一"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then flip the sign of each, then drop the odd numbers.", "out": "上与一"} {"kind": "speaker", "in": "Take a list of integers; square them all, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "上与一"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then flip the sign of each, then drop the odd numbers.", "out": "上与一"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "上与一"} {"kind": "builder", "in": "上与一", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "上与一", "out": "Take a list of integers; square each, then negate each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then skip negatives at the start, then true if already sorted smallest to largest.", "out": "丸乃乎"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove all negatives at the front, then does this list go in ascending order.", "out": "丸乃乎"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the initial run of negative numbers, then check if the list is in ascending order.", "out": "丸乃乎"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then strip the front negatives, then is the list sorted.", "out": "丸乃乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove leading negative numbers, then is it sorted.", "out": "丸乃乎"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then drop negatives from start, then check if values are in increasing order.", "out": "丸乃乎"} {"kind": "builder", "in": "丸乃乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r == sorted(r)"} {"kind": "translator", "in": "丸乃乎", "out": "Take a list of integers; sort by absolute value, then drop the leading negative values, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each value by itself, then arrange in decreasing order.", "out": "丐上专"} {"kind": "speaker", "in": "Take a list of integers; reverse, then square them all, then arrange in descending order.", "out": "丐上专"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then raise each to the power of two, then reverse sort.", "out": "丐上专"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then I need each number multiplied by itself, then sort largest to smallest.", "out": "丐上专"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then square all of them, then sort by descending values.", "out": "丐上专"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiply each element by itself, then sort from highest to lowest.", "out": "丐上专"} {"kind": "builder", "in": "丐上专", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丐上专", "out": "Take a list of integers; reverse the order, then square each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two, then find the max, defaulting to 0.", "out": "上丈业"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list, then Give me the maximum, but 0 if there are no items.", "out": "上丈业"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two, then What's the highest number in the list.", "out": "上丈业"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list, then Return the greatest value or default to 0.", "out": "上丈业"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two, then Find the largest element, defaulting to zero.", "out": "上丈业"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list, then give the largest value (0 if none).", "out": "上丈业"} {"kind": "builder", "in": "上丈业", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "上丈业", "out": "Take a list of integers; square each, then double each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increase every value by 10, then arrange by magnitude ignoring sign.", "out": "丘丽丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then add 10 to each item, then put them in order by magnitude.", "out": "丘丽丸"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then shift each up by ten, then arrange in order of absolute value.", "out": "丘丽丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then increase all numbers by 10, then sort by distance from zero.", "out": "丘丽丸"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then add 10 to everything, then order by how far from zero.", "out": "丘丽丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give everything a boost of 10, then order by distance from zero.", "out": "丘丽丸"} {"kind": "builder", "in": "丘丽丸", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丘丽丸", "out": "Take a list of integers; cap each value at 10, then add ten to each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; negate each, then order by distance from zero, then count the elements.", "out": "与丸东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort based on absolute value, then how many items remain.", "out": "与丸东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then organize by magnitude, then tell me the length.", "out": "与丸东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then arrange by absolute value ascending, then return the length.", "out": "与丸东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort from smallest to largest absolute value, then count them.", "out": "与丸东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort by absolute value, then what's the count.", "out": "与丸东"} {"kind": "builder", "in": "与丸东", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r, key=abs)\n return len(r)"} {"kind": "translator", "in": "与丸东", "out": "Take a list of integers; negate each, then sort by absolute value, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then reduce each by one.", "out": "且丽不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then Subtract 1 from all.", "out": "且丽不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then Subtract one from each.", "out": "且丽不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then Drop each by one.", "out": "且丽不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then Decrease all values by one.", "out": "且丽不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then Remove one from each value.", "out": "且丽不"} {"kind": "builder", "in": "且丽不", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "且丽不", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort smallest to largest, then stop at the first non-positive value.", "out": "么丑乂"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Ascending sort, then keep the leading run of positive numbers.", "out": "么丑乂"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then Sort this ascending, then take values while they are positive.", "out": "么丑乂"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Sort lowest to highest, then take positive values then stop.", "out": "么丑乂"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Arrange from smallest to largest, then keep going while positive.", "out": "么丑乂"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort ascending, then stop at first non positive.", "out": "么丑乂"} {"kind": "builder", "in": "么丑乂", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "么丑乂", "out": "Take a list of integers; if empty, use a single zero, then sort ascending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then sort largest to smallest, then strip the signs.", "out": "丽专丏"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then sort by descending values, then take abs of each.", "out": "丽专丏"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then sort from highest to lowest, then get the absolute value of everything.", "out": "丽专丏"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then sort descending, then apply absolute value to the whole list.", "out": "丽专丏"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then sort largest first, then make them all positive.", "out": "丽专丏"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort in descending order, then make every value non-negative.", "out": "丽专丏"} {"kind": "builder", "in": "丽专丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丽专丏", "out": "Take a list of integers; add ten to each, then sort descending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then sort smallest to largest, then arrange in decreasing order.", "out": "丽丑专"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Ascending sort, then arrange in descending order.", "out": "丽丑专"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then Sort this ascending, then reverse sort.", "out": "丽丑专"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Sort lowest to highest, then sort largest to smallest.", "out": "丽丑专"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Arrange from smallest to largest, then sort by descending values.", "out": "丽丑专"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort ascending, then sort from highest to lowest.", "out": "丽丑专"} {"kind": "builder", "in": "丽丑专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丽丑专", "out": "Take a list of integers; add ten to each, then sort ascending, then sort descending."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then order the strings A to Z, then count characters across all strings.", "out": "丢乖个"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then make it alphabetical, then character count.", "out": "丢乖个"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then order the strings A to Z, then count all the characters.", "out": "丢乖个"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then make it alphabetical, then total number of characters.", "out": "丢乖个"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then order the strings A to Z, then what's the total character count.", "out": "丢乖个"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then make it alphabetical, then add up the lengths.", "out": "丢乖个"} {"kind": "builder", "in": "丢乖个", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = sorted(r)\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "丢乖个", "out": "Take a list of strings; trim whitespace from each, then sort alphabetically, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then make each twice as big.", "out": "九与丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then multiply each by 2.", "out": "九与丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then make each twice as big.", "out": "九与丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then multiply each by 2.", "out": "九与丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then make each twice as big.", "out": "九与丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then multiply each by 2.", "out": "九与丈"} {"kind": "builder", "in": "九与丈", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "九与丈", "out": "Take a list of people records (name, age); extract the ages, then negate each, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first 3 elements, then true if at least one even value.", "out": "举丕之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove everything after the third, then any even.", "out": "举丕之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate to three items, then true if at least one even value.", "out": "举丕之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then show the first three, then any even.", "out": "举丕之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first three, then true if at least one even value.", "out": "举丕之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep first 3, then any even.", "out": "举丕之"} {"kind": "builder", "in": "举丕之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:3]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "举丕之", "out": "Take a list of integers; drop the zeros, then keep only the first three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then arrange by magnitude ignoring sign.", "out": "万丁丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then put them in order by magnitude.", "out": "万丁丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then arrange in order of absolute value.", "out": "万丁丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then sort by distance from zero.", "out": "万丁丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then order by how far from zero.", "out": "万丁丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then order by distance from zero.", "out": "万丁丸"} {"kind": "builder", "in": "万丁丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "万丁丸", "out": "Take a list of integers; keep the negative numbers, then keep the odd numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then take values up to (excluding) the first zero.", "out": "万为久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then keep the part before the first 0.", "out": "万为久"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then truncate at the first zero.", "out": "万为久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then delete everything starting with the first zero.", "out": "万为久"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then remove from the first zero onwards.", "out": "万为久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then up to but not including the first zero.", "out": "万为久"} {"kind": "builder", "in": "万为久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "万为久", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then replace an empty list with one zero.", "out": "与丁么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then zero it out if it's empty.", "out": "与丁么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then use zero if the list is empty.", "out": "与丁么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then default to zero when empty.", "out": "与丁么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then if there's nothing, put in a zero.", "out": "与丁么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then if no items, add a zero.", "out": "与丁么"} {"kind": "builder", "in": "与丁么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与丁么", "out": "Take a list of integers; negate each, then keep the odd numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero, then true if any value equals zero.", "out": "丑丸乍"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value, then check for zero.", "out": "丑丸乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude, then true if any value equals zero.", "out": "丑丸乍"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending, then check for zero.", "out": "丑丸乍"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value, then true if any value equals zero.", "out": "丑丸乍"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value, then check for zero.", "out": "丑丸乍"} {"kind": "builder", "in": "丑丸乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n return 0 in r"} {"kind": "translator", "in": "丑丸乍", "out": "Take a list of integers; sort ascending, then sort by absolute value, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then truncate to the last three items.", "out": "丑丘丹"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then show only the last three.", "out": "丑丘丹"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then remove all but the last three.", "out": "丑丘丹"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then take the final 3 elements.", "out": "丑丘丹"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then drop everything except the final three.", "out": "丑丘丹"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then give me the last three elements.", "out": "丑丘丹"} {"kind": "builder", "in": "丑丘丹", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丑丘丹", "out": "Take a list of integers; sort ascending, then cap each value at 10, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove repeated values, then find the min, defaulting to 0.", "out": "上且丛"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then unique values preserving order, then minimum value, zero otherwise.", "out": "上且丛"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove repeated values, then get the minimum value or zero if empty.", "out": "上且丛"} {"kind": "speaker", "in": "Take a list of integers; square them all, then unique values preserving order, then give me the min or 0.", "out": "上且丛"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove repeated values, then return the smallest number, defaulting to 0.", "out": "上且丛"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then unique values preserving order, then return smallest or zero if empty.", "out": "上且丛"} {"kind": "builder", "in": "上且丛", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "上且丛", "out": "Take a list of integers; square each, then drop duplicates keeping first occurrence, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values divisible by 3, then truncate to three items.", "out": "举串丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep items where x mod 3 equals zero, then show the first three.", "out": "举串丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything not divisible by three, then take the first three.", "out": "举串丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter out everything except multiples of three, then keep first 3.", "out": "举串丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only multiples of three, then truncate to first three.", "out": "举串丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiples of three only, then first three.", "out": "举串丕"} {"kind": "builder", "in": "举串丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 3 == 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "举串丕", "out": "Take a list of integers; drop the zeros, then keep multiples of three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values divisible by 3, then skip the first one.", "out": "丁串世"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep items where x mod 3 equals zero, then Discard the first element.", "out": "丁串世"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then drop anything not divisible by three, then skip the first one.", "out": "丁串世"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter out everything except multiples of three, then Discard the first element.", "out": "丁串世"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only multiples of three, then skip the first one.", "out": "丁串世"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiples of three only, then Discard the first element.", "out": "丁串世"} {"kind": "builder", "in": "丁串世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丁串世", "out": "Take a list of integers; keep the odd numbers, then keep multiples of three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then reduce each by one.", "out": "丽丐不"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then Subtract 1 from all.", "out": "丽丐不"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then Subtract one from each.", "out": "丽丐不"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then Drop each by one.", "out": "丽丐不"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then Decrease all values by one.", "out": "丽丐不"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then Remove one from each value.", "out": "丽丐不"} {"kind": "builder", "in": "丽丐不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丽丐不", "out": "Take a list of integers; add ten to each, then reverse the order, then subtract one from each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only odd values, then drop non-positive values.", "out": "九丁七"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then eliminate the even numbers, then drop the negative numbers.", "out": "九丁七"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only odd values, then filter out the negative ones.", "out": "九丁七"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then eliminate the even numbers, then remove all negative values.", "out": "九丁七"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only odd values, then keep positive values only.", "out": "九丁七"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then eliminate the even numbers, then keep values above zero.", "out": "九丁七"} {"kind": "builder", "in": "九丁七", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "九丁七", "out": "Take a list of people records (name, age); extract the ages, then keep the odd numbers, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then make every value non-negative, then bump each up by one.", "out": "七丏下"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then absolute value for all items, then increment each item.", "out": "七丏下"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take absolute values, then bump each up by one.", "out": "七丏下"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn negatives into positives, then increment each item.", "out": "七丏下"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then abs each element, then bump each up by one.", "out": "七丏下"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the absolute value of each, then increment each item.", "out": "七丏下"} {"kind": "builder", "in": "七丏下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "七丏下", "out": "Take a list of integers; keep the positive numbers, then take the absolute value of each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove both ends, then count the elements.", "out": "丈为东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then trim the edges, then how many items remain.", "out": "丈为东"} {"kind": "speaker", "in": "Take a list of integers; double each, then trim one element off each end, then tell me the length.", "out": "丈为东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off the first and last, then return the length.", "out": "丈为东"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first and last elements, then count them.", "out": "丈为东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the middle part, then what's the count.", "out": "丈为东"} {"kind": "builder", "in": "丈为东", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:-1]\n return len(r)"} {"kind": "translator", "in": "丈为东", "out": "Take a list of integers; double each, then drop the first and last elements, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then stop at the first non-positive value.", "out": "且世乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then keep the leading run of positive numbers.", "out": "且世乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then take values while they are positive.", "out": "且世乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then take positive values then stop.", "out": "且世乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then keep going while positive.", "out": "且世乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then stop at first non positive.", "out": "且世乂"} {"kind": "builder", "in": "且世乂", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "且世乂", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first element, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then cut the list at the first zero, then put the elements backwards.", "out": "为久丐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then cut off after the first zero appears, then reverse that for me.", "out": "为久丐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take values up to (excluding) the first zero, then flip it backwards.", "out": "为久丐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the part before the first 0, then make it backwards.", "out": "为久丐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then truncate at the first zero, then reverse the list.", "out": "为久丐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then delete everything starting with the first zero, then invert the sequence.", "out": "为久丐"} {"kind": "builder", "in": "为久丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "为久丐", "out": "Take a list of integers; drop the first and last elements, then keep everything before the first zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values above zero, then drop the even numbers.", "out": "下七丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter for positive numbers, then strip out the evens.", "out": "下七丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only positive numbers, then drop the even numbers.", "out": "下七丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positives, then strip out the evens.", "out": "下七丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove negatives, then drop the even numbers.", "out": "下七丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positive numbers, then strip out the evens.", "out": "下七丁"} {"kind": "builder", "in": "下七丁", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "下七丁", "out": "Take a list of integers; add one to each, then keep the positive numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove all zero values, then truncate to three items.", "out": "七举丕"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then exclude zeros, then show the first three.", "out": "七举丕"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove all zero values, then take the first three.", "out": "七举丕"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then exclude zeros, then keep first 3.", "out": "七举丕"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove all zero values, then truncate to first three.", "out": "七举丕"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then exclude zeros, then first three.", "out": "七举丕"} {"kind": "builder", "in": "七举丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "七举丕", "out": "Take a list of integers; keep the positive numbers, then drop the zeros, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each value by itself, then drop anything not divisible by three.", "out": "丁上串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then square them all, then filter out everything except multiples of three.", "out": "丁上串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then raise each to the power of two, then keep only multiples of three.", "out": "丁上串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then I need each number multiplied by itself, then multiples of three only.", "out": "丁上串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then square all of them, then filter for numbers divisible by three.", "out": "丁上串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiply each element by itself, then give me only the values divisible by three.", "out": "丁上串"} {"kind": "builder", "in": "丁上串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丁上串", "out": "Take a list of integers; keep the odd numbers, then square each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then give the number of evens.", "out": "万丘乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then find how many values are divisible by two.", "out": "万丘乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then how many are even.", "out": "万丘乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then get the total number of even values in the list.", "out": "万丘乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then give me the count of even values.", "out": "万丘乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then I need to know how many of these are even.", "out": "万丘乓"} {"kind": "builder", "in": "万丘乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "万丘乓", "out": "Take a list of integers; keep the negative numbers, then cap each value at 10, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values divisible by 3, then find the max, defaulting to 0.", "out": "丑串业"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep items where x mod 3 equals zero, then Give me the maximum, but 0 if there are no items.", "out": "丑串业"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then drop anything not divisible by three, then What's the highest number in the list.", "out": "丑串业"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then filter out everything except multiples of three, then Return the greatest value or default to 0.", "out": "丑串业"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only multiples of three, then Find the largest element, defaulting to zero.", "out": "丑串业"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then multiples of three only, then give the largest value (0 if none).", "out": "丑串业"} {"kind": "builder", "in": "丑串业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 3 == 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丑串业", "out": "Take a list of integers; sort ascending, then keep multiples of three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only odd values, then skip the first one.", "out": "么丁世"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then eliminate the even numbers, then Discard the first element.", "out": "么丁世"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only odd values, then skip the first one.", "out": "么丁世"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then eliminate the even numbers, then Discard the first element.", "out": "么丁世"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only odd values, then skip the first one.", "out": "么丁世"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then eliminate the even numbers, then Discard the first element.", "out": "么丁世"} {"kind": "builder", "in": "么丁世", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "么丁世", "out": "Take a list of integers; if empty, use a single zero, then keep the odd numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the first 3 elements, then drop non-negative values.", "out": "九丕万"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove everything after the third, then drop all positive numbers.", "out": "九丕万"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then truncate to three items, then drop non-negative values.", "out": "九丕万"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then show the first three, then drop all positive numbers.", "out": "九丕万"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then take the first three, then drop non-negative values.", "out": "九丕万"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep first 3, then drop all positive numbers.", "out": "九丕万"} {"kind": "builder", "in": "九丕万", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:3]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "九丕万", "out": "Take a list of people records (name, age); extract the ages, then keep only the first three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then arrange in increasing order.", "out": "为万丑"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then Organize these ascending.", "out": "为万丑"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then Sort in ascending order.", "out": "为万丑"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then I need this sorted ascending.", "out": "为万丑"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then Put these in ascending order.", "out": "为万丑"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then sort smallest to largest.", "out": "为万丑"} {"kind": "builder", "in": "为万丑", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "为万丑", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then make every value non-negative, then replace an empty list with one zero.", "out": "丹丏么"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then absolute value for all items, then zero it out if it's empty.", "out": "丹丏么"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take absolute values, then use zero if the list is empty.", "out": "丹丏么"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn negatives into positives, then default to zero when empty.", "out": "丹丏么"} {"kind": "speaker", "in": "Take a list of integers; last three only, then abs each element, then if there's nothing, put in a zero.", "out": "丹丏么"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take the absolute value of each, then if no items, add a zero.", "out": "丹丏么"} {"kind": "builder", "in": "丹丏么", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [abs(x) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丹丏么", "out": "Take a list of integers; keep only the last three, then take the absolute value of each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove the first item, then give the number of evens.", "out": "上世乓"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Remove head, then find how many values are divisible by two.", "out": "上世乓"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the first item, then how many are even.", "out": "上世乓"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Remove head, then get the total number of even values in the list.", "out": "上世乓"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove the first item, then give me the count of even values.", "out": "上世乓"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then Remove head, then I need to know how many of these are even.", "out": "上世乓"} {"kind": "builder", "in": "上世乓", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[1:]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "上世乓", "out": "Take a list of integers; square each, then drop the first element, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then decrement each value, then stop at the first non-positive value.", "out": "丽不乂"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Lower each number by one, then keep the leading run of positive numbers.", "out": "丽不乂"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then reduce each by one, then take values while they are positive.", "out": "丽不乂"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Subtract 1 from all, then take positive values then stop.", "out": "丽不乂"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Subtract one from each, then keep going while positive.", "out": "丽不乂"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Drop each by one, then stop at first non positive.", "out": "丽不乂"} {"kind": "builder", "in": "丽不乂", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丽不乂", "out": "Take a list of integers; add ten to each, then subtract one from each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then default to [0] when there is nothing, then strip the signs.", "out": "七么丏"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then when the list is empty, substitute a zero value, then take abs of each.", "out": "七么丏"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then replace an empty list with one zero, then get the absolute value of everything.", "out": "七么丏"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then zero it out if it's empty, then apply absolute value to the whole list.", "out": "七么丏"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then use zero if the list is empty, then make them all positive.", "out": "七么丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then default to zero when empty, then make every value non-negative.", "out": "七么丏"} {"kind": "builder", "in": "七么丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r if r else [0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "七么丏", "out": "Take a list of integers; keep the positive numbers, then if empty, use a single zero, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "九与义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "九与义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "九与义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "九与义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "九与义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "九与义"} {"kind": "builder", "in": "九与义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九与义", "out": "Take a list of people records (name, age); extract the ages, then negate each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then cut the list at the first zero, then multiply each by -1.", "out": "丑久与"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then cut off after the first zero appears, then negate.", "out": "丑久与"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take values up to (excluding) the first zero, then multiply each by -1.", "out": "丑久与"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the part before the first 0, then negate.", "out": "丑久与"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then truncate at the first zero, then multiply each by -1.", "out": "丑久与"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then delete everything starting with the first zero, then negate.", "out": "丑久与"} {"kind": "builder", "in": "丑久与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丑久与", "out": "Take a list of integers; sort ascending, then keep everything before the first zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then multiply each by -1.", "out": "万为与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then negate.", "out": "万为与"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then multiply each by -1.", "out": "万为与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then negate.", "out": "万为与"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then multiply each by -1.", "out": "万为与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then negate.", "out": "万为与"} {"kind": "builder", "in": "万为与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "万为与", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove the first item, then give the earliest even value or zero.", "out": "串世乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Remove head, then fetch the first even element, default to 0.", "out": "串世乒"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove the first item, then give the earliest even value or zero.", "out": "串世乒"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Remove head, then fetch the first even element, default to 0.", "out": "串世乒"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first item, then give the earliest even value or zero.", "out": "串世乒"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Remove head, then fetch the first even element, default to 0.", "out": "串世乒"} {"kind": "builder", "in": "串世乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "串世乒", "out": "Take a list of integers; keep multiples of three, then drop the first element, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values divisible by 3, then true if already sorted smallest to largest.", "out": "丏串乎"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep items where x mod 3 equals zero, then does this list go in ascending order.", "out": "丏串乎"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then drop anything not divisible by three, then check if the list is in ascending order.", "out": "丏串乎"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then filter out everything except multiples of three, then is the list sorted.", "out": "丏串乎"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only multiples of three, then is it sorted.", "out": "丏串乎"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then multiples of three only, then check if values are in increasing order.", "out": "丏串乎"} {"kind": "builder", "in": "丏串乎", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丏串乎", "out": "Take a list of integers; take the absolute value of each, then keep multiples of three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the leading run of positive numbers, then give the earliest even value or zero.", "out": "丘乂乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take values while they are positive, then fetch the first even element, default to 0.", "out": "丘乂乒"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take positive values then stop, then give the earliest even value or zero.", "out": "丘乂乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep going while positive, then fetch the first even element, default to 0.", "out": "丘乂乒"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then stop at first non positive, then give the earliest even value or zero.", "out": "丘乂乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take while greater than zero, then fetch the first even element, default to 0.", "out": "丘乂乒"} {"kind": "builder", "in": "丘乂乒", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丘乂乒", "out": "Take a list of integers; cap each value at 10, then take values while they are positive, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then give the earliest even value or zero.", "out": "万世乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then fetch the first even element, default to 0.", "out": "万世乒"} {"kind": "builder", "in": "万世乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "万世乒", "out": "Take a list of integers; keep the negative numbers, then drop the first element, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then drop non-positive values.", "out": "举丑七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then drop the negative numbers.", "out": "举丑七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then filter out the negative ones.", "out": "举丑七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then remove all negative values.", "out": "举丑七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then keep positive values only.", "out": "举丑七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then keep values above zero.", "out": "举丑七"} {"kind": "builder", "in": "举丑七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "举丑七", "out": "Take a list of integers; drop the zeros, then sort ascending, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers, then raise each to the power of two.", "out": "且乂上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive, then I need each number multiplied by itself.", "out": "且乂上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop, then square all of them.", "out": "且乂上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive, then multiply each element by itself.", "out": "且乂上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive, then make each one squared.", "out": "且乂上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero, then square each value in the list.", "out": "且乂上"} {"kind": "builder", "in": "且乂上", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "且乂上", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive, then square each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then true if at least one even value.", "out": "丐丈之"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then any even.", "out": "丐丈之"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then true if at least one even value.", "out": "丐丈之"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then any even.", "out": "丐丈之"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then true if at least one even value.", "out": "丐丈之"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then any even.", "out": "丐丈之"} {"kind": "builder", "in": "丐丈之", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丐丈之", "out": "Take a list of integers; reverse the order, then double each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove repeated values, then find the min, defaulting to 0.", "out": "不且丛"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then unique values preserving order, then minimum value, zero otherwise.", "out": "不且丛"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove repeated values, then get the minimum value or zero if empty.", "out": "不且丛"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then unique values preserving order, then give me the min or 0.", "out": "不且丛"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove repeated values, then return the smallest number, defaulting to 0.", "out": "不且丛"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then unique values preserving order, then return smallest or zero if empty.", "out": "不且丛"} {"kind": "builder", "in": "不且丛", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(dict.fromkeys(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "不且丛", "out": "Take a list of integers; subtract one from each, then drop duplicates keeping first occurrence, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove both ends, then stop at the first non-positive value.", "out": "丕为乂"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then trim the edges, then keep the leading run of positive numbers.", "out": "丕为乂"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then trim one element off each end, then take values while they are positive.", "out": "丕为乂"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then cut off the first and last, then take positive values then stop.", "out": "丕为乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first and last elements, then keep going while positive.", "out": "丕为乂"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep only the middle part, then stop at first non positive.", "out": "丕为乂"} {"kind": "builder", "in": "丕为乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丕为乂", "out": "Take a list of integers; keep only the first three, then drop the first and last elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then count the elements.", "out": "举丑东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then how many items remain.", "out": "举丑东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then tell me the length.", "out": "举丑东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then return the length.", "out": "举丑东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then count them.", "out": "举丑东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then what's the count.", "out": "举丑东"} {"kind": "builder", "in": "举丑东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n return len(r)"} {"kind": "translator", "in": "举丑东", "out": "Take a list of integers; drop the zeros, then sort ascending, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep the leading run of positive numbers, then skip the first one.", "out": "为乂世"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then take values while they are positive, then Discard the first element.", "out": "为乂世"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take positive values then stop, then skip the first one.", "out": "为乂世"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep going while positive, then Discard the first element.", "out": "为乂世"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then stop at first non positive, then skip the first one.", "out": "为乂世"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take while greater than zero, then Discard the first element.", "out": "为乂世"} {"kind": "builder", "in": "为乂世", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:]\n return r"} {"kind": "translator", "in": "为乂世", "out": "Take a list of integers; drop the first and last elements, then take values while they are positive, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increment each value, then put the elements backwards.", "out": "世下丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then plus one for all, then reverse that for me.", "out": "世下丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increment each value, then flip it backwards.", "out": "世下丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then plus one for all, then make it backwards.", "out": "世下丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increment each value, then reverse the list.", "out": "世下丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then plus one for all, then invert the sequence.", "out": "世下丐"} {"kind": "builder", "in": "世下丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "世下丐", "out": "Take a list of integers; drop the first element, then add one to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; double each, then multiply each value by itself, then arrange in increasing order.", "out": "丈上丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then square them all, then Organize these ascending.", "out": "丈上丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then raise each to the power of two, then Sort in ascending order.", "out": "丈上丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then I need each number multiplied by itself, then I need this sorted ascending.", "out": "丈上丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then square all of them, then Put these in ascending order.", "out": "丈上丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiply each element by itself, then sort smallest to largest.", "out": "丈上丑"} {"kind": "builder", "in": "丈上丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丈上丑", "out": "Take a list of integers; double each, then square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then count the elements.", "out": "么丽东"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then how many items remain.", "out": "么丽东"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then tell me the length.", "out": "么丽东"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then return the length.", "out": "么丽东"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then count them.", "out": "么丽东"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then what's the count.", "out": "么丽东"} {"kind": "builder", "in": "么丽东", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n return len(r)"} {"kind": "translator", "in": "么丽东", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort smallest to largest, then keep only numbers above 5.", "out": "且丑主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Ascending sort, then exclude values of 5 and below.", "out": "且丑主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Sort this ascending, then remove anything 5 or less.", "out": "且丑主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Sort lowest to highest, then filter to keep only values above 5.", "out": "且丑主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Arrange from smallest to largest, then get rid of values that aren't greater than five.", "out": "且丑主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort ascending, then drop anything 5 or below.", "out": "且丑主"} {"kind": "builder", "in": "且丑主", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "且丑主", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep the leading run of positive numbers, then true if any value equals zero.", "out": "上乂乍"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then take values while they are positive, then check for zero.", "out": "上乂乍"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take positive values then stop, then true if any value equals zero.", "out": "上乂乍"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep going while positive, then check for zero.", "out": "上乂乍"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then stop at first non positive, then true if any value equals zero.", "out": "上乂乍"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take while greater than zero, then check for zero.", "out": "上乂乍"} {"kind": "builder", "in": "上乂乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return 0 in r"} {"kind": "translator", "in": "上乂乍", "out": "Take a list of integers; square each, then take values while they are positive, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then add '#' to the start of each string, then reduce each string to its first character.", "out": "乞乘丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then make each one start with a hash, then take first char drop blanks.", "out": "乞乘丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then add '#' to the start of each string, then keep first letters only.", "out": "乞乘丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then make each one start with a hash, then first letter from each item that isn't empty.", "out": "乞乘丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then add '#' to the start of each string, then grab the first char from each.", "out": "乞乘丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then make each one start with a hash, then isolate the first character per entry.", "out": "乞乘丨"} {"kind": "builder", "in": "乞乘丨", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = ['#' + s for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乞乘丨", "out": "Take a list of people records (name, age); extract the names, then prefix each with a hash, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then give the earliest even value or zero.", "out": "且丈乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then fetch the first even element, default to 0.", "out": "且丈乒"} {"kind": "builder", "in": "且丈乒", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "且丈乒", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then arrange by magnitude ignoring sign.", "out": "万丘丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then put them in order by magnitude.", "out": "万丘丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then arrange in order of absolute value.", "out": "万丘丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then sort by distance from zero.", "out": "万丘丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then order by how far from zero.", "out": "万丘丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then order by distance from zero.", "out": "万丘丸"} {"kind": "builder", "in": "万丘丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "万丘丸", "out": "Take a list of integers; keep the negative numbers, then cap each value at 10, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then convert each to lower case, then deduplicate the strings.", "out": "丢丞丧"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then lowercase each one, then filter out duplicate strings retain first.", "out": "丢丞丧"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then convert each to lower case, then strip duplicates preserve order.", "out": "丢丞丧"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then lowercase each one, then remove repeated strings.", "out": "丢丞丧"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then convert each to lower case, then keep unique strings first appearance.", "out": "丢丞丧"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then lowercase each one, then eliminate repeated strings preserve first occurrence.", "out": "丢丞丧"} {"kind": "builder", "in": "丢丞丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = [s.lower() for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丢丞丧", "out": "Take a list of strings; trim whitespace from each, then lowercase each string, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; square each, then increase every value by 10, then arrange in increasing order.", "out": "上丽丑"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then add 10 to each item, then Organize these ascending.", "out": "上丽丑"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then shift each up by ten, then Sort in ascending order.", "out": "上丽丑"} {"kind": "speaker", "in": "Take a list of integers; square them all, then increase all numbers by 10, then I need this sorted ascending.", "out": "上丽丑"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then add 10 to everything, then Put these in ascending order.", "out": "上丽丑"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then give everything a boost of 10, then sort smallest to largest.", "out": "上丽丑"} {"kind": "builder", "in": "上丽丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "上丽丑", "out": "Take a list of integers; square each, then add ten to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove the first item, then truncate to the last three items.", "out": "不世丹"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Remove head, then show only the last three.", "out": "不世丹"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the first item, then remove all but the last three.", "out": "不世丹"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Remove head, then take the final 3 elements.", "out": "不世丹"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove the first item, then drop everything except the final three.", "out": "不世丹"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then Remove head, then give me the last three elements.", "out": "不世丹"} {"kind": "builder", "in": "不世丹", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[1:]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "不世丹", "out": "Take a list of integers; subtract one from each, then drop the first element, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then extend to length 3 using zeros, then skip the first one.", "out": "乃义世"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then pad to 3, then Discard the first element.", "out": "乃义世"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then extend to length 3 using zeros, then skip the first one.", "out": "乃义世"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then pad to 3, then Discard the first element.", "out": "乃义世"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then extend to length 3 using zeros, then skip the first one.", "out": "乃义世"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then pad to 3, then Discard the first element.", "out": "乃义世"} {"kind": "builder", "in": "乃义世", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:]\n return r"} {"kind": "translator", "in": "乃义世", "out": "Take a list of integers; drop the leading negative values, then pad with zeros to at least three elements, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values above zero, then remove the initial run of negative numbers.", "out": "么七乃"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then filter for positive numbers, then strip the front negatives.", "out": "么七乃"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only positive numbers, then remove leading negative numbers.", "out": "么七乃"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the positives, then drop negatives from start.", "out": "么七乃"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove negatives, then strip negative values from the start.", "out": "么七乃"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep the positive numbers, then remove negatives before the first non-negative.", "out": "么七乃"} {"kind": "builder", "in": "么七乃", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "么七乃", "out": "Take a list of integers; if empty, use a single zero, then keep the positive numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the list around, then drop the odd numbers.", "out": "主丐一"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then flip the order around, then filter out the odd numbers.", "out": "主丐一"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then put the elements backwards, then drop the odd numbers.", "out": "主丐一"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then reverse that for me, then filter out the odd numbers.", "out": "主丐一"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip it backwards, then drop the odd numbers.", "out": "主丐一"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then make it backwards, then filter out the odd numbers.", "out": "主丐一"} {"kind": "builder", "in": "主丐一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "主丐一", "out": "Take a list of integers; keep values greater than five, then reverse the order, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then truncate to the last three items.", "out": "义下丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then show only the last three.", "out": "义下丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then remove all but the last three.", "out": "义下丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then take the final 3 elements.", "out": "义下丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then drop everything except the final three.", "out": "义下丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then give me the last three elements.", "out": "义下丹"} {"kind": "builder", "in": "义下丹", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "义下丹", "out": "Take a list of integers; pad with zeros to at least three elements, then add one to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then order by distance from zero, then ensure at least three items by appending zeros.", "out": "举丸义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort based on absolute value, then ensure minimum length of three by adding zeros to the end.", "out": "举丸义"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then organize by magnitude, then ensure at least three items by appending zeros.", "out": "举丸义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then arrange by absolute value ascending, then ensure minimum length of three by adding zeros to the end.", "out": "举丸义"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from smallest to largest absolute value, then ensure at least three items by appending zeros.", "out": "举丸义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by absolute value, then ensure minimum length of three by adding zeros to the end.", "out": "举丸义"} {"kind": "builder", "in": "举丸义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "举丸义", "out": "Take a list of integers; drop the zeros, then sort by absolute value, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove repeated values, then find the max, defaulting to 0.", "out": "丸且业"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then unique values preserving order, then Give me the maximum, but 0 if there are no items.", "out": "丸且业"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove repeated values, then What's the highest number in the list.", "out": "丸且业"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then unique values preserving order, then Return the greatest value or default to 0.", "out": "丸且业"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove repeated values, then Find the largest element, defaulting to zero.", "out": "丸且业"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then unique values preserving order, then give the largest value (0 if none).", "out": "丸且业"} {"kind": "builder", "in": "丸且业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(dict.fromkeys(r))\n return max(r) if r else 0"} {"kind": "translator", "in": "丸且业", "out": "Take a list of integers; sort by absolute value, then drop duplicates keeping first occurrence, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then ensure at least three items by appending zeros.", "out": "不主义"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then ensure minimum length of three by adding zeros to the end.", "out": "不主义"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then ensure at least three items by appending zeros.", "out": "不主义"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then ensure minimum length of three by adding zeros to the end.", "out": "不主义"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then ensure at least three items by appending zeros.", "out": "不主义"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then ensure minimum length of three by adding zeros to the end.", "out": "不主义"} {"kind": "builder", "in": "不主义", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "不主义", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the list around, then bump each up by one.", "out": "举丐下"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then flip the order around, then increment each item.", "out": "举丐下"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then put the elements backwards, then bump each up by one.", "out": "举丐下"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then reverse that for me, then increment each item.", "out": "举丐下"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip it backwards, then bump each up by one.", "out": "举丐下"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then make it backwards, then increment each item.", "out": "举丐下"} {"kind": "builder", "in": "举丐下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "举丐下", "out": "Take a list of integers; drop the zeros, then reverse the order, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values divisible by 3, then stop at the first non-positive value.", "out": "举串乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep items where x mod 3 equals zero, then keep the leading run of positive numbers.", "out": "举串乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything not divisible by three, then take values while they are positive.", "out": "举串乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter out everything except multiples of three, then take positive values then stop.", "out": "举串乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only multiples of three, then keep going while positive.", "out": "举串乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiples of three only, then stop at first non positive.", "out": "举串乂"} {"kind": "builder", "in": "举串乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "举串乂", "out": "Take a list of integers; drop the zeros, then keep multiples of three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first 3 elements, then shift each up by ten.", "out": "丁丕丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove everything after the third, then increase all numbers by 10.", "out": "丁丕丽"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate to three items, then add 10 to everything.", "out": "丁丕丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then show the first three, then give everything a boost of 10.", "out": "丁丕丽"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first three, then increment each by ten.", "out": "丁丕丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep first 3, then add a constant 10 to each.", "out": "丁丕丽"} {"kind": "builder", "in": "丁丕丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:3]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丁丕丽", "out": "Take a list of integers; keep the odd numbers, then keep only the first three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then take values up to (excluding) the first zero.", "out": "且举久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then keep the part before the first 0.", "out": "且举久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then truncate at the first zero.", "out": "且举久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then delete everything starting with the first zero.", "out": "且举久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then remove from the first zero onwards.", "out": "且举久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then up to but not including the first zero.", "out": "且举久"} {"kind": "builder", "in": "且举久", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "且举久", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the zeros, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then decrement each value, then keep only numbers above 5.", "out": "一不主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Lower each number by one, then exclude values of 5 and below.", "out": "一不主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then reduce each by one, then remove anything 5 or less.", "out": "一不主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Subtract 1 from all, then filter to keep only values above 5.", "out": "一不主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Subtract one from each, then get rid of values that aren't greater than five.", "out": "一不主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Drop each by one, then drop anything 5 or below.", "out": "一不主"} {"kind": "builder", "in": "一不主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "一不主", "out": "Take a list of integers; keep the even numbers, then subtract one from each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increase every value by 10, then find the min, defaulting to 0.", "out": "丁丽丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then add 10 to each item, then minimum value, zero otherwise.", "out": "丁丽丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then shift each up by ten, then get the minimum value or zero if empty.", "out": "丁丽丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then increase all numbers by 10, then give me the min or 0.", "out": "丁丽丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then add 10 to everything, then return the smallest number, defaulting to 0.", "out": "丁丽丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give everything a boost of 10, then return smallest or zero if empty.", "out": "丁丽丛"} {"kind": "builder", "in": "丁丽丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 10 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丁丽丛", "out": "Take a list of integers; keep the odd numbers, then add ten to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then multiply each by two, then true if any value equals zero.", "out": "丑丈乍"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then double each item in the list, then check for zero.", "out": "丑丈乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then multiply each by two, then true if any value equals zero.", "out": "丑丈乍"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then double each item in the list, then check for zero.", "out": "丑丈乍"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then multiply each by two, then true if any value equals zero.", "out": "丑丈乍"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then double each item in the list, then check for zero.", "out": "丑丈乍"} {"kind": "builder", "in": "丑丈乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x * 2 for x in r]\n return 0 in r"} {"kind": "translator", "in": "丑丈乍", "out": "Take a list of integers; sort ascending, then double each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then true if at least one even value.", "out": "丈世之"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then any even.", "out": "丈世之"} {"kind": "builder", "in": "丈世之", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丈世之", "out": "Take a list of integers; double each, then drop the first element, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers, then arrange in increasing order.", "out": "且乂丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive, then Organize these ascending.", "out": "且乂丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop, then Sort in ascending order.", "out": "且乂丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive, then I need this sorted ascending.", "out": "且乂丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive, then Put these in ascending order.", "out": "且乂丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero, then sort smallest to largest.", "out": "且乂丑"} {"kind": "builder", "in": "且乂丑", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "且乂丑", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove repeated values, then arrange in increasing order.", "out": "丽且丑"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then unique values preserving order, then Organize these ascending.", "out": "丽且丑"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove repeated values, then Sort in ascending order.", "out": "丽且丑"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then unique values preserving order, then I need this sorted ascending.", "out": "丽且丑"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove repeated values, then Put these in ascending order.", "out": "丽且丑"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then unique values preserving order, then sort smallest to largest.", "out": "丽且丑"} {"kind": "builder", "in": "丽且丑", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丽且丑", "out": "Take a list of integers; add ten to each, then drop duplicates keeping first occurrence, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort smallest to largest, then truncate to three items.", "out": "主丑丕"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Ascending sort, then show the first three.", "out": "主丑丕"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then Sort this ascending, then take the first three.", "out": "主丑丕"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Sort lowest to highest, then keep first 3.", "out": "主丑丕"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Arrange from smallest to largest, then truncate to first three.", "out": "主丑丕"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort ascending, then first three.", "out": "主丑丕"} {"kind": "builder", "in": "主丑丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r)\n r = r[:3]\n return r"} {"kind": "translator", "in": "主丑丕", "out": "Take a list of integers; keep values greater than five, then sort ascending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the sign of each, then find the min, defaulting to 0.", "out": "丸与丛"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then turn positives to negatives and vice versa, then minimum value, zero otherwise.", "out": "丸与丛"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then flip the sign of each, then get the minimum value or zero if empty.", "out": "丸与丛"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn positives to negatives and vice versa, then give me the min or 0.", "out": "丸与丛"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip the sign of each, then return the smallest number, defaulting to 0.", "out": "丸与丛"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then turn positives to negatives and vice versa, then return smallest or zero if empty.", "out": "丸与丛"} {"kind": "builder", "in": "丸与丛", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [-x for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丸与丛", "out": "Take a list of integers; sort by absolute value, then negate each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values divisible by 3, then find the min, defaulting to 0.", "out": "七串丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep items where x mod 3 equals zero, then minimum value, zero otherwise.", "out": "七串丛"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then drop anything not divisible by three, then get the minimum value or zero if empty.", "out": "七串丛"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then filter out everything except multiples of three, then give me the min or 0.", "out": "七串丛"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only multiples of three, then return the smallest number, defaulting to 0.", "out": "七串丛"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then multiples of three only, then return smallest or zero if empty.", "out": "七串丛"} {"kind": "builder", "in": "七串丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "七串丛", "out": "Take a list of integers; keep the positive numbers, then keep multiples of three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then drop anything 5 or below, then limit every value to 10.", "out": "丁主丘"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only numbers greater than 5, then maximum of 10 for all.", "out": "丁主丘"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then filter for numbers above 5, then limit every value to 10.", "out": "丁主丘"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give me values where x is greater than 5, then maximum of 10 for all.", "out": "丁主丘"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then show me only the values that are bigger than five, then limit every value to 10.", "out": "丁主丘"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep values greater than five, then maximum of 10 for all.", "out": "丁主丘"} {"kind": "builder", "in": "丁主丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丁主丘", "out": "Take a list of integers; keep the odd numbers, then keep values greater than five, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort smallest to largest, then raise each to the power of two.", "out": "丸丑上"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Ascending sort, then I need each number multiplied by itself.", "out": "丸丑上"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then Sort this ascending, then square all of them.", "out": "丸丑上"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Sort lowest to highest, then multiply each element by itself.", "out": "丸丑上"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Arrange from smallest to largest, then make each one squared.", "out": "丸丑上"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort ascending, then square each value in the list.", "out": "丸丑上"} {"kind": "builder", "in": "丸丑上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丸丑上", "out": "Take a list of integers; sort by absolute value, then sort ascending, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep the leading run of positive numbers, then replace an empty list with one zero.", "out": "九乂么"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then take values while they are positive, then zero it out if it's empty.", "out": "九乂么"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take positive values then stop, then use zero if the list is empty.", "out": "九乂么"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep going while positive, then default to zero when empty.", "out": "九乂么"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then stop at first non positive, then if there's nothing, put in a zero.", "out": "九乂么"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take while greater than zero, then if no items, add a zero.", "out": "九乂么"} {"kind": "builder", "in": "九乂么", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "九乂么", "out": "Take a list of people records (name, age); extract the ages, then take values while they are positive, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then true if already sorted smallest to largest.", "out": "万丘乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then does this list go in ascending order.", "out": "万丘乎"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then check if the list is in ascending order.", "out": "万丘乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then is the list sorted.", "out": "万丘乎"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then is it sorted.", "out": "万丘乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then check if values are in increasing order.", "out": "万丘乎"} {"kind": "builder", "in": "万丘乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "万丘乎", "out": "Take a list of integers; keep the negative numbers, then cap each value at 10, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then clamp each to at most ten, then give the number of evens.", "out": "么丘乓"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then don't let anything exceed 10, then find how many values are divisible by two.", "out": "么丘乓"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then clamp each to at most ten, then how many are even.", "out": "么丘乓"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then don't let anything exceed 10, then get the total number of even values in the list.", "out": "么丘乓"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then clamp each to at most ten, then give me the count of even values.", "out": "么丘乓"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then don't let anything exceed 10, then I need to know how many of these are even.", "out": "么丘乓"} {"kind": "builder", "in": "么丘乓", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "么丘乓", "out": "Take a list of integers; if empty, use a single zero, then cap each value at 10, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increment each value, then stop at the first non-positive value.", "out": "专下乂"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then plus one for all, then keep the leading run of positive numbers.", "out": "专下乂"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then increment each value, then take values while they are positive.", "out": "专下乂"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then plus one for all, then take positive values then stop.", "out": "专下乂"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then increment each value, then keep going while positive.", "out": "专下乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then plus one for all, then stop at first non positive.", "out": "专下乂"} {"kind": "builder", "in": "专下乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "专下乂", "out": "Take a list of integers; sort descending, then add one to each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values divisible by 3, then deduplicate the list.", "out": "九串且"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep items where x mod 3 equals zero, then remove repeats.", "out": "九串且"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then drop anything not divisible by three, then deduplicate the list.", "out": "九串且"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then filter out everything except multiples of three, then remove repeats.", "out": "九串且"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only multiples of three, then deduplicate the list.", "out": "九串且"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiples of three only, then remove repeats.", "out": "九串且"} {"kind": "builder", "in": "九串且", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 3 == 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "九串且", "out": "Take a list of people records (name, age); extract the ages, then keep multiples of three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then truncate to three items.", "out": "七丘丕"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then show the first three.", "out": "七丘丕"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then take the first three.", "out": "七丘丕"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then keep first 3.", "out": "七丘丕"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then truncate to first three.", "out": "七丘丕"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then first three.", "out": "七丘丕"} {"kind": "builder", "in": "七丘丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "七丘丕", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the final 3 elements, then truncate to three items.", "out": "么丹丕"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then drop everything except the final three, then show the first three.", "out": "么丹丕"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then give me the last three elements, then take the first three.", "out": "么丹丕"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep only the last three, then keep first 3.", "out": "么丹丕"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep the final three items, then truncate to first three.", "out": "么丹丕"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the last three, then first three.", "out": "么丹丕"} {"kind": "builder", "in": "么丹丕", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[-3:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "么丹丕", "out": "Take a list of integers; if empty, use a single zero, then keep only the last three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values below zero, then give back the total.", "out": "丽万丙"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then get the negative numbers, then sum r.", "out": "丽万丙"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep values below zero, then add them up.", "out": "丽万丙"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then get the negative numbers, then calculate the sum of all elements.", "out": "丽万丙"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep values below zero, then what's the total.", "out": "丽万丙"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then get the negative numbers, then what do they add up to.", "out": "丽万丙"} {"kind": "builder", "in": "丽万丙", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x < 0]\n return sum(r)"} {"kind": "translator", "in": "丽万丙", "out": "Take a list of integers; add ten to each, then keep the negative numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around, then true if at least one even value.", "out": "下丐之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around, then any even.", "out": "下丐之"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards, then true if at least one even value.", "out": "下丐之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me, then any even.", "out": "下丐之"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards, then true if at least one even value.", "out": "下丐之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards, then any even.", "out": "下丐之"} {"kind": "builder", "in": "下丐之", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "下丐之", "out": "Take a list of integers; add one to each, then reverse the order, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then decrement each value, then keep only numbers above 5.", "out": "义不主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Lower each number by one, then exclude values of 5 and below.", "out": "义不主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then reduce each by one, then remove anything 5 or less.", "out": "义不主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Subtract 1 from all, then filter to keep only values above 5.", "out": "义不主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Subtract one from each, then get rid of values that aren't greater than five.", "out": "义不主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Drop each by one, then drop anything 5 or below.", "out": "义不主"} {"kind": "builder", "in": "义不主", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "义不主", "out": "Take a list of integers; pad with zeros to at least three elements, then subtract one from each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then reduce each by one.", "out": "与举不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then Subtract 1 from all.", "out": "与举不"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then Subtract one from each.", "out": "与举不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then Drop each by one.", "out": "与举不"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then Decrease all values by one.", "out": "与举不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then Remove one from each value.", "out": "与举不"} {"kind": "builder", "in": "与举不", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "与举不", "out": "Take a list of integers; negate each, then drop the zeros, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove all zero values, then true if every value is unique.", "out": "么举乏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then exclude zeros, then check for duplicates in the values.", "out": "么举乏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove all zero values, then do all values appear only once.", "out": "么举乏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then exclude zeros, then check that there are no duplicates.", "out": "么举乏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove all zero values, then are the values all unique.", "out": "么举乏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then exclude zeros, then check if all values are unique.", "out": "么举乏"} {"kind": "builder", "in": "么举乏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "么举乏", "out": "Take a list of integers; if empty, use a single zero, then drop the zeros, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then arrange by magnitude ignoring sign.", "out": "一丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then put them in order by magnitude.", "out": "一丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then arrange in order of absolute value.", "out": "一丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then sort by distance from zero.", "out": "一丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then order by how far from zero.", "out": "一丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then order by distance from zero.", "out": "一丈丸"} {"kind": "builder", "in": "一丈丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "一丈丸", "out": "Take a list of integers; keep the even numbers, then double each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each value by itself, then true if any value equals zero.", "out": "乂上乍"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then square them all, then check for zero.", "out": "乂上乍"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then raise each to the power of two, then true if any value equals zero.", "out": "乂上乍"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then I need each number multiplied by itself, then check for zero.", "out": "乂上乍"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then square all of them, then true if any value equals zero.", "out": "乂上乍"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiply each element by itself, then check for zero.", "out": "乂上乍"} {"kind": "builder", "in": "乂上乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n return 0 in r"} {"kind": "translator", "in": "乂上乍", "out": "Take a list of integers; take values while they are positive, then square each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two, then true if already sorted smallest to largest.", "out": "上丈乎"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list, then does this list go in ascending order.", "out": "上丈乎"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two, then check if the list is in ascending order.", "out": "上丈乎"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list, then is the list sorted.", "out": "上丈乎"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two, then is it sorted.", "out": "上丈乎"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list, then check if values are in increasing order.", "out": "上丈乎"} {"kind": "builder", "in": "上丈乎", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "上丈乎", "out": "Take a list of integers; square each, then double each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increment each value, then deduplicate the list.", "out": "久下且"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then plus one for all, then remove repeats.", "out": "久下且"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then increment each value, then deduplicate the list.", "out": "久下且"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then plus one for all, then remove repeats.", "out": "久下且"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then increment each value, then deduplicate the list.", "out": "久下且"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then plus one for all, then remove repeats.", "out": "久下且"} {"kind": "builder", "in": "久下且", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "久下且", "out": "Take a list of integers; keep everything before the first zero, then add one to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove the first item, then remove the initial run of negative numbers.", "out": "丕世乃"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Remove head, then strip the front negatives.", "out": "丕世乃"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the first item, then remove leading negative numbers.", "out": "丕世乃"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Remove head, then drop negatives from start.", "out": "丕世乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first item, then strip negative values from the start.", "out": "丕世乃"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Remove head, then remove negatives before the first non-negative.", "out": "丕世乃"} {"kind": "builder", "in": "丕世乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丕世乃", "out": "Take a list of integers; keep only the first three, then drop the first element, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then truncate to three items.", "out": "万为丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then show the first three.", "out": "万为丕"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then take the first three.", "out": "万为丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then keep first 3.", "out": "万为丕"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then truncate to first three.", "out": "万为丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then first three.", "out": "万为丕"} {"kind": "builder", "in": "万为丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = r[:3]\n return r"} {"kind": "translator", "in": "万为丕", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the list around, then make each twice as big.", "out": "七丐丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then flip the order around, then multiply each by 2.", "out": "七丐丈"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then put the elements backwards, then make each twice as big.", "out": "七丐丈"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then reverse that for me, then multiply each by 2.", "out": "七丐丈"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip it backwards, then make each twice as big.", "out": "七丐丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then make it backwards, then multiply each by 2.", "out": "七丐丈"} {"kind": "builder", "in": "七丐丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "七丐丈", "out": "Take a list of integers; keep the positive numbers, then reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then arrange by magnitude ignoring sign.", "out": "且丽丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then put them in order by magnitude.", "out": "且丽丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then arrange in order of absolute value.", "out": "且丽丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then sort by distance from zero.", "out": "且丽丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then order by how far from zero.", "out": "且丽丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then order by distance from zero.", "out": "且丽丸"} {"kind": "builder", "in": "且丽丸", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "且丽丸", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove all zero values, then find the min, defaulting to 0.", "out": "上举丛"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then exclude zeros, then minimum value, zero otherwise.", "out": "上举丛"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove all zero values, then get the minimum value or zero if empty.", "out": "上举丛"} {"kind": "speaker", "in": "Take a list of integers; square them all, then exclude zeros, then give me the min or 0.", "out": "上举丛"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove all zero values, then return the smallest number, defaulting to 0.", "out": "上举丛"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then exclude zeros, then return smallest or zero if empty.", "out": "上举丛"} {"kind": "builder", "in": "上举丛", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "上举丛", "out": "Take a list of integers; square each, then drop the zeros, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then order by distance from zero, then give the number of evens.", "out": "七丸乓"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort based on absolute value, then find how many values are divisible by two.", "out": "七丸乓"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then organize by magnitude, then how many are even.", "out": "七丸乓"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then arrange by absolute value ascending, then get the total number of even values in the list.", "out": "七丸乓"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort from smallest to largest absolute value, then give me the count of even values.", "out": "七丸乓"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort by absolute value, then I need to know how many of these are even.", "out": "七丸乓"} {"kind": "builder", "in": "七丸乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, key=abs)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "七丸乓", "out": "Take a list of integers; keep the positive numbers, then sort by absolute value, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then decrement each value, then true if any value equals zero.", "out": "丑不乍"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then Lower each number by one, then check for zero.", "out": "丑不乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then reduce each by one, then true if any value equals zero.", "out": "丑不乍"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then Subtract 1 from all, then check for zero.", "out": "丑不乍"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then Subtract one from each, then true if any value equals zero.", "out": "丑不乍"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then Drop each by one, then check for zero.", "out": "丑不乍"} {"kind": "builder", "in": "丑不乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x - 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "丑不乍", "out": "Take a list of integers; sort ascending, then subtract one from each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values divisible by 3, then truncate to three items.", "out": "世串丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep items where x mod 3 equals zero, then show the first three.", "out": "世串丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then drop anything not divisible by three, then take the first three.", "out": "世串丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter out everything except multiples of three, then keep first 3.", "out": "世串丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only multiples of three, then truncate to first three.", "out": "世串丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiples of three only, then first three.", "out": "世串丕"} {"kind": "builder", "in": "世串丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "世串丕", "out": "Take a list of integers; drop the first element, then keep multiples of three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest to smallest, then drop non-positive values.", "out": "丘专七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by descending values, then drop the negative numbers.", "out": "丘专七"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from highest to lowest, then filter out the negative ones.", "out": "丘专七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort descending, then remove all negative values.", "out": "丘专七"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest first, then keep positive values only.", "out": "丘专七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort in descending order, then keep values above zero.", "out": "丘专七"} {"kind": "builder", "in": "丘专七", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, reverse=True)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丘专七", "out": "Take a list of integers; cap each value at 10, then sort descending, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove both ends, then remove the initial run of negative numbers.", "out": "一为乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then trim the edges, then strip the front negatives.", "out": "一为乃"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then trim one element off each end, then remove leading negative numbers.", "out": "一为乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off the first and last, then drop negatives from start.", "out": "一为乃"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first and last elements, then strip negative values from the start.", "out": "一为乃"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the middle part, then remove negatives before the first non-negative.", "out": "一为乃"} {"kind": "builder", "in": "一为乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "一为乃", "out": "Take a list of integers; keep the even numbers, then drop the first and last elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then sort smallest to largest, then keep only numbers above 5.", "out": "久丑主"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Ascending sort, then exclude values of 5 and below.", "out": "久丑主"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then Sort this ascending, then remove anything 5 or less.", "out": "久丑主"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Sort lowest to highest, then filter to keep only values above 5.", "out": "久丑主"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Arrange from smallest to largest, then get rid of values that aren't greater than five.", "out": "久丑主"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort ascending, then drop anything 5 or below.", "out": "久丑主"} {"kind": "builder", "in": "久丑主", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "久丑主", "out": "Take a list of integers; keep everything before the first zero, then sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then remove repeated strings, then count characters across all strings.", "out": "丢丧个"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then keep unique strings first appearance, then character count.", "out": "丢丧个"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then eliminate repeated strings preserve first occurrence, then count all the characters.", "out": "丢丧个"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then drop duplicate strings keeping the first, then total number of characters.", "out": "丢丧个"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then dedupe, then what's the total character count.", "out": "丢丧个"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then remove duplicate strings keep first, then add up the lengths.", "out": "丢丧个"} {"kind": "builder", "in": "丢丧个", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = list(dict.fromkeys(r))\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "丢丧个", "out": "Take a list of strings; trim whitespace from each, then drop duplicate strings keeping the first, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start, then drop non-positive values.", "out": "专乃七"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front, then drop the negative numbers.", "out": "专乃七"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers, then filter out the negative ones.", "out": "专乃七"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives, then remove all negative values.", "out": "专乃七"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers, then keep positive values only.", "out": "专乃七"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start, then keep values above zero.", "out": "专乃七"} {"kind": "builder", "in": "专乃七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "专乃七", "out": "Take a list of integers; sort descending, then drop the leading negative values, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then clamp each to at most ten, then keep only numbers above 5.", "out": "久丘主"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then don't let anything exceed 10, then exclude values of 5 and below.", "out": "久丘主"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then clamp each to at most ten, then remove anything 5 or less.", "out": "久丘主"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then don't let anything exceed 10, then filter to keep only values above 5.", "out": "久丘主"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then clamp each to at most ten, then get rid of values that aren't greater than five.", "out": "久丘主"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then don't let anything exceed 10, then drop anything 5 or below.", "out": "久丘主"} {"kind": "builder", "in": "久丘主", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "久丘主", "out": "Take a list of integers; keep everything before the first zero, then cap each value at 10, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the list around, then true only if all are positive.", "out": "丁丐乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then flip the order around, then do all of these have positive values.", "out": "丁丐乌"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then put the elements backwards, then check if every value is positive.", "out": "丁丐乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then reverse that for me, then confirm all values are positive.", "out": "丁丐乌"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip it backwards, then all positive.", "out": "丁丐乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then make it backwards, then check if every number is above zero.", "out": "丁丐乌"} {"kind": "builder", "in": "丁丐乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丁丐乌", "out": "Take a list of integers; keep the odd numbers, then reverse the order, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove the first item, then replace an empty list with one zero.", "out": "不世么"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Remove head, then zero it out if it's empty.", "out": "不世么"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the first item, then use zero if the list is empty.", "out": "不世么"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Remove head, then default to zero when empty.", "out": "不世么"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove the first item, then if there's nothing, put in a zero.", "out": "不世么"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then Remove head, then if no items, add a zero.", "out": "不世么"} {"kind": "builder", "in": "不世么", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[1:]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "不世么", "out": "Take a list of integers; subtract one from each, then drop the first element, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the final 3 elements, then true if already sorted smallest to largest.", "out": "丁丹乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop everything except the final three, then does this list go in ascending order.", "out": "丁丹乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give me the last three elements, then check if the list is in ascending order.", "out": "丁丹乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the last three, then is the list sorted.", "out": "丁丹乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the final three items, then is it sorted.", "out": "丁丹乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the last three, then check if values are in increasing order.", "out": "丁丹乎"} {"kind": "builder", "in": "丁丹乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n return r == sorted(r)"} {"kind": "translator", "in": "丁丹乎", "out": "Take a list of integers; keep the odd numbers, then keep only the last three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements, then raise each to the power of two.", "out": "义丕上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third, then I need each number multiplied by itself.", "out": "义丕上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items, then square all of them.", "out": "义丕上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three, then multiply each element by itself.", "out": "义丕上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three, then make each one squared.", "out": "义丕上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3, then square each value in the list.", "out": "义丕上"} {"kind": "builder", "in": "义丕上", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "义丕上", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three, then square each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then find the max, defaulting to 0.", "out": "丑丘业"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then Give me the maximum, but 0 if there are no items.", "out": "丑丘业"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then What's the highest number in the list.", "out": "丑丘业"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then Return the greatest value or default to 0.", "out": "丑丘业"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then Find the largest element, defaulting to zero.", "out": "丑丘业"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then give the largest value (0 if none).", "out": "丑丘业"} {"kind": "builder", "in": "丑丘业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丑丘业", "out": "Take a list of integers; sort ascending, then cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove all zero values, then replace an empty list with one zero.", "out": "九举么"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then exclude zeros, then zero it out if it's empty.", "out": "九举么"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove all zero values, then use zero if the list is empty.", "out": "九举么"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then exclude zeros, then default to zero when empty.", "out": "九举么"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove all zero values, then if there's nothing, put in a zero.", "out": "九举么"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then exclude zeros, then if no items, add a zero.", "out": "九举么"} {"kind": "builder", "in": "九举么", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "九举么", "out": "Take a list of people records (name, age); extract the ages, then drop the zeros, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove both ends, then give the earliest even value or zero.", "out": "丸为乒"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then trim the edges, then fetch the first even element, default to 0.", "out": "丸为乒"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then trim one element off each end, then give the earliest even value or zero.", "out": "丸为乒"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then cut off the first and last, then fetch the first even element, default to 0.", "out": "丸为乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first and last elements, then give the earliest even value or zero.", "out": "丸为乒"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep only the middle part, then fetch the first even element, default to 0.", "out": "丸为乒"} {"kind": "builder", "in": "丸为乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:-1]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丸为乒", "out": "Take a list of integers; sort by absolute value, then drop the first and last elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then true if at least one even value.", "out": "且世之"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then any even.", "out": "且世之"} {"kind": "builder", "in": "且世之", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "且世之", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first element, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then true if at least one even value.", "out": "世一之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then any even.", "out": "世一之"} {"kind": "builder", "in": "世一之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "世一之", "out": "Take a list of integers; drop the first element, then keep the even numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then keep only strings of length 3 or more, then count characters across all strings.", "out": "两乗个"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then get rid of short ones, then character count.", "out": "两乗个"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then remove strings with less than three characters, then count all the characters.", "out": "两乗个"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then remove all strings under three characters in length, then total number of characters.", "out": "两乗个"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then filter out short strings under three chars, then what's the total character count.", "out": "两乗个"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then drop strings shorter than three characters, then add up the lengths.", "out": "两乗个"} {"kind": "builder", "in": "两乗个", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s for s in r if len(s) >= 3]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "两乗个", "out": "Take a list of strings; drop empty strings, then drop strings shorter than three characters, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then shift each up by ten.", "out": "九么丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then increase all numbers by 10.", "out": "九么丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then add 10 to everything.", "out": "九么丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then give everything a boost of 10.", "out": "九么丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then increment each by ten.", "out": "九么丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then add a constant 10 to each.", "out": "九么丽"} {"kind": "builder", "in": "九么丽", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "九么丽", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each value by itself, then skip the first one.", "out": "举上世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then square them all, then Discard the first element.", "out": "举上世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then raise each to the power of two, then skip the first one.", "out": "举上世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then I need each number multiplied by itself, then Discard the first element.", "out": "举上世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then square all of them, then skip the first one.", "out": "举上世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiply each element by itself, then Discard the first element.", "out": "举上世"} {"kind": "builder", "in": "举上世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "举上世", "out": "Take a list of integers; drop the zeros, then square each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each value by itself, then take values up to (excluding) the first zero.", "out": "世上久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then square them all, then keep the part before the first 0.", "out": "世上久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then raise each to the power of two, then truncate at the first zero.", "out": "世上久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then I need each number multiplied by itself, then delete everything starting with the first zero.", "out": "世上久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then square all of them, then remove from the first zero onwards.", "out": "世上久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiply each element by itself, then up to but not including the first zero.", "out": "世上久"} {"kind": "builder", "in": "世上久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "世上久", "out": "Take a list of integers; drop the first element, then square each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only even values, then true if any value equals zero.", "out": "串一乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then extract all even numbers, then check for zero.", "out": "串一乍"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only even values, then true if any value equals zero.", "out": "串一乍"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then extract all even numbers, then check for zero.", "out": "串一乍"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only even values, then true if any value equals zero.", "out": "串一乍"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then extract all even numbers, then check for zero.", "out": "串一乍"} {"kind": "builder", "in": "串一乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 == 0]\n return 0 in r"} {"kind": "translator", "in": "串一乍", "out": "Take a list of integers; keep multiples of three, then keep the even numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start, then give the earliest even value or zero.", "out": "专乃乒"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front, then fetch the first even element, default to 0.", "out": "专乃乒"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers, then give the earliest even value or zero.", "out": "专乃乒"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives, then fetch the first even element, default to 0.", "out": "专乃乒"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers, then give the earliest even value or zero.", "out": "专乃乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start, then fetch the first even element, default to 0.", "out": "专乃乒"} {"kind": "builder", "in": "专乃乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "专乃乒", "out": "Take a list of integers; sort descending, then drop the leading negative values, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then decrement each value, then keep only numbers above 5.", "out": "丹不主"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Lower each number by one, then exclude values of 5 and below.", "out": "丹不主"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then reduce each by one, then remove anything 5 or less.", "out": "丹不主"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Subtract 1 from all, then filter to keep only values above 5.", "out": "丹不主"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Subtract one from each, then get rid of values that aren't greater than five.", "out": "丹不主"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Drop each by one, then drop anything 5 or below.", "out": "丹不主"} {"kind": "builder", "in": "丹不主", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丹不主", "out": "Take a list of integers; keep only the last three, then subtract one from each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then drop anything 5 or below, then truncate to three items.", "out": "乂主丕"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep only numbers greater than 5, then show the first three.", "out": "乂主丕"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then filter for numbers above 5, then take the first three.", "out": "乂主丕"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then give me values where x is greater than 5, then keep first 3.", "out": "乂主丕"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then show me only the values that are bigger than five, then truncate to first three.", "out": "乂主丕"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep values greater than five, then first three.", "out": "乂主丕"} {"kind": "builder", "in": "乂主丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 5]\n r = r[:3]\n return r"} {"kind": "translator", "in": "乂主丕", "out": "Take a list of integers; take values while they are positive, then keep values greater than five, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then count the elements.", "out": "下万东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then how many items remain.", "out": "下万东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then tell me the length.", "out": "下万东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then return the length.", "out": "下万东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then count them.", "out": "下万东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then what's the count.", "out": "下万东"} {"kind": "builder", "in": "下万东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n return len(r)"} {"kind": "translator", "in": "下万东", "out": "Take a list of integers; add one to each, then keep the negative numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only even values, then ensure at least three items by appending zeros.", "out": "万一义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "万一义"} {"kind": "builder", "in": "万一义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "万一义", "out": "Take a list of integers; keep the negative numbers, then keep the even numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then true if every value is unique.", "out": "且一乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then check for duplicates in the values.", "out": "且一乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then do all values appear only once.", "out": "且一乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then check that there are no duplicates.", "out": "且一乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then are the values all unique.", "out": "且一乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then check if all values are unique.", "out": "且一乏"} {"kind": "builder", "in": "且一乏", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "且一乏", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the even numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only odd values, then replace an empty list with one zero.", "out": "专丁么"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then eliminate the even numbers, then zero it out if it's empty.", "out": "专丁么"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only odd values, then use zero if the list is empty.", "out": "专丁么"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then eliminate the even numbers, then default to zero when empty.", "out": "专丁么"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only odd values, then if there's nothing, put in a zero.", "out": "专丁么"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then eliminate the even numbers, then if no items, add a zero.", "out": "专丁么"} {"kind": "builder", "in": "专丁么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "专丁么", "out": "Take a list of integers; sort descending, then keep the odd numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start, then give back the total.", "out": "专乃丙"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front, then sum r.", "out": "专乃丙"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers, then add them up.", "out": "专乃丙"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives, then calculate the sum of all elements.", "out": "专乃丙"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers, then what's the total.", "out": "专乃丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start, then what do they add up to.", "out": "专乃丙"} {"kind": "builder", "in": "专乃丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return sum(r)"} {"kind": "translator", "in": "专乃丙", "out": "Take a list of integers; sort descending, then drop the leading negative values, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then drop anything 5 or below, then arrange by magnitude ignoring sign.", "out": "丕主丸"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then keep only numbers greater than 5, then put them in order by magnitude.", "out": "丕主丸"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then filter for numbers above 5, then arrange in order of absolute value.", "out": "丕主丸"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then give me values where x is greater than 5, then sort by distance from zero.", "out": "丕主丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then show me only the values that are bigger than five, then order by how far from zero.", "out": "丕主丸"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep values greater than five, then order by distance from zero.", "out": "丕主丸"} {"kind": "builder", "in": "丕主丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丕主丸", "out": "Take a list of integers; keep only the first three, then keep values greater than five, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; negate each, then skip negatives at the start, then replace an empty list with one zero.", "out": "与乃么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then remove all negatives at the front, then zero it out if it's empty.", "out": "与乃么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the initial run of negative numbers, then use zero if the list is empty.", "out": "与乃么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then strip the front negatives, then default to zero when empty.", "out": "与乃么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove leading negative numbers, then if there's nothing, put in a zero.", "out": "与乃么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop negatives from start, then if no items, add a zero.", "out": "与乃么"} {"kind": "builder", "in": "与乃么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与乃么", "out": "Take a list of integers; negate each, then drop the leading negative values, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then make every value non-negative, then drop the odd numbers.", "out": "乂丏一"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then absolute value for all items, then filter out the odd numbers.", "out": "乂丏一"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then take absolute values, then drop the odd numbers.", "out": "乂丏一"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then turn negatives into positives, then filter out the odd numbers.", "out": "乂丏一"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then abs each element, then drop the odd numbers.", "out": "乂丏一"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the absolute value of each, then filter out the odd numbers.", "out": "乂丏一"} {"kind": "builder", "in": "乂丏一", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "乂丏一", "out": "Take a list of integers; take values while they are positive, then take the absolute value of each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each by two, then skip the first one.", "out": "串丈世"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then double each item in the list, then Discard the first element.", "out": "串丈世"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then multiply each by two, then skip the first one.", "out": "串丈世"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then double each item in the list, then Discard the first element.", "out": "串丈世"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then multiply each by two, then skip the first one.", "out": "串丈世"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then double each item in the list, then Discard the first element.", "out": "串丈世"} {"kind": "builder", "in": "串丈世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "串丈世", "out": "Take a list of integers; keep multiples of three, then double each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove both ends, then deduplicate the list.", "out": "丹为且"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then trim the edges, then remove repeats.", "out": "丹为且"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then trim one element off each end, then deduplicate the list.", "out": "丹为且"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then cut off the first and last, then remove repeats.", "out": "丹为且"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first and last elements, then deduplicate the list.", "out": "丹为且"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep only the middle part, then remove repeats.", "out": "丹为且"} {"kind": "builder", "in": "丹为且", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:-1]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丹为且", "out": "Take a list of integers; keep only the last three, then drop the first and last elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove repeated values, then raise each to the power of two.", "out": "丐且上"} {"kind": "speaker", "in": "Take a list of integers; reverse, then unique values preserving order, then I need each number multiplied by itself.", "out": "丐且上"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove repeated values, then square all of them.", "out": "丐且上"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then unique values preserving order, then multiply each element by itself.", "out": "丐且上"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove repeated values, then make each one squared.", "out": "丐且上"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then unique values preserving order, then square each value in the list.", "out": "丐且上"} {"kind": "builder", "in": "丐且上", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丐且上", "out": "Take a list of integers; reverse the order, then drop duplicates keeping first occurrence, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then order by distance from zero, then find the min, defaulting to 0.", "out": "久丸丛"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort based on absolute value, then minimum value, zero otherwise.", "out": "久丸丛"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then organize by magnitude, then get the minimum value or zero if empty.", "out": "久丸丛"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then arrange by absolute value ascending, then give me the min or 0.", "out": "久丸丛"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort from smallest to largest absolute value, then return the smallest number, defaulting to 0.", "out": "久丸丛"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort by absolute value, then return smallest or zero if empty.", "out": "久丸丛"} {"kind": "builder", "in": "久丸丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return min(r) if r else 0"} {"kind": "translator", "in": "久丸丛", "out": "Take a list of integers; keep everything before the first zero, then sort by absolute value, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then decrement each value, then give back the product of all values.", "out": "丹不乐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Lower each number by one, then product of the list.", "out": "丹不乐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then reduce each by one, then what's the product.", "out": "丹不乐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Subtract 1 from all, then what do they multiply to.", "out": "丹不乐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Subtract one from each, then give me their product.", "out": "丹不乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Drop each by one, then multiply them all together.", "out": "丹不乐"} {"kind": "builder", "in": "丹不乐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x - 1 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丹不乐", "out": "Take a list of integers; keep only the last three, then subtract one from each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then true only if all are positive.", "out": "丏丕乌"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then do all of these have positive values.", "out": "丏丕乌"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then check if every value is positive.", "out": "丏丕乌"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then confirm all values are positive.", "out": "丏丕乌"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then all positive.", "out": "丏丕乌"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then check if every number is above zero.", "out": "丏丕乌"} {"kind": "builder", "in": "丏丕乌", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丏丕乌", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increase every value by 10, then make each twice as big.", "out": "与丽丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then add 10 to each item, then multiply each by 2.", "out": "与丽丈"} {"kind": "speaker", "in": "Take a list of integers; negate each, then shift each up by ten, then make each twice as big.", "out": "与丽丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then increase all numbers by 10, then multiply each by 2.", "out": "与丽丈"} {"kind": "speaker", "in": "Take a list of integers; negate each, then add 10 to everything, then make each twice as big.", "out": "与丽丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give everything a boost of 10, then multiply each by 2.", "out": "与丽丈"} {"kind": "builder", "in": "与丽丈", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "与丽丈", "out": "Take a list of integers; negate each, then add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values divisible by 3, then true if any value equals zero.", "out": "一串乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep items where x mod 3 equals zero, then check for zero.", "out": "一串乍"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything not divisible by three, then true if any value equals zero.", "out": "一串乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter out everything except multiples of three, then check for zero.", "out": "一串乍"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only multiples of three, then true if any value equals zero.", "out": "一串乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiples of three only, then check for zero.", "out": "一串乍"} {"kind": "builder", "in": "一串乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return 0 in r"} {"kind": "translator", "in": "一串乍", "out": "Take a list of integers; keep the even numbers, then keep multiples of three, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values divisible by 3, then make each twice as big.", "out": "久串丈"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep items where x mod 3 equals zero, then multiply each by 2.", "out": "久串丈"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then drop anything not divisible by three, then make each twice as big.", "out": "久串丈"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then filter out everything except multiples of three, then multiply each by 2.", "out": "久串丈"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only multiples of three, then make each twice as big.", "out": "久串丈"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiples of three only, then multiply each by 2.", "out": "久串丈"} {"kind": "builder", "in": "久串丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "久串丈", "out": "Take a list of integers; keep everything before the first zero, then keep multiples of three, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then cut the list at the first zero, then shift each up by ten.", "out": "为久丽"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then cut off after the first zero appears, then increase all numbers by 10.", "out": "为久丽"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take values up to (excluding) the first zero, then add 10 to everything.", "out": "为久丽"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the part before the first 0, then give everything a boost of 10.", "out": "为久丽"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then truncate at the first zero, then increment each by ten.", "out": "为久丽"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then delete everything starting with the first zero, then add a constant 10 to each.", "out": "为久丽"} {"kind": "builder", "in": "为久丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "为久丽", "out": "Take a list of integers; drop the first and last elements, then keep everything before the first zero, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values divisible by 3, then give the earliest even value or zero.", "out": "一串乒"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep items where x mod 3 equals zero, then fetch the first even element, default to 0.", "out": "一串乒"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything not divisible by three, then give the earliest even value or zero.", "out": "一串乒"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter out everything except multiples of three, then fetch the first even element, default to 0.", "out": "一串乒"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only multiples of three, then give the earliest even value or zero.", "out": "一串乒"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiples of three only, then fetch the first even element, default to 0.", "out": "一串乒"} {"kind": "builder", "in": "一串乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "一串乒", "out": "Take a list of integers; keep the even numbers, then keep multiples of three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort smallest to largest, then make each twice as big.", "out": "丹丑丈"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Ascending sort, then multiply each by 2.", "out": "丹丑丈"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then Sort this ascending, then make each twice as big.", "out": "丹丑丈"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Sort lowest to highest, then multiply each by 2.", "out": "丹丑丈"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Arrange from smallest to largest, then make each twice as big.", "out": "丹丑丈"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort ascending, then multiply each by 2.", "out": "丹丑丈"} {"kind": "builder", "in": "丹丑丈", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丹丑丈", "out": "Take a list of integers; keep only the last three, then sort ascending, then double each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove both ends, then count the elements.", "out": "丐为东"} {"kind": "speaker", "in": "Take a list of integers; reverse, then trim the edges, then how many items remain.", "out": "丐为东"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then trim one element off each end, then tell me the length.", "out": "丐为东"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then cut off the first and last, then return the length.", "out": "丐为东"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first and last elements, then count them.", "out": "丐为东"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep only the middle part, then what's the count.", "out": "丐为东"} {"kind": "builder", "in": "丐为东", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:-1]\n return len(r)"} {"kind": "translator", "in": "丐为东", "out": "Take a list of integers; reverse the order, then drop the first and last elements, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove repeated values, then strip the signs.", "out": "举且丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then unique values preserving order, then take abs of each.", "out": "举且丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove repeated values, then get the absolute value of everything.", "out": "举且丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then unique values preserving order, then apply absolute value to the whole list.", "out": "举且丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove repeated values, then make them all positive.", "out": "举且丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then unique values preserving order, then make every value non-negative.", "out": "举且丏"} {"kind": "builder", "in": "举且丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(dict.fromkeys(r))\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举且丏", "out": "Take a list of integers; drop the zeros, then drop duplicates keeping first occurrence, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then decrement each value, then trim one element off each end.", "out": "丈不为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Lower each number by one, then cut off the first and last.", "out": "丈不为"} {"kind": "speaker", "in": "Take a list of integers; double each, then reduce each by one, then remove the first and last elements.", "out": "丈不为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Subtract 1 from all, then keep only the middle part.", "out": "丈不为"} {"kind": "speaker", "in": "Take a list of integers; double each, then Subtract one from each, then drop first and last.", "out": "丈不为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Drop each by one, then eliminate the outermost elements.", "out": "丈不为"} {"kind": "builder", "in": "丈不为", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丈不为", "out": "Take a list of integers; double each, then subtract one from each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then convert each to upper case, then deduplicate the strings.", "out": "两丟丧"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then change all strings to uppercase, then filter out duplicate strings retain first.", "out": "两丟丧"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then make every string uppercase, then strip duplicates preserve order.", "out": "两丟丧"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then uppercase each one, then remove repeated strings.", "out": "两丟丧"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then make all the strings uppercase, then keep unique strings first appearance.", "out": "两丟丧"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then convert all strings to uppercase letters, then eliminate repeated strings preserve first occurrence.", "out": "两丟丧"} {"kind": "builder", "in": "两丟丧", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.upper() for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "两丟丧", "out": "Take a list of strings; drop empty strings, then uppercase each string, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything 5 or below, then truncate to the last three items.", "out": "丈主丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only numbers greater than 5, then show only the last three.", "out": "丈主丹"} {"kind": "speaker", "in": "Take a list of integers; double each, then filter for numbers above 5, then remove all but the last three.", "out": "丈主丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me values where x is greater than 5, then take the final 3 elements.", "out": "丈主丹"} {"kind": "speaker", "in": "Take a list of integers; double each, then show me only the values that are bigger than five, then drop everything except the final three.", "out": "丈主丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep values greater than five, then give me the last three elements.", "out": "丈主丹"} {"kind": "builder", "in": "丈主丹", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丈主丹", "out": "Take a list of integers; double each, then keep values greater than five, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then deduplicate the list.", "out": "一下且"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then remove repeats.", "out": "一下且"} {"kind": "builder", "in": "一下且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "一下且", "out": "Take a list of integers; keep the even numbers, then add one to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the first 3 elements, then deduplicate the list.", "out": "么丕且"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove everything after the third, then remove repeats.", "out": "么丕且"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then truncate to three items, then deduplicate the list.", "out": "么丕且"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then show the first three, then remove repeats.", "out": "么丕且"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then take the first three, then deduplicate the list.", "out": "么丕且"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep first 3, then remove repeats.", "out": "么丕且"} {"kind": "builder", "in": "么丕且", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:3]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "么丕且", "out": "Take a list of integers; if empty, use a single zero, then keep only the first three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each value by itself, then keep only non-zero numbers.", "out": "丘上举"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then square them all, then strip the zeros.", "out": "丘上举"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then raise each to the power of two, then keep only non-zero numbers.", "out": "丘上举"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then I need each number multiplied by itself, then strip the zeros.", "out": "丘上举"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then square all of them, then keep only non-zero numbers.", "out": "丘上举"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiply each element by itself, then strip the zeros.", "out": "丘上举"} {"kind": "builder", "in": "丘上举", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * x for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丘上举", "out": "Take a list of integers; cap each value at 10, then square each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort largest to smallest, then truncate to three items.", "out": "丹专丕"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort by descending values, then show the first three.", "out": "丹专丕"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then sort from highest to lowest, then take the first three.", "out": "丹专丕"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then sort descending, then keep first 3.", "out": "丹专丕"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort largest first, then truncate to first three.", "out": "丹专丕"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort in descending order, then first three.", "out": "丹专丕"} {"kind": "builder", "in": "丹专丕", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, reverse=True)\n r = r[:3]\n return r"} {"kind": "translator", "in": "丹专丕", "out": "Take a list of integers; keep only the last three, then sort descending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then cut the list at the first zero, then keep only non-zero numbers.", "out": "丁久举"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off after the first zero appears, then strip the zeros.", "out": "丁久举"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take values up to (excluding) the first zero, then keep only non-zero numbers.", "out": "丁久举"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the part before the first 0, then strip the zeros.", "out": "丁久举"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate at the first zero, then keep only non-zero numbers.", "out": "丁久举"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then delete everything starting with the first zero, then strip the zeros.", "out": "丁久举"} {"kind": "builder", "in": "丁久举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丁久举", "out": "Take a list of integers; keep the odd numbers, then keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove repeated values, then drop non-negative values.", "out": "七且万"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then unique values preserving order, then drop all positive numbers.", "out": "七且万"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove repeated values, then drop non-negative values.", "out": "七且万"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then unique values preserving order, then drop all positive numbers.", "out": "七且万"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove repeated values, then drop non-negative values.", "out": "七且万"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then unique values preserving order, then drop all positive numbers.", "out": "七且万"} {"kind": "builder", "in": "七且万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "七且万", "out": "Take a list of integers; keep the positive numbers, then drop duplicates keeping first occurrence, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative, then shift each up by ten.", "out": "与丏丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items, then increase all numbers by 10.", "out": "与丏丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values, then add 10 to everything.", "out": "与丏丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives, then give everything a boost of 10.", "out": "与丏丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element, then increment each by ten.", "out": "与丏丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each, then add a constant 10 to each.", "out": "与丏丽"} {"kind": "builder", "in": "与丏丽", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "与丏丽", "out": "Take a list of integers; negate each, then take the absolute value of each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then keep only non-zero numbers.", "out": "丐丈举"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then strip the zeros.", "out": "丐丈举"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then keep only non-zero numbers.", "out": "丐丈举"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then strip the zeros.", "out": "丐丈举"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then keep only non-zero numbers.", "out": "丐丈举"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then strip the zeros.", "out": "丐丈举"} {"kind": "builder", "in": "丐丈举", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丐丈举", "out": "Take a list of integers; reverse the order, then double each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the final 3 elements, then true if every value is unique.", "out": "为丹乏"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then drop everything except the final three, then check for duplicates in the values.", "out": "为丹乏"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give me the last three elements, then do all values appear only once.", "out": "为丹乏"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep only the last three, then check that there are no duplicates.", "out": "为丹乏"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep the final three items, then are the values all unique.", "out": "为丹乏"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the last three, then check if all values are unique.", "out": "为丹乏"} {"kind": "builder", "in": "为丹乏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[-3:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "为丹乏", "out": "Take a list of integers; drop the first and last elements, then keep only the last three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first item, then keep only non-zero numbers.", "out": "与世举"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Remove head, then strip the zeros.", "out": "与世举"} {"kind": "builder", "in": "与世举", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[1:]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "与世举", "out": "Take a list of integers; negate each, then drop the first element, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then clamp each to at most ten, then arrange in increasing order.", "out": "丹丘丑"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then don't let anything exceed 10, then Organize these ascending.", "out": "丹丘丑"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then clamp each to at most ten, then Sort in ascending order.", "out": "丹丘丑"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then don't let anything exceed 10, then I need this sorted ascending.", "out": "丹丘丑"} {"kind": "speaker", "in": "Take a list of integers; last three only, then clamp each to at most ten, then Put these in ascending order.", "out": "丹丘丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then don't let anything exceed 10, then sort smallest to largest.", "out": "丹丘丑"} {"kind": "builder", "in": "丹丘丑", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丹丘丑", "out": "Take a list of integers; keep only the last three, then cap each value at 10, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values divisible by 3, then deduplicate the list.", "out": "下串且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep items where x mod 3 equals zero, then remove repeats.", "out": "下串且"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything not divisible by three, then deduplicate the list.", "out": "下串且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter out everything except multiples of three, then remove repeats.", "out": "下串且"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only multiples of three, then deduplicate the list.", "out": "下串且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiples of three only, then remove repeats.", "out": "下串且"} {"kind": "builder", "in": "下串且", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "下串且", "out": "Take a list of integers; add one to each, then keep multiples of three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only odd values, then trim one element off each end.", "out": "专丁为"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then eliminate the even numbers, then cut off the first and last.", "out": "专丁为"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only odd values, then remove the first and last elements.", "out": "专丁为"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then eliminate the even numbers, then keep only the middle part.", "out": "专丁为"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only odd values, then drop first and last.", "out": "专丁为"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then eliminate the even numbers, then eliminate the outermost elements.", "out": "专丁为"} {"kind": "builder", "in": "专丁为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "专丁为", "out": "Take a list of integers; sort descending, then keep the odd numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then take the first 3 elements, then arrange by magnitude ignoring sign.", "out": "丑丕丸"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove everything after the third, then put them in order by magnitude.", "out": "丑丕丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then truncate to three items, then arrange in order of absolute value.", "out": "丑丕丸"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then show the first three, then sort by distance from zero.", "out": "丑丕丸"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then take the first three, then order by how far from zero.", "out": "丑丕丸"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep first 3, then order by distance from zero.", "out": "丑丕丸"} {"kind": "builder", "in": "丑丕丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:3]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丑丕丸", "out": "Take a list of integers; sort ascending, then keep only the first three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then find the max, defaulting to 0.", "out": "万丘业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then Give me the maximum, but 0 if there are no items.", "out": "万丘业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then What's the highest number in the list.", "out": "万丘业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then Return the greatest value or default to 0.", "out": "万丘业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then Find the largest element, defaulting to zero.", "out": "万丘业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then give the largest value (0 if none).", "out": "万丘业"} {"kind": "builder", "in": "万丘业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "万丘业", "out": "Take a list of integers; keep the negative numbers, then cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increment each value, then replace an empty list with one zero.", "out": "丐下么"} {"kind": "speaker", "in": "Take a list of integers; reverse, then plus one for all, then zero it out if it's empty.", "out": "丐下么"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then increment each value, then use zero if the list is empty.", "out": "丐下么"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then plus one for all, then default to zero when empty.", "out": "丐下么"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then increment each value, then if there's nothing, put in a zero.", "out": "丐下么"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then plus one for all, then if no items, add a zero.", "out": "丐下么"} {"kind": "builder", "in": "丐下么", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丐下么", "out": "Take a list of integers; reverse the order, then add one to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then make every value non-negative, then limit every value to 10.", "out": "举丏丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then absolute value for all items, then maximum of 10 for all.", "out": "举丏丘"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take absolute values, then limit every value to 10.", "out": "举丏丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn negatives into positives, then maximum of 10 for all.", "out": "举丏丘"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then abs each element, then limit every value to 10.", "out": "举丏丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the absolute value of each, then maximum of 10 for all.", "out": "举丏丘"} {"kind": "builder", "in": "举丏丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [abs(x) for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "举丏丘", "out": "Take a list of integers; drop the zeros, then take the absolute value of each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then drop anything 5 or below, then remove the initial run of negative numbers.", "out": "丑主乃"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep only numbers greater than 5, then strip the front negatives.", "out": "丑主乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then filter for numbers above 5, then remove leading negative numbers.", "out": "丑主乃"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then give me values where x is greater than 5, then drop negatives from start.", "out": "丑主乃"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then show me only the values that are bigger than five, then strip negative values from the start.", "out": "丑主乃"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep values greater than five, then remove negatives before the first non-negative.", "out": "丑主乃"} {"kind": "builder", "in": "丑主乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 5]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丑主乃", "out": "Take a list of integers; sort ascending, then keep values greater than five, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the leading run of positive numbers, then drop anything not divisible by three.", "out": "一乂串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take values while they are positive, then filter out everything except multiples of three.", "out": "一乂串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take positive values then stop, then keep only multiples of three.", "out": "一乂串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep going while positive, then multiples of three only.", "out": "一乂串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then stop at first non positive, then filter for numbers divisible by three.", "out": "一乂串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take while greater than zero, then give me only the values divisible by three.", "out": "一乂串"} {"kind": "builder", "in": "一乂串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "一乂串", "out": "Take a list of integers; keep the even numbers, then take values while they are positive, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values above zero, then multiply each by -1.", "out": "九七与"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then filter for positive numbers, then negate.", "out": "九七与"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only positive numbers, then multiply each by -1.", "out": "九七与"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the positives, then negate.", "out": "九七与"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove negatives, then multiply each by -1.", "out": "九七与"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep the positive numbers, then negate.", "out": "九七与"} {"kind": "builder", "in": "九七与", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "九七与", "out": "Take a list of people records (name, age); extract the ages, then keep the positive numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increase every value by 10, then give back the total.", "out": "丕丽丙"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add 10 to each item, then sum r.", "out": "丕丽丙"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then shift each up by ten, then add them up.", "out": "丕丽丙"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then increase all numbers by 10, then calculate the sum of all elements.", "out": "丕丽丙"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add 10 to everything, then what's the total.", "out": "丕丽丙"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give everything a boost of 10, then what do they add up to.", "out": "丕丽丙"} {"kind": "builder", "in": "丕丽丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 10 for x in r]\n return sum(r)"} {"kind": "translator", "in": "丕丽丙", "out": "Take a list of integers; keep only the first three, then add ten to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then sort smallest to largest, then bump each up by one.", "out": "丽丑下"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Ascending sort, then increment each item.", "out": "丽丑下"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then Sort this ascending, then bump each up by one.", "out": "丽丑下"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Sort lowest to highest, then increment each item.", "out": "丽丑下"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Arrange from smallest to largest, then bump each up by one.", "out": "丽丑下"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort ascending, then increment each item.", "out": "丽丑下"} {"kind": "builder", "in": "丽丑下", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r)\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丽丑下", "out": "Take a list of integers; add ten to each, then sort ascending, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero, then find the min, defaulting to 0.", "out": "乂丸丛"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value, then minimum value, zero otherwise.", "out": "乂丸丛"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude, then get the minimum value or zero if empty.", "out": "乂丸丛"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending, then give me the min or 0.", "out": "乂丸丛"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value, then return the smallest number, defaulting to 0.", "out": "乂丸丛"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value, then return smallest or zero if empty.", "out": "乂丸丛"} {"kind": "builder", "in": "乂丸丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n return min(r) if r else 0"} {"kind": "translator", "in": "乂丸丛", "out": "Take a list of integers; take values while they are positive, then sort by absolute value, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements, then stop at the first non-positive value.", "out": "义丕乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third, then keep the leading run of positive numbers.", "out": "义丕乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items, then take values while they are positive.", "out": "义丕乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three, then take positive values then stop.", "out": "义丕乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three, then keep going while positive.", "out": "义丕乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3, then stop at first non positive.", "out": "义丕乂"} {"kind": "builder", "in": "义丕乂", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "义丕乂", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the leading run of positive numbers, then reduce each by one.", "out": "丘乂不"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take values while they are positive, then Subtract 1 from all.", "out": "丘乂不"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take positive values then stop, then Subtract one from each.", "out": "丘乂不"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep going while positive, then Drop each by one.", "out": "丘乂不"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then stop at first non positive, then Decrease all values by one.", "out": "丘乂不"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take while greater than zero, then Remove one from each value.", "out": "丘乂不"} {"kind": "builder", "in": "丘乂不", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丘乂不", "out": "Take a list of integers; cap each value at 10, then take values while they are positive, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep only odd values, then find the min, defaulting to 0.", "out": "丸丁丛"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then eliminate the even numbers, then minimum value, zero otherwise.", "out": "丸丁丛"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only odd values, then get the minimum value or zero if empty.", "out": "丸丁丛"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then eliminate the even numbers, then give me the min or 0.", "out": "丸丁丛"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only odd values, then return the smallest number, defaulting to 0.", "out": "丸丁丛"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then eliminate the even numbers, then return smallest or zero if empty.", "out": "丸丁丛"} {"kind": "builder", "in": "丸丁丛", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "丸丁丛", "out": "Take a list of integers; sort by absolute value, then keep the odd numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then decrement each value, then ensure at least three items by appending zeros.", "out": "乃不义"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Lower each number by one, then ensure minimum length of three by adding zeros to the end.", "out": "乃不义"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then reduce each by one, then ensure at least three items by appending zeros.", "out": "乃不义"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Subtract 1 from all, then ensure minimum length of three by adding zeros to the end.", "out": "乃不义"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then Subtract one from each, then ensure at least three items by appending zeros.", "out": "乃不义"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Drop each by one, then ensure minimum length of three by adding zeros to the end.", "out": "乃不义"} {"kind": "builder", "in": "乃不义", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "乃不义", "out": "Take a list of integers; drop the leading negative values, then subtract one from each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove all zero values, then truncate to three items.", "out": "丑举丕"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then exclude zeros, then show the first three.", "out": "丑举丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove all zero values, then take the first three.", "out": "丑举丕"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then exclude zeros, then keep first 3.", "out": "丑举丕"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove all zero values, then truncate to first three.", "out": "丑举丕"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then exclude zeros, then first three.", "out": "丑举丕"} {"kind": "builder", "in": "丑举丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丑举丕", "out": "Take a list of integers; sort ascending, then drop the zeros, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then find the max, defaulting to 0.", "out": "义万业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then Give me the maximum, but 0 if there are no items.", "out": "义万业"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then What's the highest number in the list.", "out": "义万业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then Return the greatest value or default to 0.", "out": "义万业"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then Find the largest element, defaulting to zero.", "out": "义万业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then give the largest value (0 if none).", "out": "义万业"} {"kind": "builder", "in": "义万业", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x < 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "义万业", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the negative numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then drop non-positive values.", "out": "九与七"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then drop the negative numbers.", "out": "九与七"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then filter out the negative ones.", "out": "九与七"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then remove all negative values.", "out": "九与七"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then keep positive values only.", "out": "九与七"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then keep values above zero.", "out": "九与七"} {"kind": "builder", "in": "九与七", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "九与七", "out": "Take a list of people records (name, age); extract the ages, then negate each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then decrement each value, then remove the initial run of negative numbers.", "out": "么不乃"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Lower each number by one, then strip the front negatives.", "out": "么不乃"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then reduce each by one, then remove leading negative numbers.", "out": "么不乃"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Subtract 1 from all, then drop negatives from start.", "out": "么不乃"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Subtract one from each, then strip negative values from the start.", "out": "么不乃"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Drop each by one, then remove negatives before the first non-negative.", "out": "么不乃"} {"kind": "builder", "in": "么不乃", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "么不乃", "out": "Take a list of integers; if empty, use a single zero, then subtract one from each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove all zero values, then arrange by magnitude ignoring sign.", "out": "丑举丸"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then exclude zeros, then put them in order by magnitude.", "out": "丑举丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove all zero values, then arrange in order of absolute value.", "out": "丑举丸"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then exclude zeros, then sort by distance from zero.", "out": "丑举丸"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove all zero values, then order by how far from zero.", "out": "丑举丸"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then exclude zeros, then order by distance from zero.", "out": "丑举丸"} {"kind": "builder", "in": "丑举丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丑举丸", "out": "Take a list of integers; sort ascending, then drop the zeros, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then extend to length 3 using zeros, then give the number of evens.", "out": "丹义乓"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then pad to 3, then find how many values are divisible by two.", "out": "丹义乓"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then extend to length 3 using zeros, then how many are even.", "out": "丹义乓"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then pad to 3, then get the total number of even values in the list.", "out": "丹义乓"} {"kind": "speaker", "in": "Take a list of integers; last three only, then extend to length 3 using zeros, then give me the count of even values.", "out": "丹义乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then pad to 3, then I need to know how many of these are even.", "out": "丹义乓"} {"kind": "builder", "in": "丹义乓", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丹义乓", "out": "Take a list of integers; keep only the last three, then pad with zeros to at least three elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then keep only strings of length 3 or more, then true if a blank string is present.", "out": "乞乗乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then get rid of short ones, then check for empty strings in the list.", "out": "乞乗乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove strings with less than three characters, then check if there's an empty string.", "out": "乞乗乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then remove all strings under three characters in length, then does the collection contain an empty string value somewhere.", "out": "乞乗乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then filter out short strings under three chars, then whether any element is blank.", "out": "乞乗乙"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then drop strings shorter than three characters, then check for an empty string.", "out": "乞乗乙"} {"kind": "builder", "in": "乞乗乙", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s for s in r if len(s) >= 3]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "乞乗乙", "out": "Take a list of people records (name, age); extract the names, then drop strings shorter than three characters, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values, then keep only numbers above 5.", "out": "一且主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order, then exclude values of 5 and below.", "out": "一且主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values, then remove anything 5 or less.", "out": "一且主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order, then filter to keep only values above 5.", "out": "一且主"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values, then get rid of values that aren't greater than five.", "out": "一且主"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order, then drop anything 5 or below.", "out": "一且主"} {"kind": "builder", "in": "一且主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "一且主", "out": "Take a list of integers; keep the even numbers, then drop duplicates keeping first occurrence, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then make every value non-negative, then true if any value equals zero.", "out": "串丏乍"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then absolute value for all items, then check for zero.", "out": "串丏乍"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take absolute values, then true if any value equals zero.", "out": "串丏乍"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn negatives into positives, then check for zero.", "out": "串丏乍"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then abs each element, then true if any value equals zero.", "out": "串丏乍"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the absolute value of each, then check for zero.", "out": "串丏乍"} {"kind": "builder", "in": "串丏乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [abs(x) for x in r]\n return 0 in r"} {"kind": "translator", "in": "串丏乍", "out": "Take a list of integers; keep multiples of three, then take the absolute value of each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values divisible by 3, then drop the even numbers.", "out": "么串丁"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep items where x mod 3 equals zero, then strip out the evens.", "out": "么串丁"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then drop anything not divisible by three, then drop the even numbers.", "out": "么串丁"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then filter out everything except multiples of three, then strip out the evens.", "out": "么串丁"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only multiples of three, then drop the even numbers.", "out": "么串丁"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiples of three only, then strip out the evens.", "out": "么串丁"} {"kind": "builder", "in": "么串丁", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "么串丁", "out": "Take a list of integers; if empty, use a single zero, then keep multiples of three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then take each string's first letter, then find the longest one, defaulting to empty.", "out": "乗丨丰"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then give me the first letter of everything, then Longest string, or nothing if there isn't one.", "out": "乗丨丰"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then reduce each string to its first character, then find the longest one, defaulting to empty.", "out": "乗丨丰"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then take first char drop blanks, then Longest string, or nothing if there isn't one.", "out": "乗丨丰"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then keep first letters only, then find the longest one, defaulting to empty.", "out": "乗丨丰"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then first letter from each item that isn't empty, then Longest string, or nothing if there isn't one.", "out": "乗丨丰"} {"kind": "builder", "in": "乗丨丰", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s[0] for s in r if s]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "乗丨丰", "out": "Take a list of strings; drop strings shorter than three characters, then keep the first character of each (dropping empties), then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero, then arrange in decreasing order.", "out": "世丸专"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value, then arrange in descending order.", "out": "世丸专"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude, then reverse sort.", "out": "世丸专"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending, then sort largest to smallest.", "out": "世丸专"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value, then sort by descending values.", "out": "世丸专"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value, then sort from highest to lowest.", "out": "世丸专"} {"kind": "builder", "in": "世丸专", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "世丸专", "out": "Take a list of integers; drop the first element, then sort by absolute value, then sort descending."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then convert each to lower case, then find how long the longest string is.", "out": "严丞乜"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then lowercase each one, then give the length of the longest string in the list.", "out": "严丞乜"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then convert each to lower case, then get me the longest string's length.", "out": "严丞乜"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then lowercase each one, then give the maximum string length.", "out": "严丞乜"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then convert each to lower case, then max length of all strings.", "out": "严丞乜"} {"kind": "speaker", "in": "Take a list of strings; length sort, then lowercase each one, then what's the max string length.", "out": "严丞乜"} {"kind": "builder", "in": "严丞乜", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.lower() for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "严丞乜", "out": "Take a list of strings; sort by length, shortest first, then lowercase each string, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increase every value by 10, then true if at least one even value.", "out": "丘丽之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then add 10 to each item, then any even.", "out": "丘丽之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then shift each up by ten, then true if at least one even value.", "out": "丘丽之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then increase all numbers by 10, then any even.", "out": "丘丽之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then add 10 to everything, then true if at least one even value.", "out": "丘丽之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give everything a boost of 10, then any even.", "out": "丘丽之"} {"kind": "builder", "in": "丘丽之", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丘丽之", "out": "Take a list of integers; cap each value at 10, then add ten to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then truncate to three items.", "out": "且世丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then show the first three.", "out": "且世丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then take the first three.", "out": "且世丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then keep first 3.", "out": "且世丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then truncate to first three.", "out": "且世丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then first three.", "out": "且世丕"} {"kind": "builder", "in": "且世丕", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "且世丕", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first element, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then drop anything 5 or below, then true if any value equals zero.", "out": "丕主乍"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then keep only numbers greater than 5, then check for zero.", "out": "丕主乍"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then filter for numbers above 5, then true if any value equals zero.", "out": "丕主乍"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then give me values where x is greater than 5, then check for zero.", "out": "丕主乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then show me only the values that are bigger than five, then true if any value equals zero.", "out": "丕主乍"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep values greater than five, then check for zero.", "out": "丕主乍"} {"kind": "builder", "in": "丕主乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 5]\n return 0 in r"} {"kind": "translator", "in": "丕主乍", "out": "Take a list of integers; keep only the first three, then keep values greater than five, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then drop the even numbers.", "out": "义乂丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then strip out the evens.", "out": "义乂丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then drop the even numbers.", "out": "义乂丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then strip out the evens.", "out": "义乂丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then drop the even numbers.", "out": "义乂丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then strip out the evens.", "out": "义乂丁"} {"kind": "builder", "in": "义乂丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义乂丁", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increase every value by 10, then count the elements.", "out": "久丽东"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then add 10 to each item, then how many items remain.", "out": "久丽东"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then shift each up by ten, then tell me the length.", "out": "久丽东"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then increase all numbers by 10, then return the length.", "out": "久丽东"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then add 10 to everything, then count them.", "out": "久丽东"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then give everything a boost of 10, then what's the count.", "out": "久丽东"} {"kind": "builder", "in": "久丽东", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n return len(r)"} {"kind": "translator", "in": "久丽东", "out": "Take a list of integers; keep everything before the first zero, then add ten to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort smallest to largest, then find the max, defaulting to 0.", "out": "万丑业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Ascending sort, then Give me the maximum, but 0 if there are no items.", "out": "万丑业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Sort this ascending, then What's the highest number in the list.", "out": "万丑业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Sort lowest to highest, then Return the greatest value or default to 0.", "out": "万丑业"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Arrange from smallest to largest, then Find the largest element, defaulting to zero.", "out": "万丑业"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort ascending, then give the largest value (0 if none).", "out": "万丑业"} {"kind": "builder", "in": "万丑业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r)\n return max(r) if r else 0"} {"kind": "translator", "in": "万丑业", "out": "Take a list of integers; keep the negative numbers, then sort ascending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then strip the signs.", "out": "丽乂丏"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then take abs of each.", "out": "丽乂丏"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then get the absolute value of everything.", "out": "丽乂丏"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then apply absolute value to the whole list.", "out": "丽乂丏"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then make them all positive.", "out": "丽乂丏"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then make every value non-negative.", "out": "丽乂丏"} {"kind": "builder", "in": "丽乂丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丽乂丏", "out": "Take a list of integers; add ten to each, then take values while they are positive, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each value by itself, then truncate to the last three items.", "out": "么上丹"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then square them all, then show only the last three.", "out": "么上丹"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then raise each to the power of two, then remove all but the last three.", "out": "么上丹"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then I need each number multiplied by itself, then take the final 3 elements.", "out": "么上丹"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then square all of them, then drop everything except the final three.", "out": "么上丹"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiply each element by itself, then give me the last three elements.", "out": "么上丹"} {"kind": "builder", "in": "么上丹", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * x for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "么上丹", "out": "Take a list of integers; if empty, use a single zero, then square each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the leading run of positive numbers, then make each twice as big.", "out": "丁乂丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take values while they are positive, then multiply each by 2.", "out": "丁乂丈"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take positive values then stop, then make each twice as big.", "out": "丁乂丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep going while positive, then multiply each by 2.", "out": "丁乂丈"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then stop at first non positive, then make each twice as big.", "out": "丁乂丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take while greater than zero, then multiply each by 2.", "out": "丁乂丈"} {"kind": "builder", "in": "丁乂丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丁乂丈", "out": "Take a list of integers; keep the odd numbers, then take values while they are positive, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then default to [0] when there is nothing, then find the max, defaulting to 0.", "out": "丹么业"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then when the list is empty, substitute a zero value, then Give me the maximum, but 0 if there are no items.", "out": "丹么业"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then replace an empty list with one zero, then What's the highest number in the list.", "out": "丹么业"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then zero it out if it's empty, then Return the greatest value or default to 0.", "out": "丹么业"} {"kind": "speaker", "in": "Take a list of integers; last three only, then use zero if the list is empty, then Find the largest element, defaulting to zero.", "out": "丹么业"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then default to zero when empty, then give the largest value (0 if none).", "out": "丹么业"} {"kind": "builder", "in": "丹么业", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r if r else [0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丹么业", "out": "Take a list of integers; keep only the last three, then if empty, use a single zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then skip negatives at the start, then truncate to three items.", "out": "义乃丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove all negatives at the front, then show the first three.", "out": "义乃丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the initial run of negative numbers, then take the first three.", "out": "义乃丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then strip the front negatives, then keep first 3.", "out": "义乃丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove leading negative numbers, then truncate to first three.", "out": "义乃丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop negatives from start, then first three.", "out": "义乃丕"} {"kind": "builder", "in": "义乃丕", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n return r"} {"kind": "translator", "in": "义乃丕", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the leading negative values, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then drop the odd numbers.", "out": "世与一"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "世与一"} {"kind": "builder", "in": "世与一", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "世与一", "out": "Take a list of integers; drop the first element, then negate each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then truncate to three items.", "out": "与举丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then show the first three.", "out": "与举丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then take the first three.", "out": "与举丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then keep first 3.", "out": "与举丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then truncate to first three.", "out": "与举丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then first three.", "out": "与举丕"} {"kind": "builder", "in": "与举丕", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "与举丕", "out": "Take a list of integers; negate each, then drop the zeros, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values above zero, then find the max, defaulting to 0.", "out": "久七业"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then filter for positive numbers, then Give me the maximum, but 0 if there are no items.", "out": "久七业"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only positive numbers, then What's the highest number in the list.", "out": "久七业"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep the positives, then Return the greatest value or default to 0.", "out": "久七业"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove negatives, then Find the largest element, defaulting to zero.", "out": "久七业"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep the positive numbers, then give the largest value (0 if none).", "out": "久七业"} {"kind": "builder", "in": "久七业", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "久七业", "out": "Take a list of integers; keep everything before the first zero, then keep the positive numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep the leading run of positive numbers, then multiply each by -1.", "out": "丑乂与"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then take values while they are positive, then negate.", "out": "丑乂与"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take positive values then stop, then multiply each by -1.", "out": "丑乂与"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep going while positive, then negate.", "out": "丑乂与"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then stop at first non positive, then multiply each by -1.", "out": "丑乂与"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take while greater than zero, then negate.", "out": "丑乂与"} {"kind": "builder", "in": "丑乂与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丑乂与", "out": "Take a list of integers; sort ascending, then take values while they are positive, then negate each."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the name field from each record, then return the number of strings.", "out": "习乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Grab the names, then count the strings.", "out": "习乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's name, then return how many strings remain.", "out": "习乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then List the names, then give me the total number of strings.", "out": "习乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then Extract the names, then tell me how many strings we have.", "out": "习乞丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Get the name field, then what's the string count.", "out": "习乞丫"} {"kind": "builder", "in": "习乞丫", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['name'] for d in r]\n return len(r)"} {"kind": "translator", "in": "习乞丫", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the names, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the list around, then truncate to three items.", "out": "世丐丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then flip the order around, then show the first three.", "out": "世丐丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then put the elements backwards, then take the first three.", "out": "世丐丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then reverse that for me, then keep first 3.", "out": "世丐丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip it backwards, then truncate to first three.", "out": "世丐丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then make it backwards, then first three.", "out": "世丐丕"} {"kind": "builder", "in": "世丐丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(reversed(r))\n r = r[:3]\n return r"} {"kind": "translator", "in": "世丐丕", "out": "Take a list of integers; drop the first element, then reverse the order, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep only even values, then give back the product of all values.", "out": "丑一乐"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then extract all even numbers, then product of the list.", "out": "丑一乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only even values, then what's the product.", "out": "丑一乐"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then extract all even numbers, then what do they multiply to.", "out": "丑一乐"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only even values, then give me their product.", "out": "丑一乐"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then extract all even numbers, then multiply them all together.", "out": "丑一乐"} {"kind": "builder", "in": "丑一乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 2 == 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丑一乐", "out": "Take a list of integers; sort ascending, then keep the even numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then skip negatives at the start, then arrange by magnitude ignoring sign.", "out": "七乃丸"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove all negatives at the front, then put them in order by magnitude.", "out": "七乃丸"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the initial run of negative numbers, then arrange in order of absolute value.", "out": "七乃丸"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then strip the front negatives, then sort by distance from zero.", "out": "七乃丸"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove leading negative numbers, then order by how far from zero.", "out": "七乃丸"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then drop negatives from start, then order by distance from zero.", "out": "七乃丸"} {"kind": "builder", "in": "七乃丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "七乃丸", "out": "Take a list of integers; keep the positive numbers, then drop the leading negative values, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove both ends, then replace an empty list with one zero.", "out": "丏为么"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then trim the edges, then zero it out if it's empty.", "out": "丏为么"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then trim one element off each end, then use zero if the list is empty.", "out": "丏为么"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then cut off the first and last, then default to zero when empty.", "out": "丏为么"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first and last elements, then if there's nothing, put in a zero.", "out": "丏为么"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep only the middle part, then if no items, add a zero.", "out": "丏为么"} {"kind": "builder", "in": "丏为么", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:-1]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丏为么", "out": "Take a list of integers; take the absolute value of each, then drop the first and last elements, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the list around, then drop anything not divisible by three.", "out": "乃丐串"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then flip the order around, then filter out everything except multiples of three.", "out": "乃丐串"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then put the elements backwards, then keep only multiples of three.", "out": "乃丐串"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then reverse that for me, then multiples of three only.", "out": "乃丐串"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip it backwards, then filter for numbers divisible by three.", "out": "乃丐串"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then make it backwards, then give me only the values divisible by three.", "out": "乃丐串"} {"kind": "builder", "in": "乃丐串", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "乃丐串", "out": "Take a list of integers; drop the leading negative values, then reverse the order, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then find the min, defaulting to 0.", "out": "七丘丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then minimum value, zero otherwise.", "out": "七丘丛"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then get the minimum value or zero if empty.", "out": "七丘丛"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then give me the min or 0.", "out": "七丘丛"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then return the smallest number, defaulting to 0.", "out": "七丘丛"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then return smallest or zero if empty.", "out": "七丘丛"} {"kind": "builder", "in": "七丘丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "七丘丛", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep the leading run of positive numbers, then give back the total.", "out": "上乂丙"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then take values while they are positive, then sum r.", "out": "上乂丙"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take positive values then stop, then add them up.", "out": "上乂丙"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep going while positive, then calculate the sum of all elements.", "out": "上乂丙"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then stop at first non positive, then what's the total.", "out": "上乂丙"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take while greater than zero, then what do they add up to.", "out": "上乂丙"} {"kind": "builder", "in": "上乂丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return sum(r)"} {"kind": "translator", "in": "上乂丙", "out": "Take a list of integers; square each, then take values while they are positive, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort smallest to largest, then limit every value to 10.", "out": "且丑丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Ascending sort, then maximum of 10 for all.", "out": "且丑丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Sort this ascending, then limit every value to 10.", "out": "且丑丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Sort lowest to highest, then maximum of 10 for all.", "out": "且丑丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Arrange from smallest to largest, then limit every value to 10.", "out": "且丑丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort ascending, then maximum of 10 for all.", "out": "且丑丘"} {"kind": "builder", "in": "且丑丘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "且丑丘", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort ascending, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then stop at the first non-positive value.", "out": "丕丈乂"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then keep the leading run of positive numbers.", "out": "丕丈乂"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then take values while they are positive.", "out": "丕丈乂"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then take positive values then stop.", "out": "丕丈乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then keep going while positive.", "out": "丕丈乂"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then stop at first non positive.", "out": "丕丈乂"} {"kind": "builder", "in": "丕丈乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丕丈乂", "out": "Take a list of integers; keep only the first three, then double each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the list around, then arrange in increasing order.", "out": "主丐丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then flip the order around, then Organize these ascending.", "out": "主丐丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then put the elements backwards, then Sort in ascending order.", "out": "主丐丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then reverse that for me, then I need this sorted ascending.", "out": "主丐丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip it backwards, then Put these in ascending order.", "out": "主丐丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then make it backwards, then sort smallest to largest.", "out": "主丐丑"} {"kind": "builder", "in": "主丐丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(reversed(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主丐丑", "out": "Take a list of integers; keep values greater than five, then reverse the order, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the first 3 elements, then give the number of evens.", "out": "么丕乓"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove everything after the third, then find how many values are divisible by two.", "out": "么丕乓"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then truncate to three items, then how many are even.", "out": "么丕乓"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then show the first three, then get the total number of even values in the list.", "out": "么丕乓"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then take the first three, then give me the count of even values.", "out": "么丕乓"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep first 3, then I need to know how many of these are even.", "out": "么丕乓"} {"kind": "builder", "in": "么丕乓", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:3]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "么丕乓", "out": "Take a list of integers; if empty, use a single zero, then keep only the first three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only odd values, then drop the odd numbers.", "out": "丐丁一"} {"kind": "speaker", "in": "Take a list of integers; reverse, then eliminate the even numbers, then filter out the odd numbers.", "out": "丐丁一"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only odd values, then drop the odd numbers.", "out": "丐丁一"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then eliminate the even numbers, then filter out the odd numbers.", "out": "丐丁一"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only odd values, then drop the odd numbers.", "out": "丐丁一"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then eliminate the even numbers, then filter out the odd numbers.", "out": "丐丁一"} {"kind": "builder", "in": "丐丁一", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丐丁一", "out": "Take a list of integers; reverse the order, then keep the odd numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove both ends, then strip the signs.", "out": "么为丏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then trim the edges, then take abs of each.", "out": "么为丏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then trim one element off each end, then get the absolute value of everything.", "out": "么为丏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then cut off the first and last, then apply absolute value to the whole list.", "out": "么为丏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first and last elements, then make them all positive.", "out": "么为丏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep only the middle part, then make every value non-negative.", "out": "么为丏"} {"kind": "builder", "in": "么为丏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:-1]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "么为丏", "out": "Take a list of integers; if empty, use a single zero, then drop the first and last elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values above zero, then true if already sorted smallest to largest.", "out": "么七乎"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then filter for positive numbers, then does this list go in ascending order.", "out": "么七乎"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only positive numbers, then check if the list is in ascending order.", "out": "么七乎"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the positives, then is the list sorted.", "out": "么七乎"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove negatives, then is it sorted.", "out": "么七乎"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep the positive numbers, then check if values are in increasing order.", "out": "么七乎"} {"kind": "builder", "in": "么七乎", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 0]\n return r == sorted(r)"} {"kind": "translator", "in": "么七乎", "out": "Take a list of integers; if empty, use a single zero, then keep the positive numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only odd values, then strip the signs.", "out": "九丁丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then eliminate the even numbers, then take abs of each.", "out": "九丁丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only odd values, then get the absolute value of everything.", "out": "九丁丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then eliminate the even numbers, then apply absolute value to the whole list.", "out": "九丁丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only odd values, then make them all positive.", "out": "九丁丏"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then eliminate the even numbers, then make every value non-negative.", "out": "九丁丏"} {"kind": "builder", "in": "九丁丏", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "九丁丏", "out": "Take a list of people records (name, age); extract the ages, then keep the odd numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then default to [0] when there is nothing, then drop non-positive values.", "out": "专么七"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then when the list is empty, substitute a zero value, then drop the negative numbers.", "out": "专么七"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then replace an empty list with one zero, then filter out the negative ones.", "out": "专么七"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then zero it out if it's empty, then remove all negative values.", "out": "专么七"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then use zero if the list is empty, then keep positive values only.", "out": "专么七"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then default to zero when empty, then keep values above zero.", "out": "专么七"} {"kind": "builder", "in": "专么七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r if r else [0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "专么七", "out": "Take a list of integers; sort descending, then if empty, use a single zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep the leading run of positive numbers, then find the max, defaulting to 0.", "out": "丑乂业"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then take values while they are positive, then Give me the maximum, but 0 if there are no items.", "out": "丑乂业"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take positive values then stop, then What's the highest number in the list.", "out": "丑乂业"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep going while positive, then Return the greatest value or default to 0.", "out": "丑乂业"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then stop at first non positive, then Find the largest element, defaulting to zero.", "out": "丑乂业"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take while greater than zero, then give the largest value (0 if none).", "out": "丑乂业"} {"kind": "builder", "in": "丑乂业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return max(r) if r else 0"} {"kind": "translator", "in": "丑乂业", "out": "Take a list of integers; sort ascending, then take values while they are positive, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the list around, then replace an empty list with one zero.", "out": "丸丐么"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then flip the order around, then zero it out if it's empty.", "out": "丸丐么"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then put the elements backwards, then use zero if the list is empty.", "out": "丸丐么"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then reverse that for me, then default to zero when empty.", "out": "丸丐么"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip it backwards, then if there's nothing, put in a zero.", "out": "丸丐么"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then make it backwards, then if no items, add a zero.", "out": "丸丐么"} {"kind": "builder", "in": "丸丐么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(reversed(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丸丐么", "out": "Take a list of integers; sort by absolute value, then reverse the order, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then default to [0] when there is nothing, then find the min, defaulting to 0.", "out": "丕么丛"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then when the list is empty, substitute a zero value, then minimum value, zero otherwise.", "out": "丕么丛"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then replace an empty list with one zero, then get the minimum value or zero if empty.", "out": "丕么丛"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then zero it out if it's empty, then give me the min or 0.", "out": "丕么丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then use zero if the list is empty, then return the smallest number, defaulting to 0.", "out": "丕么丛"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then default to zero when empty, then return smallest or zero if empty.", "out": "丕么丛"} {"kind": "builder", "in": "丕么丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r if r else [0]\n return min(r) if r else 0"} {"kind": "translator", "in": "丕么丛", "out": "Take a list of integers; keep only the first three, then if empty, use a single zero, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then skip the first one.", "out": "丸万世"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then Discard the first element.", "out": "丸万世"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then skip the first one.", "out": "丸万世"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then Discard the first element.", "out": "丸万世"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then skip the first one.", "out": "丸万世"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then Discard the first element.", "out": "丸万世"} {"kind": "builder", "in": "丸万世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丸万世", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; double each, then sort smallest to largest, then true only if all are positive.", "out": "丈丑乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Ascending sort, then do all of these have positive values.", "out": "丈丑乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then Sort this ascending, then check if every value is positive.", "out": "丈丑乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Sort lowest to highest, then confirm all values are positive.", "out": "丈丑乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then Arrange from smallest to largest, then all positive.", "out": "丈丑乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort ascending, then check if every number is above zero.", "out": "丈丑乌"} {"kind": "builder", "in": "丈丑乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r)\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丈丑乌", "out": "Take a list of integers; double each, then sort ascending, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the list around, then truncate to the last three items.", "out": "义丐丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then flip the order around, then show only the last three.", "out": "义丐丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then put the elements backwards, then remove all but the last three.", "out": "义丐丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then reverse that for me, then take the final 3 elements.", "out": "义丐丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip it backwards, then drop everything except the final three.", "out": "义丐丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then make it backwards, then give me the last three elements.", "out": "义丐丹"} {"kind": "builder", "in": "义丐丹", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(reversed(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "义丐丹", "out": "Take a list of integers; pad with zeros to at least three elements, then reverse the order, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; double each, then order by distance from zero, then truncate to the last three items.", "out": "丈丸丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort based on absolute value, then show only the last three.", "out": "丈丸丹"} {"kind": "speaker", "in": "Take a list of integers; double each, then organize by magnitude, then remove all but the last three.", "out": "丈丸丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then arrange by absolute value ascending, then take the final 3 elements.", "out": "丈丸丹"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from smallest to largest absolute value, then drop everything except the final three.", "out": "丈丸丹"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by absolute value, then give me the last three elements.", "out": "丈丸丹"} {"kind": "builder", "in": "丈丸丹", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丈丸丹", "out": "Take a list of integers; double each, then sort by absolute value, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values below zero, then drop anything not divisible by three.", "out": "久万串"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then get the negative numbers, then filter out everything except multiples of three.", "out": "久万串"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep values below zero, then keep only multiples of three.", "out": "久万串"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then get the negative numbers, then multiples of three only.", "out": "久万串"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep values below zero, then filter for numbers divisible by three.", "out": "久万串"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then get the negative numbers, then give me only the values divisible by three.", "out": "久万串"} {"kind": "builder", "in": "久万串", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "久万串", "out": "Take a list of integers; keep everything before the first zero, then keep the negative numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then extend to length 3 using zeros, then find the max, defaulting to 0.", "out": "久义业"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then pad to 3, then Give me the maximum, but 0 if there are no items.", "out": "久义业"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then extend to length 3 using zeros, then What's the highest number in the list.", "out": "久义业"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then pad to 3, then Return the greatest value or default to 0.", "out": "久义业"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then extend to length 3 using zeros, then Find the largest element, defaulting to zero.", "out": "久义业"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then pad to 3, then give the largest value (0 if none).", "out": "久义业"} {"kind": "builder", "in": "久义业", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return max(r) if r else 0"} {"kind": "translator", "in": "久义业", "out": "Take a list of integers; keep everything before the first zero, then pad with zeros to at least three elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; square each, then extend to length 3 using zeros, then drop non-positive values.", "out": "上义七"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then pad to 3, then drop the negative numbers.", "out": "上义七"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then extend to length 3 using zeros, then filter out the negative ones.", "out": "上义七"} {"kind": "speaker", "in": "Take a list of integers; square them all, then pad to 3, then remove all negative values.", "out": "上义七"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then extend to length 3 using zeros, then keep positive values only.", "out": "上义七"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then pad to 3, then keep values above zero.", "out": "上义七"} {"kind": "builder", "in": "上义七", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "上义七", "out": "Take a list of integers; square each, then pad with zeros to at least three elements, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove the first item, then replace an empty list with one zero.", "out": "丽世么"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Remove head, then zero it out if it's empty.", "out": "丽世么"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the first item, then use zero if the list is empty.", "out": "丽世么"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Remove head, then default to zero when empty.", "out": "丽世么"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first item, then if there's nothing, put in a zero.", "out": "丽世么"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Remove head, then if no items, add a zero.", "out": "丽世么"} {"kind": "builder", "in": "丽世么", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丽世么", "out": "Take a list of integers; add ten to each, then drop the first element, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then true if already sorted smallest to largest.", "out": "丘丁乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then does this list go in ascending order.", "out": "丘丁乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then check if the list is in ascending order.", "out": "丘丁乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then is the list sorted.", "out": "丘丁乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then is it sorted.", "out": "丘丁乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then check if values are in increasing order.", "out": "丘丁乎"} {"kind": "builder", "in": "丘丁乎", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丘丁乎", "out": "Take a list of integers; cap each value at 10, then keep the odd numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove both ends, then raise each to the power of two.", "out": "丏为上"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then trim the edges, then I need each number multiplied by itself.", "out": "丏为上"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then trim one element off each end, then square all of them.", "out": "丏为上"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then cut off the first and last, then multiply each element by itself.", "out": "丏为上"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first and last elements, then make each one squared.", "out": "丏为上"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep only the middle part, then square each value in the list.", "out": "丏为上"} {"kind": "builder", "in": "丏为上", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:-1]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丏为上", "out": "Take a list of integers; take the absolute value of each, then drop the first and last elements, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then clamp each to at most ten, then stop at the first non-positive value.", "out": "乃丘乂"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then don't let anything exceed 10, then keep the leading run of positive numbers.", "out": "乃丘乂"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then clamp each to at most ten, then take values while they are positive.", "out": "乃丘乂"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then don't let anything exceed 10, then take positive values then stop.", "out": "乃丘乂"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then clamp each to at most ten, then keep going while positive.", "out": "乃丘乂"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then don't let anything exceed 10, then stop at first non positive.", "out": "乃丘乂"} {"kind": "builder", "in": "乃丘乂", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "乃丘乂", "out": "Take a list of integers; drop the leading negative values, then cap each value at 10, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep only even values, then arrange in decreasing order.", "out": "乂一专"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then extract all even numbers, then arrange in descending order.", "out": "乂一专"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only even values, then reverse sort.", "out": "乂一专"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then extract all even numbers, then sort largest to smallest.", "out": "乂一专"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only even values, then sort by descending values.", "out": "乂一专"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then extract all even numbers, then sort from highest to lowest.", "out": "乂一专"} {"kind": "builder", "in": "乂一专", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乂一专", "out": "Take a list of integers; take values while they are positive, then keep the even numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero, then shift each up by ten.", "out": "乂丸丽"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value, then increase all numbers by 10.", "out": "乂丸丽"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude, then add 10 to everything.", "out": "乂丸丽"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending, then give everything a boost of 10.", "out": "乂丸丽"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value, then increment each by ten.", "out": "乂丸丽"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value, then add a constant 10 to each.", "out": "乂丸丽"} {"kind": "builder", "in": "乂丸丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乂丸丽", "out": "Take a list of integers; take values while they are positive, then sort by absolute value, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then bump each up by one.", "out": "丐久下"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then increment each item.", "out": "丐久下"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then bump each up by one.", "out": "丐久下"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then increment each item.", "out": "丐久下"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then bump each up by one.", "out": "丐久下"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then increment each item.", "out": "丐久下"} {"kind": "builder", "in": "丐久下", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丐久下", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increment each value, then true if at least one even value.", "out": "丹下之"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then plus one for all, then any even.", "out": "丹下之"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then increment each value, then true if at least one even value.", "out": "丹下之"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then plus one for all, then any even.", "out": "丹下之"} {"kind": "speaker", "in": "Take a list of integers; last three only, then increment each value, then true if at least one even value.", "out": "丹下之"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then plus one for all, then any even.", "out": "丹下之"} {"kind": "builder", "in": "丹下之", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 1 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丹下之", "out": "Take a list of integers; keep only the last three, then add one to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then drop the even numbers.", "out": "丘举丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then strip out the evens.", "out": "丘举丁"} {"kind": "builder", "in": "丘举丁", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丘举丁", "out": "Take a list of integers; cap each value at 10, then drop the zeros, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then keep only numbers above 5.", "out": "且丈主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then exclude values of 5 and below.", "out": "且丈主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then remove anything 5 or less.", "out": "且丈主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then filter to keep only values above 5.", "out": "且丈主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then get rid of values that aren't greater than five.", "out": "且丈主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then drop anything 5 or below.", "out": "且丈主"} {"kind": "builder", "in": "且丈主", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "且丈主", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero, then trim one element off each end.", "out": "世久为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears, then cut off the first and last.", "out": "世久为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero, then remove the first and last elements.", "out": "世久为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0, then keep only the middle part.", "out": "世久为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero, then drop first and last.", "out": "世久为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero, then eliminate the outermost elements.", "out": "世久为"} {"kind": "builder", "in": "世久为", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "世久为", "out": "Take a list of integers; drop the first element, then keep everything before the first zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then order by distance from zero, then drop the even numbers.", "out": "为丸丁"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort based on absolute value, then strip out the evens.", "out": "为丸丁"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then organize by magnitude, then drop the even numbers.", "out": "为丸丁"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then arrange by absolute value ascending, then strip out the evens.", "out": "为丸丁"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort from smallest to largest absolute value, then drop the even numbers.", "out": "为丸丁"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort by absolute value, then strip out the evens.", "out": "为丸丁"} {"kind": "builder", "in": "为丸丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "为丸丁", "out": "Take a list of integers; drop the first and last elements, then sort by absolute value, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only even values, then drop anything not divisible by three.", "out": "为一串"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then extract all even numbers, then filter out everything except multiples of three.", "out": "为一串"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only even values, then keep only multiples of three.", "out": "为一串"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then extract all even numbers, then multiples of three only.", "out": "为一串"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only even values, then filter for numbers divisible by three.", "out": "为一串"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then extract all even numbers, then give me only the values divisible by three.", "out": "为一串"} {"kind": "builder", "in": "为一串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "为一串", "out": "Take a list of integers; drop the first and last elements, then keep the even numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the final 3 elements, then drop non-positive values.", "out": "九丹七"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then drop everything except the final three, then drop the negative numbers.", "out": "九丹七"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then give me the last three elements, then filter out the negative ones.", "out": "九丹七"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep only the last three, then remove all negative values.", "out": "九丹七"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep the final three items, then keep positive values only.", "out": "九丹七"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the last three, then keep values above zero.", "out": "九丹七"} {"kind": "builder", "in": "九丹七", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[-3:]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "九丹七", "out": "Take a list of people records (name, age); extract the ages, then keep only the last three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increment each value, then give the number of evens.", "out": "乂下乓"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then plus one for all, then find how many values are divisible by two.", "out": "乂下乓"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then increment each value, then how many are even.", "out": "乂下乓"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then plus one for all, then get the total number of even values in the list.", "out": "乂下乓"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then increment each value, then give me the count of even values.", "out": "乂下乓"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then plus one for all, then I need to know how many of these are even.", "out": "乂下乓"} {"kind": "builder", "in": "乂下乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乂下乓", "out": "Take a list of integers; take values while they are positive, then add one to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only even values, then take values up to (excluding) the first zero.", "out": "么一久"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then extract all even numbers, then keep the part before the first 0.", "out": "么一久"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only even values, then truncate at the first zero.", "out": "么一久"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then extract all even numbers, then delete everything starting with the first zero.", "out": "么一久"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only even values, then remove from the first zero onwards.", "out": "么一久"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then extract all even numbers, then up to but not including the first zero.", "out": "么一久"} {"kind": "builder", "in": "么一久", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "么一久", "out": "Take a list of integers; if empty, use a single zero, then keep the even numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then arrange in decreasing order.", "out": "义乂专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then arrange in descending order.", "out": "义乂专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then reverse sort.", "out": "义乂专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then sort largest to smallest.", "out": "义乂专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then sort by descending values.", "out": "义乂专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then sort from highest to lowest.", "out": "义乂专"} {"kind": "builder", "in": "义乂专", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "义乂专", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then shift each up by ten.", "out": "丹万丽"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then increase all numbers by 10.", "out": "丹万丽"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then add 10 to everything.", "out": "丹万丽"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then give everything a boost of 10.", "out": "丹万丽"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then increment each by ten.", "out": "丹万丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then add a constant 10 to each.", "out": "丹万丽"} {"kind": "builder", "in": "丹万丽", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丹万丽", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then strip spaces around each string, then arrange in lexicographic order.", "out": "丟丢乖"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then remove leading and trailing spaces, then sort by letter.", "out": "丟丢乖"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove whitespace from each item, then arrange in lexicographic order.", "out": "丟丢乖"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then clean whitespace from each entry, then sort by letter.", "out": "丟丢乖"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then trim each string, then arrange in lexicographic order.", "out": "丟丢乖"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then trim whitespace from each, then sort by letter.", "out": "丟丢乖"} {"kind": "builder", "in": "丟丢乖", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s.strip() for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丟丢乖", "out": "Take a list of strings; uppercase each string, then trim whitespace from each, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values divisible by 3, then shift each up by ten.", "out": "七串丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep items where x mod 3 equals zero, then increase all numbers by 10.", "out": "七串丽"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then drop anything not divisible by three, then add 10 to everything.", "out": "七串丽"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then filter out everything except multiples of three, then give everything a boost of 10.", "out": "七串丽"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only multiples of three, then increment each by ten.", "out": "七串丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then multiples of three only, then add a constant 10 to each.", "out": "七串丽"} {"kind": "builder", "in": "七串丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "七串丽", "out": "Take a list of integers; keep the positive numbers, then keep multiples of three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then skip negatives at the start, then strip the signs.", "out": "举乃丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove all negatives at the front, then take abs of each.", "out": "举乃丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the initial run of negative numbers, then get the absolute value of everything.", "out": "举乃丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then strip the front negatives, then apply absolute value to the whole list.", "out": "举乃丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove leading negative numbers, then make them all positive.", "out": "举乃丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop negatives from start, then make every value non-negative.", "out": "举乃丏"} {"kind": "builder", "in": "举乃丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举乃丏", "out": "Take a list of integers; drop the zeros, then drop the leading negative values, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then increase every value by 10, then skip the first one.", "out": "丸丽世"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then add 10 to each item, then Discard the first element.", "out": "丸丽世"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then shift each up by ten, then skip the first one.", "out": "丸丽世"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then increase all numbers by 10, then Discard the first element.", "out": "丸丽世"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then add 10 to everything, then skip the first one.", "out": "丸丽世"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then give everything a boost of 10, then Discard the first element.", "out": "丸丽世"} {"kind": "builder", "in": "丸丽世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x + 10 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丸丽世", "out": "Take a list of integers; sort by absolute value, then add ten to each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove both ends, then take values up to (excluding) the first zero.", "out": "世为久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then trim the edges, then keep the part before the first 0.", "out": "世为久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then trim one element off each end, then truncate at the first zero.", "out": "世为久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off the first and last, then delete everything starting with the first zero.", "out": "世为久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the first and last elements, then remove from the first zero onwards.", "out": "世为久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the middle part, then up to but not including the first zero.", "out": "世为久"} {"kind": "builder", "in": "世为久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "世为久", "out": "Take a list of integers; drop the first element, then drop the first and last elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then make each twice as big.", "out": "串丁丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then multiply each by 2.", "out": "串丁丈"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then make each twice as big.", "out": "串丁丈"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then multiply each by 2.", "out": "串丁丈"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then make each twice as big.", "out": "串丁丈"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then multiply each by 2.", "out": "串丁丈"} {"kind": "builder", "in": "串丁丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "串丁丈", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then double each."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then convert each to upper case, then return the number of strings.", "out": "两丟丫"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then change all strings to uppercase, then count the strings.", "out": "两丟丫"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then make every string uppercase, then return how many strings remain.", "out": "两丟丫"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then uppercase each one, then give me the total number of strings.", "out": "两丟丫"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then make all the strings uppercase, then tell me how many strings we have.", "out": "两丟丫"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then convert all strings to uppercase letters, then what's the string count.", "out": "两丟丫"} {"kind": "builder", "in": "两丟丫", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.upper() for s in r]\n return len(r)"} {"kind": "translator", "in": "两丟丫", "out": "Take a list of strings; drop empty strings, then uppercase each string, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first 3 elements, then give back the product of all values.", "out": "世丕乐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove everything after the third, then product of the list.", "out": "世丕乐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate to three items, then what's the product.", "out": "世丕乐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then show the first three, then what do they multiply to.", "out": "世丕乐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first three, then give me their product.", "out": "世丕乐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep first 3, then multiply them all together.", "out": "世丕乐"} {"kind": "builder", "in": "世丕乐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:3]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "世丕乐", "out": "Take a list of integers; drop the first element, then keep only the first three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values, then true only if all are positive.", "out": "丕举乌"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros, then do all of these have positive values.", "out": "丕举乌"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values, then check if every value is positive.", "out": "丕举乌"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros, then confirm all values are positive.", "out": "丕举乌"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values, then all positive.", "out": "丕举乌"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros, then check if every number is above zero.", "out": "丕举乌"} {"kind": "builder", "in": "丕举乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丕举乌", "out": "Take a list of integers; keep only the first three, then drop the zeros, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values divisible by 3, then ensure at least three items by appending zeros.", "out": "丹串义"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep items where x mod 3 equals zero, then ensure minimum length of three by adding zeros to the end.", "out": "丹串义"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then drop anything not divisible by three, then ensure at least three items by appending zeros.", "out": "丹串义"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then filter out everything except multiples of three, then ensure minimum length of three by adding zeros to the end.", "out": "丹串义"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only multiples of three, then ensure at least three items by appending zeros.", "out": "丹串义"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiples of three only, then ensure minimum length of three by adding zeros to the end.", "out": "丹串义"} {"kind": "builder", "in": "丹串义", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丹串义", "out": "Take a list of integers; keep only the last three, then keep multiples of three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increase every value by 10, then give the earliest even value or zero.", "out": "丑丽乒"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then add 10 to each item, then fetch the first even element, default to 0.", "out": "丑丽乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then shift each up by ten, then give the earliest even value or zero.", "out": "丑丽乒"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then increase all numbers by 10, then fetch the first even element, default to 0.", "out": "丑丽乒"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then add 10 to everything, then give the earliest even value or zero.", "out": "丑丽乒"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then give everything a boost of 10, then fetch the first even element, default to 0.", "out": "丑丽乒"} {"kind": "builder", "in": "丑丽乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 10 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丑丽乒", "out": "Take a list of integers; sort ascending, then add ten to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then order by distance from zero, then find the min, defaulting to 0.", "out": "一丸丛"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort based on absolute value, then minimum value, zero otherwise.", "out": "一丸丛"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then organize by magnitude, then get the minimum value or zero if empty.", "out": "一丸丛"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then arrange by absolute value ascending, then give me the min or 0.", "out": "一丸丛"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from smallest to largest absolute value, then return the smallest number, defaulting to 0.", "out": "一丸丛"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by absolute value, then return smallest or zero if empty.", "out": "一丸丛"} {"kind": "builder", "in": "一丸丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, key=abs)\n return min(r) if r else 0"} {"kind": "translator", "in": "一丸丛", "out": "Take a list of integers; keep the even numbers, then sort by absolute value, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the final 3 elements, then keep only numbers above 5.", "out": "乃丹主"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then drop everything except the final three, then exclude values of 5 and below.", "out": "乃丹主"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give me the last three elements, then remove anything 5 or less.", "out": "乃丹主"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep only the last three, then filter to keep only values above 5.", "out": "乃丹主"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep the final three items, then get rid of values that aren't greater than five.", "out": "乃丹主"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the last three, then drop anything 5 or below.", "out": "乃丹主"} {"kind": "builder", "in": "乃丹主", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乃丹主", "out": "Take a list of integers; drop the leading negative values, then keep only the last three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then truncate to the last three items.", "out": "串主丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then show only the last three.", "out": "串主丹"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then remove all but the last three.", "out": "串主丹"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then take the final 3 elements.", "out": "串主丹"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then drop everything except the final three.", "out": "串主丹"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then give me the last three elements.", "out": "串主丹"} {"kind": "builder", "in": "串主丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "串主丹", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then keep only numbers above 5.", "out": "丁义主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then exclude values of 5 and below.", "out": "丁义主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then remove anything 5 or less.", "out": "丁义主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then filter to keep only values above 5.", "out": "丁义主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then get rid of values that aren't greater than five.", "out": "丁义主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then drop anything 5 or below.", "out": "丁义主"} {"kind": "builder", "in": "丁义主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丁义主", "out": "Take a list of integers; keep the odd numbers, then pad with zeros to at least three elements, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort largest to smallest, then give back the product of all values.", "out": "丸专乐"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then sort by descending values, then product of the list.", "out": "丸专乐"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then sort from highest to lowest, then what's the product.", "out": "丸专乐"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then sort descending, then what do they multiply to.", "out": "丸专乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then sort largest first, then give me their product.", "out": "丸专乐"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort in descending order, then multiply them all together.", "out": "丸专乐"} {"kind": "builder", "in": "丸专乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r, reverse=True)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丸专乐", "out": "Take a list of integers; sort by absolute value, then sort descending, then return their product."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then truncate to the last three items.", "out": "丐丈丹"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then show only the last three.", "out": "丐丈丹"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then remove all but the last three.", "out": "丐丈丹"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then take the final 3 elements.", "out": "丐丈丹"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then drop everything except the final three.", "out": "丐丈丹"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then give me the last three elements.", "out": "丐丈丹"} {"kind": "builder", "in": "丐丈丹", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丐丈丹", "out": "Take a list of integers; reverse the order, then double each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; square each, then cut the list at the first zero, then give back the total.", "out": "上久丙"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then cut off after the first zero appears, then sum r.", "out": "上久丙"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take values up to (excluding) the first zero, then add them up.", "out": "上久丙"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the part before the first 0, then calculate the sum of all elements.", "out": "上久丙"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then truncate at the first zero, then what's the total.", "out": "上久丙"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then delete everything starting with the first zero, then what do they add up to.", "out": "上久丙"} {"kind": "builder", "in": "上久丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return sum(r)"} {"kind": "translator", "in": "上久丙", "out": "Take a list of integers; square each, then keep everything before the first zero, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the final 3 elements, then remove the initial run of negative numbers.", "out": "丏丹乃"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then drop everything except the final three, then strip the front negatives.", "out": "丏丹乃"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then give me the last three elements, then remove leading negative numbers.", "out": "丏丹乃"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep only the last three, then drop negatives from start.", "out": "丏丹乃"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep the final three items, then strip negative values from the start.", "out": "丏丹乃"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take the last three, then remove negatives before the first non-negative.", "out": "丏丹乃"} {"kind": "builder", "in": "丏丹乃", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丏丹乃", "out": "Take a list of integers; take the absolute value of each, then keep only the last three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then stop at the first non-positive value.", "out": "丕丸乂"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then keep the leading run of positive numbers.", "out": "丕丸乂"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then take values while they are positive.", "out": "丕丸乂"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then take positive values then stop.", "out": "丕丸乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then keep going while positive.", "out": "丕丸乂"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then stop at first non positive.", "out": "丕丸乂"} {"kind": "builder", "in": "丕丸乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丕丸乂", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then truncate to the last three items.", "out": "义丁丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then show only the last three.", "out": "义丁丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then remove all but the last three.", "out": "义丁丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then take the final 3 elements.", "out": "义丁丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then drop everything except the final three.", "out": "义丁丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then give me the last three elements.", "out": "义丁丹"} {"kind": "builder", "in": "义丁丹", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "义丁丹", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the odd numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only odd values, then bump each up by one.", "out": "丐丁下"} {"kind": "speaker", "in": "Take a list of integers; reverse, then eliminate the even numbers, then increment each item.", "out": "丐丁下"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only odd values, then bump each up by one.", "out": "丐丁下"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then eliminate the even numbers, then increment each item.", "out": "丐丁下"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only odd values, then bump each up by one.", "out": "丐丁下"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then eliminate the even numbers, then increment each item.", "out": "丐丁下"} {"kind": "builder", "in": "丐丁下", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丐丁下", "out": "Take a list of integers; reverse the order, then keep the odd numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then clamp each to at most ten, then give back the product of all values.", "out": "九丘乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then don't let anything exceed 10, then product of the list.", "out": "九丘乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then clamp each to at most ten, then what's the product.", "out": "九丘乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then don't let anything exceed 10, then what do they multiply to.", "out": "九丘乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then clamp each to at most ten, then give me their product.", "out": "九丘乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then don't let anything exceed 10, then multiply them all together.", "out": "九丘乐"} {"kind": "builder", "in": "九丘乐", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [min(x, 10) for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "九丘乐", "out": "Take a list of people records (name, age); extract the ages, then cap each value at 10, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then drop anything 5 or below, then ensure at least three items by appending zeros.", "out": "久主义"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep only numbers greater than 5, then ensure minimum length of three by adding zeros to the end.", "out": "久主义"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then filter for numbers above 5, then ensure at least three items by appending zeros.", "out": "久主义"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then give me values where x is greater than 5, then ensure minimum length of three by adding zeros to the end.", "out": "久主义"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then show me only the values that are bigger than five, then ensure at least three items by appending zeros.", "out": "久主义"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep values greater than five, then ensure minimum length of three by adding zeros to the end.", "out": "久主义"} {"kind": "builder", "in": "久主义", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "久主义", "out": "Take a list of integers; keep everything before the first zero, then keep values greater than five, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then multiply each value by itself, then bump each up by one.", "out": "丽上下"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then square them all, then increment each item.", "out": "丽上下"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then raise each to the power of two, then bump each up by one.", "out": "丽上下"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then I need each number multiplied by itself, then increment each item.", "out": "丽上下"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then square all of them, then bump each up by one.", "out": "丽上下"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiply each element by itself, then increment each item.", "out": "丽上下"} {"kind": "builder", "in": "丽上下", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x * x for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丽上下", "out": "Take a list of integers; add ten to each, then square each, then add one to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values divisible by 3, then give back the product of all values.", "out": "九串乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep items where x mod 3 equals zero, then product of the list.", "out": "九串乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then drop anything not divisible by three, then what's the product.", "out": "九串乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then filter out everything except multiples of three, then what do they multiply to.", "out": "九串乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only multiples of three, then give me their product.", "out": "九串乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiples of three only, then multiply them all together.", "out": "九串乐"} {"kind": "builder", "in": "九串乐", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 3 == 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "九串乐", "out": "Take a list of people records (name, age); extract the ages, then keep multiples of three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values divisible by 3, then strip the signs.", "out": "乂串丏"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep items where x mod 3 equals zero, then take abs of each.", "out": "乂串丏"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then drop anything not divisible by three, then get the absolute value of everything.", "out": "乂串丏"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then filter out everything except multiples of three, then apply absolute value to the whole list.", "out": "乂串丏"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only multiples of three, then make them all positive.", "out": "乂串丏"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiples of three only, then make every value non-negative.", "out": "乂串丏"} {"kind": "builder", "in": "乂串丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 3 == 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "乂串丏", "out": "Take a list of integers; take values while they are positive, then keep multiples of three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then drop the even numbers.", "out": "义下丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then strip out the evens.", "out": "义下丁"} {"kind": "builder", "in": "义下丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义下丁", "out": "Take a list of integers; pad with zeros to at least three elements, then add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then extend to length 3 using zeros, then drop non-positive values.", "out": "丸义七"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then pad to 3, then drop the negative numbers.", "out": "丸义七"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then extend to length 3 using zeros, then filter out the negative ones.", "out": "丸义七"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then pad to 3, then remove all negative values.", "out": "丸义七"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then extend to length 3 using zeros, then keep positive values only.", "out": "丸义七"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then pad to 3, then keep values above zero.", "out": "丸义七"} {"kind": "builder", "in": "丸义七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丸义七", "out": "Take a list of integers; sort by absolute value, then pad with zeros to at least three elements, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values above zero, then strip the signs.", "out": "世七丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter for positive numbers, then take abs of each.", "out": "世七丏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only positive numbers, then get the absolute value of everything.", "out": "世七丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positives, then apply absolute value to the whole list.", "out": "世七丏"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove negatives, then make them all positive.", "out": "世七丏"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positive numbers, then make every value non-negative.", "out": "世七丏"} {"kind": "builder", "in": "世七丏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "世七丏", "out": "Take a list of integers; drop the first element, then keep the positive numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then order by distance from zero, then shift each up by ten.", "out": "丐丸丽"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort based on absolute value, then increase all numbers by 10.", "out": "丐丸丽"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then organize by magnitude, then add 10 to everything.", "out": "丐丸丽"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then arrange by absolute value ascending, then give everything a boost of 10.", "out": "丐丸丽"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort from smallest to largest absolute value, then increment each by ten.", "out": "丐丸丽"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort by absolute value, then add a constant 10 to each.", "out": "丐丸丽"} {"kind": "builder", "in": "丐丸丽", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, key=abs)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丐丸丽", "out": "Take a list of integers; reverse the order, then sort by absolute value, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then multiply each by -1.", "out": "七丘与"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then negate.", "out": "七丘与"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then multiply each by -1.", "out": "七丘与"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then negate.", "out": "七丘与"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then multiply each by -1.", "out": "七丘与"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then negate.", "out": "七丘与"} {"kind": "builder", "in": "七丘与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "七丘与", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each value by itself, then reduce each by one.", "out": "串上不"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then square them all, then Subtract 1 from all.", "out": "串上不"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then raise each to the power of two, then Subtract one from each.", "out": "串上不"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then I need each number multiplied by itself, then Drop each by one.", "out": "串上不"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then square all of them, then Decrease all values by one.", "out": "串上不"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then multiply each element by itself, then Remove one from each value.", "out": "串上不"} {"kind": "builder", "in": "串上不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "串上不", "out": "Take a list of integers; keep multiples of three, then square each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the list around, then true if at least one even value.", "out": "一丐之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then flip the order around, then any even.", "out": "一丐之"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then put the elements backwards, then true if at least one even value.", "out": "一丐之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then reverse that for me, then any even.", "out": "一丐之"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip it backwards, then true if at least one even value.", "out": "一丐之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then make it backwards, then any even.", "out": "一丐之"} {"kind": "builder", "in": "一丐之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(reversed(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "一丐之", "out": "Take a list of integers; keep the even numbers, then reverse the order, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove all zero values, then ensure at least three items by appending zeros.", "out": "丸举义"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then exclude zeros, then ensure minimum length of three by adding zeros to the end.", "out": "丸举义"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove all zero values, then ensure at least three items by appending zeros.", "out": "丸举义"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then exclude zeros, then ensure minimum length of three by adding zeros to the end.", "out": "丸举义"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove all zero values, then ensure at least three items by appending zeros.", "out": "丸举义"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then exclude zeros, then ensure minimum length of three by adding zeros to the end.", "out": "丸举义"} {"kind": "builder", "in": "丸举义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丸举义", "out": "Take a list of integers; sort by absolute value, then drop the zeros, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then cut the list at the first zero, then limit every value to 10.", "out": "举久丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off after the first zero appears, then maximum of 10 for all.", "out": "举久丘"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take values up to (excluding) the first zero, then limit every value to 10.", "out": "举久丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the part before the first 0, then maximum of 10 for all.", "out": "举久丘"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate at the first zero, then limit every value to 10.", "out": "举久丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then delete everything starting with the first zero, then maximum of 10 for all.", "out": "举久丘"} {"kind": "builder", "in": "举久丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "举久丘", "out": "Take a list of integers; drop the zeros, then keep everything before the first zero, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increment each value, then replace an empty list with one zero.", "out": "为下么"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then plus one for all, then zero it out if it's empty.", "out": "为下么"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then increment each value, then use zero if the list is empty.", "out": "为下么"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then plus one for all, then default to zero when empty.", "out": "为下么"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then increment each value, then if there's nothing, put in a zero.", "out": "为下么"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then plus one for all, then if no items, add a zero.", "out": "为下么"} {"kind": "builder", "in": "为下么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "为下么", "out": "Take a list of integers; drop the first and last elements, then add one to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove repeated values, then drop the odd numbers.", "out": "万且一"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then unique values preserving order, then filter out the odd numbers.", "out": "万且一"} {"kind": "builder", "in": "万且一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "万且一", "out": "Take a list of integers; keep the negative numbers, then drop duplicates keeping first occurrence, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only even values, then arrange in increasing order.", "out": "久一丑"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then extract all even numbers, then Organize these ascending.", "out": "久一丑"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only even values, then Sort in ascending order.", "out": "久一丑"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then extract all even numbers, then I need this sorted ascending.", "out": "久一丑"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only even values, then Put these in ascending order.", "out": "久一丑"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then extract all even numbers, then sort smallest to largest.", "out": "久一丑"} {"kind": "builder", "in": "久一丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "久一丑", "out": "Take a list of integers; keep everything before the first zero, then keep the even numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the sign of each, then stop at the first non-positive value.", "out": "丸与乂"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then turn positives to negatives and vice versa, then keep the leading run of positive numbers.", "out": "丸与乂"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then flip the sign of each, then take values while they are positive.", "out": "丸与乂"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn positives to negatives and vice versa, then take positive values then stop.", "out": "丸与乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip the sign of each, then keep going while positive.", "out": "丸与乂"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then turn positives to negatives and vice versa, then stop at first non positive.", "out": "丸与乂"} {"kind": "builder", "in": "丸与乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [-x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丸与乂", "out": "Take a list of integers; sort by absolute value, then negate each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then flip the list around, then drop non-negative values.", "out": "专丐万"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then flip the order around, then drop all positive numbers.", "out": "专丐万"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then put the elements backwards, then drop non-negative values.", "out": "专丐万"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then reverse that for me, then drop all positive numbers.", "out": "专丐万"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then flip it backwards, then drop non-negative values.", "out": "专丐万"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then make it backwards, then drop all positive numbers.", "out": "专丐万"} {"kind": "builder", "in": "专丐万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "专丐万", "out": "Take a list of integers; sort descending, then reverse the order, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then decrement each value, then give the earliest even value or zero.", "out": "丘不乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Lower each number by one, then fetch the first even element, default to 0.", "out": "丘不乒"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then reduce each by one, then give the earliest even value or zero.", "out": "丘不乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Subtract 1 from all, then fetch the first even element, default to 0.", "out": "丘不乒"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Subtract one from each, then give the earliest even value or zero.", "out": "丘不乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Drop each by one, then fetch the first even element, default to 0.", "out": "丘不乒"} {"kind": "builder", "in": "丘不乒", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丘不乒", "out": "Take a list of integers; cap each value at 10, then subtract one from each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort smallest to largest, then drop the even numbers.", "out": "下丑丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Ascending sort, then strip out the evens.", "out": "下丑丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Sort this ascending, then drop the even numbers.", "out": "下丑丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Sort lowest to highest, then strip out the evens.", "out": "下丑丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Arrange from smallest to largest, then drop the even numbers.", "out": "下丑丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort ascending, then strip out the evens.", "out": "下丑丁"} {"kind": "builder", "in": "下丑丁", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "下丑丁", "out": "Take a list of integers; add one to each, then sort ascending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increase every value by 10, then make each twice as big.", "out": "不丽丈"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then add 10 to each item, then multiply each by 2.", "out": "不丽丈"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then shift each up by ten, then make each twice as big.", "out": "不丽丈"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then increase all numbers by 10, then multiply each by 2.", "out": "不丽丈"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then add 10 to everything, then make each twice as big.", "out": "不丽丈"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then give everything a boost of 10, then multiply each by 2.", "out": "不丽丈"} {"kind": "builder", "in": "不丽丈", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "不丽丈", "out": "Take a list of integers; subtract one from each, then add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the final 3 elements, then skip the first one.", "out": "七丹世"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then drop everything except the final three, then Discard the first element.", "out": "七丹世"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then give me the last three elements, then skip the first one.", "out": "七丹世"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep only the last three, then Discard the first element.", "out": "七丹世"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep the final three items, then skip the first one.", "out": "七丹世"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the last three, then Discard the first element.", "out": "七丹世"} {"kind": "builder", "in": "七丹世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[-3:]\n r = r[1:]\n return r"} {"kind": "translator", "in": "七丹世", "out": "Take a list of integers; keep the positive numbers, then keep only the last three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then shift each up by ten.", "out": "乂乃丽"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then increase all numbers by 10.", "out": "乂乃丽"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then add 10 to everything.", "out": "乂乃丽"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then give everything a boost of 10.", "out": "乂乃丽"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then increment each by ten.", "out": "乂乃丽"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then add a constant 10 to each.", "out": "乂乃丽"} {"kind": "builder", "in": "乂乃丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乂乃丽", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then cut the list at the first zero, then bump each up by one.", "out": "专久下"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then cut off after the first zero appears, then increment each item.", "out": "专久下"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take values up to (excluding) the first zero, then bump each up by one.", "out": "专久下"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep the part before the first 0, then increment each item.", "out": "专久下"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then truncate at the first zero, then bump each up by one.", "out": "专久下"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then delete everything starting with the first zero, then increment each item.", "out": "专久下"} {"kind": "builder", "in": "专久下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "专久下", "out": "Take a list of integers; sort descending, then keep everything before the first zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each by two, then put the elements backwards.", "out": "主丈丐"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then double each item in the list, then reverse that for me.", "out": "主丈丐"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then multiply each by two, then flip it backwards.", "out": "主丈丐"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then double each item in the list, then make it backwards.", "out": "主丈丐"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then multiply each by two, then reverse the list.", "out": "主丈丐"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then double each item in the list, then invert the sequence.", "out": "主丈丐"} {"kind": "builder", "in": "主丈丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * 2 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "主丈丐", "out": "Take a list of integers; keep values greater than five, then double each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten, then true only if all are positive.", "out": "丽丘乌"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10, then do all of these have positive values.", "out": "丽丘乌"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten, then check if every value is positive.", "out": "丽丘乌"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10, then confirm all values are positive.", "out": "丽丘乌"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten, then all positive.", "out": "丽丘乌"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10, then check if every number is above zero.", "out": "丽丘乌"} {"kind": "builder", "in": "丽丘乌", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丽丘乌", "out": "Take a list of integers; add ten to each, then cap each value at 10, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then take each string's first letter, then deduplicate the strings.", "out": "丞丨丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then give me the first letter of everything, then filter out duplicate strings retain first.", "out": "丞丨丧"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then reduce each string to its first character, then strip duplicates preserve order.", "out": "丞丨丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then take first char drop blanks, then remove repeated strings.", "out": "丞丨丧"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then keep first letters only, then keep unique strings first appearance.", "out": "丞丨丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then first letter from each item that isn't empty, then eliminate repeated strings preserve first occurrence.", "out": "丞丨丧"} {"kind": "builder", "in": "丞丨丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s[0] for s in r if s]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丞丨丧", "out": "Take a list of strings; lowercase each string, then keep the first character of each (dropping empties), then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then order by distance from zero, then shift each up by ten.", "out": "为丸丽"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort based on absolute value, then increase all numbers by 10.", "out": "为丸丽"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then organize by magnitude, then add 10 to everything.", "out": "为丸丽"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then arrange by absolute value ascending, then give everything a boost of 10.", "out": "为丸丽"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort from smallest to largest absolute value, then increment each by ten.", "out": "为丸丽"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort by absolute value, then add a constant 10 to each.", "out": "为丸丽"} {"kind": "builder", "in": "为丸丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, key=abs)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "为丸丽", "out": "Take a list of integers; drop the first and last elements, then sort by absolute value, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep only even values, then arrange by magnitude ignoring sign.", "out": "主一丸"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then extract all even numbers, then put them in order by magnitude.", "out": "主一丸"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only even values, then arrange in order of absolute value.", "out": "主一丸"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then extract all even numbers, then sort by distance from zero.", "out": "主一丸"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only even values, then order by how far from zero.", "out": "主一丸"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then extract all even numbers, then order by distance from zero.", "out": "主一丸"} {"kind": "builder", "in": "主一丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "主一丸", "out": "Take a list of integers; keep values greater than five, then keep the even numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values divisible by 3, then deduplicate the list.", "out": "丸串且"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep items where x mod 3 equals zero, then remove repeats.", "out": "丸串且"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then drop anything not divisible by three, then deduplicate the list.", "out": "丸串且"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then filter out everything except multiples of three, then remove repeats.", "out": "丸串且"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only multiples of three, then deduplicate the list.", "out": "丸串且"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiples of three only, then remove repeats.", "out": "丸串且"} {"kind": "builder", "in": "丸串且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丸串且", "out": "Take a list of integers; sort by absolute value, then keep multiples of three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then skip negatives at the start, then give the earliest even value or zero.", "out": "丽乃乒"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove all negatives at the front, then fetch the first even element, default to 0.", "out": "丽乃乒"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the initial run of negative numbers, then give the earliest even value or zero.", "out": "丽乃乒"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then strip the front negatives, then fetch the first even element, default to 0.", "out": "丽乃乒"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove leading negative numbers, then give the earliest even value or zero.", "out": "丽乃乒"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then drop negatives from start, then fetch the first even element, default to 0.", "out": "丽乃乒"} {"kind": "builder", "in": "丽乃乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丽乃乒", "out": "Take a list of integers; add ten to each, then drop the leading negative values, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the sign of each, then raise each to the power of two.", "out": "不与上"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then turn positives to negatives and vice versa, then I need each number multiplied by itself.", "out": "不与上"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then flip the sign of each, then square all of them.", "out": "不与上"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn positives to negatives and vice versa, then multiply each element by itself.", "out": "不与上"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip the sign of each, then make each one squared.", "out": "不与上"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then turn positives to negatives and vice versa, then square each value in the list.", "out": "不与上"} {"kind": "builder", "in": "不与上", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [-x for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "不与上", "out": "Take a list of integers; subtract one from each, then negate each, then square each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values divisible by 3, then arrange by magnitude ignoring sign.", "out": "与串丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep items where x mod 3 equals zero, then put them in order by magnitude.", "out": "与串丸"} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything not divisible by three, then arrange in order of absolute value.", "out": "与串丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter out everything except multiples of three, then sort by distance from zero.", "out": "与串丸"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only multiples of three, then order by how far from zero.", "out": "与串丸"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiples of three only, then order by distance from zero.", "out": "与串丸"} {"kind": "builder", "in": "与串丸", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "与串丸", "out": "Take a list of integers; negate each, then keep multiples of three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increase every value by 10, then remove the initial run of negative numbers.", "out": "为丽乃"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then add 10 to each item, then strip the front negatives.", "out": "为丽乃"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then shift each up by ten, then remove leading negative numbers.", "out": "为丽乃"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then increase all numbers by 10, then drop negatives from start.", "out": "为丽乃"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then add 10 to everything, then strip negative values from the start.", "out": "为丽乃"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then give everything a boost of 10, then remove negatives before the first non-negative.", "out": "为丽乃"} {"kind": "builder", "in": "为丽乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "为丽乃", "out": "Take a list of integers; drop the first and last elements, then add ten to each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each by two, then shift each up by ten.", "out": "丁丈丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then double each item in the list, then increase all numbers by 10.", "out": "丁丈丽"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each by two, then add 10 to everything.", "out": "丁丈丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then double each item in the list, then give everything a boost of 10.", "out": "丁丈丽"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each by two, then increment each by ten.", "out": "丁丈丽"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then double each item in the list, then add a constant 10 to each.", "out": "丁丈丽"} {"kind": "builder", "in": "丁丈丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丁丈丽", "out": "Take a list of integers; keep the odd numbers, then double each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then cut the list at the first zero, then drop the even numbers.", "out": "万久丁"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off after the first zero appears, then strip out the evens.", "out": "万久丁"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take values up to (excluding) the first zero, then drop the even numbers.", "out": "万久丁"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the part before the first 0, then strip out the evens.", "out": "万久丁"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate at the first zero, then drop the even numbers.", "out": "万久丁"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then delete everything starting with the first zero, then strip out the evens.", "out": "万久丁"} {"kind": "builder", "in": "万久丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "万久丁", "out": "Take a list of integers; keep the negative numbers, then keep everything before the first zero, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then clamp each to at most ten, then put the elements backwards.", "out": "乃丘丐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then don't let anything exceed 10, then reverse that for me.", "out": "乃丘丐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then clamp each to at most ten, then flip it backwards.", "out": "乃丘丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then don't let anything exceed 10, then make it backwards.", "out": "乃丘丐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then clamp each to at most ten, then reverse the list.", "out": "乃丘丐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then don't let anything exceed 10, then invert the sequence.", "out": "乃丘丐"} {"kind": "builder", "in": "乃丘丐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [min(x, 10) for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "乃丘丐", "out": "Take a list of integers; drop the leading negative values, then cap each value at 10, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything 5 or below, then find the max, defaulting to 0.", "out": "举主业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only numbers greater than 5, then Give me the maximum, but 0 if there are no items.", "out": "举主业"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then filter for numbers above 5, then What's the highest number in the list.", "out": "举主业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give me values where x is greater than 5, then Return the greatest value or default to 0.", "out": "举主业"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then show me only the values that are bigger than five, then Find the largest element, defaulting to zero.", "out": "举主业"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep values greater than five, then give the largest value (0 if none).", "out": "举主业"} {"kind": "builder", "in": "举主业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n return max(r) if r else 0"} {"kind": "translator", "in": "举主业", "out": "Take a list of integers; drop the zeros, then keep values greater than five, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only odd values, then limit every value to 10.", "out": "丹丁丘"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then eliminate the even numbers, then maximum of 10 for all.", "out": "丹丁丘"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only odd values, then limit every value to 10.", "out": "丹丁丘"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then eliminate the even numbers, then maximum of 10 for all.", "out": "丹丁丘"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only odd values, then limit every value to 10.", "out": "丹丁丘"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then eliminate the even numbers, then maximum of 10 for all.", "out": "丹丁丘"} {"kind": "builder", "in": "丹丁丘", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丹丁丘", "out": "Take a list of integers; keep only the last three, then keep the odd numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then order the strings A to Z, then prepend a hash mark to each.", "out": "丧乖乘"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then make it alphabetical, then prefix all with #.", "out": "丧乖乘"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then order the strings A to Z, then prepend a hash mark to each.", "out": "丧乖乘"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then make it alphabetical, then prefix all with #.", "out": "丧乖乘"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then order the strings A to Z, then prepend a hash mark to each.", "out": "丧乖乘"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then make it alphabetical, then prefix all with #.", "out": "丧乖乘"} {"kind": "builder", "in": "丧乖乘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r)\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "丧乖乘", "out": "Take a list of strings; drop duplicate strings keeping the first, then sort alphabetically, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then strip spaces around each string, then find the longest one, defaulting to empty.", "out": "丧丢丰"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then remove leading and trailing spaces, then Longest string, or nothing if there isn't one.", "out": "丧丢丰"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then remove whitespace from each item, then find the longest one, defaulting to empty.", "out": "丧丢丰"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then clean whitespace from each entry, then Longest string, or nothing if there isn't one.", "out": "丧丢丰"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then trim each string, then find the longest one, defaulting to empty.", "out": "丧丢丰"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then trim whitespace from each, then Longest string, or nothing if there isn't one.", "out": "丧丢丰"} {"kind": "builder", "in": "丧丢丰", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s.strip() for s in r]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丧丢丰", "out": "Take a list of strings; drop duplicate strings keeping the first, then trim whitespace from each, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then decrement each value, then give the earliest even value or zero.", "out": "丸不乒"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Lower each number by one, then fetch the first even element, default to 0.", "out": "丸不乒"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then reduce each by one, then give the earliest even value or zero.", "out": "丸不乒"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Subtract 1 from all, then fetch the first even element, default to 0.", "out": "丸不乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Subtract one from each, then give the earliest even value or zero.", "out": "丸不乒"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Drop each by one, then fetch the first even element, default to 0.", "out": "丸不乒"} {"kind": "builder", "in": "丸不乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x - 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丸不乒", "out": "Take a list of integers; sort by absolute value, then subtract one from each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep the leading run of positive numbers, then drop anything not divisible by three.", "out": "丑乂串"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then take values while they are positive, then filter out everything except multiples of three.", "out": "丑乂串"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take positive values then stop, then keep only multiples of three.", "out": "丑乂串"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep going while positive, then multiples of three only.", "out": "丑乂串"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then stop at first non positive, then filter for numbers divisible by three.", "out": "丑乂串"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take while greater than zero, then give me only the values divisible by three.", "out": "丑乂串"} {"kind": "builder", "in": "丑乂串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丑乂串", "out": "Take a list of integers; sort ascending, then take values while they are positive, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then drop anything 5 or below, then skip the first one.", "out": "万主世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only numbers greater than 5, then Discard the first element.", "out": "万主世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then filter for numbers above 5, then skip the first one.", "out": "万主世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then give me values where x is greater than 5, then Discard the first element.", "out": "万主世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then show me only the values that are bigger than five, then skip the first one.", "out": "万主世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep values greater than five, then Discard the first element.", "out": "万主世"} {"kind": "builder", "in": "万主世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 5]\n r = r[1:]\n return r"} {"kind": "translator", "in": "万主世", "out": "Take a list of integers; keep the negative numbers, then keep values greater than five, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then order by distance from zero, then reduce each by one.", "out": "丽丸不"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then sort based on absolute value, then Subtract 1 from all.", "out": "丽丸不"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then organize by magnitude, then Subtract one from each.", "out": "丽丸不"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then arrange by absolute value ascending, then Drop each by one.", "out": "丽丸不"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then sort from smallest to largest absolute value, then Decrease all values by one.", "out": "丽丸不"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort by absolute value, then Remove one from each value.", "out": "丽丸不"} {"kind": "builder", "in": "丽丸不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r, key=abs)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丽丸不", "out": "Take a list of integers; add ten to each, then sort by absolute value, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep the leading run of positive numbers, then limit every value to 10.", "out": "专乂丘"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then take values while they are positive, then maximum of 10 for all.", "out": "专乂丘"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take positive values then stop, then limit every value to 10.", "out": "专乂丘"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep going while positive, then maximum of 10 for all.", "out": "专乂丘"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then stop at first non positive, then limit every value to 10.", "out": "专乂丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take while greater than zero, then maximum of 10 for all.", "out": "专乂丘"} {"kind": "builder", "in": "专乂丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "专乂丘", "out": "Take a list of integers; sort descending, then take values while they are positive, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove all zero values, then trim one element off each end.", "out": "专举为"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then exclude zeros, then cut off the first and last.", "out": "专举为"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove all zero values, then remove the first and last elements.", "out": "专举为"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then exclude zeros, then keep only the middle part.", "out": "专举为"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove all zero values, then drop first and last.", "out": "专举为"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then exclude zeros, then eliminate the outermost elements.", "out": "专举为"} {"kind": "builder", "in": "专举为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "专举为", "out": "Take a list of integers; sort descending, then drop the zeros, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything 5 or below, then true if already sorted smallest to largest.", "out": "下主乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only numbers greater than 5, then does this list go in ascending order.", "out": "下主乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then filter for numbers above 5, then check if the list is in ascending order.", "out": "下主乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me values where x is greater than 5, then is the list sorted.", "out": "下主乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then show me only the values that are bigger than five, then is it sorted.", "out": "下主乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep values greater than five, then check if values are in increasing order.", "out": "下主乎"} {"kind": "builder", "in": "下主乎", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 5]\n return r == sorted(r)"} {"kind": "translator", "in": "下主乎", "out": "Take a list of integers; add one to each, then keep values greater than five, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then drop non-negative values.", "out": "一丁万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then drop all positive numbers.", "out": "一丁万"} {"kind": "builder", "in": "一丁万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "一丁万", "out": "Take a list of integers; keep the even numbers, then keep the odd numbers, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each by two, then strip the signs.", "out": "丁丈丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then double each item in the list, then take abs of each.", "out": "丁丈丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each by two, then get the absolute value of everything.", "out": "丁丈丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then double each item in the list, then apply absolute value to the whole list.", "out": "丁丈丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each by two, then make them all positive.", "out": "丁丈丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then double each item in the list, then make every value non-negative.", "out": "丁丈丏"} {"kind": "builder", "in": "丁丈丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丁丈丏", "out": "Take a list of integers; keep the odd numbers, then double each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then decrement each value, then make each twice as big.", "out": "丑不丈"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then Lower each number by one, then multiply each by 2.", "out": "丑不丈"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then reduce each by one, then make each twice as big.", "out": "丑不丈"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then Subtract 1 from all, then multiply each by 2.", "out": "丑不丈"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then Subtract one from each, then make each twice as big.", "out": "丑不丈"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then Drop each by one, then multiply each by 2.", "out": "丑不丈"} {"kind": "builder", "in": "丑不丈", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丑不丈", "out": "Take a list of integers; sort ascending, then subtract one from each, then double each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero, then arrange in decreasing order.", "out": "乂丸专"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value, then arrange in descending order.", "out": "乂丸专"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude, then reverse sort.", "out": "乂丸专"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending, then sort largest to smallest.", "out": "乂丸专"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value, then sort by descending values.", "out": "乂丸专"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value, then sort from highest to lowest.", "out": "乂丸专"} {"kind": "builder", "in": "乂丸专", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乂丸专", "out": "Take a list of integers; take values while they are positive, then sort by absolute value, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then make every value non-negative, then drop the odd numbers.", "out": "举丏一"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then absolute value for all items, then filter out the odd numbers.", "out": "举丏一"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take absolute values, then drop the odd numbers.", "out": "举丏一"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn negatives into positives, then filter out the odd numbers.", "out": "举丏一"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then abs each element, then drop the odd numbers.", "out": "举丏一"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the absolute value of each, then filter out the odd numbers.", "out": "举丏一"} {"kind": "builder", "in": "举丏一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "举丏一", "out": "Take a list of integers; drop the zeros, then take the absolute value of each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then give the earliest even value or zero.", "out": "举下乒"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then fetch the first even element, default to 0.", "out": "举下乒"} {"kind": "builder", "in": "举下乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "举下乒", "out": "Take a list of integers; drop the zeros, then add one to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then multiply each value by itself, then count the elements.", "out": "丽上东"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then square them all, then how many items remain.", "out": "丽上东"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then raise each to the power of two, then tell me the length.", "out": "丽上东"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then I need each number multiplied by itself, then return the length.", "out": "丽上东"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then square all of them, then count them.", "out": "丽上东"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiply each element by itself, then what's the count.", "out": "丽上东"} {"kind": "builder", "in": "丽上东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x * x for x in r]\n return len(r)"} {"kind": "translator", "in": "丽上东", "out": "Take a list of integers; add ten to each, then square each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort smallest to largest, then put the elements backwards.", "out": "与丑丐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Ascending sort, then reverse that for me.", "out": "与丑丐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Sort this ascending, then flip it backwards.", "out": "与丑丐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Sort lowest to highest, then make it backwards.", "out": "与丑丐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Arrange from smallest to largest, then reverse the list.", "out": "与丑丐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort ascending, then invert the sequence.", "out": "与丑丐"} {"kind": "builder", "in": "与丑丐", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "与丑丐", "out": "Take a list of integers; negate each, then sort ascending, then reverse the order."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then take each string's first letter, then remove surrounding whitespace.", "out": "乖丨丢"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then give me the first letter of everything, then trim the whitespace off everything.", "out": "乖丨丢"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then reduce each string to its first character, then strip spaces from all strings.", "out": "乖丨丢"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then take first char drop blanks, then strip all the strings.", "out": "乖丨丢"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep first letters only, then clean up whitespace in the list.", "out": "乖丨丢"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then first letter from each item that isn't empty, then strip spaces around each string.", "out": "乖丨丢"} {"kind": "builder", "in": "乖丨丢", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s[0] for s in r if s]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "乖丨丢", "out": "Take a list of strings; sort alphabetically, then keep the first character of each (dropping empties), then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself, then skip the first one.", "out": "乃上世"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all, then Discard the first element.", "out": "乃上世"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two, then skip the first one.", "out": "乃上世"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself, then Discard the first element.", "out": "乃上世"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them, then skip the first one.", "out": "乃上世"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself, then Discard the first element.", "out": "乃上世"} {"kind": "builder", "in": "乃上世", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "乃上世", "out": "Take a list of integers; drop the leading negative values, then square each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then drop anything 5 or below, then remove the initial run of negative numbers.", "out": "乂主乃"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep only numbers greater than 5, then strip the front negatives.", "out": "乂主乃"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then filter for numbers above 5, then remove leading negative numbers.", "out": "乂主乃"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then give me values where x is greater than 5, then drop negatives from start.", "out": "乂主乃"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then show me only the values that are bigger than five, then strip negative values from the start.", "out": "乂主乃"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep values greater than five, then remove negatives before the first non-negative.", "out": "乂主乃"} {"kind": "builder", "in": "乂主乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 5]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "乂主乃", "out": "Take a list of integers; take values while they are positive, then keep values greater than five, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then sort smallest to largest, then give back the total.", "out": "不丑丙"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Ascending sort, then sum r.", "out": "不丑丙"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then Sort this ascending, then add them up.", "out": "不丑丙"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Sort lowest to highest, then calculate the sum of all elements.", "out": "不丑丙"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then Arrange from smallest to largest, then what's the total.", "out": "不丑丙"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then sort ascending, then what do they add up to.", "out": "不丑丙"} {"kind": "builder", "in": "不丑丙", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = sorted(r)\n return sum(r)"} {"kind": "translator", "in": "不丑丙", "out": "Take a list of integers; subtract one from each, then sort ascending, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then default to [0] when there is nothing, then give back the total.", "out": "丐么丙"} {"kind": "speaker", "in": "Take a list of integers; reverse, then when the list is empty, substitute a zero value, then sum r.", "out": "丐么丙"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then replace an empty list with one zero, then add them up.", "out": "丐么丙"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then zero it out if it's empty, then calculate the sum of all elements.", "out": "丐么丙"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then use zero if the list is empty, then what's the total.", "out": "丐么丙"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then default to zero when empty, then what do they add up to.", "out": "丐么丙"} {"kind": "builder", "in": "丐么丙", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r if r else [0]\n return sum(r)"} {"kind": "translator", "in": "丐么丙", "out": "Take a list of integers; reverse the order, then if empty, use a single zero, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values above zero, then drop the odd numbers.", "out": "与七一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter for positive numbers, then filter out the odd numbers.", "out": "与七一"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only positive numbers, then drop the odd numbers.", "out": "与七一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the positives, then filter out the odd numbers.", "out": "与七一"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove negatives, then drop the odd numbers.", "out": "与七一"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the positive numbers, then filter out the odd numbers.", "out": "与七一"} {"kind": "builder", "in": "与七一", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "与七一", "out": "Take a list of integers; negate each, then keep the positive numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each value by itself, then drop the odd numbers.", "out": "专上一"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then square them all, then filter out the odd numbers.", "out": "专上一"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then raise each to the power of two, then drop the odd numbers.", "out": "专上一"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then I need each number multiplied by itself, then filter out the odd numbers.", "out": "专上一"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then square all of them, then drop the odd numbers.", "out": "专上一"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiply each element by itself, then filter out the odd numbers.", "out": "专上一"} {"kind": "builder", "in": "专上一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "专上一", "out": "Take a list of integers; sort descending, then square each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values above zero, then raise each to the power of two.", "out": "为七上"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then filter for positive numbers, then I need each number multiplied by itself.", "out": "为七上"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only positive numbers, then square all of them.", "out": "为七上"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the positives, then multiply each element by itself.", "out": "为七上"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove negatives, then make each one squared.", "out": "为七上"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep the positive numbers, then square each value in the list.", "out": "为七上"} {"kind": "builder", "in": "为七上", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x > 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "为七上", "out": "Take a list of integers; drop the first and last elements, then keep the positive numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then drop the even numbers.", "out": "且丽丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then strip out the evens.", "out": "且丽丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then drop the even numbers.", "out": "且丽丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then strip out the evens.", "out": "且丽丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then drop the even numbers.", "out": "且丽丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then strip out the evens.", "out": "且丽丁"} {"kind": "builder", "in": "且丽丁", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "且丽丁", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the final 3 elements, then arrange in increasing order.", "out": "一丹丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop everything except the final three, then Organize these ascending.", "out": "一丹丑"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then give me the last three elements, then Sort in ascending order.", "out": "一丹丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the last three, then I need this sorted ascending.", "out": "一丹丑"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the final three items, then Put these in ascending order.", "out": "一丹丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the last three, then sort smallest to largest.", "out": "一丹丑"} {"kind": "builder", "in": "一丹丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[-3:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "一丹丑", "out": "Take a list of integers; keep the even numbers, then keep only the last three, then sort ascending."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then convert each to lower case, then true if a blank string is present.", "out": "丟丞乙"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then lowercase each one, then check for empty strings in the list.", "out": "丟丞乙"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then convert each to lower case, then check if there's an empty string.", "out": "丟丞乙"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then lowercase each one, then does the collection contain an empty string value somewhere.", "out": "丟丞乙"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then convert each to lower case, then whether any element is blank.", "out": "丟丞乙"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then lowercase each one, then check for an empty string.", "out": "丟丞乙"} {"kind": "builder", "in": "丟丞乙", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s.lower() for s in r]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丟丞乙", "out": "Take a list of strings; uppercase each string, then lowercase each string, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each by two, then give back the product of all values.", "out": "久丈乐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then double each item in the list, then product of the list.", "out": "久丈乐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then multiply each by two, then what's the product.", "out": "久丈乐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then double each item in the list, then what do they multiply to.", "out": "久丈乐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then multiply each by two, then give me their product.", "out": "久丈乐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then double each item in the list, then multiply them all together.", "out": "久丈乐"} {"kind": "builder", "in": "久丈乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "久丈乐", "out": "Take a list of integers; keep everything before the first zero, then double each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then keep only non-zero numbers.", "out": "丁下举"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then strip the zeros.", "out": "丁下举"} {"kind": "builder", "in": "丁下举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丁下举", "out": "Take a list of integers; keep the odd numbers, then add one to each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the final 3 elements, then ensure at least three items by appending zeros.", "out": "且丹义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then drop everything except the final three, then ensure minimum length of three by adding zeros to the end.", "out": "且丹义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then give me the last three elements, then ensure at least three items by appending zeros.", "out": "且丹义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the last three, then ensure minimum length of three by adding zeros to the end.", "out": "且丹义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the final three items, then ensure at least three items by appending zeros.", "out": "且丹义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the last three, then ensure minimum length of three by adding zeros to the end.", "out": "且丹义"} {"kind": "builder", "in": "且丹义", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "且丹义", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep only the last three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values above zero, then make each twice as big.", "out": "丹七丈"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then filter for positive numbers, then multiply each by 2.", "out": "丹七丈"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only positive numbers, then make each twice as big.", "out": "丹七丈"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the positives, then multiply each by 2.", "out": "丹七丈"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove negatives, then make each twice as big.", "out": "丹七丈"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep the positive numbers, then multiply each by 2.", "out": "丹七丈"} {"kind": "builder", "in": "丹七丈", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丹七丈", "out": "Take a list of integers; keep only the last three, then keep the positive numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep only even values, then drop anything not divisible by three.", "out": "主一串"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then extract all even numbers, then filter out everything except multiples of three.", "out": "主一串"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only even values, then keep only multiples of three.", "out": "主一串"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then extract all even numbers, then multiples of three only.", "out": "主一串"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only even values, then filter for numbers divisible by three.", "out": "主一串"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then extract all even numbers, then give me only the values divisible by three.", "out": "主一串"} {"kind": "builder", "in": "主一串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "主一串", "out": "Take a list of integers; keep values greater than five, then keep the even numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then decrement each value, then make each twice as big.", "out": "主不丈"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Lower each number by one, then multiply each by 2.", "out": "主不丈"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then reduce each by one, then make each twice as big.", "out": "主不丈"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Subtract 1 from all, then multiply each by 2.", "out": "主不丈"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Subtract one from each, then make each twice as big.", "out": "主不丈"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Drop each by one, then multiply each by 2.", "out": "主不丈"} {"kind": "builder", "in": "主不丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "主不丈", "out": "Take a list of integers; keep values greater than five, then subtract one from each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the sign of each, then drop the odd numbers.", "out": "丹与一"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "丹与一"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then flip the sign of each, then drop the odd numbers.", "out": "丹与一"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "丹与一"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip the sign of each, then drop the odd numbers.", "out": "丹与一"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then turn positives to negatives and vice versa, then filter out the odd numbers.", "out": "丹与一"} {"kind": "builder", "in": "丹与一", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丹与一", "out": "Take a list of integers; keep only the last three, then negate each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then extend to length 3 using zeros, then deduplicate the list.", "out": "么义且"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then pad to 3, then remove repeats.", "out": "么义且"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then extend to length 3 using zeros, then deduplicate the list.", "out": "么义且"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then pad to 3, then remove repeats.", "out": "么义且"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then extend to length 3 using zeros, then deduplicate the list.", "out": "么义且"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then pad to 3, then remove repeats.", "out": "么义且"} {"kind": "builder", "in": "么义且", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "么义且", "out": "Take a list of integers; if empty, use a single zero, then pad with zeros to at least three elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort largest to smallest, then put the elements backwards.", "out": "且专丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort by descending values, then reverse that for me.", "out": "且专丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort from highest to lowest, then flip it backwards.", "out": "且专丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort descending, then make it backwards.", "out": "且专丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort largest first, then reverse the list.", "out": "且专丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort in descending order, then invert the sequence.", "out": "且专丐"} {"kind": "builder", "in": "且专丐", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, reverse=True)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "且专丐", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort descending, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove all zero values, then stop at the first non-positive value.", "out": "丽举乂"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then exclude zeros, then keep the leading run of positive numbers.", "out": "丽举乂"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove all zero values, then take values while they are positive.", "out": "丽举乂"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then exclude zeros, then take positive values then stop.", "out": "丽举乂"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove all zero values, then keep going while positive.", "out": "丽举乂"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then exclude zeros, then stop at first non positive.", "out": "丽举乂"} {"kind": "builder", "in": "丽举乂", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丽举乂", "out": "Take a list of integers; add ten to each, then drop the zeros, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then convert each to lower case, then prepend a hash mark to each.", "out": "两丞乘"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then lowercase each one, then prefix all with #.", "out": "两丞乘"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then convert each to lower case, then prepend a hash mark to each.", "out": "两丞乘"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then lowercase each one, then prefix all with #.", "out": "两丞乘"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then convert each to lower case, then prepend a hash mark to each.", "out": "两丞乘"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then lowercase each one, then prefix all with #.", "out": "两丞乘"} {"kind": "builder", "in": "两丞乘", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.lower() for s in r]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "两丞乘", "out": "Take a list of strings; drop empty strings, then lowercase each string, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then sort smallest to largest, then give back the product of all values.", "out": "七丑乐"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Ascending sort, then product of the list.", "out": "七丑乐"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then Sort this ascending, then what's the product.", "out": "七丑乐"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Sort lowest to highest, then what do they multiply to.", "out": "七丑乐"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Arrange from smallest to largest, then give me their product.", "out": "七丑乐"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort ascending, then multiply them all together.", "out": "七丑乐"} {"kind": "builder", "in": "七丑乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "七丑乐", "out": "Take a list of integers; keep the positive numbers, then sort ascending, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values above zero, then give back the total.", "out": "丑七丙"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then filter for positive numbers, then sum r.", "out": "丑七丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only positive numbers, then add them up.", "out": "丑七丙"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the positives, then calculate the sum of all elements.", "out": "丑七丙"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove negatives, then what's the total.", "out": "丑七丙"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep the positive numbers, then what do they add up to.", "out": "丑七丙"} {"kind": "builder", "in": "丑七丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 0]\n return sum(r)"} {"kind": "translator", "in": "丑七丙", "out": "Take a list of integers; sort ascending, then keep the positive numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only odd values, then multiply each by -1.", "out": "丏丁与"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then eliminate the even numbers, then negate.", "out": "丏丁与"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only odd values, then multiply each by -1.", "out": "丏丁与"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then eliminate the even numbers, then negate.", "out": "丏丁与"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only odd values, then multiply each by -1.", "out": "丏丁与"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then eliminate the even numbers, then negate.", "out": "丏丁与"} {"kind": "builder", "in": "丏丁与", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丏丁与", "out": "Take a list of integers; take the absolute value of each, then keep the odd numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove both ends, then arrange in increasing order.", "out": "七为丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then trim the edges, then Organize these ascending.", "out": "七为丑"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then trim one element off each end, then Sort in ascending order.", "out": "七为丑"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then cut off the first and last, then I need this sorted ascending.", "out": "七为丑"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first and last elements, then Put these in ascending order.", "out": "七为丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep only the middle part, then sort smallest to largest.", "out": "七为丑"} {"kind": "builder", "in": "七为丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:-1]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "七为丑", "out": "Take a list of integers; keep the positive numbers, then drop the first and last elements, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values above zero, then take values up to (excluding) the first zero.", "out": "且七久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter for positive numbers, then keep the part before the first 0.", "out": "且七久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only positive numbers, then truncate at the first zero.", "out": "且七久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positives, then delete everything starting with the first zero.", "out": "且七久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove negatives, then remove from the first zero onwards.", "out": "且七久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positive numbers, then up to but not including the first zero.", "out": "且七久"} {"kind": "builder", "in": "且七久", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "且七久", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the positive numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the sign of each, then arrange by magnitude ignoring sign.", "out": "乂与丸"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then turn positives to negatives and vice versa, then put them in order by magnitude.", "out": "乂与丸"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then flip the sign of each, then arrange in order of absolute value.", "out": "乂与丸"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then turn positives to negatives and vice versa, then sort by distance from zero.", "out": "乂与丸"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip the sign of each, then order by how far from zero.", "out": "乂与丸"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then turn positives to negatives and vice versa, then order by distance from zero.", "out": "乂与丸"} {"kind": "builder", "in": "乂与丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [-x for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "乂与丸", "out": "Take a list of integers; take values while they are positive, then negate each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values above zero, then truncate to three items.", "out": "丘七丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter for positive numbers, then show the first three.", "out": "丘七丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only positive numbers, then take the first three.", "out": "丘七丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positives, then keep first 3.", "out": "丘七丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove negatives, then truncate to first three.", "out": "丘七丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positive numbers, then first three.", "out": "丘七丕"} {"kind": "builder", "in": "丘七丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘七丕", "out": "Take a list of integers; cap each value at 10, then keep the positive numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only even values, then count the elements.", "out": "丹一东"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then extract all even numbers, then how many items remain.", "out": "丹一东"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only even values, then tell me the length.", "out": "丹一东"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then extract all even numbers, then return the length.", "out": "丹一东"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only even values, then count them.", "out": "丹一东"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then extract all even numbers, then what's the count.", "out": "丹一东"} {"kind": "builder", "in": "丹一东", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 == 0]\n return len(r)"} {"kind": "translator", "in": "丹一东", "out": "Take a list of integers; keep only the last three, then keep the even numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove all zero values, then give the earliest even value or zero.", "out": "么举乒"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then exclude zeros, then fetch the first even element, default to 0.", "out": "么举乒"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove all zero values, then give the earliest even value or zero.", "out": "么举乒"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then exclude zeros, then fetch the first even element, default to 0.", "out": "么举乒"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove all zero values, then give the earliest even value or zero.", "out": "么举乒"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then exclude zeros, then fetch the first even element, default to 0.", "out": "么举乒"} {"kind": "builder", "in": "么举乒", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "么举乒", "out": "Take a list of integers; if empty, use a single zero, then drop the zeros, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the sign of each, then true if at least one even value.", "out": "丑与之"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then turn positives to negatives and vice versa, then any even.", "out": "丑与之"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then flip the sign of each, then true if at least one even value.", "out": "丑与之"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn positives to negatives and vice versa, then any even.", "out": "丑与之"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip the sign of each, then true if at least one even value.", "out": "丑与之"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then turn positives to negatives and vice versa, then any even.", "out": "丑与之"} {"kind": "builder", "in": "丑与之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [-x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丑与之", "out": "Take a list of integers; sort ascending, then negate each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers, then take values up to (excluding) the first zero.", "out": "且乂久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive, then keep the part before the first 0.", "out": "且乂久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop, then truncate at the first zero.", "out": "且乂久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive, then delete everything starting with the first zero.", "out": "且乂久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive, then remove from the first zero onwards.", "out": "且乂久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero, then up to but not including the first zero.", "out": "且乂久"} {"kind": "builder", "in": "且乂久", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "且乂久", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each by two, then arrange by magnitude ignoring sign.", "out": "久丈丸"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then double each item in the list, then put them in order by magnitude.", "out": "久丈丸"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then multiply each by two, then arrange in order of absolute value.", "out": "久丈丸"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then double each item in the list, then sort by distance from zero.", "out": "久丈丸"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then multiply each by two, then order by how far from zero.", "out": "久丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then double each item in the list, then order by distance from zero.", "out": "久丈丸"} {"kind": "builder", "in": "久丈丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "久丈丸", "out": "Take a list of integers; keep everything before the first zero, then double each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the final 3 elements, then stop at the first non-positive value.", "out": "且丹乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then drop everything except the final three, then keep the leading run of positive numbers.", "out": "且丹乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then give me the last three elements, then take values while they are positive.", "out": "且丹乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the last three, then take positive values then stop.", "out": "且丹乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the final three items, then keep going while positive.", "out": "且丹乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the last three, then stop at first non positive.", "out": "且丹乂"} {"kind": "builder", "in": "且丹乂", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[-3:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "且丹乂", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep only the last three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values above zero, then stop at the first non-positive value.", "out": "串七乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then filter for positive numbers, then keep the leading run of positive numbers.", "out": "串七乂"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only positive numbers, then take values while they are positive.", "out": "串七乂"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the positives, then take positive values then stop.", "out": "串七乂"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove negatives, then keep going while positive.", "out": "串七乂"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep the positive numbers, then stop at first non positive.", "out": "串七乂"} {"kind": "builder", "in": "串七乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "串七乂", "out": "Take a list of integers; keep multiples of three, then keep the positive numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then take each string's first letter, then prepend a hash mark to each.", "out": "丧丨乘"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then give me the first letter of everything, then prefix all with #.", "out": "丧丨乘"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then reduce each string to its first character, then prepend a hash mark to each.", "out": "丧丨乘"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then take first char drop blanks, then prefix all with #.", "out": "丧丨乘"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then keep first letters only, then prepend a hash mark to each.", "out": "丧丨乘"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then first letter from each item that isn't empty, then prefix all with #.", "out": "丧丨乘"} {"kind": "builder", "in": "丧丨乘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s[0] for s in r if s]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "丧丨乘", "out": "Take a list of strings; drop duplicate strings keeping the first, then keep the first character of each (dropping empties), then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each value by itself, then drop anything not divisible by three.", "out": "义上串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then square them all, then filter out everything except multiples of three.", "out": "义上串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then raise each to the power of two, then keep only multiples of three.", "out": "义上串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then I need each number multiplied by itself, then multiples of three only.", "out": "义上串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then square all of them, then filter for numbers divisible by three.", "out": "义上串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiply each element by itself, then give me only the values divisible by three.", "out": "义上串"} {"kind": "builder", "in": "义上串", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "义上串", "out": "Take a list of integers; pad with zeros to at least three elements, then square each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then cut the list at the first zero, then true if already sorted smallest to largest.", "out": "举久乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off after the first zero appears, then does this list go in ascending order.", "out": "举久乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take values up to (excluding) the first zero, then check if the list is in ascending order.", "out": "举久乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the part before the first 0, then is the list sorted.", "out": "举久乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate at the first zero, then is it sorted.", "out": "举久乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then delete everything starting with the first zero, then check if values are in increasing order.", "out": "举久乎"} {"kind": "builder", "in": "举久乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r == sorted(r)"} {"kind": "translator", "in": "举久乎", "out": "Take a list of integers; drop the zeros, then keep everything before the first zero, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep the leading run of positive numbers, then trim one element off each end.", "out": "串乂为"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then take values while they are positive, then cut off the first and last.", "out": "串乂为"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take positive values then stop, then remove the first and last elements.", "out": "串乂为"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep going while positive, then keep only the middle part.", "out": "串乂为"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then stop at first non positive, then drop first and last.", "out": "串乂为"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take while greater than zero, then eliminate the outermost elements.", "out": "串乂为"} {"kind": "builder", "in": "串乂为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "串乂为", "out": "Take a list of integers; keep multiples of three, then take values while they are positive, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then increment each value, then put the elements backwards.", "out": "七下丐"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then plus one for all, then reverse that for me.", "out": "七下丐"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then increment each value, then flip it backwards.", "out": "七下丐"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then plus one for all, then make it backwards.", "out": "七下丐"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then increment each value, then reverse the list.", "out": "七下丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then plus one for all, then invert the sequence.", "out": "七下丐"} {"kind": "builder", "in": "七下丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "七下丐", "out": "Take a list of integers; keep the positive numbers, then add one to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the first 3 elements, then make each twice as big.", "out": "七丕丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove everything after the third, then multiply each by 2.", "out": "七丕丈"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then truncate to three items, then make each twice as big.", "out": "七丕丈"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then show the first three, then multiply each by 2.", "out": "七丕丈"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then take the first three, then make each twice as big.", "out": "七丕丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep first 3, then multiply each by 2.", "out": "七丕丈"} {"kind": "builder", "in": "七丕丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:3]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "七丕丈", "out": "Take a list of integers; keep the positive numbers, then keep only the first three, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then order by distance from zero, then take values up to (excluding) the first zero.", "out": "主丸久"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort based on absolute value, then keep the part before the first 0.", "out": "主丸久"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then organize by magnitude, then truncate at the first zero.", "out": "主丸久"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then arrange by absolute value ascending, then delete everything starting with the first zero.", "out": "主丸久"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort from smallest to largest absolute value, then remove from the first zero onwards.", "out": "主丸久"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort by absolute value, then up to but not including the first zero.", "out": "主丸久"} {"kind": "builder", "in": "主丸久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "主丸久", "out": "Take a list of integers; keep values greater than five, then sort by absolute value, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then keep only non-empty strings, then return the number of strings.", "out": "丟两丫"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then filter empty strings, then count the strings.", "out": "丟两丫"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove empty strings from the list, then return how many strings remain.", "out": "丟两丫"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then clean up empty strings, then give me the total number of strings.", "out": "丟两丫"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then delete empty entries, then tell me how many strings we have.", "out": "丟两丫"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then drop empty strings, then what's the string count.", "out": "丟两丫"} {"kind": "builder", "in": "丟两丫", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s for s in r if s]\n return len(r)"} {"kind": "translator", "in": "丟两丫", "out": "Take a list of strings; uppercase each string, then drop empty strings, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove all zero values, then keep only numbers above 5.", "out": "义举主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then exclude zeros, then exclude values of 5 and below.", "out": "义举主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove all zero values, then remove anything 5 or less.", "out": "义举主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then exclude zeros, then filter to keep only values above 5.", "out": "义举主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove all zero values, then get rid of values that aren't greater than five.", "out": "义举主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then exclude zeros, then drop anything 5 or below.", "out": "义举主"} {"kind": "builder", "in": "义举主", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "义举主", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the zeros, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then arrange in increasing order.", "out": "丁七丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then Organize these ascending.", "out": "丁七丑"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then Sort in ascending order.", "out": "丁七丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then I need this sorted ascending.", "out": "丁七丑"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then Put these in ascending order.", "out": "丁七丑"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then sort smallest to largest.", "out": "丁七丑"} {"kind": "builder", "in": "丁七丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丁七丑", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep the leading run of positive numbers, then find the min, defaulting to 0.", "out": "丕乂丛"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then take values while they are positive, then minimum value, zero otherwise.", "out": "丕乂丛"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take positive values then stop, then get the minimum value or zero if empty.", "out": "丕乂丛"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep going while positive, then give me the min or 0.", "out": "丕乂丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then stop at first non positive, then return the smallest number, defaulting to 0.", "out": "丕乂丛"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take while greater than zero, then return smallest or zero if empty.", "out": "丕乂丛"} {"kind": "builder", "in": "丕乂丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return min(r) if r else 0"} {"kind": "translator", "in": "丕乂丛", "out": "Take a list of integers; keep only the first three, then take values while they are positive, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then drop anything 5 or below, then find the min, defaulting to 0.", "out": "丕主丛"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then keep only numbers greater than 5, then minimum value, zero otherwise.", "out": "丕主丛"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then filter for numbers above 5, then get the minimum value or zero if empty.", "out": "丕主丛"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then give me values where x is greater than 5, then give me the min or 0.", "out": "丕主丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then show me only the values that are bigger than five, then return the smallest number, defaulting to 0.", "out": "丕主丛"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep values greater than five, then return smallest or zero if empty.", "out": "丕主丛"} {"kind": "builder", "in": "丕主丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 5]\n return min(r) if r else 0"} {"kind": "translator", "in": "丕主丛", "out": "Take a list of integers; keep only the first three, then keep values greater than five, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then arrange in decreasing order.", "out": "丸丈专"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then arrange in descending order.", "out": "丸丈专"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then reverse sort.", "out": "丸丈专"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then sort largest to smallest.", "out": "丸丈专"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then sort by descending values.", "out": "丸丈专"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then sort from highest to lowest.", "out": "丸丈专"} {"kind": "builder", "in": "丸丈专", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丸丈专", "out": "Take a list of integers; sort by absolute value, then double each, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort largest to smallest, then reduce each by one.", "out": "九专不"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort by descending values, then Subtract 1 from all.", "out": "九专不"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then sort from highest to lowest, then Subtract one from each.", "out": "九专不"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then sort descending, then Drop each by one.", "out": "九专不"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort largest first, then Decrease all values by one.", "out": "九专不"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort in descending order, then Remove one from each value.", "out": "九专不"} {"kind": "builder", "in": "九专不", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, reverse=True)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "九专不", "out": "Take a list of people records (name, age); extract the ages, then sort descending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then drop anything 5 or below, then true only if all are positive.", "out": "丐主乌"} {"kind": "speaker", "in": "Take a list of integers; reverse, then keep only numbers greater than 5, then do all of these have positive values.", "out": "丐主乌"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then filter for numbers above 5, then check if every value is positive.", "out": "丐主乌"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then give me values where x is greater than 5, then confirm all values are positive.", "out": "丐主乌"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then show me only the values that are bigger than five, then all positive.", "out": "丐主乌"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep values greater than five, then check if every number is above zero.", "out": "丐主乌"} {"kind": "builder", "in": "丐主乌", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x > 5]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丐主乌", "out": "Take a list of integers; reverse the order, then keep values greater than five, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values above zero, then true if any value equals zero.", "out": "世七乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter for positive numbers, then check for zero.", "out": "世七乍"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only positive numbers, then true if any value equals zero.", "out": "世七乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positives, then check for zero.", "out": "世七乍"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove negatives, then true if any value equals zero.", "out": "世七乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positive numbers, then check for zero.", "out": "世七乍"} {"kind": "builder", "in": "世七乍", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 0]\n return 0 in r"} {"kind": "translator", "in": "世七乍", "out": "Take a list of integers; drop the first element, then keep the positive numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then cut the list at the first zero, then give back the total.", "out": "主久丙"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then cut off after the first zero appears, then sum r.", "out": "主久丙"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take values up to (excluding) the first zero, then add them up.", "out": "主久丙"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the part before the first 0, then calculate the sum of all elements.", "out": "主久丙"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then truncate at the first zero, then what's the total.", "out": "主久丙"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then delete everything starting with the first zero, then what do they add up to.", "out": "主久丙"} {"kind": "builder", "in": "主久丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n return sum(r)"} {"kind": "translator", "in": "主久丙", "out": "Take a list of integers; keep values greater than five, then keep everything before the first zero, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; square each, then skip negatives at the start, then count the elements.", "out": "上乃东"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove all negatives at the front, then how many items remain.", "out": "上乃东"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the initial run of negative numbers, then tell me the length.", "out": "上乃东"} {"kind": "speaker", "in": "Take a list of integers; square them all, then strip the front negatives, then return the length.", "out": "上乃东"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove leading negative numbers, then count them.", "out": "上乃东"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then drop negatives from start, then what's the count.", "out": "上乃东"} {"kind": "builder", "in": "上乃东", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return len(r)"} {"kind": "translator", "in": "上乃东", "out": "Take a list of integers; square each, then drop the leading negative values, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then drop the odd numbers.", "out": "丑且一"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then filter out the odd numbers.", "out": "丑且一"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then drop the odd numbers.", "out": "丑且一"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then filter out the odd numbers.", "out": "丑且一"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then drop the odd numbers.", "out": "丑且一"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then filter out the odd numbers.", "out": "丑且一"} {"kind": "builder", "in": "丑且一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丑且一", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep the leading run of positive numbers, then strip the signs.", "out": "乃乂丏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then take values while they are positive, then take abs of each.", "out": "乃乂丏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take positive values then stop, then get the absolute value of everything.", "out": "乃乂丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep going while positive, then apply absolute value to the whole list.", "out": "乃乂丏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then stop at first non positive, then make them all positive.", "out": "乃乂丏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take while greater than zero, then make every value non-negative.", "out": "乃乂丏"} {"kind": "builder", "in": "乃乂丏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "乃乂丏", "out": "Take a list of integers; drop the leading negative values, then take values while they are positive, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then sort largest to smallest, then true if already sorted smallest to largest.", "out": "为专乎"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort by descending values, then does this list go in ascending order.", "out": "为专乎"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then sort from highest to lowest, then check if the list is in ascending order.", "out": "为专乎"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then sort descending, then is the list sorted.", "out": "为专乎"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort largest first, then is it sorted.", "out": "为专乎"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort in descending order, then check if values are in increasing order.", "out": "为专乎"} {"kind": "builder", "in": "为专乎", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, reverse=True)\n return r == sorted(r)"} {"kind": "translator", "in": "为专乎", "out": "Take a list of integers; drop the first and last elements, then sort descending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values above zero, then drop anything not divisible by three.", "out": "义七串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter for positive numbers, then filter out everything except multiples of three.", "out": "义七串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only positive numbers, then keep only multiples of three.", "out": "义七串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positives, then multiples of three only.", "out": "义七串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove negatives, then filter for numbers divisible by three.", "out": "义七串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positive numbers, then give me only the values divisible by three.", "out": "义七串"} {"kind": "builder", "in": "义七串", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "义七串", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the positive numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increase every value by 10, then drop anything not divisible by three.", "out": "为丽串"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then add 10 to each item, then filter out everything except multiples of three.", "out": "为丽串"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then shift each up by ten, then keep only multiples of three.", "out": "为丽串"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then increase all numbers by 10, then multiples of three only.", "out": "为丽串"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then add 10 to everything, then filter for numbers divisible by three.", "out": "为丽串"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then give everything a boost of 10, then give me only the values divisible by three.", "out": "为丽串"} {"kind": "builder", "in": "为丽串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 10 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "为丽串", "out": "Take a list of integers; drop the first and last elements, then add ten to each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort largest to smallest, then arrange in increasing order.", "out": "主专丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort by descending values, then Organize these ascending.", "out": "主专丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then sort from highest to lowest, then Sort in ascending order.", "out": "主专丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then sort descending, then I need this sorted ascending.", "out": "主专丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort largest first, then Put these in ascending order.", "out": "主专丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort in descending order, then sort smallest to largest.", "out": "主专丑"} {"kind": "builder", "in": "主专丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, reverse=True)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主专丑", "out": "Take a list of integers; keep values greater than five, then sort descending, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values below zero, then drop the even numbers.", "out": "上万丁"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then get the negative numbers, then strip out the evens.", "out": "上万丁"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep values below zero, then drop the even numbers.", "out": "上万丁"} {"kind": "speaker", "in": "Take a list of integers; square them all, then get the negative numbers, then strip out the evens.", "out": "上万丁"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep values below zero, then drop the even numbers.", "out": "上万丁"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then get the negative numbers, then strip out the evens.", "out": "上万丁"} {"kind": "builder", "in": "上万丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "上万丁", "out": "Take a list of integers; square each, then keep the negative numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increment each value, then keep only numbers above 5.", "out": "么下主"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then plus one for all, then exclude values of 5 and below.", "out": "么下主"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then increment each value, then remove anything 5 or less.", "out": "么下主"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then plus one for all, then filter to keep only values above 5.", "out": "么下主"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then increment each value, then get rid of values that aren't greater than five.", "out": "么下主"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then plus one for all, then drop anything 5 or below.", "out": "么下主"} {"kind": "builder", "in": "么下主", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "么下主", "out": "Take a list of integers; if empty, use a single zero, then add one to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then true only if all are positive.", "out": "丘丈乌"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then do all of these have positive values.", "out": "丘丈乌"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then check if every value is positive.", "out": "丘丈乌"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then confirm all values are positive.", "out": "丘丈乌"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then all positive.", "out": "丘丈乌"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then check if every number is above zero.", "out": "丘丈乌"} {"kind": "builder", "in": "丘丈乌", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * 2 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丘丈乌", "out": "Take a list of integers; cap each value at 10, then double each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the list around, then shift each up by ten.", "out": "七丐丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then flip the order around, then increase all numbers by 10.", "out": "七丐丽"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then put the elements backwards, then add 10 to everything.", "out": "七丐丽"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then reverse that for me, then give everything a boost of 10.", "out": "七丐丽"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip it backwards, then increment each by ten.", "out": "七丐丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then make it backwards, then add a constant 10 to each.", "out": "七丐丽"} {"kind": "builder", "in": "七丐丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "七丐丽", "out": "Take a list of integers; keep the positive numbers, then reverse the order, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then increment each value, then true if already sorted smallest to largest.", "out": "丸下乎"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then plus one for all, then does this list go in ascending order.", "out": "丸下乎"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then increment each value, then check if the list is in ascending order.", "out": "丸下乎"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then plus one for all, then is the list sorted.", "out": "丸下乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then increment each value, then is it sorted.", "out": "丸下乎"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then plus one for all, then check if values are in increasing order.", "out": "丸下乎"} {"kind": "builder", "in": "丸下乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x + 1 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丸下乎", "out": "Take a list of integers; sort by absolute value, then add one to each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value, then drop non-negative values.", "out": "丘下万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all, then drop all positive numbers.", "out": "丘下万"} {"kind": "builder", "in": "丘下万", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丘下万", "out": "Take a list of integers; cap each value at 10, then add one to each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove both ends, then put the elements backwards.", "out": "义为丐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then trim the edges, then reverse that for me.", "out": "义为丐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then trim one element off each end, then flip it backwards.", "out": "义为丐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off the first and last, then make it backwards.", "out": "义为丐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first and last elements, then reverse the list.", "out": "义为丐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the middle part, then invert the sequence.", "out": "义为丐"} {"kind": "builder", "in": "义为丐", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "义为丐", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the first and last elements, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then reduce each by one.", "out": "下丘不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then Subtract 1 from all.", "out": "下丘不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then Subtract one from each.", "out": "下丘不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then Drop each by one.", "out": "下丘不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then Decrease all values by one.", "out": "下丘不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then Remove one from each value.", "out": "下丘不"} {"kind": "builder", "in": "下丘不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "下丘不", "out": "Take a list of integers; add one to each, then cap each value at 10, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only odd values, then true if already sorted smallest to largest.", "out": "专丁乎"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then eliminate the even numbers, then does this list go in ascending order.", "out": "专丁乎"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only odd values, then check if the list is in ascending order.", "out": "专丁乎"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then eliminate the even numbers, then is the list sorted.", "out": "专丁乎"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only odd values, then is it sorted.", "out": "专丁乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then eliminate the even numbers, then check if values are in increasing order.", "out": "专丁乎"} {"kind": "builder", "in": "专丁乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "专丁乎", "out": "Take a list of integers; sort descending, then keep the odd numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the final 3 elements, then true if every value is unique.", "out": "与丹乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop everything except the final three, then check for duplicates in the values.", "out": "与丹乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give me the last three elements, then do all values appear only once.", "out": "与丹乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the last three, then check that there are no duplicates.", "out": "与丹乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the final three items, then are the values all unique.", "out": "与丹乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the last three, then check if all values are unique.", "out": "与丹乏"} {"kind": "builder", "in": "与丹乏", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[-3:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "与丹乏", "out": "Take a list of integers; negate each, then keep only the last three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove all zero values, then reduce each by one.", "out": "专举不"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then exclude zeros, then Subtract 1 from all.", "out": "专举不"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove all zero values, then Subtract one from each.", "out": "专举不"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then exclude zeros, then Drop each by one.", "out": "专举不"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove all zero values, then Decrease all values by one.", "out": "专举不"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then exclude zeros, then Remove one from each value.", "out": "专举不"} {"kind": "builder", "in": "专举不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "专举不", "out": "Take a list of integers; sort descending, then drop the zeros, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then deduplicate the list.", "out": "丹万且"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then remove repeats.", "out": "丹万且"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then deduplicate the list.", "out": "丹万且"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then remove repeats.", "out": "丹万且"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then deduplicate the list.", "out": "丹万且"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then remove repeats.", "out": "丹万且"} {"kind": "builder", "in": "丹万且", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丹万且", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove repeated strings, then find how long the longest string is.", "out": "乖丧乜"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then keep unique strings first appearance, then give the length of the longest string in the list.", "out": "乖丧乜"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then eliminate repeated strings preserve first occurrence, then get me the longest string's length.", "out": "乖丧乜"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop duplicate strings keeping the first, then give the maximum string length.", "out": "乖丧乜"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then dedupe, then max length of all strings.", "out": "乖丧乜"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove duplicate strings keep first, then what's the max string length.", "out": "乖丧乜"} {"kind": "builder", "in": "乖丧乜", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "乖丧乜", "out": "Take a list of strings; sort alphabetically, then drop duplicate strings keeping the first, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then find the min, defaulting to 0.", "out": "与万丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then minimum value, zero otherwise.", "out": "与万丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then get the minimum value or zero if empty.", "out": "与万丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then give me the min or 0.", "out": "与万丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then return the smallest number, defaulting to 0.", "out": "与万丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then return smallest or zero if empty.", "out": "与万丛"} {"kind": "builder", "in": "与万丛", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x < 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "与万丛", "out": "Take a list of integers; negate each, then keep the negative numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then make every value non-negative, then true if at least one even value.", "out": "串丏之"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then absolute value for all items, then any even.", "out": "串丏之"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take absolute values, then true if at least one even value.", "out": "串丏之"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn negatives into positives, then any even.", "out": "串丏之"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then abs each element, then true if at least one even value.", "out": "串丏之"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the absolute value of each, then any even.", "out": "串丏之"} {"kind": "builder", "in": "串丏之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [abs(x) for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "串丏之", "out": "Take a list of integers; keep multiples of three, then take the absolute value of each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the final 3 elements, then arrange by magnitude ignoring sign.", "out": "九丹丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then drop everything except the final three, then put them in order by magnitude.", "out": "九丹丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then give me the last three elements, then arrange in order of absolute value.", "out": "九丹丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep only the last three, then sort by distance from zero.", "out": "九丹丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep the final three items, then order by how far from zero.", "out": "九丹丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the last three, then order by distance from zero.", "out": "九丹丸"} {"kind": "builder", "in": "九丹丸", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[-3:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "九丹丸", "out": "Take a list of people records (name, age); extract the ages, then keep only the last three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increase every value by 10, then drop non-positive values.", "out": "一丽七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then add 10 to each item, then drop the negative numbers.", "out": "一丽七"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then shift each up by ten, then filter out the negative ones.", "out": "一丽七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then increase all numbers by 10, then remove all negative values.", "out": "一丽七"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then add 10 to everything, then keep positive values only.", "out": "一丽七"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give everything a boost of 10, then keep values above zero.", "out": "一丽七"} {"kind": "builder", "in": "一丽七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "一丽七", "out": "Take a list of integers; keep the even numbers, then add ten to each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each by two, then reduce each by one.", "out": "乃丈不"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then double each item in the list, then Subtract 1 from all.", "out": "乃丈不"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then multiply each by two, then Subtract one from each.", "out": "乃丈不"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then double each item in the list, then Drop each by one.", "out": "乃丈不"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then multiply each by two, then Decrease all values by one.", "out": "乃丈不"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then double each item in the list, then Remove one from each value.", "out": "乃丈不"} {"kind": "builder", "in": "乃丈不", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "乃丈不", "out": "Take a list of integers; drop the leading negative values, then double each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove both ends, then truncate to three items.", "out": "义为丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then trim the edges, then show the first three.", "out": "义为丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then trim one element off each end, then take the first three.", "out": "义为丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off the first and last, then keep first 3.", "out": "义为丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first and last elements, then truncate to first three.", "out": "义为丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the middle part, then first three.", "out": "义为丕"} {"kind": "builder", "in": "义为丕", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n r = r[:3]\n return r"} {"kind": "translator", "in": "义为丕", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the first and last elements, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two, then put the elements backwards.", "out": "上丈丐"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list, then reverse that for me.", "out": "上丈丐"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two, then flip it backwards.", "out": "上丈丐"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list, then make it backwards.", "out": "上丈丐"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two, then reverse the list.", "out": "上丈丐"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list, then invert the sequence.", "out": "上丈丐"} {"kind": "builder", "in": "上丈丐", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "上丈丐", "out": "Take a list of integers; square each, then double each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values, then make each twice as big.", "out": "丕举丈"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros, then multiply each by 2.", "out": "丕举丈"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values, then make each twice as big.", "out": "丕举丈"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros, then multiply each by 2.", "out": "丕举丈"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values, then make each twice as big.", "out": "丕举丈"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros, then multiply each by 2.", "out": "丕举丈"} {"kind": "builder", "in": "丕举丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丕举丈", "out": "Take a list of integers; keep only the first three, then drop the zeros, then double each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only even values, then give back the total.", "out": "不一丙"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then extract all even numbers, then sum r.", "out": "不一丙"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only even values, then add them up.", "out": "不一丙"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then extract all even numbers, then calculate the sum of all elements.", "out": "不一丙"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only even values, then what's the total.", "out": "不一丙"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then extract all even numbers, then what do they add up to.", "out": "不一丙"} {"kind": "builder", "in": "不一丙", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return sum(r)"} {"kind": "translator", "in": "不一丙", "out": "Take a list of integers; subtract one from each, then keep the even numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort largest to smallest, then strip the signs.", "out": "主专丏"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort by descending values, then take abs of each.", "out": "主专丏"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then sort from highest to lowest, then get the absolute value of everything.", "out": "主专丏"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then sort descending, then apply absolute value to the whole list.", "out": "主专丏"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort largest first, then make them all positive.", "out": "主专丏"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort in descending order, then make every value non-negative.", "out": "主专丏"} {"kind": "builder", "in": "主专丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "主专丏", "out": "Take a list of integers; keep values greater than five, then sort descending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then sort largest to smallest, then true if any value equals zero.", "out": "丑专乍"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort by descending values, then check for zero.", "out": "丑专乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then sort from highest to lowest, then true if any value equals zero.", "out": "丑专乍"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then sort descending, then check for zero.", "out": "丑专乍"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort largest first, then true if any value equals zero.", "out": "丑专乍"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort in descending order, then check for zero.", "out": "丑专乍"} {"kind": "builder", "in": "丑专乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, reverse=True)\n return 0 in r"} {"kind": "translator", "in": "丑专乍", "out": "Take a list of integers; sort ascending, then sort descending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove the first item, then ensure at least three items by appending zeros.", "out": "乂世义"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "乂世义"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the first item, then ensure at least three items by appending zeros.", "out": "乂世义"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "乂世义"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first item, then ensure at least three items by appending zeros.", "out": "乂世义"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "乂世义"} {"kind": "builder", "in": "乂世义", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "乂世义", "out": "Take a list of integers; take values while they are positive, then drop the first element, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then cut the list at the first zero, then arrange by magnitude ignoring sign.", "out": "丈久丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off after the first zero appears, then put them in order by magnitude.", "out": "丈久丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then take values up to (excluding) the first zero, then arrange in order of absolute value.", "out": "丈久丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the part before the first 0, then sort by distance from zero.", "out": "丈久丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then truncate at the first zero, then order by how far from zero.", "out": "丈久丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then delete everything starting with the first zero, then order by distance from zero.", "out": "丈久丸"} {"kind": "builder", "in": "丈久丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丈久丸", "out": "Take a list of integers; double each, then keep everything before the first zero, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove repeated values, then true if already sorted smallest to largest.", "out": "么且乎"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then unique values preserving order, then does this list go in ascending order.", "out": "么且乎"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove repeated values, then check if the list is in ascending order.", "out": "么且乎"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then unique values preserving order, then is the list sorted.", "out": "么且乎"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove repeated values, then is it sorted.", "out": "么且乎"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then unique values preserving order, then check if values are in increasing order.", "out": "么且乎"} {"kind": "builder", "in": "么且乎", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = list(dict.fromkeys(r))\n return r == sorted(r)"} {"kind": "translator", "in": "么且乎", "out": "Take a list of integers; if empty, use a single zero, then drop duplicates keeping first occurrence, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then make every value non-negative, then find the min, defaulting to 0.", "out": "丕丏丛"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then absolute value for all items, then minimum value, zero otherwise.", "out": "丕丏丛"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take absolute values, then get the minimum value or zero if empty.", "out": "丕丏丛"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn negatives into positives, then give me the min or 0.", "out": "丕丏丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then abs each element, then return the smallest number, defaulting to 0.", "out": "丕丏丛"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the absolute value of each, then return smallest or zero if empty.", "out": "丕丏丛"} {"kind": "builder", "in": "丕丏丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [abs(x) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丕丏丛", "out": "Take a list of integers; keep only the first three, then take the absolute value of each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then true if any value equals zero.", "out": "丸万乍"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then check for zero.", "out": "丸万乍"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then true if any value equals zero.", "out": "丸万乍"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then check for zero.", "out": "丸万乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then true if any value equals zero.", "out": "丸万乍"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then check for zero.", "out": "丸万乍"} {"kind": "builder", "in": "丸万乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n return 0 in r"} {"kind": "translator", "in": "丸万乍", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort largest to smallest, then truncate to three items.", "out": "丁专丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort by descending values, then show the first three.", "out": "丁专丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort from highest to lowest, then take the first three.", "out": "丁专丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort descending, then keep first 3.", "out": "丁专丕"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort largest first, then truncate to first three.", "out": "丁专丕"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort in descending order, then first three.", "out": "丁专丕"} {"kind": "builder", "in": "丁专丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n r = r[:3]\n return r"} {"kind": "translator", "in": "丁专丕", "out": "Take a list of integers; keep the odd numbers, then sort descending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the list around, then drop non-negative values.", "out": "丘丐万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then flip the order around, then drop all positive numbers.", "out": "丘丐万"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then put the elements backwards, then drop non-negative values.", "out": "丘丐万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then reverse that for me, then drop all positive numbers.", "out": "丘丐万"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip it backwards, then drop non-negative values.", "out": "丘丐万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then make it backwards, then drop all positive numbers.", "out": "丘丐万"} {"kind": "builder", "in": "丘丐万", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丘丐万", "out": "Take a list of integers; cap each value at 10, then reverse the order, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then make every value non-negative, then multiply each by -1.", "out": "丸丏与"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then absolute value for all items, then negate.", "out": "丸丏与"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take absolute values, then multiply each by -1.", "out": "丸丏与"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn negatives into positives, then negate.", "out": "丸丏与"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then abs each element, then multiply each by -1.", "out": "丸丏与"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the absolute value of each, then negate.", "out": "丸丏与"} {"kind": "builder", "in": "丸丏与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丸丏与", "out": "Take a list of integers; sort by absolute value, then take the absolute value of each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then make every value non-negative, then remove the initial run of negative numbers.", "out": "丽丏乃"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then absolute value for all items, then strip the front negatives.", "out": "丽丏乃"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take absolute values, then remove leading negative numbers.", "out": "丽丏乃"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn negatives into positives, then drop negatives from start.", "out": "丽丏乃"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then abs each element, then strip negative values from the start.", "out": "丽丏乃"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the absolute value of each, then remove negatives before the first non-negative.", "out": "丽丏乃"} {"kind": "builder", "in": "丽丏乃", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [abs(x) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丽丏乃", "out": "Take a list of integers; add ten to each, then take the absolute value of each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each value by itself, then stop at the first non-positive value.", "out": "丘上乂"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then square them all, then keep the leading run of positive numbers.", "out": "丘上乂"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then raise each to the power of two, then take values while they are positive.", "out": "丘上乂"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then I need each number multiplied by itself, then take positive values then stop.", "out": "丘上乂"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then square all of them, then keep going while positive.", "out": "丘上乂"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiply each element by itself, then stop at first non positive.", "out": "丘上乂"} {"kind": "builder", "in": "丘上乂", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丘上乂", "out": "Take a list of integers; cap each value at 10, then square each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep the leading run of positive numbers, then drop non-positive values.", "out": "专乂七"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then take values while they are positive, then drop the negative numbers.", "out": "专乂七"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take positive values then stop, then filter out the negative ones.", "out": "专乂七"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep going while positive, then remove all negative values.", "out": "专乂七"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then stop at first non positive, then keep positive values only.", "out": "专乂七"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take while greater than zero, then keep values above zero.", "out": "专乂七"} {"kind": "builder", "in": "专乂七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "专乂七", "out": "Take a list of integers; sort descending, then take values while they are positive, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then order by distance from zero, then give back the total.", "out": "万丸丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort based on absolute value, then sum r.", "out": "万丸丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then organize by magnitude, then add them up.", "out": "万丸丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then arrange by absolute value ascending, then calculate the sum of all elements.", "out": "万丸丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort from smallest to largest absolute value, then what's the total.", "out": "万丸丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort by absolute value, then what do they add up to.", "out": "万丸丙"} {"kind": "builder", "in": "万丸丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r, key=abs)\n return sum(r)"} {"kind": "translator", "in": "万丸丙", "out": "Take a list of integers; keep the negative numbers, then sort by absolute value, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only even values, then truncate to three items.", "out": "专一丕"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then extract all even numbers, then show the first three.", "out": "专一丕"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only even values, then take the first three.", "out": "专一丕"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then extract all even numbers, then keep first 3.", "out": "专一丕"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only even values, then truncate to first three.", "out": "专一丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then extract all even numbers, then first three.", "out": "专一丕"} {"kind": "builder", "in": "专一丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "专一丕", "out": "Take a list of integers; sort descending, then keep the even numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then keep only non-zero numbers.", "out": "丐久举"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then strip the zeros.", "out": "丐久举"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then keep only non-zero numbers.", "out": "丐久举"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then strip the zeros.", "out": "丐久举"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then keep only non-zero numbers.", "out": "丐久举"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then strip the zeros.", "out": "丐久举"} {"kind": "builder", "in": "丐久举", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丐久举", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove repeated values, then remove the initial run of negative numbers.", "out": "九且乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then unique values preserving order, then strip the front negatives.", "out": "九且乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove repeated values, then remove leading negative numbers.", "out": "九且乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then unique values preserving order, then drop negatives from start.", "out": "九且乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove repeated values, then strip negative values from the start.", "out": "九且乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then unique values preserving order, then remove negatives before the first non-negative.", "out": "九且乃"} {"kind": "builder", "in": "九且乃", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(dict.fromkeys(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "九且乃", "out": "Take a list of people records (name, age); extract the ages, then drop duplicates keeping first occurrence, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then take each string's first letter, then prepend a hash mark to each.", "out": "乖丨乘"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then give me the first letter of everything, then prefix all with #.", "out": "乖丨乘"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then reduce each string to its first character, then prepend a hash mark to each.", "out": "乖丨乘"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then take first char drop blanks, then prefix all with #.", "out": "乖丨乘"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep first letters only, then prepend a hash mark to each.", "out": "乖丨乘"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then first letter from each item that isn't empty, then prefix all with #.", "out": "乖丨乘"} {"kind": "builder", "in": "乖丨乘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s[0] for s in r if s]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "乖丨乘", "out": "Take a list of strings; sort alphabetically, then keep the first character of each (dropping empties), then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then true if already sorted smallest to largest.", "out": "丁七乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then does this list go in ascending order.", "out": "丁七乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then check if the list is in ascending order.", "out": "丁七乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then is the list sorted.", "out": "丁七乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then is it sorted.", "out": "丁七乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then check if values are in increasing order.", "out": "丁七乎"} {"kind": "builder", "in": "丁七乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n return r == sorted(r)"} {"kind": "translator", "in": "丁七乎", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around, then raise each to the power of two.", "out": "下丐上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around, then I need each number multiplied by itself.", "out": "下丐上"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards, then square all of them.", "out": "下丐上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me, then multiply each element by itself.", "out": "下丐上"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards, then make each one squared.", "out": "下丐上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards, then square each value in the list.", "out": "下丐上"} {"kind": "builder", "in": "下丐上", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "下丐上", "out": "Take a list of integers; add one to each, then reverse the order, then square each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep only odd values, then find the min, defaulting to 0.", "out": "乂丁丛"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then eliminate the even numbers, then minimum value, zero otherwise.", "out": "乂丁丛"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only odd values, then get the minimum value or zero if empty.", "out": "乂丁丛"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then eliminate the even numbers, then give me the min or 0.", "out": "乂丁丛"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only odd values, then return the smallest number, defaulting to 0.", "out": "乂丁丛"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then eliminate the even numbers, then return smallest or zero if empty.", "out": "乂丁丛"} {"kind": "builder", "in": "乂丁丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "乂丁丛", "out": "Take a list of integers; take values while they are positive, then keep the odd numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then take values up to (excluding) the first zero.", "out": "丘丁久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then keep the part before the first 0.", "out": "丘丁久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then truncate at the first zero.", "out": "丘丁久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then delete everything starting with the first zero.", "out": "丘丁久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then remove from the first zero onwards.", "out": "丘丁久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then up to but not including the first zero.", "out": "丘丁久"} {"kind": "builder", "in": "丘丁久", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丘丁久", "out": "Take a list of integers; cap each value at 10, then keep the odd numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then default to [0] when there is nothing, then true if already sorted smallest to largest.", "out": "丹么乎"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then when the list is empty, substitute a zero value, then does this list go in ascending order.", "out": "丹么乎"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then replace an empty list with one zero, then check if the list is in ascending order.", "out": "丹么乎"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then zero it out if it's empty, then is the list sorted.", "out": "丹么乎"} {"kind": "speaker", "in": "Take a list of integers; last three only, then use zero if the list is empty, then is it sorted.", "out": "丹么乎"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then default to zero when empty, then check if values are in increasing order.", "out": "丹么乎"} {"kind": "builder", "in": "丹么乎", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r if r else [0]\n return r == sorted(r)"} {"kind": "translator", "in": "丹么乎", "out": "Take a list of integers; keep only the last three, then if empty, use a single zero, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then default to [0] when there is nothing, then true if any value equals zero.", "out": "举么乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then when the list is empty, substitute a zero value, then check for zero.", "out": "举么乍"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then replace an empty list with one zero, then true if any value equals zero.", "out": "举么乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then zero it out if it's empty, then check for zero.", "out": "举么乍"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then use zero if the list is empty, then true if any value equals zero.", "out": "举么乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then default to zero when empty, then check for zero.", "out": "举么乍"} {"kind": "builder", "in": "举么乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return 0 in r"} {"kind": "translator", "in": "举么乍", "out": "Take a list of integers; drop the zeros, then if empty, use a single zero, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove the first item, then shift each up by ten.", "out": "乂世丽"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Remove head, then increase all numbers by 10.", "out": "乂世丽"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the first item, then add 10 to everything.", "out": "乂世丽"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Remove head, then give everything a boost of 10.", "out": "乂世丽"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first item, then increment each by ten.", "out": "乂世丽"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then Remove head, then add a constant 10 to each.", "out": "乂世丽"} {"kind": "builder", "in": "乂世丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乂世丽", "out": "Take a list of integers; take values while they are positive, then drop the first element, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then extend to length 3 using zeros, then give the number of evens.", "out": "丑义乓"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then pad to 3, then find how many values are divisible by two.", "out": "丑义乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then extend to length 3 using zeros, then how many are even.", "out": "丑义乓"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then pad to 3, then get the total number of even values in the list.", "out": "丑义乓"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then extend to length 3 using zeros, then give me the count of even values.", "out": "丑义乓"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then pad to 3, then I need to know how many of these are even.", "out": "丑义乓"} {"kind": "builder", "in": "丑义乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丑义乓", "out": "Take a list of integers; sort ascending, then pad with zeros to at least three elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything 5 or below, then skip the first one.", "out": "下主世"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only numbers greater than 5, then Discard the first element.", "out": "下主世"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then filter for numbers above 5, then skip the first one.", "out": "下主世"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me values where x is greater than 5, then Discard the first element.", "out": "下主世"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then show me only the values that are bigger than five, then skip the first one.", "out": "下主世"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep values greater than five, then Discard the first element.", "out": "下主世"} {"kind": "builder", "in": "下主世", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 5]\n r = r[1:]\n return r"} {"kind": "translator", "in": "下主世", "out": "Take a list of integers; add one to each, then keep values greater than five, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep the leading run of positive numbers, then trim one element off each end.", "out": "丹乂为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then take values while they are positive, then cut off the first and last.", "out": "丹乂为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take positive values then stop, then remove the first and last elements.", "out": "丹乂为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep going while positive, then keep only the middle part.", "out": "丹乂为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then stop at first non positive, then drop first and last.", "out": "丹乂为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take while greater than zero, then eliminate the outermost elements.", "out": "丹乂为"} {"kind": "builder", "in": "丹乂为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹乂为", "out": "Take a list of integers; keep only the last three, then take values while they are positive, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then cut the list at the first zero, then strip the signs.", "out": "丘久丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off after the first zero appears, then take abs of each.", "out": "丘久丏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take values up to (excluding) the first zero, then get the absolute value of everything.", "out": "丘久丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the part before the first 0, then apply absolute value to the whole list.", "out": "丘久丏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate at the first zero, then make them all positive.", "out": "丘久丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then delete everything starting with the first zero, then make every value non-negative.", "out": "丘久丏"} {"kind": "builder", "in": "丘久丏", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丘久丏", "out": "Take a list of integers; cap each value at 10, then keep everything before the first zero, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then ensure at least three items by appending zeros.", "out": "丐久义"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then ensure minimum length of three by adding zeros to the end.", "out": "丐久义"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then ensure at least three items by appending zeros.", "out": "丐久义"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then ensure minimum length of three by adding zeros to the end.", "out": "丐久义"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then ensure at least three items by appending zeros.", "out": "丐久义"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then ensure minimum length of three by adding zeros to the end.", "out": "丐久义"} {"kind": "builder", "in": "丐久义", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丐久义", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then limit every value to 10.", "out": "丸万丘"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then maximum of 10 for all.", "out": "丸万丘"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then limit every value to 10.", "out": "丸万丘"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then maximum of 10 for all.", "out": "丸万丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then limit every value to 10.", "out": "丸万丘"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then maximum of 10 for all.", "out": "丸万丘"} {"kind": "builder", "in": "丸万丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丸万丘", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increase every value by 10, then arrange in increasing order.", "out": "久丽丑"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then add 10 to each item, then Organize these ascending.", "out": "久丽丑"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then shift each up by ten, then Sort in ascending order.", "out": "久丽丑"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then increase all numbers by 10, then I need this sorted ascending.", "out": "久丽丑"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then add 10 to everything, then Put these in ascending order.", "out": "久丽丑"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then give everything a boost of 10, then sort smallest to largest.", "out": "久丽丑"} {"kind": "builder", "in": "久丽丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "久丽丑", "out": "Take a list of integers; keep everything before the first zero, then add ten to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values above zero, then true only if all are positive.", "out": "乃七乌"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then filter for positive numbers, then do all of these have positive values.", "out": "乃七乌"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only positive numbers, then check if every value is positive.", "out": "乃七乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the positives, then confirm all values are positive.", "out": "乃七乌"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove negatives, then all positive.", "out": "乃七乌"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep the positive numbers, then check if every number is above zero.", "out": "乃七乌"} {"kind": "builder", "in": "乃七乌", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乃七乌", "out": "Take a list of integers; drop the leading negative values, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then decrement each value, then keep only numbers above 5.", "out": "丁不主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Lower each number by one, then exclude values of 5 and below.", "out": "丁不主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then reduce each by one, then remove anything 5 or less.", "out": "丁不主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Subtract 1 from all, then filter to keep only values above 5.", "out": "丁不主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Subtract one from each, then get rid of values that aren't greater than five.", "out": "丁不主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Drop each by one, then drop anything 5 or below.", "out": "丁不主"} {"kind": "builder", "in": "丁不主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丁不主", "out": "Take a list of integers; keep the odd numbers, then subtract one from each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values divisible by 3, then count the elements.", "out": "主串东"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then keep items where x mod 3 equals zero, then how many items remain.", "out": "主串东"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then drop anything not divisible by three, then tell me the length.", "out": "主串东"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then filter out everything except multiples of three, then return the length.", "out": "主串东"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only multiples of three, then count them.", "out": "主串东"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiples of three only, then what's the count.", "out": "主串东"} {"kind": "builder", "in": "主串东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return len(r)"} {"kind": "translator", "in": "主串东", "out": "Take a list of integers; keep values greater than five, then keep multiples of three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then clamp each to at most ten, then arrange in decreasing order.", "out": "丐丘专"} {"kind": "speaker", "in": "Take a list of integers; reverse, then don't let anything exceed 10, then arrange in descending order.", "out": "丐丘专"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then clamp each to at most ten, then reverse sort.", "out": "丐丘专"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then don't let anything exceed 10, then sort largest to smallest.", "out": "丐丘专"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then clamp each to at most ten, then sort by descending values.", "out": "丐丘专"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then don't let anything exceed 10, then sort from highest to lowest.", "out": "丐丘专"} {"kind": "builder", "in": "丐丘专", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丐丘专", "out": "Take a list of integers; reverse the order, then cap each value at 10, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the sign of each, then drop the even numbers.", "out": "乃与丁"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then turn positives to negatives and vice versa, then strip out the evens.", "out": "乃与丁"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then flip the sign of each, then drop the even numbers.", "out": "乃与丁"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn positives to negatives and vice versa, then strip out the evens.", "out": "乃与丁"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip the sign of each, then drop the even numbers.", "out": "乃与丁"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then turn positives to negatives and vice versa, then strip out the evens.", "out": "乃与丁"} {"kind": "builder", "in": "乃与丁", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "乃与丁", "out": "Take a list of integers; drop the leading negative values, then negate each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove both ends, then drop the odd numbers.", "out": "举为一"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then trim the edges, then filter out the odd numbers.", "out": "举为一"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then trim one element off each end, then drop the odd numbers.", "out": "举为一"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off the first and last, then filter out the odd numbers.", "out": "举为一"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first and last elements, then drop the odd numbers.", "out": "举为一"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the middle part, then filter out the odd numbers.", "out": "举为一"} {"kind": "builder", "in": "举为一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "举为一", "out": "Take a list of integers; drop the zeros, then drop the first and last elements, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values above zero, then raise each to the power of two.", "out": "丹七上"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then filter for positive numbers, then I need each number multiplied by itself.", "out": "丹七上"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only positive numbers, then square all of them.", "out": "丹七上"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the positives, then multiply each element by itself.", "out": "丹七上"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove negatives, then make each one squared.", "out": "丹七上"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep the positive numbers, then square each value in the list.", "out": "丹七上"} {"kind": "builder", "in": "丹七上", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x > 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丹七上", "out": "Take a list of integers; keep only the last three, then keep the positive numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then make every value non-negative, then deduplicate the list.", "out": "为丏且"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then absolute value for all items, then remove repeats.", "out": "为丏且"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take absolute values, then deduplicate the list.", "out": "为丏且"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn negatives into positives, then remove repeats.", "out": "为丏且"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then abs each element, then deduplicate the list.", "out": "为丏且"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the absolute value of each, then remove repeats.", "out": "为丏且"} {"kind": "builder", "in": "为丏且", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "为丏且", "out": "Take a list of integers; drop the first and last elements, then take the absolute value of each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest to smallest, then count the elements.", "out": "一专东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by descending values, then how many items remain.", "out": "一专东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from highest to lowest, then tell me the length.", "out": "一专东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort descending, then return the length.", "out": "一专东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest first, then count them.", "out": "一专东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort in descending order, then what's the count.", "out": "一专东"} {"kind": "builder", "in": "一专东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n return len(r)"} {"kind": "translator", "in": "一专东", "out": "Take a list of integers; keep the even numbers, then sort descending, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then flip the list around, then give the earliest even value or zero.", "out": "专丐乒"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then flip the order around, then fetch the first even element, default to 0.", "out": "专丐乒"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then put the elements backwards, then give the earliest even value or zero.", "out": "专丐乒"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then reverse that for me, then fetch the first even element, default to 0.", "out": "专丐乒"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then flip it backwards, then give the earliest even value or zero.", "out": "专丐乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then make it backwards, then fetch the first even element, default to 0.", "out": "专丐乒"} {"kind": "builder", "in": "专丐乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(reversed(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "专丐乒", "out": "Take a list of integers; sort descending, then reverse the order, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then drop the even numbers.", "out": "乂丕丁"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then strip out the evens.", "out": "乂丕丁"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then drop the even numbers.", "out": "乂丕丁"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then strip out the evens.", "out": "乂丕丁"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then drop the even numbers.", "out": "乂丕丁"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then strip out the evens.", "out": "乂丕丁"} {"kind": "builder", "in": "乂丕丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "乂丕丁", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then true only if all are positive.", "out": "乂乃乌"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then do all of these have positive values.", "out": "乂乃乌"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then check if every value is positive.", "out": "乂乃乌"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then confirm all values are positive.", "out": "乂乃乌"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then all positive.", "out": "乂乃乌"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then check if every number is above zero.", "out": "乂乃乌"} {"kind": "builder", "in": "乂乃乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乂乃乌", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increase every value by 10, then put the elements backwards.", "out": "世丽丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then add 10 to each item, then reverse that for me.", "out": "世丽丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then shift each up by ten, then flip it backwards.", "out": "世丽丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then increase all numbers by 10, then make it backwards.", "out": "世丽丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then add 10 to everything, then reverse the list.", "out": "世丽丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give everything a boost of 10, then invert the sequence.", "out": "世丽丐"} {"kind": "builder", "in": "世丽丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 10 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "世丽丐", "out": "Take a list of integers; drop the first element, then add ten to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the list around, then arrange in decreasing order.", "out": "举丐专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then flip the order around, then arrange in descending order.", "out": "举丐专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then put the elements backwards, then reverse sort.", "out": "举丐专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then reverse that for me, then sort largest to smallest.", "out": "举丐专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip it backwards, then sort by descending values.", "out": "举丐专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then make it backwards, then sort from highest to lowest.", "out": "举丐专"} {"kind": "builder", "in": "举丐专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "举丐专", "out": "Take a list of integers; drop the zeros, then reverse the order, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then drop anything 5 or below, then drop the even numbers.", "out": "世主丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only numbers greater than 5, then strip out the evens.", "out": "世主丁"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then filter for numbers above 5, then drop the even numbers.", "out": "世主丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give me values where x is greater than 5, then strip out the evens.", "out": "世主丁"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then show me only the values that are bigger than five, then drop the even numbers.", "out": "世主丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep values greater than five, then strip out the evens.", "out": "世主丁"} {"kind": "builder", "in": "世主丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "世主丁", "out": "Take a list of integers; drop the first element, then keep values greater than five, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort smallest to largest, then give the number of evens.", "out": "丕丑乓"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Ascending sort, then find how many values are divisible by two.", "out": "丕丑乓"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then Sort this ascending, then how many are even.", "out": "丕丑乓"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Sort lowest to highest, then get the total number of even values in the list.", "out": "丕丑乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Arrange from smallest to largest, then give me the count of even values.", "out": "丕丑乓"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort ascending, then I need to know how many of these are even.", "out": "丕丑乓"} {"kind": "builder", "in": "丕丑乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丕丑乓", "out": "Take a list of integers; keep only the first three, then sort ascending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the final 3 elements, then keep only numbers above 5.", "out": "丘丹主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop everything except the final three, then exclude values of 5 and below.", "out": "丘丹主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give me the last three elements, then remove anything 5 or less.", "out": "丘丹主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the last three, then filter to keep only values above 5.", "out": "丘丹主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the final three items, then get rid of values that aren't greater than five.", "out": "丘丹主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the last three, then drop anything 5 or below.", "out": "丘丹主"} {"kind": "builder", "in": "丘丹主", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[-3:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丘丹主", "out": "Take a list of integers; cap each value at 10, then keep only the last three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "丐与义"} {"kind": "speaker", "in": "Take a list of integers; reverse, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "丐与义"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "丐与义"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "丐与义"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "丐与义"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "丐与义"} {"kind": "builder", "in": "丐与义", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丐与义", "out": "Take a list of integers; reverse the order, then negate each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each value by itself, then truncate to three items.", "out": "丘上丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then square them all, then show the first three.", "out": "丘上丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then raise each to the power of two, then take the first three.", "out": "丘上丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then I need each number multiplied by itself, then keep first 3.", "out": "丘上丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then square all of them, then truncate to first three.", "out": "丘上丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiply each element by itself, then first three.", "out": "丘上丕"} {"kind": "builder", "in": "丘上丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘上丕", "out": "Take a list of integers; cap each value at 10, then square each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then give back the product of all values.", "out": "举丈乐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then product of the list.", "out": "举丈乐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then what's the product.", "out": "举丈乐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then what do they multiply to.", "out": "举丈乐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then give me their product.", "out": "举丈乐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then multiply them all together.", "out": "举丈乐"} {"kind": "builder", "in": "举丈乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "举丈乐", "out": "Take a list of integers; drop the zeros, then double each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the sign of each, then arrange in increasing order.", "out": "串与丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then turn positives to negatives and vice versa, then Organize these ascending.", "out": "串与丑"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then flip the sign of each, then Sort in ascending order.", "out": "串与丑"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn positives to negatives and vice versa, then I need this sorted ascending.", "out": "串与丑"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip the sign of each, then Put these in ascending order.", "out": "串与丑"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then turn positives to negatives and vice versa, then sort smallest to largest.", "out": "串与丑"} {"kind": "builder", "in": "串与丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "串与丑", "out": "Take a list of integers; keep multiples of three, then negate each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then stop at the first non-positive value.", "out": "丏丕乂"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then keep the leading run of positive numbers.", "out": "丏丕乂"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then take values while they are positive.", "out": "丏丕乂"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then take positive values then stop.", "out": "丏丕乂"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then keep going while positive.", "out": "丏丕乂"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then stop at first non positive.", "out": "丏丕乂"} {"kind": "builder", "in": "丏丕乂", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丏丕乂", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then default to [0] when there is nothing, then drop the odd numbers.", "out": "义么一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then when the list is empty, substitute a zero value, then filter out the odd numbers.", "out": "义么一"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then replace an empty list with one zero, then drop the odd numbers.", "out": "义么一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then zero it out if it's empty, then filter out the odd numbers.", "out": "义么一"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then use zero if the list is empty, then drop the odd numbers.", "out": "义么一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then default to zero when empty, then filter out the odd numbers.", "out": "义么一"} {"kind": "builder", "in": "义么一", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "义么一", "out": "Take a list of integers; pad with zeros to at least three elements, then if empty, use a single zero, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort largest to smallest, then find the min, defaulting to 0.", "out": "串专丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then sort by descending values, then minimum value, zero otherwise.", "out": "串专丛"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then sort from highest to lowest, then get the minimum value or zero if empty.", "out": "串专丛"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then sort descending, then give me the min or 0.", "out": "串专丛"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then sort largest first, then return the smallest number, defaulting to 0.", "out": "串专丛"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort in descending order, then return smallest or zero if empty.", "out": "串专丛"} {"kind": "builder", "in": "串专丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n return min(r) if r else 0"} {"kind": "translator", "in": "串专丛", "out": "Take a list of integers; keep multiples of three, then sort descending, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then increase every value by 10, then skip the first one.", "out": "七丽世"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then add 10 to each item, then Discard the first element.", "out": "七丽世"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then shift each up by ten, then skip the first one.", "out": "七丽世"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then increase all numbers by 10, then Discard the first element.", "out": "七丽世"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then add 10 to everything, then skip the first one.", "out": "七丽世"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then give everything a boost of 10, then Discard the first element.", "out": "七丽世"} {"kind": "builder", "in": "七丽世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x + 10 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "七丽世", "out": "Take a list of integers; keep the positive numbers, then add ten to each, then drop the first element."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then strip spaces around each string, then reduce each string to its first character.", "out": "乘丢丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then remove leading and trailing spaces, then take first char drop blanks.", "out": "乘丢丨"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then remove whitespace from each item, then keep first letters only.", "out": "乘丢丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then clean whitespace from each entry, then first letter from each item that isn't empty.", "out": "乘丢丨"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then trim each string, then grab the first char from each.", "out": "乘丢丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then trim whitespace from each, then isolate the first character per entry.", "out": "乘丢丨"} {"kind": "builder", "in": "乘丢丨", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s.strip() for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乘丢丨", "out": "Take a list of strings; prefix each with a hash, then trim whitespace from each, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the final 3 elements, then stop at the first non-positive value.", "out": "丈丹乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop everything except the final three, then keep the leading run of positive numbers.", "out": "丈丹乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then give me the last three elements, then take values while they are positive.", "out": "丈丹乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the last three, then take positive values then stop.", "out": "丈丹乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the final three items, then keep going while positive.", "out": "丈丹乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the last three, then stop at first non positive.", "out": "丈丹乂"} {"kind": "builder", "in": "丈丹乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[-3:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丈丹乂", "out": "Take a list of integers; double each, then keep only the last three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the final 3 elements, then true if every value is unique.", "out": "举丹乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop everything except the final three, then check for duplicates in the values.", "out": "举丹乏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give me the last three elements, then do all values appear only once.", "out": "举丹乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the last three, then check that there are no duplicates.", "out": "举丹乏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the final three items, then are the values all unique.", "out": "举丹乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the last three, then check if all values are unique.", "out": "举丹乏"} {"kind": "builder", "in": "举丹乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[-3:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "举丹乏", "out": "Take a list of integers; drop the zeros, then keep only the last three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then default to [0] when there is nothing, then multiply each by -1.", "out": "丹么与"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then when the list is empty, substitute a zero value, then negate.", "out": "丹么与"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then replace an empty list with one zero, then multiply each by -1.", "out": "丹么与"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then zero it out if it's empty, then negate.", "out": "丹么与"} {"kind": "speaker", "in": "Take a list of integers; last three only, then use zero if the list is empty, then multiply each by -1.", "out": "丹么与"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then default to zero when empty, then negate.", "out": "丹么与"} {"kind": "builder", "in": "丹么与", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丹么与", "out": "Take a list of integers; keep only the last three, then if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only odd values, then drop anything not divisible by three.", "out": "为丁串"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then eliminate the even numbers, then filter out everything except multiples of three.", "out": "为丁串"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only odd values, then keep only multiples of three.", "out": "为丁串"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then eliminate the even numbers, then multiples of three only.", "out": "为丁串"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only odd values, then filter for numbers divisible by three.", "out": "为丁串"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then eliminate the even numbers, then give me only the values divisible by three.", "out": "为丁串"} {"kind": "builder", "in": "为丁串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "为丁串", "out": "Take a list of integers; drop the first and last elements, then keep the odd numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove both ends, then multiply each by -1.", "out": "丐为与"} {"kind": "speaker", "in": "Take a list of integers; reverse, then trim the edges, then negate.", "out": "丐为与"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then trim one element off each end, then multiply each by -1.", "out": "丐为与"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then cut off the first and last, then negate.", "out": "丐为与"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first and last elements, then multiply each by -1.", "out": "丐为与"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep only the middle part, then negate.", "out": "丐为与"} {"kind": "builder", "in": "丐为与", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:-1]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丐为与", "out": "Take a list of integers; reverse the order, then drop the first and last elements, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then make each twice as big.", "out": "丁一丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then multiply each by 2.", "out": "丁一丈"} {"kind": "builder", "in": "丁一丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丁一丈", "out": "Take a list of integers; keep the odd numbers, then keep the even numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the final 3 elements, then ensure at least three items by appending zeros.", "out": "不丹义"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then drop everything except the final three, then ensure minimum length of three by adding zeros to the end.", "out": "不丹义"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give me the last three elements, then ensure at least three items by appending zeros.", "out": "不丹义"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep only the last three, then ensure minimum length of three by adding zeros to the end.", "out": "不丹义"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep the final three items, then ensure at least three items by appending zeros.", "out": "不丹义"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the last three, then ensure minimum length of three by adding zeros to the end.", "out": "不丹义"} {"kind": "builder", "in": "不丹义", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "不丹义", "out": "Take a list of integers; subtract one from each, then keep only the last three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value, then trim one element off each end.", "out": "串下为"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all, then cut off the first and last.", "out": "串下为"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value, then remove the first and last elements.", "out": "串下为"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all, then keep only the middle part.", "out": "串下为"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value, then drop first and last.", "out": "串下为"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all, then eliminate the outermost elements.", "out": "串下为"} {"kind": "builder", "in": "串下为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "串下为", "out": "Take a list of integers; keep multiples of three, then add one to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then decrement each value, then raise each to the power of two.", "out": "丽不上"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Lower each number by one, then I need each number multiplied by itself.", "out": "丽不上"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then reduce each by one, then square all of them.", "out": "丽不上"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Subtract 1 from all, then multiply each element by itself.", "out": "丽不上"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Subtract one from each, then make each one squared.", "out": "丽不上"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Drop each by one, then square each value in the list.", "out": "丽不上"} {"kind": "builder", "in": "丽不上", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丽不上", "out": "Take a list of integers; add ten to each, then subtract one from each, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values above zero, then true only if all are positive.", "out": "一七乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter for positive numbers, then do all of these have positive values.", "out": "一七乌"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only positive numbers, then check if every value is positive.", "out": "一七乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the positives, then confirm all values are positive.", "out": "一七乌"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove negatives, then all positive.", "out": "一七乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the positive numbers, then check if every number is above zero.", "out": "一七乌"} {"kind": "builder", "in": "一七乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "一七乌", "out": "Take a list of integers; keep the even numbers, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove all zero values, then keep only numbers above 5.", "out": "么举主"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then exclude zeros, then exclude values of 5 and below.", "out": "么举主"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove all zero values, then remove anything 5 or less.", "out": "么举主"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then exclude zeros, then filter to keep only values above 5.", "out": "么举主"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove all zero values, then get rid of values that aren't greater than five.", "out": "么举主"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then exclude zeros, then drop anything 5 or below.", "out": "么举主"} {"kind": "builder", "in": "么举主", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "么举主", "out": "Take a list of integers; if empty, use a single zero, then drop the zeros, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then count the elements.", "out": "主世东"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then how many items remain.", "out": "主世东"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then tell me the length.", "out": "主世东"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then return the length.", "out": "主世东"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then count them.", "out": "主世东"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then what's the count.", "out": "主世东"} {"kind": "builder", "in": "主世东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n return len(r)"} {"kind": "translator", "in": "主世东", "out": "Take a list of integers; keep values greater than five, then drop the first element, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values above zero, then true only if all are positive.", "out": "为七乌"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then filter for positive numbers, then do all of these have positive values.", "out": "为七乌"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only positive numbers, then check if every value is positive.", "out": "为七乌"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the positives, then confirm all values are positive.", "out": "为七乌"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove negatives, then all positive.", "out": "为七乌"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep the positive numbers, then check if every number is above zero.", "out": "为七乌"} {"kind": "builder", "in": "为七乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "为七乌", "out": "Take a list of integers; drop the first and last elements, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then drop non-positive values.", "out": "丐丈七"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then drop the negative numbers.", "out": "丐丈七"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then filter out the negative ones.", "out": "丐丈七"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then remove all negative values.", "out": "丐丈七"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then keep positive values only.", "out": "丐丈七"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then keep values above zero.", "out": "丐丈七"} {"kind": "builder", "in": "丐丈七", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丐丈七", "out": "Take a list of integers; reverse the order, then double each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the first 3 elements, then shift each up by ten.", "out": "上丕丽"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove everything after the third, then increase all numbers by 10.", "out": "上丕丽"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then truncate to three items, then add 10 to everything.", "out": "上丕丽"} {"kind": "speaker", "in": "Take a list of integers; square them all, then show the first three, then give everything a boost of 10.", "out": "上丕丽"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then take the first three, then increment each by ten.", "out": "上丕丽"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep first 3, then add a constant 10 to each.", "out": "上丕丽"} {"kind": "builder", "in": "上丕丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:3]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "上丕丽", "out": "Take a list of integers; square each, then keep only the first three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then drop anything not divisible by three.", "out": "丁七串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then filter out everything except multiples of three.", "out": "丁七串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then keep only multiples of three.", "out": "丁七串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then multiples of three only.", "out": "丁七串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then filter for numbers divisible by three.", "out": "丁七串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then give me only the values divisible by three.", "out": "丁七串"} {"kind": "builder", "in": "丁七串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丁七串", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then trim one element off each end.", "out": "下丘为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then cut off the first and last.", "out": "下丘为"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then remove the first and last elements.", "out": "下丘为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then keep only the middle part.", "out": "下丘为"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then drop first and last.", "out": "下丘为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then eliminate the outermost elements.", "out": "下丘为"} {"kind": "builder", "in": "下丘为", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "下丘为", "out": "Take a list of integers; add one to each, then cap each value at 10, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep the leading run of positive numbers, then drop non-positive values.", "out": "上乂七"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then take values while they are positive, then drop the negative numbers.", "out": "上乂七"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take positive values then stop, then filter out the negative ones.", "out": "上乂七"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep going while positive, then remove all negative values.", "out": "上乂七"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then stop at first non positive, then keep positive values only.", "out": "上乂七"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take while greater than zero, then keep values above zero.", "out": "上乂七"} {"kind": "builder", "in": "上乂七", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "上乂七", "out": "Take a list of integers; square each, then take values while they are positive, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then give back the product of all values.", "out": "丹久乐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then product of the list.", "out": "丹久乐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then what's the product.", "out": "丹久乐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then what do they multiply to.", "out": "丹久乐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then give me their product.", "out": "丹久乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then multiply them all together.", "out": "丹久乐"} {"kind": "builder", "in": "丹久乐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丹久乐", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then take values up to (excluding) the first zero.", "out": "丁与久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then keep the part before the first 0.", "out": "丁与久"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then truncate at the first zero.", "out": "丁与久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then delete everything starting with the first zero.", "out": "丁与久"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then remove from the first zero onwards.", "out": "丁与久"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then up to but not including the first zero.", "out": "丁与久"} {"kind": "builder", "in": "丁与久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丁与久", "out": "Take a list of integers; keep the odd numbers, then negate each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then truncate to the last three items.", "out": "九一丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then show only the last three.", "out": "九一丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then remove all but the last three.", "out": "九一丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then take the final 3 elements.", "out": "九一丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then drop everything except the final three.", "out": "九一丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then give me the last three elements.", "out": "九一丹"} {"kind": "builder", "in": "九一丹", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "九一丹", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then ensure at least three items by appending zeros.", "out": "丘万义"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "丘万义"} {"kind": "builder", "in": "丘万义", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丘万义", "out": "Take a list of integers; cap each value at 10, then keep the negative numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then order by distance from zero, then give the earliest even value or zero.", "out": "丘丸乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "丘丸乒"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then organize by magnitude, then give the earliest even value or zero.", "out": "丘丸乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "丘丸乒"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "丘丸乒"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by absolute value, then fetch the first even element, default to 0.", "out": "丘丸乒"} {"kind": "builder", "in": "丘丸乒", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丘丸乒", "out": "Take a list of integers; cap each value at 10, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort smallest to largest, then count the elements.", "out": "与丑东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Ascending sort, then how many items remain.", "out": "与丑东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Sort this ascending, then tell me the length.", "out": "与丑东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Sort lowest to highest, then return the length.", "out": "与丑东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Arrange from smallest to largest, then count them.", "out": "与丑东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort ascending, then what's the count.", "out": "与丑东"} {"kind": "builder", "in": "与丑东", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r)\n return len(r)"} {"kind": "translator", "in": "与丑东", "out": "Take a list of integers; negate each, then sort ascending, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove repeated values, then arrange by magnitude ignoring sign.", "out": "七且丸"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then unique values preserving order, then put them in order by magnitude.", "out": "七且丸"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove repeated values, then arrange in order of absolute value.", "out": "七且丸"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then unique values preserving order, then sort by distance from zero.", "out": "七且丸"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove repeated values, then order by how far from zero.", "out": "七且丸"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then unique values preserving order, then order by distance from zero.", "out": "七且丸"} {"kind": "builder", "in": "七且丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(dict.fromkeys(r))\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "七且丸", "out": "Take a list of integers; keep the positive numbers, then drop duplicates keeping first occurrence, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then multiply each by -1.", "out": "串丁与"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then negate.", "out": "串丁与"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then multiply each by -1.", "out": "串丁与"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then negate.", "out": "串丁与"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then multiply each by -1.", "out": "串丁与"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then negate.", "out": "串丁与"} {"kind": "builder", "in": "串丁与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "串丁与", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove both ends, then drop the even numbers.", "out": "乂为丁"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then trim the edges, then strip out the evens.", "out": "乂为丁"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then trim one element off each end, then drop the even numbers.", "out": "乂为丁"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then cut off the first and last, then strip out the evens.", "out": "乂为丁"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first and last elements, then drop the even numbers.", "out": "乂为丁"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep only the middle part, then strip out the evens.", "out": "乂为丁"} {"kind": "builder", "in": "乂为丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "乂为丁", "out": "Take a list of integers; take values while they are positive, then drop the first and last elements, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then make every value non-negative, then shift each up by ten.", "out": "七丏丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then absolute value for all items, then increase all numbers by 10.", "out": "七丏丽"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take absolute values, then add 10 to everything.", "out": "七丏丽"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn negatives into positives, then give everything a boost of 10.", "out": "七丏丽"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then abs each element, then increment each by ten.", "out": "七丏丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the absolute value of each, then add a constant 10 to each.", "out": "七丏丽"} {"kind": "builder", "in": "七丏丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "七丏丽", "out": "Take a list of integers; keep the positive numbers, then take the absolute value of each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each value by itself, then reduce each by one.", "out": "丐上不"} {"kind": "speaker", "in": "Take a list of integers; reverse, then square them all, then Subtract 1 from all.", "out": "丐上不"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then raise each to the power of two, then Subtract one from each.", "out": "丐上不"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then I need each number multiplied by itself, then Drop each by one.", "out": "丐上不"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then square all of them, then Decrease all values by one.", "out": "丐上不"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiply each element by itself, then Remove one from each value.", "out": "丐上不"} {"kind": "builder", "in": "丐上不", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * x for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丐上不", "out": "Take a list of integers; reverse the order, then square each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then order strings from shortest to longest, then reduce each string to its first character.", "out": "乘严丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then shortest to longest, then take first char drop blanks.", "out": "乘严丨"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then arrange by string length ascending, then keep first letters only.", "out": "乘严丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then length sort, then first letter from each item that isn't empty.", "out": "乘严丨"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then sort by length shortest first, then grab the first char from each.", "out": "乘严丨"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then organize by string length least to greatest, then isolate the first character per entry.", "out": "乘严丨"} {"kind": "builder", "in": "乘严丨", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = sorted(r, key=len)\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乘严丨", "out": "Take a list of strings; prefix each with a hash, then sort by length, shortest first, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then take each string's first letter, then arrange by string length ascending.", "out": "丟丨严"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then give me the first letter of everything, then length sort.", "out": "丟丨严"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then reduce each string to its first character, then sort by length shortest first.", "out": "丟丨严"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then take first char drop blanks, then organize by string length least to greatest.", "out": "丟丨严"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then keep first letters only, then shortest strings first.", "out": "丟丨严"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then first letter from each item that isn't empty, then i want them ordered by how short they are.", "out": "丟丨严"} {"kind": "builder", "in": "丟丨严", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s[0] for s in r if s]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "丟丨严", "out": "Take a list of strings; uppercase each string, then keep the first character of each (dropping empties), then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then skip negatives at the start, then reduce each by one.", "out": "丽乃不"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove all negatives at the front, then Subtract 1 from all.", "out": "丽乃不"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the initial run of negative numbers, then Subtract one from each.", "out": "丽乃不"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then strip the front negatives, then Drop each by one.", "out": "丽乃不"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove leading negative numbers, then Decrease all values by one.", "out": "丽乃不"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then drop negatives from start, then Remove one from each value.", "out": "丽乃不"} {"kind": "builder", "in": "丽乃不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丽乃不", "out": "Take a list of integers; add ten to each, then drop the leading negative values, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; square each, then default to [0] when there is nothing, then trim one element off each end.", "out": "上么为"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then when the list is empty, substitute a zero value, then cut off the first and last.", "out": "上么为"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then replace an empty list with one zero, then remove the first and last elements.", "out": "上么为"} {"kind": "speaker", "in": "Take a list of integers; square them all, then zero it out if it's empty, then keep only the middle part.", "out": "上么为"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then use zero if the list is empty, then drop first and last.", "out": "上么为"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then default to zero when empty, then eliminate the outermost elements.", "out": "上么为"} {"kind": "builder", "in": "上么为", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r if r else [0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "上么为", "out": "Take a list of integers; square each, then if empty, use a single zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then extend to length 3 using zeros, then true if any value equals zero.", "out": "丑义乍"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then pad to 3, then check for zero.", "out": "丑义乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then extend to length 3 using zeros, then true if any value equals zero.", "out": "丑义乍"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then pad to 3, then check for zero.", "out": "丑义乍"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then extend to length 3 using zeros, then true if any value equals zero.", "out": "丑义乍"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then pad to 3, then check for zero.", "out": "丑义乍"} {"kind": "builder", "in": "丑义乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return 0 in r"} {"kind": "translator", "in": "丑义乍", "out": "Take a list of integers; sort ascending, then pad with zeros to at least three elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then order by distance from zero, then strip the signs.", "out": "丈丸丏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort based on absolute value, then take abs of each.", "out": "丈丸丏"} {"kind": "speaker", "in": "Take a list of integers; double each, then organize by magnitude, then get the absolute value of everything.", "out": "丈丸丏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then arrange by absolute value ascending, then apply absolute value to the whole list.", "out": "丈丸丏"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from smallest to largest absolute value, then make them all positive.", "out": "丈丸丏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by absolute value, then make every value non-negative.", "out": "丈丸丏"} {"kind": "builder", "in": "丈丸丏", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丈丸丏", "out": "Take a list of integers; double each, then sort by absolute value, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then extend to length 3 using zeros, then stop at the first non-positive value.", "out": "丐义乂"} {"kind": "speaker", "in": "Take a list of integers; reverse, then pad to 3, then keep the leading run of positive numbers.", "out": "丐义乂"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then extend to length 3 using zeros, then take values while they are positive.", "out": "丐义乂"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then pad to 3, then take positive values then stop.", "out": "丐义乂"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then extend to length 3 using zeros, then keep going while positive.", "out": "丐义乂"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then pad to 3, then stop at first non positive.", "out": "丐义乂"} {"kind": "builder", "in": "丐义乂", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丐义乂", "out": "Take a list of integers; reverse the order, then pad with zeros to at least three elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values above zero, then trim one element off each end.", "out": "主七为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then filter for positive numbers, then cut off the first and last.", "out": "主七为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only positive numbers, then remove the first and last elements.", "out": "主七为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the positives, then keep only the middle part.", "out": "主七为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove negatives, then drop first and last.", "out": "主七为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep the positive numbers, then eliminate the outermost elements.", "out": "主七为"} {"kind": "builder", "in": "主七为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主七为", "out": "Take a list of integers; keep values greater than five, then keep the positive numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then make every value non-negative, then stop at the first non-positive value.", "out": "丈丏乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then absolute value for all items, then keep the leading run of positive numbers.", "out": "丈丏乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then take absolute values, then take values while they are positive.", "out": "丈丏乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn negatives into positives, then take positive values then stop.", "out": "丈丏乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then abs each element, then keep going while positive.", "out": "丈丏乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the absolute value of each, then stop at first non positive.", "out": "丈丏乂"} {"kind": "builder", "in": "丈丏乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丈丏乂", "out": "Take a list of integers; double each, then take the absolute value of each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then skip negatives at the start, then drop the odd numbers.", "out": "丽乃一"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove all negatives at the front, then filter out the odd numbers.", "out": "丽乃一"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the initial run of negative numbers, then drop the odd numbers.", "out": "丽乃一"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then strip the front negatives, then filter out the odd numbers.", "out": "丽乃一"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove leading negative numbers, then drop the odd numbers.", "out": "丽乃一"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then drop negatives from start, then filter out the odd numbers.", "out": "丽乃一"} {"kind": "builder", "in": "丽乃一", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丽乃一", "out": "Take a list of integers; add ten to each, then drop the leading negative values, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increase every value by 10, then give back the product of all values.", "out": "丐丽乐"} {"kind": "speaker", "in": "Take a list of integers; reverse, then add 10 to each item, then product of the list.", "out": "丐丽乐"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then shift each up by ten, then what's the product.", "out": "丐丽乐"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then increase all numbers by 10, then what do they multiply to.", "out": "丐丽乐"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then add 10 to everything, then give me their product.", "out": "丐丽乐"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give everything a boost of 10, then multiply them all together.", "out": "丐丽乐"} {"kind": "builder", "in": "丐丽乐", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丐丽乐", "out": "Take a list of integers; reverse the order, then add ten to each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the final 3 elements, then keep only non-zero numbers.", "out": "上丹举"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then drop everything except the final three, then strip the zeros.", "out": "上丹举"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give me the last three elements, then keep only non-zero numbers.", "out": "上丹举"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep only the last three, then strip the zeros.", "out": "上丹举"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep the final three items, then keep only non-zero numbers.", "out": "上丹举"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the last three, then strip the zeros.", "out": "上丹举"} {"kind": "builder", "in": "上丹举", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[-3:]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "上丹举", "out": "Take a list of integers; square each, then keep only the last three, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then extend to length 3 using zeros, then true if any value equals zero.", "out": "丹义乍"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then pad to 3, then check for zero.", "out": "丹义乍"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then extend to length 3 using zeros, then true if any value equals zero.", "out": "丹义乍"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then pad to 3, then check for zero.", "out": "丹义乍"} {"kind": "speaker", "in": "Take a list of integers; last three only, then extend to length 3 using zeros, then true if any value equals zero.", "out": "丹义乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then pad to 3, then check for zero.", "out": "丹义乍"} {"kind": "builder", "in": "丹义乍", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return 0 in r"} {"kind": "translator", "in": "丹义乍", "out": "Take a list of integers; keep only the last three, then pad with zeros to at least three elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then arrange in increasing order.", "out": "举丈丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then Organize these ascending.", "out": "举丈丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then Sort in ascending order.", "out": "举丈丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then I need this sorted ascending.", "out": "举丈丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then Put these in ascending order.", "out": "举丈丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then sort smallest to largest.", "out": "举丈丑"} {"kind": "builder", "in": "举丈丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "举丈丑", "out": "Take a list of integers; drop the zeros, then double each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values divisible by 3, then limit every value to 10.", "out": "丐串丘"} {"kind": "speaker", "in": "Take a list of integers; reverse, then keep items where x mod 3 equals zero, then maximum of 10 for all.", "out": "丐串丘"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then drop anything not divisible by three, then limit every value to 10.", "out": "丐串丘"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then filter out everything except multiples of three, then maximum of 10 for all.", "out": "丐串丘"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only multiples of three, then limit every value to 10.", "out": "丐串丘"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiples of three only, then maximum of 10 for all.", "out": "丐串丘"} {"kind": "builder", "in": "丐串丘", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丐串丘", "out": "Take a list of integers; reverse the order, then keep multiples of three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove repeated values, then find the max, defaulting to 0.", "out": "九且业"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then unique values preserving order, then Give me the maximum, but 0 if there are no items.", "out": "九且业"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove repeated values, then What's the highest number in the list.", "out": "九且业"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then unique values preserving order, then Return the greatest value or default to 0.", "out": "九且业"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove repeated values, then Find the largest element, defaulting to zero.", "out": "九且业"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then unique values preserving order, then give the largest value (0 if none).", "out": "九且业"} {"kind": "builder", "in": "九且业", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(dict.fromkeys(r))\n return max(r) if r else 0"} {"kind": "translator", "in": "九且业", "out": "Take a list of people records (name, age); extract the ages, then drop duplicates keeping first occurrence, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then truncate to the last three items.", "out": "丁七丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then show only the last three.", "out": "丁七丹"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then remove all but the last three.", "out": "丁七丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then take the final 3 elements.", "out": "丁七丹"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then drop everything except the final three.", "out": "丁七丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then give me the last three elements.", "out": "丁七丹"} {"kind": "builder", "in": "丁七丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丁七丹", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values above zero, then arrange in increasing order.", "out": "义七丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter for positive numbers, then Organize these ascending.", "out": "义七丑"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only positive numbers, then Sort in ascending order.", "out": "义七丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positives, then I need this sorted ascending.", "out": "义七丑"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove negatives, then Put these in ascending order.", "out": "义七丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positive numbers, then sort smallest to largest.", "out": "义七丑"} {"kind": "builder", "in": "义七丑", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "义七丑", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the positive numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove repeated values, then true if already sorted smallest to largest.", "out": "乂且乎"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then unique values preserving order, then does this list go in ascending order.", "out": "乂且乎"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove repeated values, then check if the list is in ascending order.", "out": "乂且乎"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then unique values preserving order, then is the list sorted.", "out": "乂且乎"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove repeated values, then is it sorted.", "out": "乂且乎"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then unique values preserving order, then check if values are in increasing order.", "out": "乂且乎"} {"kind": "builder", "in": "乂且乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(dict.fromkeys(r))\n return r == sorted(r)"} {"kind": "translator", "in": "乂且乎", "out": "Take a list of integers; take values while they are positive, then drop duplicates keeping first occurrence, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each value by itself, then make each twice as big.", "out": "且上丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then square them all, then multiply each by 2.", "out": "且上丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then raise each to the power of two, then make each twice as big.", "out": "且上丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then I need each number multiplied by itself, then multiply each by 2.", "out": "且上丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then square all of them, then make each twice as big.", "out": "且上丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiply each element by itself, then multiply each by 2.", "out": "且上丈"} {"kind": "builder", "in": "且上丈", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "且上丈", "out": "Take a list of integers; drop duplicates keeping first occurrence, then square each, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then skip negatives at the start, then trim one element off each end.", "out": "丸乃为"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove all negatives at the front, then cut off the first and last.", "out": "丸乃为"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the initial run of negative numbers, then remove the first and last elements.", "out": "丸乃为"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then strip the front negatives, then keep only the middle part.", "out": "丸乃为"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove leading negative numbers, then drop first and last.", "out": "丸乃为"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then drop negatives from start, then eliminate the outermost elements.", "out": "丸乃为"} {"kind": "builder", "in": "丸乃为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丸乃为", "out": "Take a list of integers; sort by absolute value, then drop the leading negative values, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then extend to length 3 using zeros, then reduce each by one.", "out": "久义不"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then pad to 3, then Subtract 1 from all.", "out": "久义不"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then extend to length 3 using zeros, then Subtract one from each.", "out": "久义不"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then pad to 3, then Drop each by one.", "out": "久义不"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then extend to length 3 using zeros, then Decrease all values by one.", "out": "久义不"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then pad to 3, then Remove one from each value.", "out": "久义不"} {"kind": "builder", "in": "久义不", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "久义不", "out": "Take a list of integers; keep everything before the first zero, then pad with zeros to at least three elements, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values above zero, then find the min, defaulting to 0.", "out": "乂七丛"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then filter for positive numbers, then minimum value, zero otherwise.", "out": "乂七丛"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only positive numbers, then get the minimum value or zero if empty.", "out": "乂七丛"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the positives, then give me the min or 0.", "out": "乂七丛"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove negatives, then return the smallest number, defaulting to 0.", "out": "乂七丛"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep the positive numbers, then return smallest or zero if empty.", "out": "乂七丛"} {"kind": "builder", "in": "乂七丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "乂七丛", "out": "Take a list of integers; take values while they are positive, then keep the positive numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then find the min, defaulting to 0.", "out": "久世丛"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then minimum value, zero otherwise.", "out": "久世丛"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then get the minimum value or zero if empty.", "out": "久世丛"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then give me the min or 0.", "out": "久世丛"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then return the smallest number, defaulting to 0.", "out": "久世丛"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then return smallest or zero if empty.", "out": "久世丛"} {"kind": "builder", "in": "久世丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n return min(r) if r else 0"} {"kind": "translator", "in": "久世丛", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove all zero values, then find the min, defaulting to 0.", "out": "乂举丛"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then exclude zeros, then minimum value, zero otherwise.", "out": "乂举丛"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove all zero values, then get the minimum value or zero if empty.", "out": "乂举丛"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then exclude zeros, then give me the min or 0.", "out": "乂举丛"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove all zero values, then return the smallest number, defaulting to 0.", "out": "乂举丛"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then exclude zeros, then return smallest or zero if empty.", "out": "乂举丛"} {"kind": "builder", "in": "乂举丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "乂举丛", "out": "Take a list of integers; take values while they are positive, then drop the zeros, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then arrange by magnitude ignoring sign.", "out": "下万丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then put them in order by magnitude.", "out": "下万丸"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then arrange in order of absolute value.", "out": "下万丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then sort by distance from zero.", "out": "下万丸"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then order by how far from zero.", "out": "下万丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then order by distance from zero.", "out": "下万丸"} {"kind": "builder", "in": "下万丸", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "下万丸", "out": "Take a list of integers; add one to each, then keep the negative numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then give the number of evens.", "out": "丁举乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then find how many values are divisible by two.", "out": "丁举乓"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then how many are even.", "out": "丁举乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then get the total number of even values in the list.", "out": "丁举乓"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove all zero values, then give me the count of even values.", "out": "丁举乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then exclude zeros, then I need to know how many of these are even.", "out": "丁举乓"} {"kind": "builder", "in": "丁举乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丁举乓", "out": "Take a list of integers; keep the odd numbers, then drop the zeros, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values above zero, then deduplicate the list.", "out": "久七且"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then filter for positive numbers, then remove repeats.", "out": "久七且"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only positive numbers, then deduplicate the list.", "out": "久七且"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep the positives, then remove repeats.", "out": "久七且"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove negatives, then deduplicate the list.", "out": "久七且"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep the positive numbers, then remove repeats.", "out": "久七且"} {"kind": "builder", "in": "久七且", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "久七且", "out": "Take a list of integers; keep everything before the first zero, then keep the positive numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then cut the list at the first zero, then give the earliest even value or zero.", "out": "举久乒"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off after the first zero appears, then fetch the first even element, default to 0.", "out": "举久乒"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take values up to (excluding) the first zero, then give the earliest even value or zero.", "out": "举久乒"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the part before the first 0, then fetch the first even element, default to 0.", "out": "举久乒"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate at the first zero, then give the earliest even value or zero.", "out": "举久乒"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then delete everything starting with the first zero, then fetch the first even element, default to 0.", "out": "举久乒"} {"kind": "builder", "in": "举久乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "举久乒", "out": "Take a list of integers; drop the zeros, then keep everything before the first zero, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then drop the even numbers.", "out": "下丘丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then strip out the evens.", "out": "下丘丁"} {"kind": "builder", "in": "下丘丁", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "下丘丁", "out": "Take a list of integers; add one to each, then cap each value at 10, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then take values up to (excluding) the first zero.", "out": "丘举久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then keep the part before the first 0.", "out": "丘举久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then truncate at the first zero.", "out": "丘举久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then delete everything starting with the first zero.", "out": "丘举久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then remove from the first zero onwards.", "out": "丘举久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then up to but not including the first zero.", "out": "丘举久"} {"kind": "builder", "in": "丘举久", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丘举久", "out": "Take a list of integers; cap each value at 10, then drop the zeros, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first 3 elements, then true if already sorted smallest to largest.", "out": "丁丕乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove everything after the third, then does this list go in ascending order.", "out": "丁丕乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate to three items, then check if the list is in ascending order.", "out": "丁丕乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then show the first three, then is the list sorted.", "out": "丁丕乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first three, then is it sorted.", "out": "丁丕乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep first 3, then check if values are in increasing order.", "out": "丁丕乎"} {"kind": "builder", "in": "丁丕乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:3]\n return r == sorted(r)"} {"kind": "translator", "in": "丁丕乎", "out": "Take a list of integers; keep the odd numbers, then keep only the first three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements, then remove the initial run of negative numbers.", "out": "丕丹乃"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three, then strip the front negatives.", "out": "丕丹乃"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements, then remove leading negative numbers.", "out": "丕丹乃"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three, then drop negatives from start.", "out": "丕丹乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items, then strip negative values from the start.", "out": "丕丹乃"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three, then remove negatives before the first non-negative.", "out": "丕丹乃"} {"kind": "builder", "in": "丕丹乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丕丹乃", "out": "Take a list of integers; keep only the first three, then keep only the last three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the list around, then take values up to (excluding) the first zero.", "out": "不丐久"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then flip the order around, then keep the part before the first 0.", "out": "不丐久"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then put the elements backwards, then truncate at the first zero.", "out": "不丐久"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then reverse that for me, then delete everything starting with the first zero.", "out": "不丐久"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip it backwards, then remove from the first zero onwards.", "out": "不丐久"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then make it backwards, then up to but not including the first zero.", "out": "不丐久"} {"kind": "builder", "in": "不丐久", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "不丐久", "out": "Take a list of integers; subtract one from each, then reverse the order, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove repeated values, then true if already sorted smallest to largest.", "out": "不且乎"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then unique values preserving order, then does this list go in ascending order.", "out": "不且乎"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove repeated values, then check if the list is in ascending order.", "out": "不且乎"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then unique values preserving order, then is the list sorted.", "out": "不且乎"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove repeated values, then is it sorted.", "out": "不且乎"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then unique values preserving order, then check if values are in increasing order.", "out": "不且乎"} {"kind": "builder", "in": "不且乎", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(dict.fromkeys(r))\n return r == sorted(r)"} {"kind": "translator", "in": "不且乎", "out": "Take a list of integers; subtract one from each, then drop duplicates keeping first occurrence, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then sort smallest to largest, then ensure at least three items by appending zeros.", "out": "不丑义"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Ascending sort, then ensure minimum length of three by adding zeros to the end.", "out": "不丑义"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then Sort this ascending, then ensure at least three items by appending zeros.", "out": "不丑义"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Sort lowest to highest, then ensure minimum length of three by adding zeros to the end.", "out": "不丑义"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then Arrange from smallest to largest, then ensure at least three items by appending zeros.", "out": "不丑义"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then sort ascending, then ensure minimum length of three by adding zeros to the end.", "out": "不丑义"} {"kind": "builder", "in": "不丑义", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "不丑义", "out": "Take a list of integers; subtract one from each, then sort ascending, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each by two, then arrange by magnitude ignoring sign.", "out": "为丈丸"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then double each item in the list, then put them in order by magnitude.", "out": "为丈丸"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then multiply each by two, then arrange in order of absolute value.", "out": "为丈丸"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then double each item in the list, then sort by distance from zero.", "out": "为丈丸"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then multiply each by two, then order by how far from zero.", "out": "为丈丸"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then double each item in the list, then order by distance from zero.", "out": "为丈丸"} {"kind": "builder", "in": "为丈丸", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "为丈丸", "out": "Take a list of integers; drop the first and last elements, then double each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything 5 or below, then make each twice as big.", "out": "一主丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only numbers greater than 5, then multiply each by 2.", "out": "一主丈"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then filter for numbers above 5, then make each twice as big.", "out": "一主丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me values where x is greater than 5, then multiply each by 2.", "out": "一主丈"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then show me only the values that are bigger than five, then make each twice as big.", "out": "一主丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep values greater than five, then multiply each by 2.", "out": "一主丈"} {"kind": "builder", "in": "一主丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "一主丈", "out": "Take a list of integers; keep the even numbers, then keep values greater than five, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each value by itself, then find the min, defaulting to 0.", "out": "丁上丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then square them all, then minimum value, zero otherwise.", "out": "丁上丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then raise each to the power of two, then get the minimum value or zero if empty.", "out": "丁上丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then I need each number multiplied by itself, then give me the min or 0.", "out": "丁上丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then square all of them, then return the smallest number, defaulting to 0.", "out": "丁上丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiply each element by itself, then return smallest or zero if empty.", "out": "丁上丛"} {"kind": "builder", "in": "丁上丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x * x for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丁上丛", "out": "Take a list of integers; keep the odd numbers, then square each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values above zero, then give the earliest even value or zero.", "out": "主七乒"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then filter for positive numbers, then fetch the first even element, default to 0.", "out": "主七乒"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only positive numbers, then give the earliest even value or zero.", "out": "主七乒"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the positives, then fetch the first even element, default to 0.", "out": "主七乒"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove negatives, then give the earliest even value or zero.", "out": "主七乒"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep the positive numbers, then fetch the first even element, default to 0.", "out": "主七乒"} {"kind": "builder", "in": "主七乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "主七乒", "out": "Take a list of integers; keep values greater than five, then keep the positive numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then take values up to (excluding) the first zero.", "out": "一世久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then keep the part before the first 0.", "out": "一世久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then truncate at the first zero.", "out": "一世久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then delete everything starting with the first zero.", "out": "一世久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then remove from the first zero onwards.", "out": "一世久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then up to but not including the first zero.", "out": "一世久"} {"kind": "builder", "in": "一世久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "一世久", "out": "Take a list of integers; keep the even numbers, then drop the first element, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements, then true if any value equals zero.", "out": "丕丹乍"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three, then check for zero.", "out": "丕丹乍"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements, then true if any value equals zero.", "out": "丕丹乍"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three, then check for zero.", "out": "丕丹乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items, then true if any value equals zero.", "out": "丕丹乍"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three, then check for zero.", "out": "丕丹乍"} {"kind": "builder", "in": "丕丹乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n return 0 in r"} {"kind": "translator", "in": "丕丹乍", "out": "Take a list of integers; keep only the first three, then keep only the last three, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then drop anything 5 or below, then find the max, defaulting to 0.", "out": "乃主业"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep only numbers greater than 5, then Give me the maximum, but 0 if there are no items.", "out": "乃主业"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then filter for numbers above 5, then What's the highest number in the list.", "out": "乃主业"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then give me values where x is greater than 5, then Return the greatest value or default to 0.", "out": "乃主业"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then show me only the values that are bigger than five, then Find the largest element, defaulting to zero.", "out": "乃主业"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep values greater than five, then give the largest value (0 if none).", "out": "乃主业"} {"kind": "builder", "in": "乃主业", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n return max(r) if r else 0"} {"kind": "translator", "in": "乃主业", "out": "Take a list of integers; drop the leading negative values, then keep values greater than five, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements, then true if already sorted smallest to largest.", "out": "下丹乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three, then does this list go in ascending order.", "out": "下丹乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements, then check if the list is in ascending order.", "out": "下丹乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three, then is the list sorted.", "out": "下丹乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items, then is it sorted.", "out": "下丹乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three, then check if values are in increasing order.", "out": "下丹乎"} {"kind": "builder", "in": "下丹乎", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n return r == sorted(r)"} {"kind": "translator", "in": "下丹乎", "out": "Take a list of integers; add one to each, then keep only the last three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then replace an empty list with one zero.", "out": "举丑么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then zero it out if it's empty.", "out": "举丑么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then use zero if the list is empty.", "out": "举丑么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then default to zero when empty.", "out": "举丑么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then if there's nothing, put in a zero.", "out": "举丑么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then if no items, add a zero.", "out": "举丑么"} {"kind": "builder", "in": "举丑么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "举丑么", "out": "Take a list of integers; drop the zeros, then sort ascending, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "专与义"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "专与义"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "专与义"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "专与义"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "专与义"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "专与义"} {"kind": "builder", "in": "专与义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "专与义", "out": "Take a list of integers; sort descending, then negate each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then drop anything 5 or below, then find the max, defaulting to 0.", "out": "丸主业"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep only numbers greater than 5, then Give me the maximum, but 0 if there are no items.", "out": "丸主业"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then filter for numbers above 5, then What's the highest number in the list.", "out": "丸主业"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then give me values where x is greater than 5, then Return the greatest value or default to 0.", "out": "丸主业"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then show me only the values that are bigger than five, then Find the largest element, defaulting to zero.", "out": "丸主业"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep values greater than five, then give the largest value (0 if none).", "out": "丸主业"} {"kind": "builder", "in": "丸主业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n return max(r) if r else 0"} {"kind": "translator", "in": "丸主业", "out": "Take a list of integers; sort by absolute value, then keep values greater than five, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increment each value, then arrange in increasing order.", "out": "乃下丑"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then plus one for all, then Organize these ascending.", "out": "乃下丑"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then increment each value, then Sort in ascending order.", "out": "乃下丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then plus one for all, then I need this sorted ascending.", "out": "乃下丑"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then increment each value, then Put these in ascending order.", "out": "乃下丑"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then plus one for all, then sort smallest to largest.", "out": "乃下丑"} {"kind": "builder", "in": "乃下丑", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乃下丑", "out": "Take a list of integers; drop the leading negative values, then add one to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values below zero, then give back the product of all values.", "out": "乂万乐"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then get the negative numbers, then product of the list.", "out": "乂万乐"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep values below zero, then what's the product.", "out": "乂万乐"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then get the negative numbers, then what do they multiply to.", "out": "乂万乐"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep values below zero, then give me their product.", "out": "乂万乐"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then get the negative numbers, then multiply them all together.", "out": "乂万乐"} {"kind": "builder", "in": "乂万乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x < 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "乂万乐", "out": "Take a list of integers; take values while they are positive, then keep the negative numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then clamp each to at most ten, then multiply each by -1.", "out": "专丘与"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then don't let anything exceed 10, then negate.", "out": "专丘与"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then clamp each to at most ten, then multiply each by -1.", "out": "专丘与"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then don't let anything exceed 10, then negate.", "out": "专丘与"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then clamp each to at most ten, then multiply each by -1.", "out": "专丘与"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then don't let anything exceed 10, then negate.", "out": "专丘与"} {"kind": "builder", "in": "专丘与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [min(x, 10) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "专丘与", "out": "Take a list of integers; sort descending, then cap each value at 10, then negate each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then drop anything 5 or below, then trim one element off each end.", "out": "乂主为"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep only numbers greater than 5, then cut off the first and last.", "out": "乂主为"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then filter for numbers above 5, then remove the first and last elements.", "out": "乂主为"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then give me values where x is greater than 5, then keep only the middle part.", "out": "乂主为"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then show me only the values that are bigger than five, then drop first and last.", "out": "乂主为"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep values greater than five, then eliminate the outermost elements.", "out": "乂主为"} {"kind": "builder", "in": "乂主为", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 5]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乂主为", "out": "Take a list of integers; take values while they are positive, then keep values greater than five, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort largest to smallest, then trim one element off each end.", "out": "上专为"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort by descending values, then cut off the first and last.", "out": "上专为"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then sort from highest to lowest, then remove the first and last elements.", "out": "上专为"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sort descending, then keep only the middle part.", "out": "上专为"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort largest first, then drop first and last.", "out": "上专为"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort in descending order, then eliminate the outermost elements.", "out": "上专为"} {"kind": "builder", "in": "上专为", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "上专为", "out": "Take a list of integers; square each, then sort descending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values divisible by 3, then multiply each by -1.", "out": "举串与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep items where x mod 3 equals zero, then negate.", "out": "举串与"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything not divisible by three, then multiply each by -1.", "out": "举串与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter out everything except multiples of three, then negate.", "out": "举串与"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only multiples of three, then multiply each by -1.", "out": "举串与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiples of three only, then negate.", "out": "举串与"} {"kind": "builder", "in": "举串与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "举串与", "out": "Take a list of integers; drop the zeros, then keep multiples of three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then flip the sign of each, then arrange in decreasing order.", "out": "丕与专"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then turn positives to negatives and vice versa, then arrange in descending order.", "out": "丕与专"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then flip the sign of each, then reverse sort.", "out": "丕与专"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn positives to negatives and vice versa, then sort largest to smallest.", "out": "丕与专"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then flip the sign of each, then sort by descending values.", "out": "丕与专"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then turn positives to negatives and vice versa, then sort from highest to lowest.", "out": "丕与专"} {"kind": "builder", "in": "丕与专", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [-x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丕与专", "out": "Take a list of integers; keep only the first three, then negate each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then multiply each by -1.", "out": "主世与"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then negate.", "out": "主世与"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then multiply each by -1.", "out": "主世与"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then negate.", "out": "主世与"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then multiply each by -1.", "out": "主世与"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then negate.", "out": "主世与"} {"kind": "builder", "in": "主世与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "主世与", "out": "Take a list of integers; keep values greater than five, then drop the first element, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only even values, then keep only numbers above 5.", "out": "乃一主"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then extract all even numbers, then exclude values of 5 and below.", "out": "乃一主"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only even values, then remove anything 5 or less.", "out": "乃一主"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then extract all even numbers, then filter to keep only values above 5.", "out": "乃一主"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only even values, then get rid of values that aren't greater than five.", "out": "乃一主"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then extract all even numbers, then drop anything 5 or below.", "out": "乃一主"} {"kind": "builder", "in": "乃一主", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乃一主", "out": "Take a list of integers; drop the leading negative values, then keep the even numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then clamp each to at most ten, then strip the signs.", "out": "么丘丏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then don't let anything exceed 10, then take abs of each.", "out": "么丘丏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then clamp each to at most ten, then get the absolute value of everything.", "out": "么丘丏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then don't let anything exceed 10, then apply absolute value to the whole list.", "out": "么丘丏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then clamp each to at most ten, then make them all positive.", "out": "么丘丏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then don't let anything exceed 10, then make every value non-negative.", "out": "么丘丏"} {"kind": "builder", "in": "么丘丏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "么丘丏", "out": "Take a list of integers; if empty, use a single zero, then cap each value at 10, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values above zero, then true if any value equals zero.", "out": "丘七乍"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter for positive numbers, then check for zero.", "out": "丘七乍"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only positive numbers, then true if any value equals zero.", "out": "丘七乍"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positives, then check for zero.", "out": "丘七乍"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove negatives, then true if any value equals zero.", "out": "丘七乍"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the positive numbers, then check for zero.", "out": "丘七乍"} {"kind": "builder", "in": "丘七乍", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 0]\n return 0 in r"} {"kind": "translator", "in": "丘七乍", "out": "Take a list of integers; cap each value at 10, then keep the positive numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep the leading run of positive numbers, then arrange in increasing order.", "out": "串乂丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then take values while they are positive, then Organize these ascending.", "out": "串乂丑"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take positive values then stop, then Sort in ascending order.", "out": "串乂丑"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep going while positive, then I need this sorted ascending.", "out": "串乂丑"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then stop at first non positive, then Put these in ascending order.", "out": "串乂丑"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take while greater than zero, then sort smallest to largest.", "out": "串乂丑"} {"kind": "builder", "in": "串乂丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "串乂丑", "out": "Take a list of integers; keep multiples of three, then take values while they are positive, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove both ends, then strip the signs.", "out": "主为丏"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then trim the edges, then take abs of each.", "out": "主为丏"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then trim one element off each end, then get the absolute value of everything.", "out": "主为丏"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then cut off the first and last, then apply absolute value to the whole list.", "out": "主为丏"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first and last elements, then make them all positive.", "out": "主为丏"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep only the middle part, then make every value non-negative.", "out": "主为丏"} {"kind": "builder", "in": "主为丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:-1]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "主为丏", "out": "Take a list of integers; keep values greater than five, then drop the first and last elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then sort largest to smallest, then make each twice as big.", "out": "七专丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then sort by descending values, then multiply each by 2.", "out": "七专丈"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then sort from highest to lowest, then make each twice as big.", "out": "七专丈"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then sort descending, then multiply each by 2.", "out": "七专丈"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then sort largest first, then make each twice as big.", "out": "七专丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then sort in descending order, then multiply each by 2.", "out": "七专丈"} {"kind": "builder", "in": "七专丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "七专丈", "out": "Take a list of integers; keep the positive numbers, then sort descending, then double each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values above zero, then true only if all are positive.", "out": "丏七乌"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then filter for positive numbers, then do all of these have positive values.", "out": "丏七乌"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only positive numbers, then check if every value is positive.", "out": "丏七乌"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the positives, then confirm all values are positive.", "out": "丏七乌"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove negatives, then all positive.", "out": "丏七乌"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep the positive numbers, then check if every number is above zero.", "out": "丏七乌"} {"kind": "builder", "in": "丏七乌", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丏七乌", "out": "Take a list of integers; take the absolute value of each, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then skip negatives at the start, then strip the signs.", "out": "不乃丏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove all negatives at the front, then take abs of each.", "out": "不乃丏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the initial run of negative numbers, then get the absolute value of everything.", "out": "不乃丏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then strip the front negatives, then apply absolute value to the whole list.", "out": "不乃丏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove leading negative numbers, then make them all positive.", "out": "不乃丏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then drop negatives from start, then make every value non-negative.", "out": "不乃丏"} {"kind": "builder", "in": "不乃丏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "不乃丏", "out": "Take a list of integers; subtract one from each, then drop the leading negative values, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the first 3 elements, then give back the product of all values.", "out": "万丕乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then remove everything after the third, then product of the list.", "out": "万丕乐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate to three items, then what's the product.", "out": "万丕乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then show the first three, then what do they multiply to.", "out": "万丕乐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the first three, then give me their product.", "out": "万丕乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep first 3, then multiply them all together.", "out": "万丕乐"} {"kind": "builder", "in": "万丕乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:3]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "万丕乐", "out": "Take a list of integers; keep the negative numbers, then keep only the first three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then make every value non-negative, then find the min, defaulting to 0.", "out": "丁丏丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then absolute value for all items, then minimum value, zero otherwise.", "out": "丁丏丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take absolute values, then get the minimum value or zero if empty.", "out": "丁丏丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn negatives into positives, then give me the min or 0.", "out": "丁丏丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then abs each element, then return the smallest number, defaulting to 0.", "out": "丁丏丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the absolute value of each, then return smallest or zero if empty.", "out": "丁丏丛"} {"kind": "builder", "in": "丁丏丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丁丏丛", "out": "Take a list of integers; keep the odd numbers, then take the absolute value of each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then cut the list at the first zero, then give the number of evens.", "out": "丽久乓"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then cut off after the first zero appears, then find how many values are divisible by two.", "out": "丽久乓"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take values up to (excluding) the first zero, then how many are even.", "out": "丽久乓"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the part before the first 0, then get the total number of even values in the list.", "out": "丽久乓"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then truncate at the first zero, then give me the count of even values.", "out": "丽久乓"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then delete everything starting with the first zero, then I need to know how many of these are even.", "out": "丽久乓"} {"kind": "builder", "in": "丽久乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丽久乓", "out": "Take a list of integers; add ten to each, then keep everything before the first zero, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the sign of each, then truncate to the last three items.", "out": "么与丹"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then turn positives to negatives and vice versa, then show only the last three.", "out": "么与丹"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then flip the sign of each, then remove all but the last three.", "out": "么与丹"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn positives to negatives and vice versa, then take the final 3 elements.", "out": "么与丹"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip the sign of each, then drop everything except the final three.", "out": "么与丹"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then turn positives to negatives and vice versa, then give me the last three elements.", "out": "么与丹"} {"kind": "builder", "in": "么与丹", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [-x for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "么与丹", "out": "Take a list of integers; if empty, use a single zero, then negate each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest to smallest, then count the elements.", "out": "丘专东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by descending values, then how many items remain.", "out": "丘专东"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from highest to lowest, then tell me the length.", "out": "丘专东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort descending, then return the length.", "out": "丘专东"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest first, then count them.", "out": "丘专东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort in descending order, then what's the count.", "out": "丘专东"} {"kind": "builder", "in": "丘专东", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, reverse=True)\n return len(r)"} {"kind": "translator", "in": "丘专东", "out": "Take a list of integers; cap each value at 10, then sort descending, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort largest to smallest, then true if any value equals zero.", "out": "丏专乍"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort by descending values, then check for zero.", "out": "丏专乍"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then sort from highest to lowest, then true if any value equals zero.", "out": "丏专乍"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then sort descending, then check for zero.", "out": "丏专乍"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort largest first, then true if any value equals zero.", "out": "丏专乍"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort in descending order, then check for zero.", "out": "丏专乍"} {"kind": "builder", "in": "丏专乍", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n return 0 in r"} {"kind": "translator", "in": "丏专乍", "out": "Take a list of integers; take the absolute value of each, then sort descending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the leading run of positive numbers, then limit every value to 10.", "out": "一乂丘"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take values while they are positive, then maximum of 10 for all.", "out": "一乂丘"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take positive values then stop, then limit every value to 10.", "out": "一乂丘"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep going while positive, then maximum of 10 for all.", "out": "一乂丘"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then stop at first non positive, then limit every value to 10.", "out": "一乂丘"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take while greater than zero, then maximum of 10 for all.", "out": "一乂丘"} {"kind": "builder", "in": "一乂丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "一乂丘", "out": "Take a list of integers; keep the even numbers, then take values while they are positive, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increment each value, then give back the product of all values.", "out": "久下乐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then plus one for all, then product of the list.", "out": "久下乐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then increment each value, then what's the product.", "out": "久下乐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then plus one for all, then what do they multiply to.", "out": "久下乐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then increment each value, then give me their product.", "out": "久下乐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then plus one for all, then multiply them all together.", "out": "久下乐"} {"kind": "builder", "in": "久下乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "久下乐", "out": "Take a list of integers; keep everything before the first zero, then add one to each, then return their product."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove repeated strings, then true if a blank string is present.", "out": "乖丧乙"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then keep unique strings first appearance, then check for empty strings in the list.", "out": "乖丧乙"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then eliminate repeated strings preserve first occurrence, then check if there's an empty string.", "out": "乖丧乙"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop duplicate strings keeping the first, then does the collection contain an empty string value somewhere.", "out": "乖丧乙"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then dedupe, then whether any element is blank.", "out": "乖丧乙"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove duplicate strings keep first, then check for an empty string.", "out": "乖丧乙"} {"kind": "builder", "in": "乖丧乙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return any(s == '' for s in r)"} {"kind": "translator", "in": "乖丧乙", "out": "Take a list of strings; sort alphabetically, then drop duplicate strings keeping the first, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the list around, then stop at the first non-positive value.", "out": "丏丐乂"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then flip the order around, then keep the leading run of positive numbers.", "out": "丏丐乂"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then put the elements backwards, then take values while they are positive.", "out": "丏丐乂"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then reverse that for me, then take positive values then stop.", "out": "丏丐乂"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip it backwards, then keep going while positive.", "out": "丏丐乂"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then make it backwards, then stop at first non positive.", "out": "丏丐乂"} {"kind": "builder", "in": "丏丐乂", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(reversed(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丏丐乂", "out": "Take a list of integers; take the absolute value of each, then reverse the order, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the list around, then drop the even numbers.", "out": "么丐丁"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then flip the order around, then strip out the evens.", "out": "么丐丁"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then put the elements backwards, then drop the even numbers.", "out": "么丐丁"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then reverse that for me, then strip out the evens.", "out": "么丐丁"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip it backwards, then drop the even numbers.", "out": "么丐丁"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then make it backwards, then strip out the evens.", "out": "么丐丁"} {"kind": "builder", "in": "么丐丁", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = list(reversed(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "么丐丁", "out": "Take a list of integers; if empty, use a single zero, then reverse the order, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then arrange by magnitude ignoring sign.", "out": "一下丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then put them in order by magnitude.", "out": "一下丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then arrange in order of absolute value.", "out": "一下丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then sort by distance from zero.", "out": "一下丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then order by how far from zero.", "out": "一下丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then order by distance from zero.", "out": "一下丸"} {"kind": "builder", "in": "一下丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "一下丸", "out": "Take a list of integers; keep the even numbers, then add one to each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then multiply each by two, then ensure at least three items by appending zeros.", "out": "九丈义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then double each item in the list, then ensure minimum length of three by adding zeros to the end.", "out": "九丈义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then multiply each by two, then ensure at least three items by appending zeros.", "out": "九丈义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then double each item in the list, then ensure minimum length of three by adding zeros to the end.", "out": "九丈义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then multiply each by two, then ensure at least three items by appending zeros.", "out": "九丈义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then double each item in the list, then ensure minimum length of three by adding zeros to the end.", "out": "九丈义"} {"kind": "builder", "in": "九丈义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x * 2 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九丈义", "out": "Take a list of people records (name, age); extract the ages, then double each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove both ends, then deduplicate the list.", "out": "丏为且"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then trim the edges, then remove repeats.", "out": "丏为且"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then trim one element off each end, then deduplicate the list.", "out": "丏为且"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then cut off the first and last, then remove repeats.", "out": "丏为且"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first and last elements, then deduplicate the list.", "out": "丏为且"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep only the middle part, then remove repeats.", "out": "丏为且"} {"kind": "builder", "in": "丏为且", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:-1]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丏为且", "out": "Take a list of integers; take the absolute value of each, then drop the first and last elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort largest to smallest, then make each twice as big.", "out": "主专丈"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort by descending values, then multiply each by 2.", "out": "主专丈"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then sort from highest to lowest, then make each twice as big.", "out": "主专丈"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then sort descending, then multiply each by 2.", "out": "主专丈"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort largest first, then make each twice as big.", "out": "主专丈"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort in descending order, then multiply each by 2.", "out": "主专丈"} {"kind": "builder", "in": "主专丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "主专丈", "out": "Take a list of integers; keep values greater than five, then sort descending, then double each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then cut the list at the first zero, then keep only numbers above 5.", "out": "乂久主"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then cut off after the first zero appears, then exclude values of 5 and below.", "out": "乂久主"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then take values up to (excluding) the first zero, then remove anything 5 or less.", "out": "乂久主"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the part before the first 0, then filter to keep only values above 5.", "out": "乂久主"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then truncate at the first zero, then get rid of values that aren't greater than five.", "out": "乂久主"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then delete everything starting with the first zero, then drop anything 5 or below.", "out": "乂久主"} {"kind": "builder", "in": "乂久主", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乂久主", "out": "Take a list of integers; take values while they are positive, then keep everything before the first zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each value by itself, then give the number of evens.", "out": "久上乓"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then square them all, then find how many values are divisible by two.", "out": "久上乓"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then raise each to the power of two, then how many are even.", "out": "久上乓"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then I need each number multiplied by itself, then get the total number of even values in the list.", "out": "久上乓"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then square all of them, then give me the count of even values.", "out": "久上乓"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiply each element by itself, then I need to know how many of these are even.", "out": "久上乓"} {"kind": "builder", "in": "久上乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "久上乓", "out": "Take a list of integers; keep everything before the first zero, then square each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then put the elements backwards.", "out": "世万丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then reverse that for me.", "out": "世万丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then flip it backwards.", "out": "世万丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then make it backwards.", "out": "世万丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then reverse the list.", "out": "世万丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then invert the sequence.", "out": "世万丐"} {"kind": "builder", "in": "世万丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "世万丐", "out": "Take a list of integers; drop the first element, then keep the negative numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then remove repeated strings, then find the longest one, defaulting to empty.", "out": "丢丧丰"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then keep unique strings first appearance, then Longest string, or nothing if there isn't one.", "out": "丢丧丰"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then eliminate repeated strings preserve first occurrence, then find the longest one, defaulting to empty.", "out": "丢丧丰"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then drop duplicate strings keeping the first, then Longest string, or nothing if there isn't one.", "out": "丢丧丰"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then dedupe, then find the longest one, defaulting to empty.", "out": "丢丧丰"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then remove duplicate strings keep first, then Longest string, or nothing if there isn't one.", "out": "丢丧丰"} {"kind": "builder", "in": "丢丧丰", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = list(dict.fromkeys(r))\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丢丧丰", "out": "Take a list of strings; trim whitespace from each, then drop duplicate strings keeping the first, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only even values, then arrange in increasing order.", "out": "丹一丑"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then extract all even numbers, then Organize these ascending.", "out": "丹一丑"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only even values, then Sort in ascending order.", "out": "丹一丑"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then extract all even numbers, then I need this sorted ascending.", "out": "丹一丑"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only even values, then Put these in ascending order.", "out": "丹一丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then extract all even numbers, then sort smallest to largest.", "out": "丹一丑"} {"kind": "builder", "in": "丹一丑", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丹一丑", "out": "Take a list of integers; keep only the last three, then keep the even numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then make every value non-negative, then find the min, defaulting to 0.", "out": "万丏丛"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then absolute value for all items, then minimum value, zero otherwise.", "out": "万丏丛"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take absolute values, then get the minimum value or zero if empty.", "out": "万丏丛"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn negatives into positives, then give me the min or 0.", "out": "万丏丛"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then abs each element, then return the smallest number, defaulting to 0.", "out": "万丏丛"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the absolute value of each, then return smallest or zero if empty.", "out": "万丏丛"} {"kind": "builder", "in": "万丏丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "万丏丛", "out": "Take a list of integers; keep the negative numbers, then take the absolute value of each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; double each, then make every value non-negative, then drop the even numbers.", "out": "丈丏丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then absolute value for all items, then strip out the evens.", "out": "丈丏丁"} {"kind": "speaker", "in": "Take a list of integers; double each, then take absolute values, then drop the even numbers.", "out": "丈丏丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn negatives into positives, then strip out the evens.", "out": "丈丏丁"} {"kind": "speaker", "in": "Take a list of integers; double each, then abs each element, then drop the even numbers.", "out": "丈丏丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the absolute value of each, then strip out the evens.", "out": "丈丏丁"} {"kind": "builder", "in": "丈丏丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丈丏丁", "out": "Take a list of integers; double each, then take the absolute value of each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros, then strip the signs.", "out": "为义丏"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3, then take abs of each.", "out": "为义丏"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros, then get the absolute value of everything.", "out": "为义丏"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3, then apply absolute value to the whole list.", "out": "为义丏"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros, then make them all positive.", "out": "为义丏"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3, then make every value non-negative.", "out": "为义丏"} {"kind": "builder", "in": "为义丏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "为义丏", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then decrement each value, then keep only non-zero numbers.", "out": "九不举"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Lower each number by one, then strip the zeros.", "out": "九不举"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then reduce each by one, then keep only non-zero numbers.", "out": "九不举"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Subtract 1 from all, then strip the zeros.", "out": "九不举"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Subtract one from each, then keep only non-zero numbers.", "out": "九不举"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Drop each by one, then strip the zeros.", "out": "九不举"} {"kind": "builder", "in": "九不举", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x - 1 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "九不举", "out": "Take a list of people records (name, age); extract the ages, then subtract one from each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the age field from each record, then remove the initial run of negative numbers.", "out": "习九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then get the age field, then strip the front negatives.", "out": "习九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's age, then remove leading negative numbers.", "out": "习九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then extract age values, then drop negatives from start.", "out": "习九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then get all the ages, then strip negative values from the start.", "out": "习九乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then what are the ages, then remove negatives before the first non-negative.", "out": "习九乃"} {"kind": "builder", "in": "习九乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "习九乃", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the ages, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort largest to smallest, then bump each up by one.", "out": "丕专下"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort by descending values, then increment each item.", "out": "丕专下"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then sort from highest to lowest, then bump each up by one.", "out": "丕专下"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sort descending, then increment each item.", "out": "丕专下"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort largest first, then bump each up by one.", "out": "丕专下"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort in descending order, then increment each item.", "out": "丕专下"} {"kind": "builder", "in": "丕专下", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, reverse=True)\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丕专下", "out": "Take a list of integers; keep only the first three, then sort descending, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort largest to smallest, then multiply each by -1.", "out": "万专与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort by descending values, then negate.", "out": "万专与"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort from highest to lowest, then multiply each by -1.", "out": "万专与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort descending, then negate.", "out": "万专与"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort largest first, then multiply each by -1.", "out": "万专与"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort in descending order, then negate.", "out": "万专与"} {"kind": "builder", "in": "万专与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r, reverse=True)\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "万专与", "out": "Take a list of integers; keep the negative numbers, then sort descending, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each by two, then truncate to three items.", "out": "为丈丕"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then double each item in the list, then show the first three.", "out": "为丈丕"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then multiply each by two, then take the first three.", "out": "为丈丕"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then double each item in the list, then keep first 3.", "out": "为丈丕"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then multiply each by two, then truncate to first three.", "out": "为丈丕"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then double each item in the list, then first three.", "out": "为丈丕"} {"kind": "builder", "in": "为丈丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * 2 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "为丈丕", "out": "Take a list of integers; drop the first and last elements, then double each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the sign of each, then shift each up by ten.", "out": "为与丽"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then turn positives to negatives and vice versa, then increase all numbers by 10.", "out": "为与丽"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then flip the sign of each, then add 10 to everything.", "out": "为与丽"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn positives to negatives and vice versa, then give everything a boost of 10.", "out": "为与丽"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip the sign of each, then increment each by ten.", "out": "为与丽"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then turn positives to negatives and vice versa, then add a constant 10 to each.", "out": "为与丽"} {"kind": "builder", "in": "为与丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [-x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "为与丽", "out": "Take a list of integers; drop the first and last elements, then negate each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything 5 or below, then replace an empty list with one zero.", "out": "一主么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only numbers greater than 5, then zero it out if it's empty.", "out": "一主么"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then filter for numbers above 5, then use zero if the list is empty.", "out": "一主么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me values where x is greater than 5, then default to zero when empty.", "out": "一主么"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then show me only the values that are bigger than five, then if there's nothing, put in a zero.", "out": "一主么"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep values greater than five, then if no items, add a zero.", "out": "一主么"} {"kind": "builder", "in": "一主么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "一主么", "out": "Take a list of integers; keep the even numbers, then keep values greater than five, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then clamp each to at most ten, then arrange in increasing order.", "out": "么丘丑"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then don't let anything exceed 10, then Organize these ascending.", "out": "么丘丑"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then clamp each to at most ten, then Sort in ascending order.", "out": "么丘丑"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then don't let anything exceed 10, then I need this sorted ascending.", "out": "么丘丑"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then clamp each to at most ten, then Put these in ascending order.", "out": "么丘丑"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then don't let anything exceed 10, then sort smallest to largest.", "out": "么丘丑"} {"kind": "builder", "in": "么丘丑", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "么丘丑", "out": "Take a list of integers; if empty, use a single zero, then cap each value at 10, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep the leading run of positive numbers, then truncate to three items.", "out": "丐乂丕"} {"kind": "speaker", "in": "Take a list of integers; reverse, then take values while they are positive, then show the first three.", "out": "丐乂丕"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take positive values then stop, then take the first three.", "out": "丐乂丕"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep going while positive, then keep first 3.", "out": "丐乂丕"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then stop at first non positive, then truncate to first three.", "out": "丐乂丕"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take while greater than zero, then first three.", "out": "丐乂丕"} {"kind": "builder", "in": "丐乂丕", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丐乂丕", "out": "Take a list of integers; reverse the order, then take values while they are positive, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then default to [0] when there is nothing, then bump each up by one.", "out": "且么下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then when the list is empty, substitute a zero value, then increment each item.", "out": "且么下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then replace an empty list with one zero, then bump each up by one.", "out": "且么下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then zero it out if it's empty, then increment each item.", "out": "且么下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then use zero if the list is empty, then bump each up by one.", "out": "且么下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then default to zero when empty, then increment each item.", "out": "且么下"} {"kind": "builder", "in": "且么下", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "且么下", "out": "Take a list of integers; drop duplicates keeping first occurrence, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then sort smallest to largest, then drop the odd numbers.", "out": "不丑一"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Ascending sort, then filter out the odd numbers.", "out": "不丑一"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then Sort this ascending, then drop the odd numbers.", "out": "不丑一"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Sort lowest to highest, then filter out the odd numbers.", "out": "不丑一"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then Arrange from smallest to largest, then drop the odd numbers.", "out": "不丑一"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then sort ascending, then filter out the odd numbers.", "out": "不丑一"} {"kind": "builder", "in": "不丑一", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = sorted(r)\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "不丑一", "out": "Take a list of integers; subtract one from each, then sort ascending, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep the leading run of positive numbers, then replace an empty list with one zero.", "out": "专乂么"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then take values while they are positive, then zero it out if it's empty.", "out": "专乂么"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take positive values then stop, then use zero if the list is empty.", "out": "专乂么"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep going while positive, then default to zero when empty.", "out": "专乂么"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then stop at first non positive, then if there's nothing, put in a zero.", "out": "专乂么"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take while greater than zero, then if no items, add a zero.", "out": "专乂么"} {"kind": "builder", "in": "专乂么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "专乂么", "out": "Take a list of integers; sort descending, then take values while they are positive, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then decrement each value, then multiply each by -1.", "out": "世不与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Lower each number by one, then negate.", "out": "世不与"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then reduce each by one, then multiply each by -1.", "out": "世不与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Subtract 1 from all, then negate.", "out": "世不与"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Subtract one from each, then multiply each by -1.", "out": "世不与"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Drop each by one, then negate.", "out": "世不与"} {"kind": "builder", "in": "世不与", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x - 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "世不与", "out": "Take a list of integers; drop the first element, then subtract one from each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then sort smallest to largest, then put the elements backwards.", "out": "专丑丐"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Ascending sort, then reverse that for me.", "out": "专丑丐"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then Sort this ascending, then flip it backwards.", "out": "专丑丐"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Sort lowest to highest, then make it backwards.", "out": "专丑丐"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then Arrange from smallest to largest, then reverse the list.", "out": "专丑丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort ascending, then invert the sequence.", "out": "专丑丐"} {"kind": "builder", "in": "专丑丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "专丑丐", "out": "Take a list of integers; sort descending, then sort ascending, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then give the earliest even value or zero.", "out": "且丽乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then fetch the first even element, default to 0.", "out": "且丽乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then give the earliest even value or zero.", "out": "且丽乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then fetch the first even element, default to 0.", "out": "且丽乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then give the earliest even value or zero.", "out": "且丽乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then fetch the first even element, default to 0.", "out": "且丽乒"} {"kind": "builder", "in": "且丽乒", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "且丽乒", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then keep only non-empty strings, then find how long the longest string is.", "out": "乞两乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then filter empty strings, then give the length of the longest string in the list.", "out": "乞两乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove empty strings from the list, then get me the longest string's length.", "out": "乞两乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then clean up empty strings, then give the maximum string length.", "out": "乞两乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then delete empty entries, then max length of all strings.", "out": "乞两乜"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then drop empty strings, then what's the max string length.", "out": "乞两乜"} {"kind": "builder", "in": "乞两乜", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s for s in r if s]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "乞两乜", "out": "Take a list of people records (name, age); extract the names, then drop empty strings, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove all zero values, then true only if all are positive.", "out": "丹举乌"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then exclude zeros, then do all of these have positive values.", "out": "丹举乌"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove all zero values, then check if every value is positive.", "out": "丹举乌"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then exclude zeros, then confirm all values are positive.", "out": "丹举乌"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove all zero values, then all positive.", "out": "丹举乌"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then exclude zeros, then check if every number is above zero.", "out": "丹举乌"} {"kind": "builder", "in": "丹举乌", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丹举乌", "out": "Take a list of integers; keep only the last three, then drop the zeros, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove repeated values, then drop the even numbers.", "out": "一且丁"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then unique values preserving order, then strip out the evens.", "out": "一且丁"} {"kind": "builder", "in": "一且丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "一且丁", "out": "Take a list of integers; keep the even numbers, then drop duplicates keeping first occurrence, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then strip spaces around each string, then return the number of strings.", "out": "严丢丫"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then remove leading and trailing spaces, then count the strings.", "out": "严丢丫"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then remove whitespace from each item, then return how many strings remain.", "out": "严丢丫"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then clean whitespace from each entry, then give me the total number of strings.", "out": "严丢丫"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then trim each string, then tell me how many strings we have.", "out": "严丢丫"} {"kind": "speaker", "in": "Take a list of strings; length sort, then trim whitespace from each, then what's the string count.", "out": "严丢丫"} {"kind": "builder", "in": "严丢丫", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.strip() for s in r]\n return len(r)"} {"kind": "translator", "in": "严丢丫", "out": "Take a list of strings; sort by length, shortest first, then trim whitespace from each, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then make each twice as big.", "out": "下丘丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then multiply each by 2.", "out": "下丘丈"} {"kind": "builder", "in": "下丘丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "下丘丈", "out": "Take a list of integers; add one to each, then cap each value at 10, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove both ends, then give back the product of all values.", "out": "乃为乐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then trim the edges, then product of the list.", "out": "乃为乐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then trim one element off each end, then what's the product.", "out": "乃为乐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then cut off the first and last, then what do they multiply to.", "out": "乃为乐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first and last elements, then give me their product.", "out": "乃为乐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep only the middle part, then multiply them all together.", "out": "乃为乐"} {"kind": "builder", "in": "乃为乐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "乃为乐", "out": "Take a list of integers; drop the leading negative values, then drop the first and last elements, then return their product."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value, then find the max, defaulting to 0.", "out": "与下业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all, then Give me the maximum, but 0 if there are no items.", "out": "与下业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value, then What's the highest number in the list.", "out": "与下业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all, then Return the greatest value or default to 0.", "out": "与下业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then increment each value, then Find the largest element, defaulting to zero.", "out": "与下业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then plus one for all, then give the largest value (0 if none).", "out": "与下业"} {"kind": "builder", "in": "与下业", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 1 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "与下业", "out": "Take a list of integers; negate each, then add one to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then extend to length 3 using zeros, then arrange by magnitude ignoring sign.", "out": "万义丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then pad to 3, then put them in order by magnitude.", "out": "万义丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then extend to length 3 using zeros, then arrange in order of absolute value.", "out": "万义丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then pad to 3, then sort by distance from zero.", "out": "万义丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then extend to length 3 using zeros, then order by how far from zero.", "out": "万义丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then pad to 3, then order by distance from zero.", "out": "万义丸"} {"kind": "builder", "in": "万义丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "万义丸", "out": "Take a list of integers; keep the negative numbers, then pad with zeros to at least three elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort smallest to largest, then trim one element off each end.", "out": "义丑为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Ascending sort, then cut off the first and last.", "out": "义丑为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Sort this ascending, then remove the first and last elements.", "out": "义丑为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Sort lowest to highest, then keep only the middle part.", "out": "义丑为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Arrange from smallest to largest, then drop first and last.", "out": "义丑为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort ascending, then eliminate the outermost elements.", "out": "义丑为"} {"kind": "builder", "in": "义丑为", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "义丑为", "out": "Take a list of integers; pad with zeros to at least three elements, then sort ascending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the list around, then find the min, defaulting to 0.", "out": "且丐丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then flip the order around, then minimum value, zero otherwise.", "out": "且丐丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then put the elements backwards, then get the minimum value or zero if empty.", "out": "且丐丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then reverse that for me, then give me the min or 0.", "out": "且丐丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip it backwards, then return the smallest number, defaulting to 0.", "out": "且丐丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then make it backwards, then return smallest or zero if empty.", "out": "且丐丛"} {"kind": "builder", "in": "且丐丛", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = list(reversed(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "且丐丛", "out": "Take a list of integers; drop duplicates keeping first occurrence, then reverse the order, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then ensure at least three items by appending zeros.", "out": "主世义"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "主世义"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then ensure at least three items by appending zeros.", "out": "主世义"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "主世义"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then ensure at least three items by appending zeros.", "out": "主世义"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "主世义"} {"kind": "builder", "in": "主世义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "主世义", "out": "Take a list of integers; keep values greater than five, then drop the first element, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then skip negatives at the start, then drop the odd numbers.", "out": "丁乃一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove all negatives at the front, then filter out the odd numbers.", "out": "丁乃一"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the initial run of negative numbers, then drop the odd numbers.", "out": "丁乃一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then strip the front negatives, then filter out the odd numbers.", "out": "丁乃一"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove leading negative numbers, then drop the odd numbers.", "out": "丁乃一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop negatives from start, then filter out the odd numbers.", "out": "丁乃一"} {"kind": "builder", "in": "丁乃一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丁乃一", "out": "Take a list of integers; keep the odd numbers, then drop the leading negative values, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove both ends, then true if already sorted smallest to largest.", "out": "丏为乎"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then trim the edges, then does this list go in ascending order.", "out": "丏为乎"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then trim one element off each end, then check if the list is in ascending order.", "out": "丏为乎"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then cut off the first and last, then is the list sorted.", "out": "丏为乎"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first and last elements, then is it sorted.", "out": "丏为乎"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep only the middle part, then check if values are in increasing order.", "out": "丏为乎"} {"kind": "builder", "in": "丏为乎", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:-1]\n return r == sorted(r)"} {"kind": "translator", "in": "丏为乎", "out": "Take a list of integers; take the absolute value of each, then drop the first and last elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep values above zero, then skip the first one.", "out": "丕七世"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then filter for positive numbers, then Discard the first element.", "out": "丕七世"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only positive numbers, then skip the first one.", "out": "丕七世"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep the positives, then Discard the first element.", "out": "丕七世"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove negatives, then skip the first one.", "out": "丕七世"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep the positive numbers, then Discard the first element.", "out": "丕七世"} {"kind": "builder", "in": "丕七世", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丕七世", "out": "Take a list of integers; keep only the first three, then keep the positive numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then count the elements.", "out": "九么东"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then how many items remain.", "out": "九么东"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then tell me the length.", "out": "九么东"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then return the length.", "out": "九么东"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then count them.", "out": "九么东"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then what's the count.", "out": "九么东"} {"kind": "builder", "in": "九么东", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n return len(r)"} {"kind": "translator", "in": "九么东", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove the first item, then ensure at least three items by appending zeros.", "out": "丐世义"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "丐世义"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the first item, then ensure at least three items by appending zeros.", "out": "丐世义"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "丐世义"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first item, then ensure at least three items by appending zeros.", "out": "丐世义"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "丐世义"} {"kind": "builder", "in": "丐世义", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丐世义", "out": "Take a list of integers; reverse the order, then drop the first element, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then arrange in decreasing order.", "out": "举丁专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then arrange in descending order.", "out": "举丁专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then reverse sort.", "out": "举丁专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then sort largest to smallest.", "out": "举丁专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then sort by descending values.", "out": "举丁专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then sort from highest to lowest.", "out": "举丁专"} {"kind": "builder", "in": "举丁专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "举丁专", "out": "Take a list of integers; drop the zeros, then keep the odd numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then add '#' to the start of each string, then find how long the longest string is.", "out": "丟乘乜"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then make each one start with a hash, then give the length of the longest string in the list.", "out": "丟乘乜"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then add '#' to the start of each string, then get me the longest string's length.", "out": "丟乘乜"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then make each one start with a hash, then give the maximum string length.", "out": "丟乘乜"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then add '#' to the start of each string, then max length of all strings.", "out": "丟乘乜"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then make each one start with a hash, then what's the max string length.", "out": "丟乘乜"} {"kind": "builder", "in": "丟乘乜", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = ['#' + s for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丟乘乜", "out": "Take a list of strings; uppercase each string, then prefix each with a hash, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then limit every value to 10.", "out": "一丁丘"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then maximum of 10 for all.", "out": "一丁丘"} {"kind": "builder", "in": "一丁丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "一丁丘", "out": "Take a list of integers; keep the even numbers, then keep the odd numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then decrement each value, then multiply each by -1.", "out": "专不与"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Lower each number by one, then negate.", "out": "专不与"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then reduce each by one, then multiply each by -1.", "out": "专不与"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Subtract 1 from all, then negate.", "out": "专不与"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then Subtract one from each, then multiply each by -1.", "out": "专不与"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then Drop each by one, then negate.", "out": "专不与"} {"kind": "builder", "in": "专不与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x - 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "专不与", "out": "Take a list of integers; sort descending, then subtract one from each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then drop the odd numbers.", "out": "丈且一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then filter out the odd numbers.", "out": "丈且一"} {"kind": "builder", "in": "丈且一", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丈且一", "out": "Take a list of integers; double each, then drop duplicates keeping first occurrence, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each value by itself, then arrange in increasing order.", "out": "一上丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then square them all, then Organize these ascending.", "out": "一上丑"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then raise each to the power of two, then Sort in ascending order.", "out": "一上丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then I need each number multiplied by itself, then I need this sorted ascending.", "out": "一上丑"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then square all of them, then Put these in ascending order.", "out": "一上丑"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiply each element by itself, then sort smallest to largest.", "out": "一上丑"} {"kind": "builder", "in": "一上丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "一上丑", "out": "Take a list of integers; keep the even numbers, then square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the sign of each, then strip the signs.", "out": "为与丏"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then turn positives to negatives and vice versa, then take abs of each.", "out": "为与丏"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then flip the sign of each, then get the absolute value of everything.", "out": "为与丏"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn positives to negatives and vice versa, then apply absolute value to the whole list.", "out": "为与丏"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip the sign of each, then make them all positive.", "out": "为与丏"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then turn positives to negatives and vice versa, then make every value non-negative.", "out": "为与丏"} {"kind": "builder", "in": "为与丏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [-x for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "为与丏", "out": "Take a list of integers; drop the first and last elements, then negate each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the final 3 elements, then make each twice as big.", "out": "不丹丈"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then drop everything except the final three, then multiply each by 2.", "out": "不丹丈"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then give me the last three elements, then make each twice as big.", "out": "不丹丈"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep only the last three, then multiply each by 2.", "out": "不丹丈"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep the final three items, then make each twice as big.", "out": "不丹丈"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the last three, then multiply each by 2.", "out": "不丹丈"} {"kind": "builder", "in": "不丹丈", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[-3:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "不丹丈", "out": "Take a list of integers; subtract one from each, then keep only the last three, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep the leading run of positive numbers, then give back the total.", "out": "为乂丙"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then take values while they are positive, then sum r.", "out": "为乂丙"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take positive values then stop, then add them up.", "out": "为乂丙"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep going while positive, then calculate the sum of all elements.", "out": "为乂丙"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then stop at first non positive, then what's the total.", "out": "为乂丙"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take while greater than zero, then what do they add up to.", "out": "为乂丙"} {"kind": "builder", "in": "为乂丙", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return sum(r)"} {"kind": "translator", "in": "为乂丙", "out": "Take a list of integers; drop the first and last elements, then take values while they are positive, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then extend to length 3 using zeros, then limit every value to 10.", "out": "主义丘"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then pad to 3, then maximum of 10 for all.", "out": "主义丘"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then extend to length 3 using zeros, then limit every value to 10.", "out": "主义丘"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then pad to 3, then maximum of 10 for all.", "out": "主义丘"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then extend to length 3 using zeros, then limit every value to 10.", "out": "主义丘"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then pad to 3, then maximum of 10 for all.", "out": "主义丘"} {"kind": "builder", "in": "主义丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "主义丘", "out": "Take a list of integers; keep values greater than five, then pad with zeros to at least three elements, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each value by itself, then true if every value is unique.", "out": "一上乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then square them all, then check for duplicates in the values.", "out": "一上乏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then raise each to the power of two, then do all values appear only once.", "out": "一上乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then I need each number multiplied by itself, then check that there are no duplicates.", "out": "一上乏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then square all of them, then are the values all unique.", "out": "一上乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiply each element by itself, then check if all values are unique.", "out": "一上乏"} {"kind": "builder", "in": "一上乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "一上乏", "out": "Take a list of integers; keep the even numbers, then square each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove repeated values, then bump each up by one.", "out": "上且下"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then unique values preserving order, then increment each item.", "out": "上且下"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove repeated values, then bump each up by one.", "out": "上且下"} {"kind": "speaker", "in": "Take a list of integers; square them all, then unique values preserving order, then increment each item.", "out": "上且下"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove repeated values, then bump each up by one.", "out": "上且下"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then unique values preserving order, then increment each item.", "out": "上且下"} {"kind": "builder", "in": "上且下", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "上且下", "out": "Take a list of integers; square each, then drop duplicates keeping first occurrence, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increase every value by 10, then drop anything not divisible by three.", "out": "与丽串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then add 10 to each item, then filter out everything except multiples of three.", "out": "与丽串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then shift each up by ten, then keep only multiples of three.", "out": "与丽串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then increase all numbers by 10, then multiples of three only.", "out": "与丽串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then add 10 to everything, then filter for numbers divisible by three.", "out": "与丽串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give everything a boost of 10, then give me only the values divisible by three.", "out": "与丽串"} {"kind": "builder", "in": "与丽串", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 10 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "与丽串", "out": "Take a list of integers; negate each, then add ten to each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements, then strip the signs.", "out": "义丹丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three, then take abs of each.", "out": "义丹丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements, then get the absolute value of everything.", "out": "义丹丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three, then apply absolute value to the whole list.", "out": "义丹丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items, then make them all positive.", "out": "义丹丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three, then make every value non-negative.", "out": "义丹丏"} {"kind": "builder", "in": "义丹丏", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "义丹丏", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove both ends, then arrange in decreasing order.", "out": "丑为专"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then trim the edges, then arrange in descending order.", "out": "丑为专"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then trim one element off each end, then reverse sort.", "out": "丑为专"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then cut off the first and last, then sort largest to smallest.", "out": "丑为专"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first and last elements, then sort by descending values.", "out": "丑为专"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep only the middle part, then sort from highest to lowest.", "out": "丑为专"} {"kind": "builder", "in": "丑为专", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:-1]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丑为专", "out": "Take a list of integers; sort ascending, then drop the first and last elements, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then clamp each to at most ten, then deduplicate the list.", "out": "串丘且"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then don't let anything exceed 10, then remove repeats.", "out": "串丘且"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then clamp each to at most ten, then deduplicate the list.", "out": "串丘且"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then don't let anything exceed 10, then remove repeats.", "out": "串丘且"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then clamp each to at most ten, then deduplicate the list.", "out": "串丘且"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then don't let anything exceed 10, then remove repeats.", "out": "串丘且"} {"kind": "builder", "in": "串丘且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "串丘且", "out": "Take a list of integers; keep multiples of three, then cap each value at 10, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then cut the list at the first zero, then keep only non-zero numbers.", "out": "不久举"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then cut off after the first zero appears, then strip the zeros.", "out": "不久举"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take values up to (excluding) the first zero, then keep only non-zero numbers.", "out": "不久举"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the part before the first 0, then strip the zeros.", "out": "不久举"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then truncate at the first zero, then keep only non-zero numbers.", "out": "不久举"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then delete everything starting with the first zero, then strip the zeros.", "out": "不久举"} {"kind": "builder", "in": "不久举", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "不久举", "out": "Take a list of integers; subtract one from each, then keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero, then truncate to the last three items.", "out": "不七丹"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers, then show only the last three.", "out": "不七丹"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers, then remove all but the last three.", "out": "不七丹"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives, then take the final 3 elements.", "out": "不七丹"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives, then drop everything except the final three.", "out": "不七丹"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers, then give me the last three elements.", "out": "不七丹"} {"kind": "builder", "in": "不七丹", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "不七丹", "out": "Take a list of integers; subtract one from each, then keep the positive numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values divisible by 3, then true if every value is unique.", "out": "且串乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep items where x mod 3 equals zero, then check for duplicates in the values.", "out": "且串乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything not divisible by three, then do all values appear only once.", "out": "且串乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter out everything except multiples of three, then check that there are no duplicates.", "out": "且串乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only multiples of three, then are the values all unique.", "out": "且串乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiples of three only, then check if all values are unique.", "out": "且串乏"} {"kind": "builder", "in": "且串乏", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "且串乏", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep multiples of three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep values above zero, then bump each up by one.", "out": "万七下"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then filter for positive numbers, then increment each item.", "out": "万七下"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only positive numbers, then bump each up by one.", "out": "万七下"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positives, then increment each item.", "out": "万七下"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove negatives, then bump each up by one.", "out": "万七下"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the positive numbers, then increment each item.", "out": "万七下"} {"kind": "builder", "in": "万七下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "万七下", "out": "Take a list of integers; keep the negative numbers, then keep the positive numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove repeated values, then replace an empty list with one zero.", "out": "为且么"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then unique values preserving order, then zero it out if it's empty.", "out": "为且么"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove repeated values, then use zero if the list is empty.", "out": "为且么"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then unique values preserving order, then default to zero when empty.", "out": "为且么"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove repeated values, then if there's nothing, put in a zero.", "out": "为且么"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then unique values preserving order, then if no items, add a zero.", "out": "为且么"} {"kind": "builder", "in": "为且么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(dict.fromkeys(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "为且么", "out": "Take a list of integers; drop the first and last elements, then drop duplicates keeping first occurrence, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then skip negatives at the start, then drop the even numbers.", "out": "义乃丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove all negatives at the front, then strip out the evens.", "out": "义乃丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the initial run of negative numbers, then drop the even numbers.", "out": "义乃丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then strip the front negatives, then strip out the evens.", "out": "义乃丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove leading negative numbers, then drop the even numbers.", "out": "义乃丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop negatives from start, then strip out the evens.", "out": "义乃丁"} {"kind": "builder", "in": "义乃丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义乃丁", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the leading negative values, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then cut the list at the first zero, then skip the first one.", "out": "万久世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off after the first zero appears, then Discard the first element.", "out": "万久世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take values up to (excluding) the first zero, then skip the first one.", "out": "万久世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the part before the first 0, then Discard the first element.", "out": "万久世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate at the first zero, then skip the first one.", "out": "万久世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then delete everything starting with the first zero, then Discard the first element.", "out": "万久世"} {"kind": "builder", "in": "万久世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n return r"} {"kind": "translator", "in": "万久世", "out": "Take a list of integers; keep the negative numbers, then keep everything before the first zero, then drop the first element."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then order strings from shortest to longest, then prepend a hash mark to each.", "out": "乞严乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then shortest to longest, then prefix all with #.", "out": "乞严乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then arrange by string length ascending, then prepend a hash mark to each.", "out": "乞严乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then length sort, then prefix all with #.", "out": "乞严乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then sort by length shortest first, then prepend a hash mark to each.", "out": "乞严乘"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then organize by string length least to greatest, then prefix all with #.", "out": "乞严乘"} {"kind": "builder", "in": "乞严乘", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = sorted(r, key=len)\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "乞严乘", "out": "Take a list of people records (name, age); extract the names, then sort by length, shortest first, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then sort smallest to largest, then find the max, defaulting to 0.", "out": "专丑业"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Ascending sort, then Give me the maximum, but 0 if there are no items.", "out": "专丑业"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then Sort this ascending, then What's the highest number in the list.", "out": "专丑业"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Sort lowest to highest, then Return the greatest value or default to 0.", "out": "专丑业"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then Arrange from smallest to largest, then Find the largest element, defaulting to zero.", "out": "专丑业"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort ascending, then give the largest value (0 if none).", "out": "专丑业"} {"kind": "builder", "in": "专丑业", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r)\n return max(r) if r else 0"} {"kind": "translator", "in": "专丑业", "out": "Take a list of integers; sort descending, then sort ascending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then true if any value equals zero.", "out": "丈丁乍"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then check for zero.", "out": "丈丁乍"} {"kind": "builder", "in": "丈丁乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n return 0 in r"} {"kind": "translator", "in": "丈丁乍", "out": "Take a list of integers; double each, then keep the odd numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only even values, then stop at the first non-positive value.", "out": "串一乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then extract all even numbers, then keep the leading run of positive numbers.", "out": "串一乂"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only even values, then take values while they are positive.", "out": "串一乂"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then extract all even numbers, then take positive values then stop.", "out": "串一乂"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only even values, then keep going while positive.", "out": "串一乂"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then extract all even numbers, then stop at first non positive.", "out": "串一乂"} {"kind": "builder", "in": "串一乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "串一乂", "out": "Take a list of integers; keep multiples of three, then keep the even numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements, then put the elements backwards.", "out": "下丹丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three, then reverse that for me.", "out": "下丹丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements, then flip it backwards.", "out": "下丹丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three, then make it backwards.", "out": "下丹丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items, then reverse the list.", "out": "下丹丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three, then invert the sequence.", "out": "下丹丐"} {"kind": "builder", "in": "下丹丐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "下丹丐", "out": "Take a list of integers; add one to each, then keep only the last three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then strip the signs.", "out": "下举丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then take abs of each.", "out": "下举丏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then get the absolute value of everything.", "out": "下举丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then apply absolute value to the whole list.", "out": "下举丏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then make them all positive.", "out": "下举丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then make every value non-negative.", "out": "下举丏"} {"kind": "builder", "in": "下举丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "下举丏", "out": "Take a list of integers; add one to each, then drop the zeros, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove both ends, then truncate to the last three items.", "out": "串为丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then trim the edges, then show only the last three.", "out": "串为丹"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then trim one element off each end, then remove all but the last three.", "out": "串为丹"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then cut off the first and last, then take the final 3 elements.", "out": "串为丹"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first and last elements, then drop everything except the final three.", "out": "串为丹"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep only the middle part, then give me the last three elements.", "out": "串为丹"} {"kind": "builder", "in": "串为丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "串为丹", "out": "Take a list of integers; keep multiples of three, then drop the first and last elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only odd values, then make each twice as big.", "out": "丕丁丈"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then eliminate the even numbers, then multiply each by 2.", "out": "丕丁丈"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only odd values, then make each twice as big.", "out": "丕丁丈"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then eliminate the even numbers, then multiply each by 2.", "out": "丕丁丈"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only odd values, then make each twice as big.", "out": "丕丁丈"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then eliminate the even numbers, then multiply each by 2.", "out": "丕丁丈"} {"kind": "builder", "in": "丕丁丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丕丁丈", "out": "Take a list of integers; keep only the first three, then keep the odd numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then make every value non-negative, then arrange by magnitude ignoring sign.", "out": "丕丏丸"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then absolute value for all items, then put them in order by magnitude.", "out": "丕丏丸"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take absolute values, then arrange in order of absolute value.", "out": "丕丏丸"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn negatives into positives, then sort by distance from zero.", "out": "丕丏丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then abs each element, then order by how far from zero.", "out": "丕丏丸"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the absolute value of each, then order by distance from zero.", "out": "丕丏丸"} {"kind": "builder", "in": "丕丏丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [abs(x) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丕丏丸", "out": "Take a list of integers; keep only the first three, then take the absolute value of each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then multiply each by -1.", "out": "丕丈与"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then negate.", "out": "丕丈与"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then multiply each by -1.", "out": "丕丈与"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then negate.", "out": "丕丈与"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then multiply each by -1.", "out": "丕丈与"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then negate.", "out": "丕丈与"} {"kind": "builder", "in": "丕丈与", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丕丈与", "out": "Take a list of integers; keep only the first three, then double each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything 5 or below, then drop anything not divisible by three.", "out": "与主串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only numbers greater than 5, then filter out everything except multiples of three.", "out": "与主串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then filter for numbers above 5, then keep only multiples of three.", "out": "与主串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give me values where x is greater than 5, then multiples of three only.", "out": "与主串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then show me only the values that are bigger than five, then filter for numbers divisible by three.", "out": "与主串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep values greater than five, then give me only the values divisible by three.", "out": "与主串"} {"kind": "builder", "in": "与主串", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "与主串", "out": "Take a list of integers; negate each, then keep values greater than five, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then decrement each value, then raise each to the power of two.", "out": "丏不上"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Lower each number by one, then I need each number multiplied by itself.", "out": "丏不上"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then reduce each by one, then square all of them.", "out": "丏不上"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Subtract 1 from all, then multiply each element by itself.", "out": "丏不上"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Subtract one from each, then make each one squared.", "out": "丏不上"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Drop each by one, then square each value in the list.", "out": "丏不上"} {"kind": "builder", "in": "丏不上", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丏不上", "out": "Take a list of integers; take the absolute value of each, then subtract one from each, then square each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then extend to length 3 using zeros, then remove the initial run of negative numbers.", "out": "不义乃"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then pad to 3, then strip the front negatives.", "out": "不义乃"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then extend to length 3 using zeros, then remove leading negative numbers.", "out": "不义乃"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then pad to 3, then drop negatives from start.", "out": "不义乃"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then extend to length 3 using zeros, then strip negative values from the start.", "out": "不义乃"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then pad to 3, then remove negatives before the first non-negative.", "out": "不义乃"} {"kind": "builder", "in": "不义乃", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "不义乃", "out": "Take a list of integers; subtract one from each, then pad with zeros to at least three elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then arrange by magnitude ignoring sign.", "out": "下举丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then put them in order by magnitude.", "out": "下举丸"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then arrange in order of absolute value.", "out": "下举丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then sort by distance from zero.", "out": "下举丸"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then order by how far from zero.", "out": "下举丸"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then order by distance from zero.", "out": "下举丸"} {"kind": "builder", "in": "下举丸", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "下举丸", "out": "Take a list of integers; add one to each, then drop the zeros, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then add '#' to the start of each string, then return the number of strings.", "out": "乗乘丫"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then make each one start with a hash, then count the strings.", "out": "乗乘丫"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then add '#' to the start of each string, then return how many strings remain.", "out": "乗乘丫"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then make each one start with a hash, then give me the total number of strings.", "out": "乗乘丫"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then add '#' to the start of each string, then tell me how many strings we have.", "out": "乗乘丫"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then make each one start with a hash, then what's the string count.", "out": "乗乘丫"} {"kind": "builder", "in": "乗乘丫", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = ['#' + s for s in r]\n return len(r)"} {"kind": "translator", "in": "乗乘丫", "out": "Take a list of strings; drop strings shorter than three characters, then prefix each with a hash, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increase every value by 10, then drop the even numbers.", "out": "乂丽丁"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then add 10 to each item, then strip out the evens.", "out": "乂丽丁"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then shift each up by ten, then drop the even numbers.", "out": "乂丽丁"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then increase all numbers by 10, then strip out the evens.", "out": "乂丽丁"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then add 10 to everything, then drop the even numbers.", "out": "乂丽丁"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then give everything a boost of 10, then strip out the evens.", "out": "乂丽丁"} {"kind": "builder", "in": "乂丽丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "乂丽丁", "out": "Take a list of integers; take values while they are positive, then add ten to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort smallest to largest, then put the elements backwards.", "out": "义丑丐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Ascending sort, then reverse that for me.", "out": "义丑丐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Sort this ascending, then flip it backwards.", "out": "义丑丐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Sort lowest to highest, then make it backwards.", "out": "义丑丐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Arrange from smallest to largest, then reverse the list.", "out": "义丑丐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort ascending, then invert the sequence.", "out": "义丑丐"} {"kind": "builder", "in": "义丑丐", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "义丑丐", "out": "Take a list of integers; pad with zeros to at least three elements, then sort ascending, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values below zero, then drop the odd numbers.", "out": "乃万一"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then get the negative numbers, then filter out the odd numbers.", "out": "乃万一"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep values below zero, then drop the odd numbers.", "out": "乃万一"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then get the negative numbers, then filter out the odd numbers.", "out": "乃万一"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep values below zero, then drop the odd numbers.", "out": "乃万一"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the negative numbers, then filter out the odd numbers.", "out": "乃万一"} {"kind": "builder", "in": "乃万一", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "乃万一", "out": "Take a list of integers; drop the leading negative values, then keep the negative numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increment each value, then drop the even numbers.", "out": "为下丁"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then plus one for all, then strip out the evens.", "out": "为下丁"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then increment each value, then drop the even numbers.", "out": "为下丁"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then plus one for all, then strip out the evens.", "out": "为下丁"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then increment each value, then drop the even numbers.", "out": "为下丁"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then plus one for all, then strip out the evens.", "out": "为下丁"} {"kind": "builder", "in": "为下丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "为下丁", "out": "Take a list of integers; drop the first and last elements, then add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero, then trim one element off each end.", "out": "丑丸为"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value, then cut off the first and last.", "out": "丑丸为"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude, then remove the first and last elements.", "out": "丑丸为"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending, then keep only the middle part.", "out": "丑丸为"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value, then drop first and last.", "out": "丑丸为"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value, then eliminate the outermost elements.", "out": "丑丸为"} {"kind": "builder", "in": "丑丸为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丑丸为", "out": "Take a list of integers; sort ascending, then sort by absolute value, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove both ends, then deduplicate the list.", "out": "下为且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then trim the edges, then remove repeats.", "out": "下为且"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then trim one element off each end, then deduplicate the list.", "out": "下为且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off the first and last, then remove repeats.", "out": "下为且"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first and last elements, then deduplicate the list.", "out": "下为且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the middle part, then remove repeats.", "out": "下为且"} {"kind": "builder", "in": "下为且", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:-1]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "下为且", "out": "Take a list of integers; add one to each, then drop the first and last elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then arrange in increasing order.", "out": "乂丕丑"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then Organize these ascending.", "out": "乂丕丑"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then Sort in ascending order.", "out": "乂丕丑"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then I need this sorted ascending.", "out": "乂丕丑"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then Put these in ascending order.", "out": "乂丕丑"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then sort smallest to largest.", "out": "乂丕丑"} {"kind": "builder", "in": "乂丕丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乂丕丑", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then truncate to the last three items.", "out": "丕丸丹"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then show only the last three.", "out": "丕丸丹"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then remove all but the last three.", "out": "丕丸丹"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then take the final 3 elements.", "out": "丕丸丹"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then drop everything except the final three.", "out": "丕丸丹"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then give me the last three elements.", "out": "丕丸丹"} {"kind": "builder", "in": "丕丸丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丕丸丹", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then decrement each value, then make each twice as big.", "out": "举不丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Lower each number by one, then multiply each by 2.", "out": "举不丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then reduce each by one, then make each twice as big.", "out": "举不丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Subtract 1 from all, then multiply each by 2.", "out": "举不丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Subtract one from each, then make each twice as big.", "out": "举不丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Drop each by one, then multiply each by 2.", "out": "举不丈"} {"kind": "builder", "in": "举不丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "举不丈", "out": "Take a list of integers; drop the zeros, then subtract one from each, then double each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove all zero values, then multiply each by -1.", "out": "丽举与"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then exclude zeros, then negate.", "out": "丽举与"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove all zero values, then multiply each by -1.", "out": "丽举与"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then exclude zeros, then negate.", "out": "丽举与"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove all zero values, then multiply each by -1.", "out": "丽举与"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then exclude zeros, then negate.", "out": "丽举与"} {"kind": "builder", "in": "丽举与", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丽举与", "out": "Take a list of integers; add ten to each, then drop the zeros, then negate each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values above zero, then take values up to (excluding) the first zero.", "out": "乂七久"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then filter for positive numbers, then keep the part before the first 0.", "out": "乂七久"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only positive numbers, then truncate at the first zero.", "out": "乂七久"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the positives, then delete everything starting with the first zero.", "out": "乂七久"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove negatives, then remove from the first zero onwards.", "out": "乂七久"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep the positive numbers, then up to but not including the first zero.", "out": "乂七久"} {"kind": "builder", "in": "乂七久", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "乂七久", "out": "Take a list of integers; take values while they are positive, then keep the positive numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the first 3 elements, then drop the even numbers.", "out": "七丕丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove everything after the third, then strip out the evens.", "out": "七丕丁"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then truncate to three items, then drop the even numbers.", "out": "七丕丁"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then show the first three, then strip out the evens.", "out": "七丕丁"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then take the first three, then drop the even numbers.", "out": "七丕丁"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep first 3, then strip out the evens.", "out": "七丕丁"} {"kind": "builder", "in": "七丕丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "七丕丁", "out": "Take a list of integers; keep the positive numbers, then keep only the first three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then cut the list at the first zero, then drop non-negative values.", "out": "丘久万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off after the first zero appears, then drop all positive numbers.", "out": "丘久万"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take values up to (excluding) the first zero, then drop non-negative values.", "out": "丘久万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the part before the first 0, then drop all positive numbers.", "out": "丘久万"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate at the first zero, then drop non-negative values.", "out": "丘久万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then delete everything starting with the first zero, then drop all positive numbers.", "out": "丘久万"} {"kind": "builder", "in": "丘久万", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丘久万", "out": "Take a list of integers; cap each value at 10, then keep everything before the first zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increase every value by 10, then deduplicate the list.", "out": "丕丽且"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add 10 to each item, then remove repeats.", "out": "丕丽且"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then shift each up by ten, then deduplicate the list.", "out": "丕丽且"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then increase all numbers by 10, then remove repeats.", "out": "丕丽且"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add 10 to everything, then deduplicate the list.", "out": "丕丽且"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give everything a boost of 10, then remove repeats.", "out": "丕丽且"} {"kind": "builder", "in": "丕丽且", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丕丽且", "out": "Take a list of integers; keep only the first three, then add ten to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the sign of each, then shift each up by ten.", "out": "主与丽"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then turn positives to negatives and vice versa, then increase all numbers by 10.", "out": "主与丽"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then flip the sign of each, then add 10 to everything.", "out": "主与丽"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then turn positives to negatives and vice versa, then give everything a boost of 10.", "out": "主与丽"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip the sign of each, then increment each by ten.", "out": "主与丽"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then turn positives to negatives and vice versa, then add a constant 10 to each.", "out": "主与丽"} {"kind": "builder", "in": "主与丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "主与丽", "out": "Take a list of integers; keep values greater than five, then negate each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increment each value, then give back the product of all values.", "out": "丐下乐"} {"kind": "speaker", "in": "Take a list of integers; reverse, then plus one for all, then product of the list.", "out": "丐下乐"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then increment each value, then what's the product.", "out": "丐下乐"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then plus one for all, then what do they multiply to.", "out": "丐下乐"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then increment each value, then give me their product.", "out": "丐下乐"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then plus one for all, then multiply them all together.", "out": "丐下乐"} {"kind": "builder", "in": "丐下乐", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 1 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丐下乐", "out": "Take a list of integers; reverse the order, then add one to each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each value by itself, then arrange in increasing order.", "out": "串上丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then square them all, then Organize these ascending.", "out": "串上丑"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then raise each to the power of two, then Sort in ascending order.", "out": "串上丑"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then I need each number multiplied by itself, then I need this sorted ascending.", "out": "串上丑"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then square all of them, then Put these in ascending order.", "out": "串上丑"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then multiply each element by itself, then sort smallest to largest.", "out": "串上丑"} {"kind": "builder", "in": "串上丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "串上丑", "out": "Take a list of integers; keep multiples of three, then square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the final 3 elements, then count the elements.", "out": "万丹东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop everything except the final three, then how many items remain.", "out": "万丹东"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give me the last three elements, then tell me the length.", "out": "万丹东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the last three, then return the length.", "out": "万丹东"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the final three items, then count them.", "out": "万丹东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the last three, then what's the count.", "out": "万丹东"} {"kind": "builder", "in": "万丹东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[-3:]\n return len(r)"} {"kind": "translator", "in": "万丹东", "out": "Take a list of integers; keep the negative numbers, then keep only the last three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each by two, then truncate to three items.", "out": "乂丈丕"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then double each item in the list, then show the first three.", "out": "乂丈丕"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then multiply each by two, then take the first three.", "out": "乂丈丕"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then double each item in the list, then keep first 3.", "out": "乂丈丕"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then multiply each by two, then truncate to first three.", "out": "乂丈丕"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then double each item in the list, then first three.", "out": "乂丈丕"} {"kind": "builder", "in": "乂丈丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "乂丈丕", "out": "Take a list of integers; take values while they are positive, then double each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then skip negatives at the start, then true if at least one even value.", "out": "为乃之"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove all negatives at the front, then any even.", "out": "为乃之"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the initial run of negative numbers, then true if at least one even value.", "out": "为乃之"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then strip the front negatives, then any even.", "out": "为乃之"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove leading negative numbers, then true if at least one even value.", "out": "为乃之"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then drop negatives from start, then any even.", "out": "为乃之"} {"kind": "builder", "in": "为乃之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "为乃之", "out": "Take a list of integers; drop the first and last elements, then drop the leading negative values, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values above zero, then give the number of evens.", "out": "一七乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter for positive numbers, then find how many values are divisible by two.", "out": "一七乓"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only positive numbers, then how many are even.", "out": "一七乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the positives, then get the total number of even values in the list.", "out": "一七乓"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove negatives, then give me the count of even values.", "out": "一七乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the positive numbers, then I need to know how many of these are even.", "out": "一七乓"} {"kind": "builder", "in": "一七乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "一七乓", "out": "Take a list of integers; keep the even numbers, then keep the positive numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then remove the initial run of negative numbers.", "out": "丘世乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then strip the front negatives.", "out": "丘世乃"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then remove leading negative numbers.", "out": "丘世乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then drop negatives from start.", "out": "丘世乃"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then strip negative values from the start.", "out": "丘世乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then remove negatives before the first non-negative.", "out": "丘世乃"} {"kind": "builder", "in": "丘世乃", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丘世乃", "out": "Take a list of integers; cap each value at 10, then drop the first element, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the final 3 elements, then reduce each by one.", "out": "丽丹不"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then drop everything except the final three, then Subtract 1 from all.", "out": "丽丹不"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then give me the last three elements, then Subtract one from each.", "out": "丽丹不"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep only the last three, then Drop each by one.", "out": "丽丹不"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep the final three items, then Decrease all values by one.", "out": "丽丹不"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the last three, then Remove one from each value.", "out": "丽丹不"} {"kind": "builder", "in": "丽丹不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[-3:]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丽丹不", "out": "Take a list of integers; add ten to each, then keep only the last three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then decrement each value, then true if at least one even value.", "out": "丑不之"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then Lower each number by one, then any even.", "out": "丑不之"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then reduce each by one, then true if at least one even value.", "out": "丑不之"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then Subtract 1 from all, then any even.", "out": "丑不之"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then Subtract one from each, then true if at least one even value.", "out": "丑不之"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then Drop each by one, then any even.", "out": "丑不之"} {"kind": "builder", "in": "丑不之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x - 1 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丑不之", "out": "Take a list of integers; sort ascending, then subtract one from each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then give the earliest even value or zero.", "out": "丑且乒"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then fetch the first even element, default to 0.", "out": "丑且乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then give the earliest even value or zero.", "out": "丑且乒"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then fetch the first even element, default to 0.", "out": "丑且乒"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then give the earliest even value or zero.", "out": "丑且乒"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then fetch the first even element, default to 0.", "out": "丑且乒"} {"kind": "builder", "in": "丑且乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丑且乒", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; square each, then increase every value by 10, then make each twice as big.", "out": "上丽丈"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then add 10 to each item, then multiply each by 2.", "out": "上丽丈"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then shift each up by ten, then make each twice as big.", "out": "上丽丈"} {"kind": "speaker", "in": "Take a list of integers; square them all, then increase all numbers by 10, then multiply each by 2.", "out": "上丽丈"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then add 10 to everything, then make each twice as big.", "out": "上丽丈"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then give everything a boost of 10, then multiply each by 2.", "out": "上丽丈"} {"kind": "builder", "in": "上丽丈", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "上丽丈", "out": "Take a list of integers; square each, then add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then drop anything 5 or below, then deduplicate the list.", "out": "乂主且"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then keep only numbers greater than 5, then remove repeats.", "out": "乂主且"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then filter for numbers above 5, then deduplicate the list.", "out": "乂主且"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then give me values where x is greater than 5, then remove repeats.", "out": "乂主且"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then show me only the values that are bigger than five, then deduplicate the list.", "out": "乂主且"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep values greater than five, then remove repeats.", "out": "乂主且"} {"kind": "builder", "in": "乂主且", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乂主且", "out": "Take a list of integers; take values while they are positive, then keep values greater than five, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then make every value non-negative, then drop anything not divisible by three.", "out": "丕丏串"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then absolute value for all items, then filter out everything except multiples of three.", "out": "丕丏串"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take absolute values, then keep only multiples of three.", "out": "丕丏串"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn negatives into positives, then multiples of three only.", "out": "丕丏串"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then abs each element, then filter for numbers divisible by three.", "out": "丕丏串"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the absolute value of each, then give me only the values divisible by three.", "out": "丕丏串"} {"kind": "builder", "in": "丕丏串", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丕丏串", "out": "Take a list of integers; keep only the first three, then take the absolute value of each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then make every value non-negative, then multiply each by -1.", "out": "九丏与"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then absolute value for all items, then negate.", "out": "九丏与"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take absolute values, then multiply each by -1.", "out": "九丏与"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn negatives into positives, then negate.", "out": "九丏与"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then abs each element, then multiply each by -1.", "out": "九丏与"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the absolute value of each, then negate.", "out": "九丏与"} {"kind": "builder", "in": "九丏与", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [abs(x) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "九丏与", "out": "Take a list of people records (name, age); extract the ages, then take the absolute value of each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then order by distance from zero, then truncate to three items.", "out": "丐丸丕"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort based on absolute value, then show the first three.", "out": "丐丸丕"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then organize by magnitude, then take the first three.", "out": "丐丸丕"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then arrange by absolute value ascending, then keep first 3.", "out": "丐丸丕"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort from smallest to largest absolute value, then truncate to first three.", "out": "丐丸丕"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort by absolute value, then first three.", "out": "丐丸丕"} {"kind": "builder", "in": "丐丸丕", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, key=abs)\n r = r[:3]\n return r"} {"kind": "translator", "in": "丐丸丕", "out": "Take a list of integers; reverse the order, then sort by absolute value, then keep only the first three."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then convert each to lower case, then return the number of strings.", "out": "丨丞丫"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then lowercase each one, then count the strings.", "out": "丨丞丫"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then convert each to lower case, then return how many strings remain.", "out": "丨丞丫"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then lowercase each one, then give me the total number of strings.", "out": "丨丞丫"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then convert each to lower case, then tell me how many strings we have.", "out": "丨丞丫"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then lowercase each one, then what's the string count.", "out": "丨丞丫"} {"kind": "builder", "in": "丨丞丫", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = [s.lower() for s in r]\n return len(r)"} {"kind": "translator", "in": "丨丞丫", "out": "Take a list of strings; keep the first character of each (dropping empties), then lowercase each string, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; square each, then flip the sign of each, then keep only numbers above 5.", "out": "上与主"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then turn positives to negatives and vice versa, then exclude values of 5 and below.", "out": "上与主"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then flip the sign of each, then remove anything 5 or less.", "out": "上与主"} {"kind": "speaker", "in": "Take a list of integers; square them all, then turn positives to negatives and vice versa, then filter to keep only values above 5.", "out": "上与主"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then flip the sign of each, then get rid of values that aren't greater than five.", "out": "上与主"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then turn positives to negatives and vice versa, then drop anything 5 or below.", "out": "上与主"} {"kind": "builder", "in": "上与主", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "上与主", "out": "Take a list of integers; square each, then negate each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then reduce each by one.", "out": "丁一不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then Subtract 1 from all.", "out": "丁一不"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then Subtract one from each.", "out": "丁一不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then Drop each by one.", "out": "丁一不"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then Decrease all values by one.", "out": "丁一不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then Remove one from each value.", "out": "丁一不"} {"kind": "builder", "in": "丁一不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丁一不", "out": "Take a list of integers; keep the odd numbers, then keep the even numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then take the final 3 elements, then give back the total.", "out": "主丹丙"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then drop everything except the final three, then sum r.", "out": "主丹丙"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then give me the last three elements, then add them up.", "out": "主丹丙"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep only the last three, then calculate the sum of all elements.", "out": "主丹丙"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep the final three items, then what's the total.", "out": "主丹丙"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take the last three, then what do they add up to.", "out": "主丹丙"} {"kind": "builder", "in": "主丹丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[-3:]\n return sum(r)"} {"kind": "translator", "in": "主丹丙", "out": "Take a list of integers; keep values greater than five, then keep only the last three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort largest to smallest, then drop the even numbers.", "out": "丏专丁"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort by descending values, then strip out the evens.", "out": "丏专丁"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then sort from highest to lowest, then drop the even numbers.", "out": "丏专丁"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then sort descending, then strip out the evens.", "out": "丏专丁"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort largest first, then drop the even numbers.", "out": "丏专丁"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort in descending order, then strip out the evens.", "out": "丏专丁"} {"kind": "builder", "in": "丏专丁", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丏专丁", "out": "Take a list of integers; take the absolute value of each, then sort descending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then return the number of strings.", "out": "乖乘丫"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then count the strings.", "out": "乖乘丫"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then return how many strings remain.", "out": "乖乘丫"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then give me the total number of strings.", "out": "乖乘丫"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then add '#' to the start of each string, then tell me how many strings we have.", "out": "乖乘丫"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then make each one start with a hash, then what's the string count.", "out": "乖乘丫"} {"kind": "builder", "in": "乖乘丫", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = ['#' + s for s in r]\n return len(r)"} {"kind": "translator", "in": "乖乘丫", "out": "Take a list of strings; sort alphabetically, then prefix each with a hash, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; negate each, then cut the list at the first zero, then give back the product of all values.", "out": "与久乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off after the first zero appears, then product of the list.", "out": "与久乐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take values up to (excluding) the first zero, then what's the product.", "out": "与久乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the part before the first 0, then what do they multiply to.", "out": "与久乐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate at the first zero, then give me their product.", "out": "与久乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then delete everything starting with the first zero, then multiply them all together.", "out": "与久乐"} {"kind": "builder", "in": "与久乐", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "与久乐", "out": "Take a list of integers; negate each, then keep everything before the first zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then decrement each value, then drop non-negative values.", "out": "丹不万"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Lower each number by one, then drop all positive numbers.", "out": "丹不万"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then reduce each by one, then drop non-negative values.", "out": "丹不万"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Subtract 1 from all, then drop all positive numbers.", "out": "丹不万"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Subtract one from each, then drop non-negative values.", "out": "丹不万"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Drop each by one, then drop all positive numbers.", "out": "丹不万"} {"kind": "builder", "in": "丹不万", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丹不万", "out": "Take a list of integers; keep only the last three, then subtract one from each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then take values up to (excluding) the first zero.", "out": "串丐久"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then keep the part before the first 0.", "out": "串丐久"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then truncate at the first zero.", "out": "串丐久"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then delete everything starting with the first zero.", "out": "串丐久"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then remove from the first zero onwards.", "out": "串丐久"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then up to but not including the first zero.", "out": "串丐久"} {"kind": "builder", "in": "串丐久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "串丐久", "out": "Take a list of integers; keep multiples of three, then reverse the order, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements, then trim one element off each end.", "out": "义丹为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three, then cut off the first and last.", "out": "义丹为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements, then remove the first and last elements.", "out": "义丹为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three, then keep only the middle part.", "out": "义丹为"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items, then drop first and last.", "out": "义丹为"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three, then eliminate the outermost elements.", "out": "义丹为"} {"kind": "builder", "in": "义丹为", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "义丹为", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then cut the list at the first zero, then keep only numbers above 5.", "out": "且久主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off after the first zero appears, then exclude values of 5 and below.", "out": "且久主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take values up to (excluding) the first zero, then remove anything 5 or less.", "out": "且久主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the part before the first 0, then filter to keep only values above 5.", "out": "且久主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate at the first zero, then get rid of values that aren't greater than five.", "out": "且久主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then delete everything starting with the first zero, then drop anything 5 or below.", "out": "且久主"} {"kind": "builder", "in": "且久主", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "且久主", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep everything before the first zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then default to [0] when there is nothing, then give back the product of all values.", "out": "丽么乐"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then when the list is empty, substitute a zero value, then product of the list.", "out": "丽么乐"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then replace an empty list with one zero, then what's the product.", "out": "丽么乐"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then zero it out if it's empty, then what do they multiply to.", "out": "丽么乐"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then use zero if the list is empty, then give me their product.", "out": "丽么乐"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then default to zero when empty, then multiply them all together.", "out": "丽么乐"} {"kind": "builder", "in": "丽么乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r if r else [0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丽么乐", "out": "Take a list of integers; add ten to each, then if empty, use a single zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then replace an empty list with one zero.", "out": "乂乃么"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then zero it out if it's empty.", "out": "乂乃么"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then use zero if the list is empty.", "out": "乂乃么"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then default to zero when empty.", "out": "乂乃么"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then if there's nothing, put in a zero.", "out": "乂乃么"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then if no items, add a zero.", "out": "乂乃么"} {"kind": "builder", "in": "乂乃么", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "乂乃么", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the list around, then arrange in increasing order.", "out": "丹丐丑"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then flip the order around, then Organize these ascending.", "out": "丹丐丑"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then put the elements backwards, then Sort in ascending order.", "out": "丹丐丑"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then reverse that for me, then I need this sorted ascending.", "out": "丹丐丑"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip it backwards, then Put these in ascending order.", "out": "丹丐丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then make it backwards, then sort smallest to largest.", "out": "丹丐丑"} {"kind": "builder", "in": "丹丐丑", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = list(reversed(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丹丐丑", "out": "Take a list of integers; keep only the last three, then reverse the order, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then order by distance from zero, then true if at least one even value.", "out": "下丸之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort based on absolute value, then any even.", "out": "下丸之"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then organize by magnitude, then true if at least one even value.", "out": "下丸之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then arrange by absolute value ascending, then any even.", "out": "下丸之"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from smallest to largest absolute value, then true if at least one even value.", "out": "下丸之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by absolute value, then any even.", "out": "下丸之"} {"kind": "builder", "in": "下丸之", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, key=abs)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "下丸之", "out": "Take a list of integers; add one to each, then sort by absolute value, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the sign of each, then truncate to three items.", "out": "丏与丕"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then turn positives to negatives and vice versa, then show the first three.", "out": "丏与丕"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then flip the sign of each, then take the first three.", "out": "丏与丕"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then turn positives to negatives and vice versa, then keep first 3.", "out": "丏与丕"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip the sign of each, then truncate to first three.", "out": "丏与丕"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then turn positives to negatives and vice versa, then first three.", "out": "丏与丕"} {"kind": "builder", "in": "丏与丕", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [-x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丏与丕", "out": "Take a list of integers; take the absolute value of each, then negate each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then make every value non-negative, then keep only numbers above 5.", "out": "串丏主"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then absolute value for all items, then exclude values of 5 and below.", "out": "串丏主"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take absolute values, then remove anything 5 or less.", "out": "串丏主"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn negatives into positives, then filter to keep only values above 5.", "out": "串丏主"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then abs each element, then get rid of values that aren't greater than five.", "out": "串丏主"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the absolute value of each, then drop anything 5 or below.", "out": "串丏主"} {"kind": "builder", "in": "串丏主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "串丏主", "out": "Take a list of integers; keep multiples of three, then take the absolute value of each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then order by distance from zero, then give back the product of all values.", "out": "专丸乐"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then sort based on absolute value, then product of the list.", "out": "专丸乐"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then organize by magnitude, then what's the product.", "out": "专丸乐"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then arrange by absolute value ascending, then what do they multiply to.", "out": "专丸乐"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then sort from smallest to largest absolute value, then give me their product.", "out": "专丸乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort by absolute value, then multiply them all together.", "out": "专丸乐"} {"kind": "builder", "in": "专丸乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "专丸乐", "out": "Take a list of integers; sort descending, then sort by absolute value, then return their product."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the first 3 elements, then give back the total.", "out": "丈丕丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then remove everything after the third, then sum r.", "out": "丈丕丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then truncate to three items, then add them up.", "out": "丈丕丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then show the first three, then calculate the sum of all elements.", "out": "丈丕丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then take the first three, then what's the total.", "out": "丈丕丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep first 3, then what do they add up to.", "out": "丈丕丙"} {"kind": "builder", "in": "丈丕丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:3]\n return sum(r)"} {"kind": "translator", "in": "丈丕丙", "out": "Take a list of integers; double each, then keep only the first three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero, then drop non-negative values.", "out": "七久万"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears, then drop all positive numbers.", "out": "七久万"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero, then drop non-negative values.", "out": "七久万"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0, then drop all positive numbers.", "out": "七久万"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero, then drop non-negative values.", "out": "七久万"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero, then drop all positive numbers.", "out": "七久万"} {"kind": "builder", "in": "七久万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "七久万", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the final 3 elements, then truncate to three items.", "out": "万丹丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop everything except the final three, then show the first three.", "out": "万丹丕"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give me the last three elements, then take the first three.", "out": "万丹丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the last three, then keep first 3.", "out": "万丹丕"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the final three items, then truncate to first three.", "out": "万丹丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the last three, then first three.", "out": "万丹丕"} {"kind": "builder", "in": "万丹丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[-3:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "万丹丕", "out": "Take a list of integers; keep the negative numbers, then keep only the last three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove repeated values, then true if at least one even value.", "out": "上且之"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then unique values preserving order, then any even.", "out": "上且之"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove repeated values, then true if at least one even value.", "out": "上且之"} {"kind": "speaker", "in": "Take a list of integers; square them all, then unique values preserving order, then any even.", "out": "上且之"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove repeated values, then true if at least one even value.", "out": "上且之"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then unique values preserving order, then any even.", "out": "上且之"} {"kind": "builder", "in": "上且之", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "上且之", "out": "Take a list of integers; square each, then drop duplicates keeping first occurrence, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start, then raise each to the power of two.", "out": "专乃上"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front, then I need each number multiplied by itself.", "out": "专乃上"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers, then square all of them.", "out": "专乃上"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives, then multiply each element by itself.", "out": "专乃上"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers, then make each one squared.", "out": "专乃上"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start, then square each value in the list.", "out": "专乃上"} {"kind": "builder", "in": "专乃上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "专乃上", "out": "Take a list of integers; sort descending, then drop the leading negative values, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increase every value by 10, then keep only non-zero numbers.", "out": "串丽举"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then add 10 to each item, then strip the zeros.", "out": "串丽举"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then shift each up by ten, then keep only non-zero numbers.", "out": "串丽举"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then increase all numbers by 10, then strip the zeros.", "out": "串丽举"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then add 10 to everything, then keep only non-zero numbers.", "out": "串丽举"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then give everything a boost of 10, then strip the zeros.", "out": "串丽举"} {"kind": "builder", "in": "串丽举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "串丽举", "out": "Take a list of integers; keep multiples of three, then add ten to each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then decrement each value, then raise each to the power of two.", "out": "七不上"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Lower each number by one, then I need each number multiplied by itself.", "out": "七不上"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then reduce each by one, then square all of them.", "out": "七不上"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Subtract 1 from all, then multiply each element by itself.", "out": "七不上"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Subtract one from each, then make each one squared.", "out": "七不上"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Drop each by one, then square each value in the list.", "out": "七不上"} {"kind": "builder", "in": "七不上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "七不上", "out": "Take a list of integers; keep the positive numbers, then subtract one from each, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then order by distance from zero, then true if already sorted smallest to largest.", "out": "丁丸乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort based on absolute value, then does this list go in ascending order.", "out": "丁丸乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then organize by magnitude, then check if the list is in ascending order.", "out": "丁丸乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then arrange by absolute value ascending, then is the list sorted.", "out": "丁丸乎"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort from smallest to largest absolute value, then is it sorted.", "out": "丁丸乎"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort by absolute value, then check if values are in increasing order.", "out": "丁丸乎"} {"kind": "builder", "in": "丁丸乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n return r == sorted(r)"} {"kind": "translator", "in": "丁丸乎", "out": "Take a list of integers; keep the odd numbers, then sort by absolute value, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then truncate to three items.", "out": "一丈丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then show the first three.", "out": "一丈丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then take the first three.", "out": "一丈丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then keep first 3.", "out": "一丈丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then truncate to first three.", "out": "一丈丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then first three.", "out": "一丈丕"} {"kind": "builder", "in": "一丈丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "一丈丕", "out": "Take a list of integers; keep the even numbers, then double each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove all zero values, then count the elements.", "out": "丸举东"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then exclude zeros, then how many items remain.", "out": "丸举东"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove all zero values, then tell me the length.", "out": "丸举东"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then exclude zeros, then return the length.", "out": "丸举东"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove all zero values, then count them.", "out": "丸举东"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then exclude zeros, then what's the count.", "out": "丸举东"} {"kind": "builder", "in": "丸举东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n return len(r)"} {"kind": "translator", "in": "丸举东", "out": "Take a list of integers; sort by absolute value, then drop the zeros, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the final 3 elements, then give the earliest even value or zero.", "out": "上丹乒"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then drop everything except the final three, then fetch the first even element, default to 0.", "out": "上丹乒"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give me the last three elements, then give the earliest even value or zero.", "out": "上丹乒"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep only the last three, then fetch the first even element, default to 0.", "out": "上丹乒"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep the final three items, then give the earliest even value or zero.", "out": "上丹乒"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the last three, then fetch the first even element, default to 0.", "out": "上丹乒"} {"kind": "builder", "in": "上丹乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[-3:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "上丹乒", "out": "Take a list of integers; square each, then keep only the last three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only even values, then find the max, defaulting to 0.", "out": "串一业"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then extract all even numbers, then Give me the maximum, but 0 if there are no items.", "out": "串一业"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only even values, then What's the highest number in the list.", "out": "串一业"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then extract all even numbers, then Return the greatest value or default to 0.", "out": "串一业"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only even values, then Find the largest element, defaulting to zero.", "out": "串一业"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then extract all even numbers, then give the largest value (0 if none).", "out": "串一业"} {"kind": "builder", "in": "串一业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 == 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "串一业", "out": "Take a list of integers; keep multiples of three, then keep the even numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each value by itself, then true if at least one even value.", "out": "串上之"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then square them all, then any even.", "out": "串上之"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then raise each to the power of two, then true if at least one even value.", "out": "串上之"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then I need each number multiplied by itself, then any even.", "out": "串上之"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then square all of them, then true if at least one even value.", "out": "串上之"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then multiply each element by itself, then any even.", "out": "串上之"} {"kind": "builder", "in": "串上之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "串上之", "out": "Take a list of integers; keep multiples of three, then square each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the first 3 elements, then give back the product of all values.", "out": "丘丕乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then remove everything after the third, then product of the list.", "out": "丘丕乐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate to three items, then what's the product.", "out": "丘丕乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then show the first three, then what do they multiply to.", "out": "丘丕乐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the first three, then give me their product.", "out": "丘丕乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep first 3, then multiply them all together.", "out": "丘丕乐"} {"kind": "builder", "in": "丘丕乐", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:3]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丘丕乐", "out": "Take a list of integers; cap each value at 10, then keep only the first three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then decrement each value, then arrange in increasing order.", "out": "为不丑"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Lower each number by one, then Organize these ascending.", "out": "为不丑"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then reduce each by one, then Sort in ascending order.", "out": "为不丑"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Subtract 1 from all, then I need this sorted ascending.", "out": "为不丑"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then Subtract one from each, then Put these in ascending order.", "out": "为不丑"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then Drop each by one, then sort smallest to largest.", "out": "为不丑"} {"kind": "builder", "in": "为不丑", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x - 1 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "为不丑", "out": "Take a list of integers; drop the first and last elements, then subtract one from each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increment each value, then arrange in decreasing order.", "out": "乃下专"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then plus one for all, then arrange in descending order.", "out": "乃下专"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then increment each value, then reverse sort.", "out": "乃下专"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then plus one for all, then sort largest to smallest.", "out": "乃下专"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then increment each value, then sort by descending values.", "out": "乃下专"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then plus one for all, then sort from highest to lowest.", "out": "乃下专"} {"kind": "builder", "in": "乃下专", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乃下专", "out": "Take a list of integers; drop the leading negative values, then add one to each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then default to [0] when there is nothing, then keep only numbers above 5.", "out": "丸么主"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then when the list is empty, substitute a zero value, then exclude values of 5 and below.", "out": "丸么主"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then replace an empty list with one zero, then remove anything 5 or less.", "out": "丸么主"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then zero it out if it's empty, then filter to keep only values above 5.", "out": "丸么主"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then use zero if the list is empty, then get rid of values that aren't greater than five.", "out": "丸么主"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then default to zero when empty, then drop anything 5 or below.", "out": "丸么主"} {"kind": "builder", "in": "丸么主", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丸么主", "out": "Take a list of integers; sort by absolute value, then if empty, use a single zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then sort smallest to largest, then drop the even numbers.", "out": "乃丑丁"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Ascending sort, then strip out the evens.", "out": "乃丑丁"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then Sort this ascending, then drop the even numbers.", "out": "乃丑丁"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Sort lowest to highest, then strip out the evens.", "out": "乃丑丁"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then Arrange from smallest to largest, then drop the even numbers.", "out": "乃丑丁"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort ascending, then strip out the evens.", "out": "乃丑丁"} {"kind": "builder", "in": "乃丑丁", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "乃丑丁", "out": "Take a list of integers; drop the leading negative values, then sort ascending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then take values up to (excluding) the first zero.", "out": "举乂久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then keep the part before the first 0.", "out": "举乂久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then truncate at the first zero.", "out": "举乂久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then delete everything starting with the first zero.", "out": "举乂久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then remove from the first zero onwards.", "out": "举乂久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then up to but not including the first zero.", "out": "举乂久"} {"kind": "builder", "in": "举乂久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "举乂久", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then keep only non-zero numbers.", "out": "丕丸举"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then strip the zeros.", "out": "丕丸举"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then keep only non-zero numbers.", "out": "丕丸举"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then strip the zeros.", "out": "丕丸举"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then keep only non-zero numbers.", "out": "丕丸举"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then strip the zeros.", "out": "丕丸举"} {"kind": "builder", "in": "丕丸举", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丕丸举", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then put the elements backwards.", "out": "丈下丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then reverse that for me.", "out": "丈下丐"} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then flip it backwards.", "out": "丈下丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then make it backwards.", "out": "丈下丐"} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then reverse the list.", "out": "丈下丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then invert the sequence.", "out": "丈下丐"} {"kind": "builder", "in": "丈下丐", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丈下丐", "out": "Take a list of integers; double each, then add one to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove repeated values, then limit every value to 10.", "out": "主且丘"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then unique values preserving order, then maximum of 10 for all.", "out": "主且丘"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove repeated values, then limit every value to 10.", "out": "主且丘"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then unique values preserving order, then maximum of 10 for all.", "out": "主且丘"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove repeated values, then limit every value to 10.", "out": "主且丘"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then unique values preserving order, then maximum of 10 for all.", "out": "主且丘"} {"kind": "builder", "in": "主且丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "主且丘", "out": "Take a list of integers; keep values greater than five, then drop duplicates keeping first occurrence, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item, then ensure at least three items by appending zeros.", "out": "九世义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "九世义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item, then ensure at least three items by appending zeros.", "out": "九世义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "九世义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item, then ensure at least three items by appending zeros.", "out": "九世义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "九世义"} {"kind": "builder", "in": "九世义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九世义", "out": "Take a list of people records (name, age); extract the ages, then drop the first element, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then order by distance from zero, then trim one element off each end.", "out": "主丸为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort based on absolute value, then cut off the first and last.", "out": "主丸为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then organize by magnitude, then remove the first and last elements.", "out": "主丸为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then arrange by absolute value ascending, then keep only the middle part.", "out": "主丸为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort from smallest to largest absolute value, then drop first and last.", "out": "主丸为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort by absolute value, then eliminate the outermost elements.", "out": "主丸为"} {"kind": "builder", "in": "主丸为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主丸为", "out": "Take a list of integers; keep values greater than five, then sort by absolute value, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then clamp each to at most ten, then keep only non-zero numbers.", "out": "丈丘举"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then don't let anything exceed 10, then strip the zeros.", "out": "丈丘举"} {"kind": "builder", "in": "丈丘举", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丈丘举", "out": "Take a list of integers; double each, then cap each value at 10, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then put the elements backwards.", "out": "下一丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then reverse that for me.", "out": "下一丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then flip it backwards.", "out": "下一丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then make it backwards.", "out": "下一丐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then reverse the list.", "out": "下一丐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then invert the sequence.", "out": "下一丐"} {"kind": "builder", "in": "下一丐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "下一丐", "out": "Take a list of integers; add one to each, then keep the even numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort largest to smallest, then shift each up by ten.", "out": "上专丽"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort by descending values, then increase all numbers by 10.", "out": "上专丽"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then sort from highest to lowest, then add 10 to everything.", "out": "上专丽"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sort descending, then give everything a boost of 10.", "out": "上专丽"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort largest first, then increment each by ten.", "out": "上专丽"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort in descending order, then add a constant 10 to each.", "out": "上专丽"} {"kind": "builder", "in": "上专丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "上专丽", "out": "Take a list of integers; square each, then sort descending, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove repeated values, then arrange in decreasing order.", "out": "乃且专"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then unique values preserving order, then arrange in descending order.", "out": "乃且专"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove repeated values, then reverse sort.", "out": "乃且专"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then unique values preserving order, then sort largest to smallest.", "out": "乃且专"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove repeated values, then sort by descending values.", "out": "乃且专"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then unique values preserving order, then sort from highest to lowest.", "out": "乃且专"} {"kind": "builder", "in": "乃且专", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(dict.fromkeys(r))\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乃且专", "out": "Take a list of integers; drop the leading negative values, then drop duplicates keeping first occurrence, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start, then bump each up by one.", "out": "专乃下"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front, then increment each item.", "out": "专乃下"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers, then bump each up by one.", "out": "专乃下"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives, then increment each item.", "out": "专乃下"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers, then bump each up by one.", "out": "专乃下"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start, then increment each item.", "out": "专乃下"} {"kind": "builder", "in": "专乃下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "专乃下", "out": "Take a list of integers; sort descending, then drop the leading negative values, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then order by distance from zero, then true if every value is unique.", "out": "一丸乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort based on absolute value, then check for duplicates in the values.", "out": "一丸乏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then organize by magnitude, then do all values appear only once.", "out": "一丸乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then arrange by absolute value ascending, then check that there are no duplicates.", "out": "一丸乏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from smallest to largest absolute value, then are the values all unique.", "out": "一丸乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by absolute value, then check if all values are unique.", "out": "一丸乏"} {"kind": "builder", "in": "一丸乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, key=abs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "一丸乏", "out": "Take a list of integers; keep the even numbers, then sort by absolute value, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values divisible by 3, then give the number of evens.", "out": "丸串乓"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "丸串乓"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then drop anything not divisible by three, then how many are even.", "out": "丸串乓"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then filter out everything except multiples of three, then get the total number of even values in the list.", "out": "丸串乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only multiples of three, then give me the count of even values.", "out": "丸串乓"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiples of three only, then I need to know how many of these are even.", "out": "丸串乓"} {"kind": "builder", "in": "丸串乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丸串乓", "out": "Take a list of integers; sort by absolute value, then keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then cut the list at the first zero, then drop non-negative values.", "out": "且久万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off after the first zero appears, then drop all positive numbers.", "out": "且久万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take values up to (excluding) the first zero, then drop non-negative values.", "out": "且久万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the part before the first 0, then drop all positive numbers.", "out": "且久万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate at the first zero, then drop non-negative values.", "out": "且久万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then delete everything starting with the first zero, then drop all positive numbers.", "out": "且久万"} {"kind": "builder", "in": "且久万", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "且久万", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep everything before the first zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each by two, then stop at the first non-positive value.", "out": "串丈乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then double each item in the list, then keep the leading run of positive numbers.", "out": "串丈乂"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then multiply each by two, then take values while they are positive.", "out": "串丈乂"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then double each item in the list, then take positive values then stop.", "out": "串丈乂"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then multiply each by two, then keep going while positive.", "out": "串丈乂"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then double each item in the list, then stop at first non positive.", "out": "串丈乂"} {"kind": "builder", "in": "串丈乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "串丈乂", "out": "Take a list of integers; keep multiples of three, then double each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below, then deduplicate the list.", "out": "丏主且"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5, then remove repeats.", "out": "丏主且"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5, then deduplicate the list.", "out": "丏主且"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5, then remove repeats.", "out": "丏主且"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five, then deduplicate the list.", "out": "丏主且"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five, then remove repeats.", "out": "丏主且"} {"kind": "builder", "in": "丏主且", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丏主且", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the list around, then make each twice as big.", "out": "一丐丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then flip the order around, then multiply each by 2.", "out": "一丐丈"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then put the elements backwards, then make each twice as big.", "out": "一丐丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then reverse that for me, then multiply each by 2.", "out": "一丐丈"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip it backwards, then make each twice as big.", "out": "一丐丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then make it backwards, then multiply each by 2.", "out": "一丐丈"} {"kind": "builder", "in": "一丐丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "一丐丈", "out": "Take a list of integers; keep the even numbers, then reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then take the final 3 elements, then true only if all are positive.", "out": "专丹乌"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then drop everything except the final three, then do all of these have positive values.", "out": "专丹乌"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then give me the last three elements, then check if every value is positive.", "out": "专丹乌"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep only the last three, then confirm all values are positive.", "out": "专丹乌"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep the final three items, then all positive.", "out": "专丹乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the last three, then check if every number is above zero.", "out": "专丹乌"} {"kind": "builder", "in": "专丹乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[-3:]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "专丹乌", "out": "Take a list of integers; sort descending, then keep only the last three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the list around, then replace an empty list with one zero.", "out": "久丐么"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then flip the order around, then zero it out if it's empty.", "out": "久丐么"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then put the elements backwards, then use zero if the list is empty.", "out": "久丐么"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then reverse that for me, then default to zero when empty.", "out": "久丐么"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip it backwards, then if there's nothing, put in a zero.", "out": "久丐么"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then make it backwards, then if no items, add a zero.", "out": "久丐么"} {"kind": "builder", "in": "久丐么", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "久丐么", "out": "Take a list of integers; keep everything before the first zero, then reverse the order, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then skip negatives at the start, then find the max, defaulting to 0.", "out": "一乃业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then remove all negatives at the front, then Give me the maximum, but 0 if there are no items.", "out": "一乃业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the initial run of negative numbers, then What's the highest number in the list.", "out": "一乃业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then strip the front negatives, then Return the greatest value or default to 0.", "out": "一乃业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove leading negative numbers, then Find the largest element, defaulting to zero.", "out": "一乃业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop negatives from start, then give the largest value (0 if none).", "out": "一乃业"} {"kind": "builder", "in": "一乃业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return max(r) if r else 0"} {"kind": "translator", "in": "一乃业", "out": "Take a list of integers; keep the even numbers, then drop the leading negative values, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then keep only non-zero numbers.", "out": "世与举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then strip the zeros.", "out": "世与举"} {"kind": "builder", "in": "世与举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "世与举", "out": "Take a list of integers; drop the first element, then negate each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values below zero, then true only if all are positive.", "out": "丏万乌"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then get the negative numbers, then do all of these have positive values.", "out": "丏万乌"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep values below zero, then check if every value is positive.", "out": "丏万乌"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then get the negative numbers, then confirm all values are positive.", "out": "丏万乌"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep values below zero, then all positive.", "out": "丏万乌"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then get the negative numbers, then check if every number is above zero.", "out": "丏万乌"} {"kind": "builder", "in": "丏万乌", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x < 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丏万乌", "out": "Take a list of integers; take the absolute value of each, then keep the negative numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove repeated values, then multiply each by -1.", "out": "七且与"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then unique values preserving order, then negate.", "out": "七且与"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove repeated values, then multiply each by -1.", "out": "七且与"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then unique values preserving order, then negate.", "out": "七且与"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove repeated values, then multiply each by -1.", "out": "七且与"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then unique values preserving order, then negate.", "out": "七且与"} {"kind": "builder", "in": "七且与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(dict.fromkeys(r))\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "七且与", "out": "Take a list of integers; keep the positive numbers, then drop duplicates keeping first occurrence, then negate each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove the first item, then drop non-negative values.", "out": "么世万"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Remove head, then drop all positive numbers.", "out": "么世万"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the first item, then drop non-negative values.", "out": "么世万"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Remove head, then drop all positive numbers.", "out": "么世万"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first item, then drop non-negative values.", "out": "么世万"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Remove head, then drop all positive numbers.", "out": "么世万"} {"kind": "builder", "in": "么世万", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "么世万", "out": "Take a list of integers; if empty, use a single zero, then drop the first element, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove both ends, then true only if all are positive.", "out": "乂为乌"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then trim the edges, then do all of these have positive values.", "out": "乂为乌"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then trim one element off each end, then check if every value is positive.", "out": "乂为乌"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then cut off the first and last, then confirm all values are positive.", "out": "乂为乌"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first and last elements, then all positive.", "out": "乂为乌"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep only the middle part, then check if every number is above zero.", "out": "乂为乌"} {"kind": "builder", "in": "乂为乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乂为乌", "out": "Take a list of integers; take values while they are positive, then drop the first and last elements, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then keep only numbers above 5.", "out": "丹丽主"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then exclude values of 5 and below.", "out": "丹丽主"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then remove anything 5 or less.", "out": "丹丽主"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then filter to keep only values above 5.", "out": "丹丽主"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "丹丽主"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then drop anything 5 or below.", "out": "丹丽主"} {"kind": "builder", "in": "丹丽主", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丹丽主", "out": "Take a list of integers; keep only the last three, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then extend to length 3 using zeros, then reduce each by one.", "out": "串义不"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then pad to 3, then Subtract 1 from all.", "out": "串义不"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then extend to length 3 using zeros, then Subtract one from each.", "out": "串义不"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then pad to 3, then Drop each by one.", "out": "串义不"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then extend to length 3 using zeros, then Decrease all values by one.", "out": "串义不"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then pad to 3, then Remove one from each value.", "out": "串义不"} {"kind": "builder", "in": "串义不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "串义不", "out": "Take a list of integers; keep multiples of three, then pad with zeros to at least three elements, then subtract one from each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then drop anything 5 or below, then replace an empty list with one zero.", "out": "九主么"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep only numbers greater than 5, then zero it out if it's empty.", "out": "九主么"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then filter for numbers above 5, then use zero if the list is empty.", "out": "九主么"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then give me values where x is greater than 5, then default to zero when empty.", "out": "九主么"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then show me only the values that are bigger than five, then if there's nothing, put in a zero.", "out": "九主么"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep values greater than five, then if no items, add a zero.", "out": "九主么"} {"kind": "builder", "in": "九主么", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "九主么", "out": "Take a list of people records (name, age); extract the ages, then keep values greater than five, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then give the earliest even value or zero.", "out": "举万乒"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then fetch the first even element, default to 0.", "out": "举万乒"} {"kind": "builder", "in": "举万乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "举万乒", "out": "Take a list of integers; drop the zeros, then keep the negative numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values divisible by 3, then true if at least one even value.", "out": "丘串之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep items where x mod 3 equals zero, then any even.", "out": "丘串之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then drop anything not divisible by three, then true if at least one even value.", "out": "丘串之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter out everything except multiples of three, then any even.", "out": "丘串之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only multiples of three, then true if at least one even value.", "out": "丘串之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiples of three only, then any even.", "out": "丘串之"} {"kind": "builder", "in": "丘串之", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 3 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丘串之", "out": "Take a list of integers; cap each value at 10, then keep multiples of three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only odd values, then true if every value is unique.", "out": "不丁乏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then eliminate the even numbers, then check for duplicates in the values.", "out": "不丁乏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only odd values, then do all values appear only once.", "out": "不丁乏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then eliminate the even numbers, then check that there are no duplicates.", "out": "不丁乏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only odd values, then are the values all unique.", "out": "不丁乏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then eliminate the even numbers, then check if all values are unique.", "out": "不丁乏"} {"kind": "builder", "in": "不丁乏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "不丁乏", "out": "Take a list of integers; subtract one from each, then keep the odd numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values divisible by 3, then find the min, defaulting to 0.", "out": "举串丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep items where x mod 3 equals zero, then minimum value, zero otherwise.", "out": "举串丛"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything not divisible by three, then get the minimum value or zero if empty.", "out": "举串丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter out everything except multiples of three, then give me the min or 0.", "out": "举串丛"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only multiples of three, then return the smallest number, defaulting to 0.", "out": "举串丛"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiples of three only, then return smallest or zero if empty.", "out": "举串丛"} {"kind": "builder", "in": "举串丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 3 == 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "举串丛", "out": "Take a list of integers; drop the zeros, then keep multiples of three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values below zero, then take values up to (excluding) the first zero.", "out": "么万久"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then get the negative numbers, then keep the part before the first 0.", "out": "么万久"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep values below zero, then truncate at the first zero.", "out": "么万久"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then get the negative numbers, then delete everything starting with the first zero.", "out": "么万久"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep values below zero, then remove from the first zero onwards.", "out": "么万久"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then get the negative numbers, then up to but not including the first zero.", "out": "么万久"} {"kind": "builder", "in": "么万久", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "么万久", "out": "Take a list of integers; if empty, use a single zero, then keep the negative numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove both ends, then give the number of evens.", "out": "不为乓"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then trim the edges, then find how many values are divisible by two.", "out": "不为乓"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then trim one element off each end, then how many are even.", "out": "不为乓"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then cut off the first and last, then get the total number of even values in the list.", "out": "不为乓"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove the first and last elements, then give me the count of even values.", "out": "不为乓"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep only the middle part, then I need to know how many of these are even.", "out": "不为乓"} {"kind": "builder", "in": "不为乓", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[1:-1]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "不为乓", "out": "Take a list of integers; subtract one from each, then drop the first and last elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the final 3 elements, then count the elements.", "out": "举丹东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop everything except the final three, then how many items remain.", "out": "举丹东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give me the last three elements, then tell me the length.", "out": "举丹东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the last three, then return the length.", "out": "举丹东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the final three items, then count them.", "out": "举丹东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the last three, then what's the count.", "out": "举丹东"} {"kind": "builder", "in": "举丹东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[-3:]\n return len(r)"} {"kind": "translator", "in": "举丹东", "out": "Take a list of integers; drop the zeros, then keep only the last three, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then take the final 3 elements, then deduplicate the list.", "out": "丸丹且"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then drop everything except the final three, then remove repeats.", "out": "丸丹且"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then give me the last three elements, then deduplicate the list.", "out": "丸丹且"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep only the last three, then remove repeats.", "out": "丸丹且"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep the final three items, then deduplicate the list.", "out": "丸丹且"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the last three, then remove repeats.", "out": "丸丹且"} {"kind": "builder", "in": "丸丹且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[-3:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丸丹且", "out": "Take a list of integers; sort by absolute value, then keep only the last three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove both ends, then drop anything not divisible by three.", "out": "七为串"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then trim the edges, then filter out everything except multiples of three.", "out": "七为串"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then trim one element off each end, then keep only multiples of three.", "out": "七为串"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then cut off the first and last, then multiples of three only.", "out": "七为串"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first and last elements, then filter for numbers divisible by three.", "out": "七为串"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep only the middle part, then give me only the values divisible by three.", "out": "七为串"} {"kind": "builder", "in": "七为串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:-1]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "七为串", "out": "Take a list of integers; keep the positive numbers, then drop the first and last elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then true only if all are positive.", "out": "举一乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then do all of these have positive values.", "out": "举一乌"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then check if every value is positive.", "out": "举一乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then confirm all values are positive.", "out": "举一乌"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then all positive.", "out": "举一乌"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then check if every number is above zero.", "out": "举一乌"} {"kind": "builder", "in": "举一乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "举一乌", "out": "Take a list of integers; drop the zeros, then keep the even numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything 5 or below, then drop non-positive values.", "out": "下主七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only numbers greater than 5, then drop the negative numbers.", "out": "下主七"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then filter for numbers above 5, then filter out the negative ones.", "out": "下主七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me values where x is greater than 5, then remove all negative values.", "out": "下主七"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then show me only the values that are bigger than five, then keep positive values only.", "out": "下主七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep values greater than five, then keep values above zero.", "out": "下主七"} {"kind": "builder", "in": "下主七", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "下主七", "out": "Take a list of integers; add one to each, then keep values greater than five, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then arrange in decreasing order.", "out": "下世专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then arrange in descending order.", "out": "下世专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then reverse sort.", "out": "下世专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then sort largest to smallest.", "out": "下世专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then sort by descending values.", "out": "下世专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then sort from highest to lowest.", "out": "下世专"} {"kind": "builder", "in": "下世专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "下世专", "out": "Take a list of integers; add one to each, then drop the first element, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove all zero values, then bump each up by one.", "out": "丸举下"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then exclude zeros, then increment each item.", "out": "丸举下"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove all zero values, then bump each up by one.", "out": "丸举下"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then exclude zeros, then increment each item.", "out": "丸举下"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove all zero values, then bump each up by one.", "out": "丸举下"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then exclude zeros, then increment each item.", "out": "丸举下"} {"kind": "builder", "in": "丸举下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丸举下", "out": "Take a list of integers; sort by absolute value, then drop the zeros, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then skip negatives at the start, then count the elements.", "out": "丑乃东"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove all negatives at the front, then how many items remain.", "out": "丑乃东"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove the initial run of negative numbers, then tell me the length.", "out": "丑乃东"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then strip the front negatives, then return the length.", "out": "丑乃东"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove leading negative numbers, then count them.", "out": "丑乃东"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then drop negatives from start, then what's the count.", "out": "丑乃东"} {"kind": "builder", "in": "丑乃东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return len(r)"} {"kind": "translator", "in": "丑乃东", "out": "Take a list of integers; sort ascending, then drop the leading negative values, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then true if at least one even value.", "out": "丹久之"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then any even.", "out": "丹久之"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then true if at least one even value.", "out": "丹久之"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then any even.", "out": "丹久之"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then true if at least one even value.", "out": "丹久之"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then any even.", "out": "丹久之"} {"kind": "builder", "in": "丹久之", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丹久之", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the list around, then truncate to three items.", "out": "义丐丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then flip the order around, then show the first three.", "out": "义丐丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then put the elements backwards, then take the first three.", "out": "义丐丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then reverse that for me, then keep first 3.", "out": "义丐丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip it backwards, then truncate to first three.", "out": "义丐丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then make it backwards, then first three.", "out": "义丐丕"} {"kind": "builder", "in": "义丐丕", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(reversed(r))\n r = r[:3]\n return r"} {"kind": "translator", "in": "义丐丕", "out": "Take a list of integers; pad with zeros to at least three elements, then reverse the order, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the sign of each, then give back the total.", "out": "七与丙"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then turn positives to negatives and vice versa, then sum r.", "out": "七与丙"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then flip the sign of each, then add them up.", "out": "七与丙"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn positives to negatives and vice versa, then calculate the sum of all elements.", "out": "七与丙"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip the sign of each, then what's the total.", "out": "七与丙"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then turn positives to negatives and vice versa, then what do they add up to.", "out": "七与丙"} {"kind": "builder", "in": "七与丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return sum(r)"} {"kind": "translator", "in": "七与丙", "out": "Take a list of integers; keep the positive numbers, then negate each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then clamp each to at most ten, then keep only numbers above 5.", "out": "串丘主"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then don't let anything exceed 10, then exclude values of 5 and below.", "out": "串丘主"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then clamp each to at most ten, then remove anything 5 or less.", "out": "串丘主"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then don't let anything exceed 10, then filter to keep only values above 5.", "out": "串丘主"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then clamp each to at most ten, then get rid of values that aren't greater than five.", "out": "串丘主"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then don't let anything exceed 10, then drop anything 5 or below.", "out": "串丘主"} {"kind": "builder", "in": "串丘主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "串丘主", "out": "Take a list of integers; keep multiples of three, then cap each value at 10, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the first 3 elements, then take values up to (excluding) the first zero.", "out": "乃丕久"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then remove everything after the third, then keep the part before the first 0.", "out": "乃丕久"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then truncate to three items, then truncate at the first zero.", "out": "乃丕久"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then show the first three, then delete everything starting with the first zero.", "out": "乃丕久"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then take the first three, then remove from the first zero onwards.", "out": "乃丕久"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep first 3, then up to but not including the first zero.", "out": "乃丕久"} {"kind": "builder", "in": "乃丕久", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "乃丕久", "out": "Take a list of integers; drop the leading negative values, then keep only the first three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values divisible by 3, then true only if all are positive.", "out": "丸串乌"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep items where x mod 3 equals zero, then do all of these have positive values.", "out": "丸串乌"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then drop anything not divisible by three, then check if every value is positive.", "out": "丸串乌"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then filter out everything except multiples of three, then confirm all values are positive.", "out": "丸串乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only multiples of three, then all positive.", "out": "丸串乌"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiples of three only, then check if every number is above zero.", "out": "丸串乌"} {"kind": "builder", "in": "丸串乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丸串乌", "out": "Take a list of integers; sort by absolute value, then keep multiples of three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then keep only non-zero numbers.", "out": "丑且举"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then strip the zeros.", "out": "丑且举"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then keep only non-zero numbers.", "out": "丑且举"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then strip the zeros.", "out": "丑且举"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then keep only non-zero numbers.", "out": "丑且举"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then strip the zeros.", "out": "丑且举"} {"kind": "builder", "in": "丑且举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丑且举", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values below zero, then true if any value equals zero.", "out": "丏万乍"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then get the negative numbers, then check for zero.", "out": "丏万乍"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep values below zero, then true if any value equals zero.", "out": "丏万乍"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then get the negative numbers, then check for zero.", "out": "丏万乍"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep values below zero, then true if any value equals zero.", "out": "丏万乍"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then get the negative numbers, then check for zero.", "out": "丏万乍"} {"kind": "builder", "in": "丏万乍", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x < 0]\n return 0 in r"} {"kind": "translator", "in": "丏万乍", "out": "Take a list of integers; take the absolute value of each, then keep the negative numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort smallest to largest, then keep only numbers above 5.", "out": "串丑主"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Ascending sort, then exclude values of 5 and below.", "out": "串丑主"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then Sort this ascending, then remove anything 5 or less.", "out": "串丑主"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Sort lowest to highest, then filter to keep only values above 5.", "out": "串丑主"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Arrange from smallest to largest, then get rid of values that aren't greater than five.", "out": "串丑主"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort ascending, then drop anything 5 or below.", "out": "串丑主"} {"kind": "builder", "in": "串丑主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "串丑主", "out": "Take a list of integers; keep multiples of three, then sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then clamp each to at most ten, then drop non-positive values.", "out": "久丘七"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then don't let anything exceed 10, then drop the negative numbers.", "out": "久丘七"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then clamp each to at most ten, then filter out the negative ones.", "out": "久丘七"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then don't let anything exceed 10, then remove all negative values.", "out": "久丘七"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then clamp each to at most ten, then keep positive values only.", "out": "久丘七"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then don't let anything exceed 10, then keep values above zero.", "out": "久丘七"} {"kind": "builder", "in": "久丘七", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "久丘七", "out": "Take a list of integers; keep everything before the first zero, then cap each value at 10, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then drop anything 5 or below, then multiply each by -1.", "out": "丽主与"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep only numbers greater than 5, then negate.", "out": "丽主与"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then filter for numbers above 5, then multiply each by -1.", "out": "丽主与"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then give me values where x is greater than 5, then negate.", "out": "丽主与"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then show me only the values that are bigger than five, then multiply each by -1.", "out": "丽主与"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep values greater than five, then negate.", "out": "丽主与"} {"kind": "builder", "in": "丽主与", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丽主与", "out": "Take a list of integers; add ten to each, then keep values greater than five, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then make every value non-negative, then multiply each by -1.", "out": "丹丏与"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then absolute value for all items, then negate.", "out": "丹丏与"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take absolute values, then multiply each by -1.", "out": "丹丏与"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn negatives into positives, then negate.", "out": "丹丏与"} {"kind": "speaker", "in": "Take a list of integers; last three only, then abs each element, then multiply each by -1.", "out": "丹丏与"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take the absolute value of each, then negate.", "out": "丹丏与"} {"kind": "builder", "in": "丹丏与", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [abs(x) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丹丏与", "out": "Take a list of integers; keep only the last three, then take the absolute value of each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep the leading run of positive numbers, then true if every value is unique.", "out": "丸乂乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then take values while they are positive, then check for duplicates in the values.", "out": "丸乂乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take positive values then stop, then do all values appear only once.", "out": "丸乂乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep going while positive, then check that there are no duplicates.", "out": "丸乂乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then stop at first non positive, then are the values all unique.", "out": "丸乂乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take while greater than zero, then check if all values are unique.", "out": "丸乂乏"} {"kind": "builder", "in": "丸乂乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸乂乏", "out": "Take a list of integers; sort by absolute value, then take values while they are positive, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the final 3 elements, then put the elements backwards.", "out": "久丹丐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then drop everything except the final three, then reverse that for me.", "out": "久丹丐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then give me the last three elements, then flip it backwards.", "out": "久丹丐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep only the last three, then make it backwards.", "out": "久丹丐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep the final three items, then reverse the list.", "out": "久丹丐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the last three, then invert the sequence.", "out": "久丹丐"} {"kind": "builder", "in": "久丹丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "久丹丐", "out": "Take a list of integers; keep everything before the first zero, then keep only the last three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove both ends, then strip the signs.", "out": "丐为丏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then trim the edges, then take abs of each.", "out": "丐为丏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then trim one element off each end, then get the absolute value of everything.", "out": "丐为丏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then cut off the first and last, then apply absolute value to the whole list.", "out": "丐为丏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first and last elements, then make them all positive.", "out": "丐为丏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep only the middle part, then make every value non-negative.", "out": "丐为丏"} {"kind": "builder", "in": "丐为丏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:-1]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丐为丏", "out": "Take a list of integers; reverse the order, then drop the first and last elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the final 3 elements, then arrange in increasing order.", "out": "丐丹丑"} {"kind": "speaker", "in": "Take a list of integers; reverse, then drop everything except the final three, then Organize these ascending.", "out": "丐丹丑"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then give me the last three elements, then Sort in ascending order.", "out": "丐丹丑"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep only the last three, then I need this sorted ascending.", "out": "丐丹丑"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep the final three items, then Put these in ascending order.", "out": "丐丹丑"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the last three, then sort smallest to largest.", "out": "丐丹丑"} {"kind": "builder", "in": "丐丹丑", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[-3:]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丐丹丑", "out": "Take a list of integers; reverse the order, then keep only the last three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort smallest to largest, then arrange by magnitude ignoring sign.", "out": "且丑丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Ascending sort, then put them in order by magnitude.", "out": "且丑丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Sort this ascending, then arrange in order of absolute value.", "out": "且丑丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Sort lowest to highest, then sort by distance from zero.", "out": "且丑丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Arrange from smallest to largest, then order by how far from zero.", "out": "且丑丸"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort ascending, then order by distance from zero.", "out": "且丑丸"} {"kind": "builder", "in": "且丑丸", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "且丑丸", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort ascending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove all zero values, then drop non-negative values.", "out": "丑举万"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then exclude zeros, then drop all positive numbers.", "out": "丑举万"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove all zero values, then drop non-negative values.", "out": "丑举万"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then exclude zeros, then drop all positive numbers.", "out": "丑举万"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove all zero values, then drop non-negative values.", "out": "丑举万"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then exclude zeros, then drop all positive numbers.", "out": "丑举万"} {"kind": "builder", "in": "丑举万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丑举万", "out": "Take a list of integers; sort ascending, then drop the zeros, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then make every value non-negative, then find the max, defaulting to 0.", "out": "乃丏业"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then absolute value for all items, then Give me the maximum, but 0 if there are no items.", "out": "乃丏业"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take absolute values, then What's the highest number in the list.", "out": "乃丏业"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn negatives into positives, then Return the greatest value or default to 0.", "out": "乃丏业"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then abs each element, then Find the largest element, defaulting to zero.", "out": "乃丏业"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the absolute value of each, then give the largest value (0 if none).", "out": "乃丏业"} {"kind": "builder", "in": "乃丏业", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [abs(x) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "乃丏业", "out": "Take a list of integers; drop the leading negative values, then take the absolute value of each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increase every value by 10, then give the number of evens.", "out": "万丽乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then add 10 to each item, then find how many values are divisible by two.", "out": "万丽乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then shift each up by ten, then how many are even.", "out": "万丽乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then increase all numbers by 10, then get the total number of even values in the list.", "out": "万丽乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then add 10 to everything, then give me the count of even values.", "out": "万丽乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then give everything a boost of 10, then I need to know how many of these are even.", "out": "万丽乓"} {"kind": "builder", "in": "万丽乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "万丽乓", "out": "Take a list of integers; keep the negative numbers, then add ten to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero, then true if at least one even value.", "out": "世久之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears, then any even.", "out": "世久之"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero, then true if at least one even value.", "out": "世久之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0, then any even.", "out": "世久之"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero, then true if at least one even value.", "out": "世久之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero, then any even.", "out": "世久之"} {"kind": "builder", "in": "世久之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "世久之", "out": "Take a list of integers; drop the first element, then keep everything before the first zero, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the sign of each, then find the max, defaulting to 0.", "out": "丹与业"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then turn positives to negatives and vice versa, then Give me the maximum, but 0 if there are no items.", "out": "丹与业"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then flip the sign of each, then What's the highest number in the list.", "out": "丹与业"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn positives to negatives and vice versa, then Return the greatest value or default to 0.", "out": "丹与业"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip the sign of each, then Find the largest element, defaulting to zero.", "out": "丹与业"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then turn positives to negatives and vice versa, then give the largest value (0 if none).", "out": "丹与业"} {"kind": "builder", "in": "丹与业", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [-x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丹与业", "out": "Take a list of integers; keep only the last three, then negate each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丽丘乒"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丽丘乒"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丽丘乒"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丽丘乒"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丽丘乒"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丽丘乒"} {"kind": "builder", "in": "丽丘乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丽丘乒", "out": "Take a list of integers; add ten to each, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each value by itself, then stop at the first non-positive value.", "out": "与上乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then square them all, then keep the leading run of positive numbers.", "out": "与上乂"} {"kind": "speaker", "in": "Take a list of integers; negate each, then raise each to the power of two, then take values while they are positive.", "out": "与上乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then I need each number multiplied by itself, then take positive values then stop.", "out": "与上乂"} {"kind": "speaker", "in": "Take a list of integers; negate each, then square all of them, then keep going while positive.", "out": "与上乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiply each element by itself, then stop at first non positive.", "out": "与上乂"} {"kind": "builder", "in": "与上乂", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "与上乂", "out": "Take a list of integers; negate each, then square each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort largest to smallest, then drop the even numbers.", "out": "且专丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort by descending values, then strip out the evens.", "out": "且专丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort from highest to lowest, then drop the even numbers.", "out": "且专丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort descending, then strip out the evens.", "out": "且专丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort largest first, then drop the even numbers.", "out": "且专丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort in descending order, then strip out the evens.", "out": "且专丁"} {"kind": "builder", "in": "且专丁", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "且专丁", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort descending, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then sort smallest to largest, then drop anything not divisible by three.", "out": "专丑串"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Ascending sort, then filter out everything except multiples of three.", "out": "专丑串"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then Sort this ascending, then keep only multiples of three.", "out": "专丑串"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Sort lowest to highest, then multiples of three only.", "out": "专丑串"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then Arrange from smallest to largest, then filter for numbers divisible by three.", "out": "专丑串"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort ascending, then give me only the values divisible by three.", "out": "专丑串"} {"kind": "builder", "in": "专丑串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "专丑串", "out": "Take a list of integers; sort descending, then sort ascending, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then remove blanks.", "out": "丞乖两"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then eliminate empty string values.", "out": "丞乖两"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then filter out blank strings.", "out": "丞乖两"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then remove strings that are empty.", "out": "丞乖两"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then strip out empty strings.", "out": "丞乖两"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then keep only non-empty strings.", "out": "丞乖两"} {"kind": "builder", "in": "丞乖两", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = sorted(r)\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "丞乖两", "out": "Take a list of strings; lowercase each string, then sort alphabetically, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the leading run of positive numbers, then give back the product of all values.", "out": "下乂乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take values while they are positive, then product of the list.", "out": "下乂乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take positive values then stop, then what's the product.", "out": "下乂乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep going while positive, then what do they multiply to.", "out": "下乂乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then stop at first non positive, then give me their product.", "out": "下乂乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take while greater than zero, then multiply them all together.", "out": "下乂乐"} {"kind": "builder", "in": "下乂乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "下乂乐", "out": "Take a list of integers; add one to each, then take values while they are positive, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then arrange in decreasing order.", "out": "丁一专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then arrange in descending order.", "out": "丁一专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then reverse sort.", "out": "丁一专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then sort largest to smallest.", "out": "丁一专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then sort by descending values.", "out": "丁一专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then sort from highest to lowest.", "out": "丁一专"} {"kind": "builder", "in": "丁一专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丁一专", "out": "Take a list of integers; keep the odd numbers, then keep the even numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort smallest to largest, then arrange by magnitude ignoring sign.", "out": "九丑丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Ascending sort, then put them in order by magnitude.", "out": "九丑丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then Sort this ascending, then arrange in order of absolute value.", "out": "九丑丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Sort lowest to highest, then sort by distance from zero.", "out": "九丑丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Arrange from smallest to largest, then order by how far from zero.", "out": "九丑丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort ascending, then order by distance from zero.", "out": "九丑丸"} {"kind": "builder", "in": "九丑丸", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "九丑丸", "out": "Take a list of people records (name, age); extract the ages, then sort ascending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then take the first 3 elements, then drop non-negative values.", "out": "丸丕万"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove everything after the third, then drop all positive numbers.", "out": "丸丕万"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then truncate to three items, then drop non-negative values.", "out": "丸丕万"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then show the first three, then drop all positive numbers.", "out": "丸丕万"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then take the first three, then drop non-negative values.", "out": "丸丕万"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep first 3, then drop all positive numbers.", "out": "丸丕万"} {"kind": "builder", "in": "丸丕万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:3]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丸丕万", "out": "Take a list of integers; sort by absolute value, then keep only the first three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort smallest to largest, then find the max, defaulting to 0.", "out": "义丑业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Ascending sort, then Give me the maximum, but 0 if there are no items.", "out": "义丑业"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Sort this ascending, then What's the highest number in the list.", "out": "义丑业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Sort lowest to highest, then Return the greatest value or default to 0.", "out": "义丑业"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Arrange from smallest to largest, then Find the largest element, defaulting to zero.", "out": "义丑业"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort ascending, then give the largest value (0 if none).", "out": "义丑业"} {"kind": "builder", "in": "义丑业", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n return max(r) if r else 0"} {"kind": "translator", "in": "义丑业", "out": "Take a list of integers; pad with zeros to at least three elements, then sort ascending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then give the earliest even value or zero.", "out": "丁万乒"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then fetch the first even element, default to 0.", "out": "丁万乒"} {"kind": "builder", "in": "丁万乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丁万乒", "out": "Take a list of integers; keep the odd numbers, then keep the negative numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values below zero, then remove the initial run of negative numbers.", "out": "专万乃"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then get the negative numbers, then strip the front negatives.", "out": "专万乃"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep values below zero, then remove leading negative numbers.", "out": "专万乃"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then get the negative numbers, then drop negatives from start.", "out": "专万乃"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep values below zero, then strip negative values from the start.", "out": "专万乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then get the negative numbers, then remove negatives before the first non-negative.", "out": "专万乃"} {"kind": "builder", "in": "专万乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x < 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "专万乃", "out": "Take a list of integers; sort descending, then keep the negative numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then convert each to lower case, then deduplicate the strings.", "out": "乗丞丧"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then lowercase each one, then filter out duplicate strings retain first.", "out": "乗丞丧"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then convert each to lower case, then strip duplicates preserve order.", "out": "乗丞丧"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then lowercase each one, then remove repeated strings.", "out": "乗丞丧"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then convert each to lower case, then keep unique strings first appearance.", "out": "乗丞丧"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then lowercase each one, then eliminate repeated strings preserve first occurrence.", "out": "乗丞丧"} {"kind": "builder", "in": "乗丞丧", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.lower() for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乗丞丧", "out": "Take a list of strings; drop strings shorter than three characters, then lowercase each string, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increase every value by 10, then true if every value is unique.", "out": "专丽乏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then add 10 to each item, then check for duplicates in the values.", "out": "专丽乏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then shift each up by ten, then do all values appear only once.", "out": "专丽乏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then increase all numbers by 10, then check that there are no duplicates.", "out": "专丽乏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then add 10 to everything, then are the values all unique.", "out": "专丽乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then give everything a boost of 10, then check if all values are unique.", "out": "专丽乏"} {"kind": "builder", "in": "专丽乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 10 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "专丽乏", "out": "Take a list of integers; sort descending, then add ten to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then extend to length 3 using zeros, then remove the initial run of negative numbers.", "out": "世义乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then pad to 3, then strip the front negatives.", "out": "世义乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then extend to length 3 using zeros, then remove leading negative numbers.", "out": "世义乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then pad to 3, then drop negatives from start.", "out": "世义乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then extend to length 3 using zeros, then strip negative values from the start.", "out": "世义乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then pad to 3, then remove negatives before the first non-negative.", "out": "世义乃"} {"kind": "builder", "in": "世义乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "世义乃", "out": "Take a list of integers; drop the first element, then pad with zeros to at least three elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values divisible by 3, then truncate to three items.", "out": "久串丕"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep items where x mod 3 equals zero, then show the first three.", "out": "久串丕"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then drop anything not divisible by three, then take the first three.", "out": "久串丕"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then filter out everything except multiples of three, then keep first 3.", "out": "久串丕"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only multiples of three, then truncate to first three.", "out": "久串丕"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiples of three only, then first three.", "out": "久串丕"} {"kind": "builder", "in": "久串丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "久串丕", "out": "Take a list of integers; keep everything before the first zero, then keep multiples of three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then keep only non-empty strings, then arrange in lexicographic order.", "out": "丟两乖"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then filter empty strings, then sort by letter.", "out": "丟两乖"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove empty strings from the list, then arrange in lexicographic order.", "out": "丟两乖"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then clean up empty strings, then sort by letter.", "out": "丟两乖"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then delete empty entries, then arrange in lexicographic order.", "out": "丟两乖"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then drop empty strings, then sort by letter.", "out": "丟两乖"} {"kind": "builder", "in": "丟两乖", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s for s in r if s]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丟两乖", "out": "Take a list of strings; uppercase each string, then drop empty strings, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero, then deduplicate the list.", "out": "七久且"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears, then remove repeats.", "out": "七久且"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero, then deduplicate the list.", "out": "七久且"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0, then remove repeats.", "out": "七久且"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero, then deduplicate the list.", "out": "七久且"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero, then remove repeats.", "out": "七久且"} {"kind": "builder", "in": "七久且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "七久且", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then order by distance from zero, then drop the even numbers.", "out": "主丸丁"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort based on absolute value, then strip out the evens.", "out": "主丸丁"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then organize by magnitude, then drop the even numbers.", "out": "主丸丁"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then arrange by absolute value ascending, then strip out the evens.", "out": "主丸丁"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort from smallest to largest absolute value, then drop the even numbers.", "out": "主丸丁"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort by absolute value, then strip out the evens.", "out": "主丸丁"} {"kind": "builder", "in": "主丸丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "主丸丁", "out": "Take a list of integers; keep values greater than five, then sort by absolute value, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values above zero, then true if every value is unique.", "out": "上七乏"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then filter for positive numbers, then check for duplicates in the values.", "out": "上七乏"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only positive numbers, then do all values appear only once.", "out": "上七乏"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the positives, then check that there are no duplicates.", "out": "上七乏"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove negatives, then are the values all unique.", "out": "上七乏"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep the positive numbers, then check if all values are unique.", "out": "上七乏"} {"kind": "builder", "in": "上七乏", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "上七乏", "out": "Take a list of integers; square each, then keep the positive numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then give the earliest even value or zero.", "out": "丏丕乒"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then fetch the first even element, default to 0.", "out": "丏丕乒"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then give the earliest even value or zero.", "out": "丏丕乒"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then fetch the first even element, default to 0.", "out": "丏丕乒"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then give the earliest even value or zero.", "out": "丏丕乒"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then fetch the first even element, default to 0.", "out": "丏丕乒"} {"kind": "builder", "in": "丏丕乒", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丏丕乒", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then skip negatives at the start, then drop anything not divisible by three.", "out": "么乃串"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove all negatives at the front, then filter out everything except multiples of three.", "out": "么乃串"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the initial run of negative numbers, then keep only multiples of three.", "out": "么乃串"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then strip the front negatives, then multiples of three only.", "out": "么乃串"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove leading negative numbers, then filter for numbers divisible by three.", "out": "么乃串"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then drop negatives from start, then give me only the values divisible by three.", "out": "么乃串"} {"kind": "builder", "in": "么乃串", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "么乃串", "out": "Take a list of integers; if empty, use a single zero, then drop the leading negative values, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then true if any value equals zero.", "out": "万丘乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then check for zero.", "out": "万丘乍"} {"kind": "builder", "in": "万丘乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return 0 in r"} {"kind": "translator", "in": "万丘乍", "out": "Take a list of integers; keep the negative numbers, then cap each value at 10, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each value by itself, then count the elements.", "out": "世上东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then square them all, then how many items remain.", "out": "世上东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then raise each to the power of two, then tell me the length.", "out": "世上东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then I need each number multiplied by itself, then return the length.", "out": "世上东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then square all of them, then count them.", "out": "世上东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiply each element by itself, then what's the count.", "out": "世上东"} {"kind": "builder", "in": "世上东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * x for x in r]\n return len(r)"} {"kind": "translator", "in": "世上东", "out": "Take a list of integers; drop the first element, then square each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then decrement each value, then drop the odd numbers.", "out": "久不一"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Lower each number by one, then filter out the odd numbers.", "out": "久不一"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then reduce each by one, then drop the odd numbers.", "out": "久不一"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Subtract 1 from all, then filter out the odd numbers.", "out": "久不一"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Subtract one from each, then drop the odd numbers.", "out": "久不一"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Drop each by one, then filter out the odd numbers.", "out": "久不一"} {"kind": "builder", "in": "久不一", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "久不一", "out": "Take a list of integers; keep everything before the first zero, then subtract one from each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then true if at least one even value.", "out": "乂乃之"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then any even.", "out": "乂乃之"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then true if at least one even value.", "out": "乂乃之"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then any even.", "out": "乂乃之"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then true if at least one even value.", "out": "乂乃之"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then any even.", "out": "乂乃之"} {"kind": "builder", "in": "乂乃之", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乂乃之", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then true only if all are positive.", "out": "丽乂乌"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then do all of these have positive values.", "out": "丽乂乌"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then check if every value is positive.", "out": "丽乂乌"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then confirm all values are positive.", "out": "丽乂乌"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then all positive.", "out": "丽乂乌"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then check if every number is above zero.", "out": "丽乂乌"} {"kind": "builder", "in": "丽乂乌", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丽乂乌", "out": "Take a list of integers; add ten to each, then take values while they are positive, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then trim one element off each end.", "out": "乂丕为"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then cut off the first and last.", "out": "乂丕为"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then remove the first and last elements.", "out": "乂丕为"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then keep only the middle part.", "out": "乂丕为"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then drop first and last.", "out": "乂丕为"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then eliminate the outermost elements.", "out": "乂丕为"} {"kind": "builder", "in": "乂丕为", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乂丕为", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then keep only non-empty strings, then prepend a hash mark to each.", "out": "丢两乘"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then filter empty strings, then prefix all with #.", "out": "丢两乘"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then remove empty strings from the list, then prepend a hash mark to each.", "out": "丢两乘"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then clean up empty strings, then prefix all with #.", "out": "丢两乘"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then delete empty entries, then prepend a hash mark to each.", "out": "丢两乘"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then drop empty strings, then prefix all with #.", "out": "丢两乘"} {"kind": "builder", "in": "丢两乘", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = [s for s in r if s]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "丢两乘", "out": "Take a list of strings; trim whitespace from each, then drop empty strings, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then truncate to three items.", "out": "义丘丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then show the first three.", "out": "义丘丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then take the first three.", "out": "义丘丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then keep first 3.", "out": "义丘丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then truncate to first three.", "out": "义丘丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then first three.", "out": "义丘丕"} {"kind": "builder", "in": "义丘丕", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [min(x, 10) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "义丘丕", "out": "Take a list of integers; pad with zeros to at least three elements, then cap each value at 10, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only odd values, then arrange in increasing order.", "out": "乃丁丑"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then eliminate the even numbers, then Organize these ascending.", "out": "乃丁丑"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only odd values, then Sort in ascending order.", "out": "乃丁丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then eliminate the even numbers, then I need this sorted ascending.", "out": "乃丁丑"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only odd values, then Put these in ascending order.", "out": "乃丁丑"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then eliminate the even numbers, then sort smallest to largest.", "out": "乃丁丑"} {"kind": "builder", "in": "乃丁丑", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乃丁丑", "out": "Take a list of integers; drop the leading negative values, then keep the odd numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then strip the signs.", "out": "万丁丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then take abs of each.", "out": "万丁丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then get the absolute value of everything.", "out": "万丁丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then apply absolute value to the whole list.", "out": "万丁丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then make them all positive.", "out": "万丁丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then make every value non-negative.", "out": "万丁丏"} {"kind": "builder", "in": "万丁丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "万丁丏", "out": "Take a list of integers; keep the negative numbers, then keep the odd numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then take values up to (excluding) the first zero.", "out": "举丘久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then keep the part before the first 0.", "out": "举丘久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then truncate at the first zero.", "out": "举丘久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then delete everything starting with the first zero.", "out": "举丘久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then remove from the first zero onwards.", "out": "举丘久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then up to but not including the first zero.", "out": "举丘久"} {"kind": "builder", "in": "举丘久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "举丘久", "out": "Take a list of integers; drop the zeros, then cap each value at 10, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then extend to length 3 using zeros, then stop at the first non-positive value.", "out": "丏义乂"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then pad to 3, then keep the leading run of positive numbers.", "out": "丏义乂"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then extend to length 3 using zeros, then take values while they are positive.", "out": "丏义乂"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then pad to 3, then take positive values then stop.", "out": "丏义乂"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then extend to length 3 using zeros, then keep going while positive.", "out": "丏义乂"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then pad to 3, then stop at first non positive.", "out": "丏义乂"} {"kind": "builder", "in": "丏义乂", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丏义乂", "out": "Take a list of integers; take the absolute value of each, then pad with zeros to at least three elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the leading run of positive numbers, then trim one element off each end.", "out": "丈乂为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take values while they are positive, then cut off the first and last.", "out": "丈乂为"} {"kind": "speaker", "in": "Take a list of integers; double each, then take positive values then stop, then remove the first and last elements.", "out": "丈乂为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep going while positive, then keep only the middle part.", "out": "丈乂为"} {"kind": "speaker", "in": "Take a list of integers; double each, then stop at first non positive, then drop first and last.", "out": "丈乂为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take while greater than zero, then eliminate the outermost elements.", "out": "丈乂为"} {"kind": "builder", "in": "丈乂为", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丈乂为", "out": "Take a list of integers; double each, then take values while they are positive, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten, then truncate to three items.", "out": "丽丘丕"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10, then show the first three.", "out": "丽丘丕"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten, then take the first three.", "out": "丽丘丕"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10, then keep first 3.", "out": "丽丘丕"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten, then truncate to first three.", "out": "丽丘丕"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10, then first three.", "out": "丽丘丕"} {"kind": "builder", "in": "丽丘丕", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丽丘丕", "out": "Take a list of integers; add ten to each, then cap each value at 10, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then extend to length 3 using zeros, then find the max, defaulting to 0.", "out": "七义业"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then pad to 3, then Give me the maximum, but 0 if there are no items.", "out": "七义业"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then extend to length 3 using zeros, then What's the highest number in the list.", "out": "七义业"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then pad to 3, then Return the greatest value or default to 0.", "out": "七义业"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then extend to length 3 using zeros, then Find the largest element, defaulting to zero.", "out": "七义业"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then pad to 3, then give the largest value (0 if none).", "out": "七义业"} {"kind": "builder", "in": "七义业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return max(r) if r else 0"} {"kind": "translator", "in": "七义业", "out": "Take a list of integers; keep the positive numbers, then pad with zeros to at least three elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then default to [0] when there is nothing, then take values up to (excluding) the first zero.", "out": "下么久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then when the list is empty, substitute a zero value, then keep the part before the first 0.", "out": "下么久"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then replace an empty list with one zero, then truncate at the first zero.", "out": "下么久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then zero it out if it's empty, then delete everything starting with the first zero.", "out": "下么久"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then use zero if the list is empty, then remove from the first zero onwards.", "out": "下么久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then default to zero when empty, then up to but not including the first zero.", "out": "下么久"} {"kind": "builder", "in": "下么久", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "下么久", "out": "Take a list of integers; add one to each, then if empty, use a single zero, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each by two, then arrange in increasing order.", "out": "久丈丑"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then double each item in the list, then Organize these ascending.", "out": "久丈丑"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then multiply each by two, then Sort in ascending order.", "out": "久丈丑"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then double each item in the list, then I need this sorted ascending.", "out": "久丈丑"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then multiply each by two, then Put these in ascending order.", "out": "久丈丑"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then double each item in the list, then sort smallest to largest.", "out": "久丈丑"} {"kind": "builder", "in": "久丈丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "久丈丑", "out": "Take a list of integers; keep everything before the first zero, then double each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then true if every value is unique.", "out": "丏丕乏"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then check for duplicates in the values.", "out": "丏丕乏"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then do all values appear only once.", "out": "丏丕乏"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then check that there are no duplicates.", "out": "丏丕乏"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then are the values all unique.", "out": "丏丕乏"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then check if all values are unique.", "out": "丏丕乏"} {"kind": "builder", "in": "丏丕乏", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丏丕乏", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the list around, then arrange by magnitude ignoring sign.", "out": "么丐丸"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then flip the order around, then put them in order by magnitude.", "out": "么丐丸"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then put the elements backwards, then arrange in order of absolute value.", "out": "么丐丸"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then reverse that for me, then sort by distance from zero.", "out": "么丐丸"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip it backwards, then order by how far from zero.", "out": "么丐丸"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then make it backwards, then order by distance from zero.", "out": "么丐丸"} {"kind": "builder", "in": "么丐丸", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = list(reversed(r))\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "么丐丸", "out": "Take a list of integers; if empty, use a single zero, then reverse the order, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value, then drop the even numbers.", "out": "主下丁"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all, then strip out the evens.", "out": "主下丁"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value, then drop the even numbers.", "out": "主下丁"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all, then strip out the evens.", "out": "主下丁"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value, then drop the even numbers.", "out": "主下丁"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all, then strip out the evens.", "out": "主下丁"} {"kind": "builder", "in": "主下丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "主下丁", "out": "Take a list of integers; keep values greater than five, then add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort largest to smallest, then remove the initial run of negative numbers.", "out": "上专乃"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort by descending values, then strip the front negatives.", "out": "上专乃"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then sort from highest to lowest, then remove leading negative numbers.", "out": "上专乃"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sort descending, then drop negatives from start.", "out": "上专乃"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort largest first, then strip negative values from the start.", "out": "上专乃"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort in descending order, then remove negatives before the first non-negative.", "out": "上专乃"} {"kind": "builder", "in": "上专乃", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "上专乃", "out": "Take a list of integers; square each, then sort descending, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then extend to length 3 using zeros, then count the elements.", "out": "乂义东"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then pad to 3, then how many items remain.", "out": "乂义东"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then extend to length 3 using zeros, then tell me the length.", "out": "乂义东"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then pad to 3, then return the length.", "out": "乂义东"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then extend to length 3 using zeros, then count them.", "out": "乂义东"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then pad to 3, then what's the count.", "out": "乂义东"} {"kind": "builder", "in": "乂义东", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return len(r)"} {"kind": "translator", "in": "乂义东", "out": "Take a list of integers; take values while they are positive, then pad with zeros to at least three elements, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove all zero values, then put the elements backwards.", "out": "乃举丐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then exclude zeros, then reverse that for me.", "out": "乃举丐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove all zero values, then flip it backwards.", "out": "乃举丐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then exclude zeros, then make it backwards.", "out": "乃举丐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove all zero values, then reverse the list.", "out": "乃举丐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then exclude zeros, then invert the sequence.", "out": "乃举丐"} {"kind": "builder", "in": "乃举丐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "乃举丐", "out": "Take a list of integers; drop the leading negative values, then drop the zeros, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the sign of each, then give the number of evens.", "out": "不与乓"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then turn positives to negatives and vice versa, then find how many values are divisible by two.", "out": "不与乓"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then flip the sign of each, then how many are even.", "out": "不与乓"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn positives to negatives and vice versa, then get the total number of even values in the list.", "out": "不与乓"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip the sign of each, then give me the count of even values.", "out": "不与乓"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then turn positives to negatives and vice versa, then I need to know how many of these are even.", "out": "不与乓"} {"kind": "builder", "in": "不与乓", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [-x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "不与乓", "out": "Take a list of integers; subtract one from each, then negate each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only even values, then arrange by magnitude ignoring sign.", "out": "丐一丸"} {"kind": "speaker", "in": "Take a list of integers; reverse, then extract all even numbers, then put them in order by magnitude.", "out": "丐一丸"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only even values, then arrange in order of absolute value.", "out": "丐一丸"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then extract all even numbers, then sort by distance from zero.", "out": "丐一丸"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only even values, then order by how far from zero.", "out": "丐一丸"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then extract all even numbers, then order by distance from zero.", "out": "丐一丸"} {"kind": "builder", "in": "丐一丸", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丐一丸", "out": "Take a list of integers; reverse the order, then keep the even numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then default to [0] when there is nothing, then trim one element off each end.", "out": "丁么为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then when the list is empty, substitute a zero value, then cut off the first and last.", "out": "丁么为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then replace an empty list with one zero, then remove the first and last elements.", "out": "丁么为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then zero it out if it's empty, then keep only the middle part.", "out": "丁么为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then use zero if the list is empty, then drop first and last.", "out": "丁么为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then default to zero when empty, then eliminate the outermost elements.", "out": "丁么为"} {"kind": "builder", "in": "丁么为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r if r else [0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丁么为", "out": "Take a list of integers; keep the odd numbers, then if empty, use a single zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then take values up to (excluding) the first zero.", "out": "举下久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then keep the part before the first 0.", "out": "举下久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then truncate at the first zero.", "out": "举下久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then delete everything starting with the first zero.", "out": "举下久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then remove from the first zero onwards.", "out": "举下久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then up to but not including the first zero.", "out": "举下久"} {"kind": "builder", "in": "举下久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "举下久", "out": "Take a list of integers; drop the zeros, then add one to each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increment each value, then drop the odd numbers.", "out": "丑下一"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then plus one for all, then filter out the odd numbers.", "out": "丑下一"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then increment each value, then drop the odd numbers.", "out": "丑下一"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then plus one for all, then filter out the odd numbers.", "out": "丑下一"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then increment each value, then drop the odd numbers.", "out": "丑下一"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then plus one for all, then filter out the odd numbers.", "out": "丑下一"} {"kind": "builder", "in": "丑下一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丑下一", "out": "Take a list of integers; sort ascending, then add one to each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then arrange by magnitude ignoring sign.", "out": "丈且丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then put them in order by magnitude.", "out": "丈且丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then arrange in order of absolute value.", "out": "丈且丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then sort by distance from zero.", "out": "丈且丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then order by how far from zero.", "out": "丈且丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then order by distance from zero.", "out": "丈且丸"} {"kind": "builder", "in": "丈且丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(dict.fromkeys(r))\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丈且丸", "out": "Take a list of integers; double each, then drop duplicates keeping first occurrence, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove repeated values, then shift each up by ten.", "out": "万且丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then unique values preserving order, then increase all numbers by 10.", "out": "万且丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove repeated values, then add 10 to everything.", "out": "万且丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then unique values preserving order, then give everything a boost of 10.", "out": "万且丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove repeated values, then increment each by ten.", "out": "万且丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then unique values preserving order, then add a constant 10 to each.", "out": "万且丽"} {"kind": "builder", "in": "万且丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "万且丽", "out": "Take a list of integers; keep the negative numbers, then drop duplicates keeping first occurrence, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the list around, then keep only non-zero numbers.", "out": "且丐举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then flip the order around, then strip the zeros.", "out": "且丐举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then put the elements backwards, then keep only non-zero numbers.", "out": "且丐举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then reverse that for me, then strip the zeros.", "out": "且丐举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip it backwards, then keep only non-zero numbers.", "out": "且丐举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then make it backwards, then strip the zeros.", "out": "且丐举"} {"kind": "builder", "in": "且丐举", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "且丐举", "out": "Take a list of integers; drop duplicates keeping first occurrence, then reverse the order, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep the leading run of positive numbers, then find the max, defaulting to 0.", "out": "丐乂业"} {"kind": "speaker", "in": "Take a list of integers; reverse, then take values while they are positive, then Give me the maximum, but 0 if there are no items.", "out": "丐乂业"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take positive values then stop, then What's the highest number in the list.", "out": "丐乂业"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep going while positive, then Return the greatest value or default to 0.", "out": "丐乂业"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then stop at first non positive, then Find the largest element, defaulting to zero.", "out": "丐乂业"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take while greater than zero, then give the largest value (0 if none).", "out": "丐乂业"} {"kind": "builder", "in": "丐乂业", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return max(r) if r else 0"} {"kind": "translator", "in": "丐乂业", "out": "Take a list of integers; reverse the order, then take values while they are positive, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then default to [0] when there is nothing, then count the elements.", "out": "举么东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then when the list is empty, substitute a zero value, then how many items remain.", "out": "举么东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then replace an empty list with one zero, then tell me the length.", "out": "举么东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then zero it out if it's empty, then return the length.", "out": "举么东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then use zero if the list is empty, then count them.", "out": "举么东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then default to zero when empty, then what's the count.", "out": "举么东"} {"kind": "builder", "in": "举么东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return len(r)"} {"kind": "translator", "in": "举么东", "out": "Take a list of integers; drop the zeros, then if empty, use a single zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then flip the list around, then trim one element off each end.", "out": "专丐为"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then flip the order around, then cut off the first and last.", "out": "专丐为"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then put the elements backwards, then remove the first and last elements.", "out": "专丐为"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then reverse that for me, then keep only the middle part.", "out": "专丐为"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then flip it backwards, then drop first and last.", "out": "专丐为"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then make it backwards, then eliminate the outermost elements.", "out": "专丐为"} {"kind": "builder", "in": "专丐为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(reversed(r))\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "专丐为", "out": "Take a list of integers; sort descending, then reverse the order, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values above zero, then stop at the first non-positive value.", "out": "义七乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter for positive numbers, then keep the leading run of positive numbers.", "out": "义七乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only positive numbers, then take values while they are positive.", "out": "义七乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positives, then take positive values then stop.", "out": "义七乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove negatives, then keep going while positive.", "out": "义七乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positive numbers, then stop at first non positive.", "out": "义七乂"} {"kind": "builder", "in": "义七乂", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "义七乂", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the positive numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values below zero, then arrange in decreasing order.", "out": "不万专"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then get the negative numbers, then arrange in descending order.", "out": "不万专"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep values below zero, then reverse sort.", "out": "不万专"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the negative numbers, then sort largest to smallest.", "out": "不万专"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep values below zero, then sort by descending values.", "out": "不万专"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the negative numbers, then sort from highest to lowest.", "out": "不万专"} {"kind": "builder", "in": "不万专", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "不万专", "out": "Take a list of integers; subtract one from each, then keep the negative numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself, then find the max, defaulting to 0.", "out": "乃上业"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all, then Give me the maximum, but 0 if there are no items.", "out": "乃上业"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two, then What's the highest number in the list.", "out": "乃上业"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself, then Return the greatest value or default to 0.", "out": "乃上业"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them, then Find the largest element, defaulting to zero.", "out": "乃上业"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself, then give the largest value (0 if none).", "out": "乃上业"} {"kind": "builder", "in": "乃上业", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "乃上业", "out": "Take a list of integers; drop the leading negative values, then square each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first 3 elements, then drop non-negative values.", "out": "下丕万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove everything after the third, then drop all positive numbers.", "out": "下丕万"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate to three items, then drop non-negative values.", "out": "下丕万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then show the first three, then drop all positive numbers.", "out": "下丕万"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first three, then drop non-negative values.", "out": "下丕万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep first 3, then drop all positive numbers.", "out": "下丕万"} {"kind": "builder", "in": "下丕万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:3]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "下丕万", "out": "Take a list of integers; add one to each, then keep only the first three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increase every value by 10, then arrange in decreasing order.", "out": "主丽专"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then add 10 to each item, then arrange in descending order.", "out": "主丽专"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then shift each up by ten, then reverse sort.", "out": "主丽专"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then increase all numbers by 10, then sort largest to smallest.", "out": "主丽专"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then add 10 to everything, then sort by descending values.", "out": "主丽专"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then give everything a boost of 10, then sort from highest to lowest.", "out": "主丽专"} {"kind": "builder", "in": "主丽专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "主丽专", "out": "Take a list of integers; keep values greater than five, then add ten to each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the final 3 elements, then true if already sorted smallest to largest.", "out": "上丹乎"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then drop everything except the final three, then does this list go in ascending order.", "out": "上丹乎"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give me the last three elements, then check if the list is in ascending order.", "out": "上丹乎"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep only the last three, then is the list sorted.", "out": "上丹乎"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep the final three items, then is it sorted.", "out": "上丹乎"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the last three, then check if values are in increasing order.", "out": "上丹乎"} {"kind": "builder", "in": "上丹乎", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[-3:]\n return r == sorted(r)"} {"kind": "translator", "in": "上丹乎", "out": "Take a list of integers; square each, then keep only the last three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the list around, then truncate to three items.", "out": "丘丐丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then flip the order around, then show the first three.", "out": "丘丐丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then put the elements backwards, then take the first three.", "out": "丘丐丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then reverse that for me, then keep first 3.", "out": "丘丐丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip it backwards, then truncate to first three.", "out": "丘丐丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then make it backwards, then first three.", "out": "丘丐丕"} {"kind": "builder", "in": "丘丐丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = list(reversed(r))\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘丐丕", "out": "Take a list of integers; cap each value at 10, then reverse the order, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values above zero, then arrange in decreasing order.", "out": "主七专"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then filter for positive numbers, then arrange in descending order.", "out": "主七专"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only positive numbers, then reverse sort.", "out": "主七专"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the positives, then sort largest to smallest.", "out": "主七专"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove negatives, then sort by descending values.", "out": "主七专"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep the positive numbers, then sort from highest to lowest.", "out": "主七专"} {"kind": "builder", "in": "主七专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "主七专", "out": "Take a list of integers; keep values greater than five, then keep the positive numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values above zero, then make each twice as big.", "out": "下七丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter for positive numbers, then multiply each by 2.", "out": "下七丈"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only positive numbers, then make each twice as big.", "out": "下七丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positives, then multiply each by 2.", "out": "下七丈"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove negatives, then make each twice as big.", "out": "下七丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positive numbers, then multiply each by 2.", "out": "下七丈"} {"kind": "builder", "in": "下七丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "下七丈", "out": "Take a list of integers; add one to each, then keep the positive numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then put the elements backwards.", "out": "举丈丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then reverse that for me.", "out": "举丈丐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then flip it backwards.", "out": "举丈丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then make it backwards.", "out": "举丈丐"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then reverse the list.", "out": "举丈丐"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then invert the sequence.", "out": "举丈丐"} {"kind": "builder", "in": "举丈丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "举丈丐", "out": "Take a list of integers; drop the zeros, then double each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values below zero, then give back the product of all values.", "out": "丑万乐"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then get the negative numbers, then product of the list.", "out": "丑万乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep values below zero, then what's the product.", "out": "丑万乐"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then get the negative numbers, then what do they multiply to.", "out": "丑万乐"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep values below zero, then give me their product.", "out": "丑万乐"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then get the negative numbers, then multiply them all together.", "out": "丑万乐"} {"kind": "builder", "in": "丑万乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x < 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丑万乐", "out": "Take a list of integers; sort ascending, then keep the negative numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then drop the even numbers.", "out": "主乂丁"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then strip out the evens.", "out": "主乂丁"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then drop the even numbers.", "out": "主乂丁"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then strip out the evens.", "out": "主乂丁"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then drop the even numbers.", "out": "主乂丁"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then strip out the evens.", "out": "主乂丁"} {"kind": "builder", "in": "主乂丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "主乂丁", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then skip negatives at the start, then count the elements.", "out": "万乃东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then remove all negatives at the front, then how many items remain.", "out": "万乃东"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the initial run of negative numbers, then tell me the length.", "out": "万乃东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then strip the front negatives, then return the length.", "out": "万乃东"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove leading negative numbers, then count them.", "out": "万乃东"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop negatives from start, then what's the count.", "out": "万乃东"} {"kind": "builder", "in": "万乃东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return len(r)"} {"kind": "translator", "in": "万乃东", "out": "Take a list of integers; keep the negative numbers, then drop the leading negative values, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the list around, then skip the first one.", "out": "乃丐世"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then flip the order around, then Discard the first element.", "out": "乃丐世"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then put the elements backwards, then skip the first one.", "out": "乃丐世"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then reverse that for me, then Discard the first element.", "out": "乃丐世"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip it backwards, then skip the first one.", "out": "乃丐世"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then make it backwards, then Discard the first element.", "out": "乃丐世"} {"kind": "builder", "in": "乃丐世", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n r = r[1:]\n return r"} {"kind": "translator", "in": "乃丐世", "out": "Take a list of integers; drop the leading negative values, then reverse the order, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then skip negatives at the start, then reduce each by one.", "out": "丹乃不"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove all negatives at the front, then Subtract 1 from all.", "out": "丹乃不"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the initial run of negative numbers, then Subtract one from each.", "out": "丹乃不"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then strip the front negatives, then Drop each by one.", "out": "丹乃不"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove leading negative numbers, then Decrease all values by one.", "out": "丹乃不"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then drop negatives from start, then Remove one from each value.", "out": "丹乃不"} {"kind": "builder", "in": "丹乃不", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丹乃不", "out": "Take a list of integers; keep only the last three, then drop the leading negative values, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only even values, then arrange in increasing order.", "out": "不一丑"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then extract all even numbers, then Organize these ascending.", "out": "不一丑"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only even values, then Sort in ascending order.", "out": "不一丑"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then extract all even numbers, then I need this sorted ascending.", "out": "不一丑"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only even values, then Put these in ascending order.", "out": "不一丑"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then extract all even numbers, then sort smallest to largest.", "out": "不一丑"} {"kind": "builder", "in": "不一丑", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "不一丑", "out": "Take a list of integers; subtract one from each, then keep the even numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then drop anything not divisible by three.", "out": "丈一串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then filter out everything except multiples of three.", "out": "丈一串"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then keep only multiples of three.", "out": "丈一串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then multiples of three only.", "out": "丈一串"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then filter for numbers divisible by three.", "out": "丈一串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then give me only the values divisible by three.", "out": "丈一串"} {"kind": "builder", "in": "丈一串", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丈一串", "out": "Take a list of integers; double each, then keep the even numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove both ends, then true if already sorted smallest to largest.", "out": "且为乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then trim the edges, then does this list go in ascending order.", "out": "且为乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then trim one element off each end, then check if the list is in ascending order.", "out": "且为乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off the first and last, then is the list sorted.", "out": "且为乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first and last elements, then is it sorted.", "out": "且为乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the middle part, then check if values are in increasing order.", "out": "且为乎"} {"kind": "builder", "in": "且为乎", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:-1]\n return r == sorted(r)"} {"kind": "translator", "in": "且为乎", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first and last elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then find the max, defaulting to 0.", "out": "丁下业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then Give me the maximum, but 0 if there are no items.", "out": "丁下业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then What's the highest number in the list.", "out": "丁下业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then Return the greatest value or default to 0.", "out": "丁下业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then Find the largest element, defaulting to zero.", "out": "丁下业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then give the largest value (0 if none).", "out": "丁下业"} {"kind": "builder", "in": "丁下业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丁下业", "out": "Take a list of integers; keep the odd numbers, then add one to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the sign of each, then true if already sorted smallest to largest.", "out": "么与乎"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then turn positives to negatives and vice versa, then does this list go in ascending order.", "out": "么与乎"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then flip the sign of each, then check if the list is in ascending order.", "out": "么与乎"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn positives to negatives and vice versa, then is the list sorted.", "out": "么与乎"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip the sign of each, then is it sorted.", "out": "么与乎"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then turn positives to negatives and vice versa, then check if values are in increasing order.", "out": "么与乎"} {"kind": "builder", "in": "么与乎", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [-x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "么与乎", "out": "Take a list of integers; if empty, use a single zero, then negate each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then sort smallest to largest, then make each twice as big.", "out": "丽丑丈"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Ascending sort, then multiply each by 2.", "out": "丽丑丈"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then Sort this ascending, then make each twice as big.", "out": "丽丑丈"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Sort lowest to highest, then multiply each by 2.", "out": "丽丑丈"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Arrange from smallest to largest, then make each twice as big.", "out": "丽丑丈"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort ascending, then multiply each by 2.", "out": "丽丑丈"} {"kind": "builder", "in": "丽丑丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丽丑丈", "out": "Take a list of integers; add ten to each, then sort ascending, then double each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values divisible by 3, then keep only numbers above 5.", "out": "下串主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep items where x mod 3 equals zero, then exclude values of 5 and below.", "out": "下串主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything not divisible by three, then remove anything 5 or less.", "out": "下串主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter out everything except multiples of three, then filter to keep only values above 5.", "out": "下串主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only multiples of three, then get rid of values that aren't greater than five.", "out": "下串主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiples of three only, then drop anything 5 or below.", "out": "下串主"} {"kind": "builder", "in": "下串主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "下串主", "out": "Take a list of integers; add one to each, then keep multiples of three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the first 3 elements, then put the elements backwards.", "out": "丘丕丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then remove everything after the third, then reverse that for me.", "out": "丘丕丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate to three items, then flip it backwards.", "out": "丘丕丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then show the first three, then make it backwards.", "out": "丘丕丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the first three, then reverse the list.", "out": "丘丕丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep first 3, then invert the sequence.", "out": "丘丕丐"} {"kind": "builder", "in": "丘丕丐", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:3]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丘丕丐", "out": "Take a list of integers; cap each value at 10, then keep only the first three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then deduplicate the list.", "out": "下丘且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then remove repeats.", "out": "下丘且"} {"kind": "builder", "in": "下丘且", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "下丘且", "out": "Take a list of integers; add one to each, then cap each value at 10, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then truncate to three items.", "out": "久世丕"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then show the first three.", "out": "久世丕"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then take the first three.", "out": "久世丕"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then keep first 3.", "out": "久世丕"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then truncate to first three.", "out": "久世丕"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then first three.", "out": "久世丕"} {"kind": "builder", "in": "久世丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n r = r[:3]\n return r"} {"kind": "translator", "in": "久世丕", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then keep only the first three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then remove repeated strings, then return them as one comma-separated string.", "out": "乞丧中"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then keep unique strings first appearance, then separate by comma.", "out": "乞丧中"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then eliminate repeated strings preserve first occurrence, then join with commas.", "out": "乞丧中"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then drop duplicate strings keeping the first, then comma join.", "out": "乞丧中"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then dedupe, then combine using commas.", "out": "乞丧中"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then remove duplicate strings keep first, then connect with commas between each item.", "out": "乞丧中"} {"kind": "builder", "in": "乞丧中", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = list(dict.fromkeys(r))\n return ','.join(r)"} {"kind": "translator", "in": "乞丧中", "out": "Take a list of people records (name, age); extract the names, then drop duplicate strings keeping the first, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then extend to length 3 using zeros, then give the number of evens.", "out": "七义乓"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then pad to 3, then find how many values are divisible by two.", "out": "七义乓"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then extend to length 3 using zeros, then how many are even.", "out": "七义乓"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then pad to 3, then get the total number of even values in the list.", "out": "七义乓"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then extend to length 3 using zeros, then give me the count of even values.", "out": "七义乓"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then pad to 3, then I need to know how many of these are even.", "out": "七义乓"} {"kind": "builder", "in": "七义乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "七义乓", "out": "Take a list of integers; keep the positive numbers, then pad with zeros to at least three elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then drop non-negative values.", "out": "丽丐万"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then drop all positive numbers.", "out": "丽丐万"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then drop non-negative values.", "out": "丽丐万"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then drop all positive numbers.", "out": "丽丐万"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then drop non-negative values.", "out": "丽丐万"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then drop all positive numbers.", "out": "丽丐万"} {"kind": "builder", "in": "丽丐万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丽丐万", "out": "Take a list of integers; add ten to each, then reverse the order, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements, then drop anything not divisible by three.", "out": "下丹串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three, then filter out everything except multiples of three.", "out": "下丹串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements, then keep only multiples of three.", "out": "下丹串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three, then multiples of three only.", "out": "下丹串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items, then filter for numbers divisible by three.", "out": "下丹串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three, then give me only the values divisible by three.", "out": "下丹串"} {"kind": "builder", "in": "下丹串", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "下丹串", "out": "Take a list of integers; add one to each, then keep only the last three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove all zero values, then make each twice as big.", "out": "七举丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then exclude zeros, then multiply each by 2.", "out": "七举丈"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove all zero values, then make each twice as big.", "out": "七举丈"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then exclude zeros, then multiply each by 2.", "out": "七举丈"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove all zero values, then make each twice as big.", "out": "七举丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then exclude zeros, then multiply each by 2.", "out": "七举丈"} {"kind": "builder", "in": "七举丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "七举丈", "out": "Take a list of integers; keep the positive numbers, then drop the zeros, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort largest to smallest, then find the min, defaulting to 0.", "out": "且专丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort by descending values, then minimum value, zero otherwise.", "out": "且专丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort from highest to lowest, then get the minimum value or zero if empty.", "out": "且专丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort descending, then give me the min or 0.", "out": "且专丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort largest first, then return the smallest number, defaulting to 0.", "out": "且专丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort in descending order, then return smallest or zero if empty.", "out": "且专丛"} {"kind": "builder", "in": "且专丛", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, reverse=True)\n return min(r) if r else 0"} {"kind": "translator", "in": "且专丛", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort descending, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then clamp each to at most ten, then trim one element off each end.", "out": "九丘为"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then don't let anything exceed 10, then cut off the first and last.", "out": "九丘为"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then clamp each to at most ten, then remove the first and last elements.", "out": "九丘为"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then don't let anything exceed 10, then keep only the middle part.", "out": "九丘为"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then clamp each to at most ten, then drop first and last.", "out": "九丘为"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then don't let anything exceed 10, then eliminate the outermost elements.", "out": "九丘为"} {"kind": "builder", "in": "九丘为", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [min(x, 10) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "九丘为", "out": "Take a list of people records (name, age); extract the ages, then cap each value at 10, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then order by distance from zero, then true if every value is unique.", "out": "久丸乏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then sort based on absolute value, then check for duplicates in the values.", "out": "久丸乏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then organize by magnitude, then do all values appear only once.", "out": "久丸乏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then arrange by absolute value ascending, then check that there are no duplicates.", "out": "久丸乏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then sort from smallest to largest absolute value, then are the values all unique.", "out": "久丸乏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort by absolute value, then check if all values are unique.", "out": "久丸乏"} {"kind": "builder", "in": "久丸乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "久丸乏", "out": "Take a list of integers; keep everything before the first zero, then sort by absolute value, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then stop at the first non-positive value.", "out": "举万乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then keep the leading run of positive numbers.", "out": "举万乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then take values while they are positive.", "out": "举万乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then take positive values then stop.", "out": "举万乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then keep going while positive.", "out": "举万乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then stop at first non positive.", "out": "举万乂"} {"kind": "builder", "in": "举万乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "举万乂", "out": "Take a list of integers; drop the zeros, then keep the negative numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep the leading run of positive numbers, then ensure at least three items by appending zeros.", "out": "久乂义"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then take values while they are positive, then ensure minimum length of three by adding zeros to the end.", "out": "久乂义"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take positive values then stop, then ensure at least three items by appending zeros.", "out": "久乂义"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep going while positive, then ensure minimum length of three by adding zeros to the end.", "out": "久乂义"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then stop at first non positive, then ensure at least three items by appending zeros.", "out": "久乂义"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take while greater than zero, then ensure minimum length of three by adding zeros to the end.", "out": "久乂义"} {"kind": "builder", "in": "久乂义", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "久乂义", "out": "Take a list of integers; keep everything before the first zero, then take values while they are positive, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values, then true if any value equals zero.", "out": "丕举乍"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros, then check for zero.", "out": "丕举乍"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values, then true if any value equals zero.", "out": "丕举乍"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros, then check for zero.", "out": "丕举乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values, then true if any value equals zero.", "out": "丕举乍"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros, then check for zero.", "out": "丕举乍"} {"kind": "builder", "in": "丕举乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n return 0 in r"} {"kind": "translator", "in": "丕举乍", "out": "Take a list of integers; keep only the first three, then drop the zeros, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then order by distance from zero, then skip the first one.", "out": "举丸世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort based on absolute value, then Discard the first element.", "out": "举丸世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then organize by magnitude, then skip the first one.", "out": "举丸世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then arrange by absolute value ascending, then Discard the first element.", "out": "举丸世"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from smallest to largest absolute value, then skip the first one.", "out": "举丸世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by absolute value, then Discard the first element.", "out": "举丸世"} {"kind": "builder", "in": "举丸世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n r = r[1:]\n return r"} {"kind": "translator", "in": "举丸世", "out": "Take a list of integers; drop the zeros, then sort by absolute value, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then extend to length 3 using zeros, then find the max, defaulting to 0.", "out": "串义业"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then pad to 3, then Give me the maximum, but 0 if there are no items.", "out": "串义业"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then extend to length 3 using zeros, then What's the highest number in the list.", "out": "串义业"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then pad to 3, then Return the greatest value or default to 0.", "out": "串义业"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then extend to length 3 using zeros, then Find the largest element, defaulting to zero.", "out": "串义业"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then pad to 3, then give the largest value (0 if none).", "out": "串义业"} {"kind": "builder", "in": "串义业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return max(r) if r else 0"} {"kind": "translator", "in": "串义业", "out": "Take a list of integers; keep multiples of three, then pad with zeros to at least three elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then cut the list at the first zero, then deduplicate the list.", "out": "丏久且"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then cut off after the first zero appears, then remove repeats.", "out": "丏久且"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take values up to (excluding) the first zero, then deduplicate the list.", "out": "丏久且"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the part before the first 0, then remove repeats.", "out": "丏久且"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then truncate at the first zero, then deduplicate the list.", "out": "丏久且"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then delete everything starting with the first zero, then remove repeats.", "out": "丏久且"} {"kind": "builder", "in": "丏久且", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丏久且", "out": "Take a list of integers; take the absolute value of each, then keep everything before the first zero, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then flip the sign of each, then arrange in decreasing order.", "out": "丐与专"} {"kind": "speaker", "in": "Take a list of integers; reverse, then turn positives to negatives and vice versa, then arrange in descending order.", "out": "丐与专"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then flip the sign of each, then reverse sort.", "out": "丐与专"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn positives to negatives and vice versa, then sort largest to smallest.", "out": "丐与专"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then flip the sign of each, then sort by descending values.", "out": "丐与专"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then turn positives to negatives and vice versa, then sort from highest to lowest.", "out": "丐与专"} {"kind": "builder", "in": "丐与专", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [-x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丐与专", "out": "Take a list of integers; reverse the order, then negate each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then multiply each by two, then trim one element off each end.", "out": "丑丈为"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then double each item in the list, then cut off the first and last.", "out": "丑丈为"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then multiply each by two, then remove the first and last elements.", "out": "丑丈为"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then double each item in the list, then keep only the middle part.", "out": "丑丈为"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then multiply each by two, then drop first and last.", "out": "丑丈为"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then double each item in the list, then eliminate the outermost elements.", "out": "丑丈为"} {"kind": "builder", "in": "丑丈为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x * 2 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丑丈为", "out": "Take a list of integers; sort ascending, then double each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove all zero values, then strip the signs.", "out": "七举丏"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then exclude zeros, then take abs of each.", "out": "七举丏"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove all zero values, then get the absolute value of everything.", "out": "七举丏"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then exclude zeros, then apply absolute value to the whole list.", "out": "七举丏"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove all zero values, then make them all positive.", "out": "七举丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then exclude zeros, then make every value non-negative.", "out": "七举丏"} {"kind": "builder", "in": "七举丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "七举丏", "out": "Take a list of integers; keep the positive numbers, then drop the zeros, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove repeated values, then true if any value equals zero.", "out": "与且乍"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then unique values preserving order, then check for zero.", "out": "与且乍"} {"kind": "builder", "in": "与且乍", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n return 0 in r"} {"kind": "translator", "in": "与且乍", "out": "Take a list of integers; negate each, then drop duplicates keeping first occurrence, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each value by itself, then drop the odd numbers.", "out": "主上一"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then square them all, then filter out the odd numbers.", "out": "主上一"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then raise each to the power of two, then drop the odd numbers.", "out": "主上一"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then I need each number multiplied by itself, then filter out the odd numbers.", "out": "主上一"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then square all of them, then drop the odd numbers.", "out": "主上一"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiply each element by itself, then filter out the odd numbers.", "out": "主上一"} {"kind": "builder", "in": "主上一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "主上一", "out": "Take a list of integers; keep values greater than five, then square each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then skip negatives at the start, then true if at least one even value.", "out": "上乃之"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove all negatives at the front, then any even.", "out": "上乃之"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the initial run of negative numbers, then true if at least one even value.", "out": "上乃之"} {"kind": "speaker", "in": "Take a list of integers; square them all, then strip the front negatives, then any even.", "out": "上乃之"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove leading negative numbers, then true if at least one even value.", "out": "上乃之"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then drop negatives from start, then any even.", "out": "上乃之"} {"kind": "builder", "in": "上乃之", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "上乃之", "out": "Take a list of integers; square each, then drop the leading negative values, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two, then trim one element off each end.", "out": "上丈为"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list, then cut off the first and last.", "out": "上丈为"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two, then remove the first and last elements.", "out": "上丈为"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list, then keep only the middle part.", "out": "上丈为"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two, then drop first and last.", "out": "上丈为"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list, then eliminate the outermost elements.", "out": "上丈为"} {"kind": "builder", "in": "上丈为", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "上丈为", "out": "Take a list of integers; square each, then double each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then sort smallest to largest, then give back the total.", "out": "乂丑丙"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Ascending sort, then sum r.", "out": "乂丑丙"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then Sort this ascending, then add them up.", "out": "乂丑丙"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Sort lowest to highest, then calculate the sum of all elements.", "out": "乂丑丙"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then Arrange from smallest to largest, then what's the total.", "out": "乂丑丙"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort ascending, then what do they add up to.", "out": "乂丑丙"} {"kind": "builder", "in": "乂丑丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n return sum(r)"} {"kind": "translator", "in": "乂丑丙", "out": "Take a list of integers; take values while they are positive, then sort ascending, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the final 3 elements, then drop non-negative values.", "out": "上丹万"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then drop everything except the final three, then drop all positive numbers.", "out": "上丹万"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give me the last three elements, then drop non-negative values.", "out": "上丹万"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep only the last three, then drop all positive numbers.", "out": "上丹万"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep the final three items, then drop non-negative values.", "out": "上丹万"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the last three, then drop all positive numbers.", "out": "上丹万"} {"kind": "builder", "in": "上丹万", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[-3:]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "上丹万", "out": "Take a list of integers; square each, then keep only the last three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values below zero, then drop the even numbers.", "out": "丐万丁"} {"kind": "speaker", "in": "Take a list of integers; reverse, then get the negative numbers, then strip out the evens.", "out": "丐万丁"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep values below zero, then drop the even numbers.", "out": "丐万丁"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then get the negative numbers, then strip out the evens.", "out": "丐万丁"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep values below zero, then drop the even numbers.", "out": "丐万丁"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then get the negative numbers, then strip out the evens.", "out": "丐万丁"} {"kind": "builder", "in": "丐万丁", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丐万丁", "out": "Take a list of integers; reverse the order, then keep the negative numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then extend to length 3 using zeros, then drop the even numbers.", "out": "九义丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then pad to 3, then strip out the evens.", "out": "九义丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then extend to length 3 using zeros, then drop the even numbers.", "out": "九义丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then pad to 3, then strip out the evens.", "out": "九义丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then extend to length 3 using zeros, then drop the even numbers.", "out": "九义丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then pad to 3, then strip out the evens.", "out": "九义丁"} {"kind": "builder", "in": "九义丁", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "九义丁", "out": "Take a list of people records (name, age); extract the ages, then pad with zeros to at least three elements, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then extend to length 3 using zeros, then drop anything not divisible by three.", "out": "丸义串"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then pad to 3, then filter out everything except multiples of three.", "out": "丸义串"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then extend to length 3 using zeros, then keep only multiples of three.", "out": "丸义串"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then pad to 3, then multiples of three only.", "out": "丸义串"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then extend to length 3 using zeros, then filter for numbers divisible by three.", "out": "丸义串"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then pad to 3, then give me only the values divisible by three.", "out": "丸义串"} {"kind": "builder", "in": "丸义串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丸义串", "out": "Take a list of integers; sort by absolute value, then pad with zeros to at least three elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then deduplicate the list.", "out": "么丽且"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then remove repeats.", "out": "么丽且"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then deduplicate the list.", "out": "么丽且"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then remove repeats.", "out": "么丽且"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then deduplicate the list.", "out": "么丽且"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then remove repeats.", "out": "么丽且"} {"kind": "builder", "in": "么丽且", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "么丽且", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only even values, then multiply each by -1.", "out": "丘一与"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then extract all even numbers, then negate.", "out": "丘一与"} {"kind": "builder", "in": "丘一与", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丘一与", "out": "Take a list of integers; cap each value at 10, then keep the even numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increase every value by 10, then true if any value equals zero.", "out": "不丽乍"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then add 10 to each item, then check for zero.", "out": "不丽乍"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then shift each up by ten, then true if any value equals zero.", "out": "不丽乍"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then increase all numbers by 10, then check for zero.", "out": "不丽乍"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then add 10 to everything, then true if any value equals zero.", "out": "不丽乍"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then give everything a boost of 10, then check for zero.", "out": "不丽乍"} {"kind": "builder", "in": "不丽乍", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n return 0 in r"} {"kind": "translator", "in": "不丽乍", "out": "Take a list of integers; subtract one from each, then add ten to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then make every value non-negative, then trim one element off each end.", "out": "丐丏为"} {"kind": "speaker", "in": "Take a list of integers; reverse, then absolute value for all items, then cut off the first and last.", "out": "丐丏为"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take absolute values, then remove the first and last elements.", "out": "丐丏为"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn negatives into positives, then keep only the middle part.", "out": "丐丏为"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then abs each element, then drop first and last.", "out": "丐丏为"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the absolute value of each, then eliminate the outermost elements.", "out": "丐丏为"} {"kind": "builder", "in": "丐丏为", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [abs(x) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丐丏为", "out": "Take a list of integers; reverse the order, then take the absolute value of each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then order by distance from zero, then arrange in decreasing order.", "out": "丹丸专"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort based on absolute value, then arrange in descending order.", "out": "丹丸专"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then organize by magnitude, then reverse sort.", "out": "丹丸专"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then arrange by absolute value ascending, then sort largest to smallest.", "out": "丹丸专"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort from smallest to largest absolute value, then sort by descending values.", "out": "丹丸专"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort by absolute value, then sort from highest to lowest.", "out": "丹丸专"} {"kind": "builder", "in": "丹丸专", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, key=abs)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丹丸专", "out": "Take a list of integers; keep only the last three, then sort by absolute value, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then find the min, defaulting to 0.", "out": "与举丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then minimum value, zero otherwise.", "out": "与举丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then get the minimum value or zero if empty.", "out": "与举丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then give me the min or 0.", "out": "与举丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then return the smallest number, defaulting to 0.", "out": "与举丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then return smallest or zero if empty.", "out": "与举丛"} {"kind": "builder", "in": "与举丛", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "与举丛", "out": "Take a list of integers; negate each, then drop the zeros, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then decrement each value, then truncate to the last three items.", "out": "丕不丹"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Lower each number by one, then show only the last three.", "out": "丕不丹"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then reduce each by one, then remove all but the last three.", "out": "丕不丹"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Subtract 1 from all, then take the final 3 elements.", "out": "丕不丹"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Subtract one from each, then drop everything except the final three.", "out": "丕不丹"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Drop each by one, then give me the last three elements.", "out": "丕不丹"} {"kind": "builder", "in": "丕不丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x - 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丕不丹", "out": "Take a list of integers; keep only the first three, then subtract one from each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then extend to length 3 using zeros, then true if any value equals zero.", "out": "万义乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then pad to 3, then check for zero.", "out": "万义乍"} {"kind": "builder", "in": "万义乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return 0 in r"} {"kind": "translator", "in": "万义乍", "out": "Take a list of integers; keep the negative numbers, then pad with zeros to at least three elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then extend to length 3 using zeros, then make each twice as big.", "out": "丹义丈"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then pad to 3, then multiply each by 2.", "out": "丹义丈"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then extend to length 3 using zeros, then make each twice as big.", "out": "丹义丈"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then pad to 3, then multiply each by 2.", "out": "丹义丈"} {"kind": "speaker", "in": "Take a list of integers; last three only, then extend to length 3 using zeros, then make each twice as big.", "out": "丹义丈"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then pad to 3, then multiply each by 2.", "out": "丹义丈"} {"kind": "builder", "in": "丹义丈", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丹义丈", "out": "Take a list of integers; keep only the last three, then pad with zeros to at least three elements, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then default to [0] when there is nothing, then true if every value is unique.", "out": "串么乏"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then when the list is empty, substitute a zero value, then check for duplicates in the values.", "out": "串么乏"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then replace an empty list with one zero, then do all values appear only once.", "out": "串么乏"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then zero it out if it's empty, then check that there are no duplicates.", "out": "串么乏"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then use zero if the list is empty, then are the values all unique.", "out": "串么乏"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then default to zero when empty, then check if all values are unique.", "out": "串么乏"} {"kind": "builder", "in": "串么乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r if r else [0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "串么乏", "out": "Take a list of integers; keep multiples of three, then if empty, use a single zero, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then decrement each value, then give back the product of all values.", "out": "串不乐"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Lower each number by one, then product of the list.", "out": "串不乐"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then reduce each by one, then what's the product.", "out": "串不乐"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Subtract 1 from all, then what do they multiply to.", "out": "串不乐"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Subtract one from each, then give me their product.", "out": "串不乐"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Drop each by one, then multiply them all together.", "out": "串不乐"} {"kind": "builder", "in": "串不乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x - 1 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "串不乐", "out": "Take a list of integers; keep multiples of three, then subtract one from each, then return their product."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then extend to length 3 using zeros, then drop non-positive values.", "out": "九义七"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then pad to 3, then drop the negative numbers.", "out": "九义七"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then extend to length 3 using zeros, then filter out the negative ones.", "out": "九义七"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then pad to 3, then remove all negative values.", "out": "九义七"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then extend to length 3 using zeros, then keep positive values only.", "out": "九义七"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then pad to 3, then keep values above zero.", "out": "九义七"} {"kind": "builder", "in": "九义七", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "九义七", "out": "Take a list of people records (name, age); extract the ages, then pad with zeros to at least three elements, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only odd values, then find the min, defaulting to 0.", "out": "么丁丛"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then eliminate the even numbers, then minimum value, zero otherwise.", "out": "么丁丛"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only odd values, then get the minimum value or zero if empty.", "out": "么丁丛"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then eliminate the even numbers, then give me the min or 0.", "out": "么丁丛"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only odd values, then return the smallest number, defaulting to 0.", "out": "么丁丛"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then eliminate the even numbers, then return smallest or zero if empty.", "out": "么丁丛"} {"kind": "builder", "in": "么丁丛", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "么丁丛", "out": "Take a list of integers; if empty, use a single zero, then keep the odd numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten, then drop non-negative values.", "out": "丽丘万"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10, then drop all positive numbers.", "out": "丽丘万"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten, then drop non-negative values.", "out": "丽丘万"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10, then drop all positive numbers.", "out": "丽丘万"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten, then drop non-negative values.", "out": "丽丘万"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10, then drop all positive numbers.", "out": "丽丘万"} {"kind": "builder", "in": "丽丘万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丽丘万", "out": "Take a list of integers; add ten to each, then cap each value at 10, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then truncate to the last three items.", "out": "串丐丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then show only the last three.", "out": "串丐丹"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then remove all but the last three.", "out": "串丐丹"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then take the final 3 elements.", "out": "串丐丹"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then drop everything except the final three.", "out": "串丐丹"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then give me the last three elements.", "out": "串丐丹"} {"kind": "builder", "in": "串丐丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "串丐丹", "out": "Take a list of integers; keep multiples of three, then reverse the order, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value, then find the max, defaulting to 0.", "out": "串下业"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all, then Give me the maximum, but 0 if there are no items.", "out": "串下业"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value, then What's the highest number in the list.", "out": "串下业"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all, then Return the greatest value or default to 0.", "out": "串下业"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value, then Find the largest element, defaulting to zero.", "out": "串下业"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all, then give the largest value (0 if none).", "out": "串下业"} {"kind": "builder", "in": "串下业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "串下业", "out": "Take a list of integers; keep multiples of three, then add one to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then make every value non-negative, then make each twice as big.", "out": "且丏丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then absolute value for all items, then multiply each by 2.", "out": "且丏丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take absolute values, then make each twice as big.", "out": "且丏丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn negatives into positives, then multiply each by 2.", "out": "且丏丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then abs each element, then make each twice as big.", "out": "且丏丈"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the absolute value of each, then multiply each by 2.", "out": "且丏丈"} {"kind": "builder", "in": "且丏丈", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [abs(x) for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "且丏丈", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take the absolute value of each, then double each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then shift each up by ten.", "out": "丘丈丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then increase all numbers by 10.", "out": "丘丈丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then add 10 to everything.", "out": "丘丈丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then give everything a boost of 10.", "out": "丘丈丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then increment each by ten.", "out": "丘丈丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then add a constant 10 to each.", "out": "丘丈丽"} {"kind": "builder", "in": "丘丈丽", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丘丈丽", "out": "Take a list of integers; cap each value at 10, then double each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then truncate to the last three items.", "out": "下义丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then show only the last three.", "out": "下义丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then remove all but the last three.", "out": "下义丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then take the final 3 elements.", "out": "下义丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then drop everything except the final three.", "out": "下义丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then give me the last three elements.", "out": "下义丹"} {"kind": "builder", "in": "下义丹", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "下义丹", "out": "Take a list of integers; add one to each, then pad with zeros to at least three elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increase every value by 10, then give back the total.", "out": "乃丽丙"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then add 10 to each item, then sum r.", "out": "乃丽丙"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then shift each up by ten, then add them up.", "out": "乃丽丙"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then increase all numbers by 10, then calculate the sum of all elements.", "out": "乃丽丙"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then add 10 to everything, then what's the total.", "out": "乃丽丙"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then give everything a boost of 10, then what do they add up to.", "out": "乃丽丙"} {"kind": "builder", "in": "乃丽丙", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 10 for x in r]\n return sum(r)"} {"kind": "translator", "in": "乃丽丙", "out": "Take a list of integers; drop the leading negative values, then add ten to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; double each, then increase every value by 10, then arrange in increasing order.", "out": "丈丽丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then add 10 to each item, then Organize these ascending.", "out": "丈丽丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then shift each up by ten, then Sort in ascending order.", "out": "丈丽丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then increase all numbers by 10, then I need this sorted ascending.", "out": "丈丽丑"} {"kind": "speaker", "in": "Take a list of integers; double each, then add 10 to everything, then Put these in ascending order.", "out": "丈丽丑"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give everything a boost of 10, then sort smallest to largest.", "out": "丈丽丑"} {"kind": "builder", "in": "丈丽丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丈丽丑", "out": "Take a list of integers; double each, then add ten to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep the leading run of positive numbers, then true if at least one even value.", "out": "串乂之"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then take values while they are positive, then any even.", "out": "串乂之"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take positive values then stop, then true if at least one even value.", "out": "串乂之"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep going while positive, then any even.", "out": "串乂之"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then stop at first non positive, then true if at least one even value.", "out": "串乂之"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take while greater than zero, then any even.", "out": "串乂之"} {"kind": "builder", "in": "串乂之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "串乂之", "out": "Take a list of integers; keep multiples of three, then take values while they are positive, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values above zero, then true if at least one even value.", "out": "且七之"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter for positive numbers, then any even.", "out": "且七之"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only positive numbers, then true if at least one even value.", "out": "且七之"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positives, then any even.", "out": "且七之"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove negatives, then true if at least one even value.", "out": "且七之"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positive numbers, then any even.", "out": "且七之"} {"kind": "builder", "in": "且七之", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "且七之", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the positive numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increase every value by 10, then reduce each by one.", "out": "丑丽不"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then add 10 to each item, then Subtract 1 from all.", "out": "丑丽不"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then shift each up by ten, then Subtract one from each.", "out": "丑丽不"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then increase all numbers by 10, then Drop each by one.", "out": "丑丽不"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then add 10 to everything, then Decrease all values by one.", "out": "丑丽不"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then give everything a boost of 10, then Remove one from each value.", "out": "丑丽不"} {"kind": "builder", "in": "丑丽不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丑丽不", "out": "Take a list of integers; sort ascending, then add ten to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then bump each up by one.", "out": "丁丘下"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then increment each item.", "out": "丁丘下"} {"kind": "builder", "in": "丁丘下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [min(x, 10) for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丁丘下", "out": "Take a list of integers; keep the odd numbers, then cap each value at 10, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements, then give back the total.", "out": "下丹丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three, then sum r.", "out": "下丹丙"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements, then add them up.", "out": "下丹丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three, then calculate the sum of all elements.", "out": "下丹丙"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items, then what's the total.", "out": "下丹丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three, then what do they add up to.", "out": "下丹丙"} {"kind": "builder", "in": "下丹丙", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n return sum(r)"} {"kind": "translator", "in": "下丹丙", "out": "Take a list of integers; add one to each, then keep only the last three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then default to [0] when there is nothing, then arrange in increasing order.", "out": "主么丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then when the list is empty, substitute a zero value, then Organize these ascending.", "out": "主么丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then replace an empty list with one zero, then Sort in ascending order.", "out": "主么丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then zero it out if it's empty, then I need this sorted ascending.", "out": "主么丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then use zero if the list is empty, then Put these in ascending order.", "out": "主么丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then default to zero when empty, then sort smallest to largest.", "out": "主么丑"} {"kind": "builder", "in": "主么丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r if r else [0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主么丑", "out": "Take a list of integers; keep values greater than five, then if empty, use a single zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then strip the signs.", "out": "万与丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then take abs of each.", "out": "万与丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then get the absolute value of everything.", "out": "万与丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then apply absolute value to the whole list.", "out": "万与丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then make them all positive.", "out": "万与丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then make every value non-negative.", "out": "万与丏"} {"kind": "builder", "in": "万与丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "万与丏", "out": "Take a list of integers; keep the negative numbers, then negate each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove both ends, then true if already sorted smallest to largest.", "out": "乂为乎"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then trim the edges, then does this list go in ascending order.", "out": "乂为乎"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then trim one element off each end, then check if the list is in ascending order.", "out": "乂为乎"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then cut off the first and last, then is the list sorted.", "out": "乂为乎"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first and last elements, then is it sorted.", "out": "乂为乎"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep only the middle part, then check if values are in increasing order.", "out": "乂为乎"} {"kind": "builder", "in": "乂为乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return r == sorted(r)"} {"kind": "translator", "in": "乂为乎", "out": "Take a list of integers; take values while they are positive, then drop the first and last elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then drop non-negative values.", "out": "丐久万"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then drop all positive numbers.", "out": "丐久万"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then drop non-negative values.", "out": "丐久万"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then drop all positive numbers.", "out": "丐久万"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then drop non-negative values.", "out": "丐久万"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then drop all positive numbers.", "out": "丐久万"} {"kind": "builder", "in": "丐久万", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丐久万", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "丸丘义"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "丸丘义"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "丸丘义"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "丸丘义"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "丸丘义"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "丸丘义"} {"kind": "builder", "in": "丸丘义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丸丘义", "out": "Take a list of integers; sort by absolute value, then cap each value at 10, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove both ends, then make each twice as big.", "out": "世为丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then trim the edges, then multiply each by 2.", "out": "世为丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then trim one element off each end, then make each twice as big.", "out": "世为丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off the first and last, then multiply each by 2.", "out": "世为丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the first and last elements, then make each twice as big.", "out": "世为丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the middle part, then multiply each by 2.", "out": "世为丈"} {"kind": "builder", "in": "世为丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[1:-1]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "世为丈", "out": "Take a list of integers; drop the first element, then drop the first and last elements, then double each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then arrange by magnitude ignoring sign.", "out": "么主丸"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then put them in order by magnitude.", "out": "么主丸"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then arrange in order of absolute value.", "out": "么主丸"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then sort by distance from zero.", "out": "么主丸"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then order by how far from zero.", "out": "么主丸"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then order by distance from zero.", "out": "么主丸"} {"kind": "builder", "in": "么主丸", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "么主丸", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the list around, then keep only non-zero numbers.", "out": "丏丐举"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then flip the order around, then strip the zeros.", "out": "丏丐举"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then put the elements backwards, then keep only non-zero numbers.", "out": "丏丐举"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then reverse that for me, then strip the zeros.", "out": "丏丐举"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip it backwards, then keep only non-zero numbers.", "out": "丏丐举"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then make it backwards, then strip the zeros.", "out": "丏丐举"} {"kind": "builder", "in": "丏丐举", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丏丐举", "out": "Take a list of integers; take the absolute value of each, then reverse the order, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values divisible by 3, then give the number of evens.", "out": "丈串乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "丈串乓"} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything not divisible by three, then how many are even.", "out": "丈串乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter out everything except multiples of three, then get the total number of even values in the list.", "out": "丈串乓"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only multiples of three, then give me the count of even values.", "out": "丈串乓"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiples of three only, then I need to know how many of these are even.", "out": "丈串乓"} {"kind": "builder", "in": "丈串乓", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丈串乓", "out": "Take a list of integers; double each, then keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then make every value non-negative, then give the earliest even value or zero.", "out": "七丏乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then absolute value for all items, then fetch the first even element, default to 0.", "out": "七丏乒"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take absolute values, then give the earliest even value or zero.", "out": "七丏乒"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn negatives into positives, then fetch the first even element, default to 0.", "out": "七丏乒"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then abs each element, then give the earliest even value or zero.", "out": "七丏乒"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the absolute value of each, then fetch the first even element, default to 0.", "out": "七丏乒"} {"kind": "builder", "in": "七丏乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "七丏乒", "out": "Take a list of integers; keep the positive numbers, then take the absolute value of each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then truncate to three items.", "out": "丘义丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then show the first three.", "out": "丘义丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then take the first three.", "out": "丘义丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then keep first 3.", "out": "丘义丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then truncate to first three.", "out": "丘义丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then first three.", "out": "丘义丕"} {"kind": "builder", "in": "丘义丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘义丕", "out": "Take a list of integers; cap each value at 10, then pad with zeros to at least three elements, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then default to [0] when there is nothing, then find the min, defaulting to 0.", "out": "乂么丛"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then when the list is empty, substitute a zero value, then minimum value, zero otherwise.", "out": "乂么丛"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then replace an empty list with one zero, then get the minimum value or zero if empty.", "out": "乂么丛"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then zero it out if it's empty, then give me the min or 0.", "out": "乂么丛"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then use zero if the list is empty, then return the smallest number, defaulting to 0.", "out": "乂么丛"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then default to zero when empty, then return smallest or zero if empty.", "out": "乂么丛"} {"kind": "builder", "in": "乂么丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n return min(r) if r else 0"} {"kind": "translator", "in": "乂么丛", "out": "Take a list of integers; take values while they are positive, then if empty, use a single zero, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each value by itself, then reduce each by one.", "out": "么上不"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then square them all, then Subtract 1 from all.", "out": "么上不"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then raise each to the power of two, then Subtract one from each.", "out": "么上不"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then I need each number multiplied by itself, then Drop each by one.", "out": "么上不"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then square all of them, then Decrease all values by one.", "out": "么上不"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiply each element by itself, then Remove one from each value.", "out": "么上不"} {"kind": "builder", "in": "么上不", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * x for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "么上不", "out": "Take a list of integers; if empty, use a single zero, then square each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then order by distance from zero, then give the earliest even value or zero.", "out": "丹丸乒"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "丹丸乒"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then organize by magnitude, then give the earliest even value or zero.", "out": "丹丸乒"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "丹丸乒"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "丹丸乒"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort by absolute value, then fetch the first even element, default to 0.", "out": "丹丸乒"} {"kind": "builder", "in": "丹丸乒", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丹丸乒", "out": "Take a list of integers; keep only the last three, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep the leading run of positive numbers, then bump each up by one.", "out": "丑乂下"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then take values while they are positive, then increment each item.", "out": "丑乂下"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take positive values then stop, then bump each up by one.", "out": "丑乂下"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep going while positive, then increment each item.", "out": "丑乂下"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then stop at first non positive, then bump each up by one.", "out": "丑乂下"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take while greater than zero, then increment each item.", "out": "丑乂下"} {"kind": "builder", "in": "丑乂下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丑乂下", "out": "Take a list of integers; sort ascending, then take values while they are positive, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then give the number of evens.", "out": "世举乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then find how many values are divisible by two.", "out": "世举乓"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then how many are even.", "out": "世举乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then get the total number of even values in the list.", "out": "世举乓"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then give me the count of even values.", "out": "世举乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then I need to know how many of these are even.", "out": "世举乓"} {"kind": "builder", "in": "世举乓", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "世举乓", "out": "Take a list of integers; drop the first element, then drop the zeros, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then count the elements.", "out": "丘丁东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then how many items remain.", "out": "丘丁东"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then tell me the length.", "out": "丘丁东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then return the length.", "out": "丘丁东"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then count them.", "out": "丘丁东"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then what's the count.", "out": "丘丁东"} {"kind": "builder", "in": "丘丁东", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n return len(r)"} {"kind": "translator", "in": "丘丁东", "out": "Take a list of integers; cap each value at 10, then keep the odd numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the age field from each record, then drop the odd numbers.", "out": "习九一"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then get the age field, then filter out the odd numbers.", "out": "习九一"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's age, then drop the odd numbers.", "out": "习九一"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then extract age values, then filter out the odd numbers.", "out": "习九一"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then get all the ages, then drop the odd numbers.", "out": "习九一"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then what are the ages, then filter out the odd numbers.", "out": "习九一"} {"kind": "builder", "in": "习九一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "习九一", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the ages, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then shift each up by ten.", "out": "万举丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then increase all numbers by 10.", "out": "万举丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then add 10 to everything.", "out": "万举丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then give everything a boost of 10.", "out": "万举丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then increment each by ten.", "out": "万举丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then add a constant 10 to each.", "out": "万举丽"} {"kind": "builder", "in": "万举丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "万举丽", "out": "Take a list of integers; keep the negative numbers, then drop the zeros, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values divisible by 3, then limit every value to 10.", "out": "下串丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep items where x mod 3 equals zero, then maximum of 10 for all.", "out": "下串丘"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything not divisible by three, then limit every value to 10.", "out": "下串丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter out everything except multiples of three, then maximum of 10 for all.", "out": "下串丘"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only multiples of three, then limit every value to 10.", "out": "下串丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiples of three only, then maximum of 10 for all.", "out": "下串丘"} {"kind": "builder", "in": "下串丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "下串丘", "out": "Take a list of integers; add one to each, then keep multiples of three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then deduplicate the list.", "out": "么主且"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then remove repeats.", "out": "么主且"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then deduplicate the list.", "out": "么主且"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then remove repeats.", "out": "么主且"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then deduplicate the list.", "out": "么主且"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then remove repeats.", "out": "么主且"} {"kind": "builder", "in": "么主且", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "么主且", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then extend to length 3 using zeros, then drop non-negative values.", "out": "久义万"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then pad to 3, then drop all positive numbers.", "out": "久义万"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then extend to length 3 using zeros, then drop non-negative values.", "out": "久义万"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then pad to 3, then drop all positive numbers.", "out": "久义万"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then extend to length 3 using zeros, then drop non-negative values.", "out": "久义万"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then pad to 3, then drop all positive numbers.", "out": "久义万"} {"kind": "builder", "in": "久义万", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "久义万", "out": "Take a list of integers; keep everything before the first zero, then pad with zeros to at least three elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything 5 or below, then strip the signs.", "out": "一主丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only numbers greater than 5, then take abs of each.", "out": "一主丏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then filter for numbers above 5, then get the absolute value of everything.", "out": "一主丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me values where x is greater than 5, then apply absolute value to the whole list.", "out": "一主丏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then show me only the values that are bigger than five, then make them all positive.", "out": "一主丏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep values greater than five, then make every value non-negative.", "out": "一主丏"} {"kind": "builder", "in": "一主丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "一主丏", "out": "Take a list of integers; keep the even numbers, then keep values greater than five, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then flip the sign of each, then raise each to the power of two.", "out": "丕与上"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then turn positives to negatives and vice versa, then I need each number multiplied by itself.", "out": "丕与上"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then flip the sign of each, then square all of them.", "out": "丕与上"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn positives to negatives and vice versa, then multiply each element by itself.", "out": "丕与上"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then flip the sign of each, then make each one squared.", "out": "丕与上"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then turn positives to negatives and vice versa, then square each value in the list.", "out": "丕与上"} {"kind": "builder", "in": "丕与上", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [-x for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丕与上", "out": "Take a list of integers; keep only the first three, then negate each, then square each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values above zero, then true if any value equals zero.", "out": "丸七乍"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then filter for positive numbers, then check for zero.", "out": "丸七乍"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only positive numbers, then true if any value equals zero.", "out": "丸七乍"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the positives, then check for zero.", "out": "丸七乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove negatives, then true if any value equals zero.", "out": "丸七乍"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep the positive numbers, then check for zero.", "out": "丸七乍"} {"kind": "builder", "in": "丸七乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return 0 in r"} {"kind": "translator", "in": "丸七乍", "out": "Take a list of integers; sort by absolute value, then keep the positive numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort smallest to largest, then bump each up by one.", "out": "么丑下"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Ascending sort, then increment each item.", "out": "么丑下"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then Sort this ascending, then bump each up by one.", "out": "么丑下"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Sort lowest to highest, then increment each item.", "out": "么丑下"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Arrange from smallest to largest, then bump each up by one.", "out": "么丑下"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort ascending, then increment each item.", "out": "么丑下"} {"kind": "builder", "in": "么丑下", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r)\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "么丑下", "out": "Take a list of integers; if empty, use a single zero, then sort ascending, then add one to each."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then add '#' to the start of each string, then find how long the longest string is.", "out": "丢乘乜"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then make each one start with a hash, then give the length of the longest string in the list.", "out": "丢乘乜"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then add '#' to the start of each string, then get me the longest string's length.", "out": "丢乘乜"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then make each one start with a hash, then give the maximum string length.", "out": "丢乘乜"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then add '#' to the start of each string, then max length of all strings.", "out": "丢乘乜"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then make each one start with a hash, then what's the max string length.", "out": "丢乘乜"} {"kind": "builder", "in": "丢乘乜", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = ['#' + s for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丢乘乜", "out": "Take a list of strings; trim whitespace from each, then prefix each with a hash, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then clamp each to at most ten, then raise each to the power of two.", "out": "乂丘上"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then don't let anything exceed 10, then I need each number multiplied by itself.", "out": "乂丘上"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then clamp each to at most ten, then square all of them.", "out": "乂丘上"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then don't let anything exceed 10, then multiply each element by itself.", "out": "乂丘上"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then clamp each to at most ten, then make each one squared.", "out": "乂丘上"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then don't let anything exceed 10, then square each value in the list.", "out": "乂丘上"} {"kind": "builder", "in": "乂丘上", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "乂丘上", "out": "Take a list of integers; take values while they are positive, then cap each value at 10, then square each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then cut the list at the first zero, then drop non-positive values.", "out": "与久七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off after the first zero appears, then drop the negative numbers.", "out": "与久七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take values up to (excluding) the first zero, then filter out the negative ones.", "out": "与久七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the part before the first 0, then remove all negative values.", "out": "与久七"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate at the first zero, then keep positive values only.", "out": "与久七"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then delete everything starting with the first zero, then keep values above zero.", "out": "与久七"} {"kind": "builder", "in": "与久七", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "与久七", "out": "Take a list of integers; negate each, then keep everything before the first zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each by two, then keep only non-zero numbers.", "out": "么丈举"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then double each item in the list, then strip the zeros.", "out": "么丈举"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then multiply each by two, then keep only non-zero numbers.", "out": "么丈举"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then double each item in the list, then strip the zeros.", "out": "么丈举"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then multiply each by two, then keep only non-zero numbers.", "out": "么丈举"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then double each item in the list, then strip the zeros.", "out": "么丈举"} {"kind": "builder", "in": "么丈举", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "么丈举", "out": "Take a list of integers; if empty, use a single zero, then double each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then extend to length 3 using zeros, then raise each to the power of two.", "out": "乃义上"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then pad to 3, then I need each number multiplied by itself.", "out": "乃义上"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then extend to length 3 using zeros, then square all of them.", "out": "乃义上"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then pad to 3, then multiply each element by itself.", "out": "乃义上"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then extend to length 3 using zeros, then make each one squared.", "out": "乃义上"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then pad to 3, then square each value in the list.", "out": "乃义上"} {"kind": "builder", "in": "乃义上", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "乃义上", "out": "Take a list of integers; drop the leading negative values, then pad with zeros to at least three elements, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then take the final 3 elements, then skip the first one.", "out": "串丹世"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then drop everything except the final three, then Discard the first element.", "out": "串丹世"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then give me the last three elements, then skip the first one.", "out": "串丹世"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep only the last three, then Discard the first element.", "out": "串丹世"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep the final three items, then skip the first one.", "out": "串丹世"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the last three, then Discard the first element.", "out": "串丹世"} {"kind": "builder", "in": "串丹世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[-3:]\n r = r[1:]\n return r"} {"kind": "translator", "in": "串丹世", "out": "Take a list of integers; keep multiples of three, then keep only the last three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then ensure at least three items by appending zeros.", "out": "且丈义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then ensure minimum length of three by adding zeros to the end.", "out": "且丈义"} {"kind": "builder", "in": "且丈义", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "且丈义", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then keep only non-zero numbers.", "out": "主世举"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then strip the zeros.", "out": "主世举"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then keep only non-zero numbers.", "out": "主世举"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then strip the zeros.", "out": "主世举"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then keep only non-zero numbers.", "out": "主世举"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then strip the zeros.", "out": "主世举"} {"kind": "builder", "in": "主世举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "主世举", "out": "Take a list of integers; keep values greater than five, then drop the first element, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then drop the odd numbers.", "out": "丽乂一"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then filter out the odd numbers.", "out": "丽乂一"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then drop the odd numbers.", "out": "丽乂一"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then filter out the odd numbers.", "out": "丽乂一"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then drop the odd numbers.", "out": "丽乂一"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then filter out the odd numbers.", "out": "丽乂一"} {"kind": "builder", "in": "丽乂一", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丽乂一", "out": "Take a list of integers; add ten to each, then take values while they are positive, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then drop the odd numbers.", "out": "义丘一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then filter out the odd numbers.", "out": "义丘一"} {"kind": "builder", "in": "义丘一", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "义丘一", "out": "Take a list of integers; pad with zeros to at least three elements, then cap each value at 10, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values above zero, then true only if all are positive.", "out": "上七乌"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then filter for positive numbers, then do all of these have positive values.", "out": "上七乌"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only positive numbers, then check if every value is positive.", "out": "上七乌"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the positives, then confirm all values are positive.", "out": "上七乌"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove negatives, then all positive.", "out": "上七乌"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep the positive numbers, then check if every number is above zero.", "out": "上七乌"} {"kind": "builder", "in": "上七乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "上七乌", "out": "Take a list of integers; square each, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest to smallest, then limit every value to 10.", "out": "一专丘"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by descending values, then maximum of 10 for all.", "out": "一专丘"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from highest to lowest, then limit every value to 10.", "out": "一专丘"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort descending, then maximum of 10 for all.", "out": "一专丘"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort largest first, then limit every value to 10.", "out": "一专丘"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort in descending order, then maximum of 10 for all.", "out": "一专丘"} {"kind": "builder", "in": "一专丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "一专丘", "out": "Take a list of integers; keep the even numbers, then sort descending, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove both ends, then true if at least one even value.", "out": "上为之"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then trim the edges, then any even.", "out": "上为之"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then trim one element off each end, then true if at least one even value.", "out": "上为之"} {"kind": "speaker", "in": "Take a list of integers; square them all, then cut off the first and last, then any even.", "out": "上为之"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove the first and last elements, then true if at least one even value.", "out": "上为之"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep only the middle part, then any even.", "out": "上为之"} {"kind": "builder", "in": "上为之", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[1:-1]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "上为之", "out": "Take a list of integers; square each, then drop the first and last elements, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the final 3 elements, then give back the product of all values.", "out": "一丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop everything except the final three, then product of the list.", "out": "一丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then give me the last three elements, then what's the product.", "out": "一丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the last three, then what do they multiply to.", "out": "一丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the final three items, then give me their product.", "out": "一丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the last three, then multiply them all together.", "out": "一丹乐"} {"kind": "builder", "in": "一丹乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "一丹乐", "out": "Take a list of integers; keep the even numbers, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the first 3 elements, then keep only numbers above 5.", "out": "么丕主"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove everything after the third, then exclude values of 5 and below.", "out": "么丕主"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then truncate to three items, then remove anything 5 or less.", "out": "么丕主"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then show the first three, then filter to keep only values above 5.", "out": "么丕主"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then take the first three, then get rid of values that aren't greater than five.", "out": "么丕主"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep first 3, then drop anything 5 or below.", "out": "么丕主"} {"kind": "builder", "in": "么丕主", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:3]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "么丕主", "out": "Take a list of integers; if empty, use a single zero, then keep only the first three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then take the first 3 elements, then give the earliest even value or zero.", "out": "丸丕乒"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove everything after the third, then fetch the first even element, default to 0.", "out": "丸丕乒"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then truncate to three items, then give the earliest even value or zero.", "out": "丸丕乒"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then show the first three, then fetch the first even element, default to 0.", "out": "丸丕乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then take the first three, then give the earliest even value or zero.", "out": "丸丕乒"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep first 3, then fetch the first even element, default to 0.", "out": "丸丕乒"} {"kind": "builder", "in": "丸丕乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:3]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丸丕乒", "out": "Take a list of integers; sort by absolute value, then keep only the first three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove repeated values, then bump each up by one.", "out": "丸且下"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then unique values preserving order, then increment each item.", "out": "丸且下"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove repeated values, then bump each up by one.", "out": "丸且下"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then unique values preserving order, then increment each item.", "out": "丸且下"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove repeated values, then bump each up by one.", "out": "丸且下"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then unique values preserving order, then increment each item.", "out": "丸且下"} {"kind": "builder", "in": "丸且下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丸且下", "out": "Take a list of integers; sort by absolute value, then drop duplicates keeping first occurrence, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then find the max, defaulting to 0.", "out": "丈世业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then Give me the maximum, but 0 if there are no items.", "out": "丈世业"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then What's the highest number in the list.", "out": "丈世业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then Return the greatest value or default to 0.", "out": "丈世业"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then Find the largest element, defaulting to zero.", "out": "丈世业"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then give the largest value (0 if none).", "out": "丈世业"} {"kind": "builder", "in": "丈世业", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:]\n return max(r) if r else 0"} {"kind": "translator", "in": "丈世业", "out": "Take a list of integers; double each, then drop the first element, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first 3 elements, then find the min, defaulting to 0.", "out": "下丕丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove everything after the third, then minimum value, zero otherwise.", "out": "下丕丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate to three items, then get the minimum value or zero if empty.", "out": "下丕丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then show the first three, then give me the min or 0.", "out": "下丕丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first three, then return the smallest number, defaulting to 0.", "out": "下丕丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep first 3, then return smallest or zero if empty.", "out": "下丕丛"} {"kind": "builder", "in": "下丕丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:3]\n return min(r) if r else 0"} {"kind": "translator", "in": "下丕丛", "out": "Take a list of integers; add one to each, then keep only the first three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero, then remove the initial run of negative numbers.", "out": "世久乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears, then strip the front negatives.", "out": "世久乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero, then remove leading negative numbers.", "out": "世久乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0, then drop negatives from start.", "out": "世久乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero, then strip negative values from the start.", "out": "世久乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero, then remove negatives before the first non-negative.", "out": "世久乃"} {"kind": "builder", "in": "世久乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "世久乃", "out": "Take a list of integers; drop the first element, then keep everything before the first zero, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the list around, then drop non-negative values.", "out": "乃丐万"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then flip the order around, then drop all positive numbers.", "out": "乃丐万"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then put the elements backwards, then drop non-negative values.", "out": "乃丐万"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then reverse that for me, then drop all positive numbers.", "out": "乃丐万"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip it backwards, then drop non-negative values.", "out": "乃丐万"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then make it backwards, then drop all positive numbers.", "out": "乃丐万"} {"kind": "builder", "in": "乃丐万", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "乃丐万", "out": "Take a list of integers; drop the leading negative values, then reverse the order, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then drop anything not divisible by three.", "out": "丁一串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then filter out everything except multiples of three.", "out": "丁一串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then keep only multiples of three.", "out": "丁一串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then multiples of three only.", "out": "丁一串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only even values, then filter for numbers divisible by three.", "out": "丁一串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then extract all even numbers, then give me only the values divisible by three.", "out": "丁一串"} {"kind": "builder", "in": "丁一串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丁一串", "out": "Take a list of integers; keep the odd numbers, then keep the even numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then order strings from shortest to longest, then return the number of strings.", "out": "乖严丫"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then shortest to longest, then count the strings.", "out": "乖严丫"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then arrange by string length ascending, then return how many strings remain.", "out": "乖严丫"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then length sort, then give me the total number of strings.", "out": "乖严丫"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then sort by length shortest first, then tell me how many strings we have.", "out": "乖严丫"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then organize by string length least to greatest, then what's the string count.", "out": "乖严丫"} {"kind": "builder", "in": "乖严丫", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=len)\n return len(r)"} {"kind": "translator", "in": "乖严丫", "out": "Take a list of strings; sort alphabetically, then sort by length, shortest first, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values divisible by 3, then drop non-negative values.", "out": "为串万"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then keep items where x mod 3 equals zero, then drop all positive numbers.", "out": "为串万"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then drop anything not divisible by three, then drop non-negative values.", "out": "为串万"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then filter out everything except multiples of three, then drop all positive numbers.", "out": "为串万"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only multiples of three, then drop non-negative values.", "out": "为串万"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiples of three only, then drop all positive numbers.", "out": "为串万"} {"kind": "builder", "in": "为串万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "为串万", "out": "Take a list of integers; drop the first and last elements, then keep multiples of three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only even values, then make each twice as big.", "out": "为一丈"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then extract all even numbers, then multiply each by 2.", "out": "为一丈"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only even values, then make each twice as big.", "out": "为一丈"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then extract all even numbers, then multiply each by 2.", "out": "为一丈"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only even values, then make each twice as big.", "out": "为一丈"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then extract all even numbers, then multiply each by 2.", "out": "为一丈"} {"kind": "builder", "in": "为一丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "为一丈", "out": "Take a list of integers; drop the first and last elements, then keep the even numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove all zero values, then truncate to the last three items.", "out": "丐举丹"} {"kind": "speaker", "in": "Take a list of integers; reverse, then exclude zeros, then show only the last three.", "out": "丐举丹"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove all zero values, then remove all but the last three.", "out": "丐举丹"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then exclude zeros, then take the final 3 elements.", "out": "丐举丹"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove all zero values, then drop everything except the final three.", "out": "丐举丹"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then exclude zeros, then give me the last three elements.", "out": "丐举丹"} {"kind": "builder", "in": "丐举丹", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丐举丹", "out": "Take a list of integers; reverse the order, then drop the zeros, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then default to [0] when there is nothing, then true only if all are positive.", "out": "久么乌"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then when the list is empty, substitute a zero value, then do all of these have positive values.", "out": "久么乌"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then replace an empty list with one zero, then check if every value is positive.", "out": "久么乌"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then zero it out if it's empty, then confirm all values are positive.", "out": "久么乌"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then use zero if the list is empty, then all positive.", "out": "久么乌"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then default to zero when empty, then check if every number is above zero.", "out": "久么乌"} {"kind": "builder", "in": "久么乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r if r else [0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "久么乌", "out": "Take a list of integers; keep everything before the first zero, then if empty, use a single zero, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then default to [0] when there is nothing, then bump each up by one.", "out": "七么下"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then when the list is empty, substitute a zero value, then increment each item.", "out": "七么下"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then replace an empty list with one zero, then bump each up by one.", "out": "七么下"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then zero it out if it's empty, then increment each item.", "out": "七么下"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then use zero if the list is empty, then bump each up by one.", "out": "七么下"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then default to zero when empty, then increment each item.", "out": "七么下"} {"kind": "builder", "in": "七么下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "七么下", "out": "Take a list of integers; keep the positive numbers, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then extend to length 3 using zeros, then stop at the first non-positive value.", "out": "丸义乂"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then pad to 3, then keep the leading run of positive numbers.", "out": "丸义乂"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then extend to length 3 using zeros, then take values while they are positive.", "out": "丸义乂"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then pad to 3, then take positive values then stop.", "out": "丸义乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then extend to length 3 using zeros, then keep going while positive.", "out": "丸义乂"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then pad to 3, then stop at first non positive.", "out": "丸义乂"} {"kind": "builder", "in": "丸义乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丸义乂", "out": "Take a list of integers; sort by absolute value, then pad with zeros to at least three elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove the first item, then give back the total.", "out": "丹世丙"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Remove head, then sum r.", "out": "丹世丙"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the first item, then add them up.", "out": "丹世丙"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Remove head, then calculate the sum of all elements.", "out": "丹世丙"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first item, then what's the total.", "out": "丹世丙"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Remove head, then what do they add up to.", "out": "丹世丙"} {"kind": "builder", "in": "丹世丙", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:]\n return sum(r)"} {"kind": "translator", "in": "丹世丙", "out": "Take a list of integers; keep only the last three, then drop the first element, then return their sum."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep the leading run of positive numbers, then bump each up by one.", "out": "九乂下"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then take values while they are positive, then increment each item.", "out": "九乂下"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take positive values then stop, then bump each up by one.", "out": "九乂下"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep going while positive, then increment each item.", "out": "九乂下"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then stop at first non positive, then bump each up by one.", "out": "九乂下"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take while greater than zero, then increment each item.", "out": "九乂下"} {"kind": "builder", "in": "九乂下", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "九乂下", "out": "Take a list of people records (name, age); extract the ages, then take values while they are positive, then add one to each."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order strings from shortest to longest, then count characters across all strings.", "out": "丞严个"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then shortest to longest, then character count.", "out": "丞严个"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then arrange by string length ascending, then count all the characters.", "out": "丞严个"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then length sort, then total number of characters.", "out": "丞严个"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then sort by length shortest first, then what's the total character count.", "out": "丞严个"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then organize by string length least to greatest, then add up the lengths.", "out": "丞严个"} {"kind": "builder", "in": "丞严个", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = sorted(r, key=len)\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "丞严个", "out": "Take a list of strings; lowercase each string, then sort by length, shortest first, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort smallest to largest, then find the max, defaulting to 0.", "out": "九丑业"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Ascending sort, then Give me the maximum, but 0 if there are no items.", "out": "九丑业"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then Sort this ascending, then What's the highest number in the list.", "out": "九丑业"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Sort lowest to highest, then Return the greatest value or default to 0.", "out": "九丑业"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Arrange from smallest to largest, then Find the largest element, defaulting to zero.", "out": "九丑业"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort ascending, then give the largest value (0 if none).", "out": "九丑业"} {"kind": "builder", "in": "九丑业", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r)\n return max(r) if r else 0"} {"kind": "translator", "in": "九丑业", "out": "Take a list of people records (name, age); extract the ages, then sort ascending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then drop anything not divisible by three.", "out": "丹久串"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then filter out everything except multiples of three.", "out": "丹久串"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then keep only multiples of three.", "out": "丹久串"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then multiples of three only.", "out": "丹久串"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then filter for numbers divisible by three.", "out": "丹久串"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then give me only the values divisible by three.", "out": "丹久串"} {"kind": "builder", "in": "丹久串", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丹久串", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each value by itself, then give back the total.", "out": "世上丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then square them all, then sum r.", "out": "世上丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then raise each to the power of two, then add them up.", "out": "世上丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then I need each number multiplied by itself, then calculate the sum of all elements.", "out": "世上丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then square all of them, then what's the total.", "out": "世上丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiply each element by itself, then what do they add up to.", "out": "世上丙"} {"kind": "builder", "in": "世上丙", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * x for x in r]\n return sum(r)"} {"kind": "translator", "in": "世上丙", "out": "Take a list of integers; drop the first element, then square each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increase every value by 10, then deduplicate the list.", "out": "丐丽且"} {"kind": "speaker", "in": "Take a list of integers; reverse, then add 10 to each item, then remove repeats.", "out": "丐丽且"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then shift each up by ten, then deduplicate the list.", "out": "丐丽且"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then increase all numbers by 10, then remove repeats.", "out": "丐丽且"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then add 10 to everything, then deduplicate the list.", "out": "丐丽且"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give everything a boost of 10, then remove repeats.", "out": "丐丽且"} {"kind": "builder", "in": "丐丽且", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丐丽且", "out": "Take a list of integers; reverse the order, then add ten to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each value by itself, then limit every value to 10.", "out": "乂上丘"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then square them all, then maximum of 10 for all.", "out": "乂上丘"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then raise each to the power of two, then limit every value to 10.", "out": "乂上丘"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then I need each number multiplied by itself, then maximum of 10 for all.", "out": "乂上丘"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then square all of them, then limit every value to 10.", "out": "乂上丘"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiply each element by itself, then maximum of 10 for all.", "out": "乂上丘"} {"kind": "builder", "in": "乂上丘", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "乂上丘", "out": "Take a list of integers; take values while they are positive, then square each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the sign of each, then arrange by magnitude ignoring sign.", "out": "丏与丸"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then turn positives to negatives and vice versa, then put them in order by magnitude.", "out": "丏与丸"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then flip the sign of each, then arrange in order of absolute value.", "out": "丏与丸"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then turn positives to negatives and vice versa, then sort by distance from zero.", "out": "丏与丸"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip the sign of each, then order by how far from zero.", "out": "丏与丸"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then turn positives to negatives and vice versa, then order by distance from zero.", "out": "丏与丸"} {"kind": "builder", "in": "丏与丸", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [-x for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丏与丸", "out": "Take a list of integers; take the absolute value of each, then negate each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around, then trim one element off each end.", "out": "下丐为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around, then cut off the first and last.", "out": "下丐为"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards, then remove the first and last elements.", "out": "下丐为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me, then keep only the middle part.", "out": "下丐为"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards, then drop first and last.", "out": "下丐为"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards, then eliminate the outermost elements.", "out": "下丐为"} {"kind": "builder", "in": "下丐为", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "下丐为", "out": "Take a list of integers; add one to each, then reverse the order, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only even values, then raise each to the power of two.", "out": "义一上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then extract all even numbers, then I need each number multiplied by itself.", "out": "义一上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only even values, then square all of them.", "out": "义一上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then extract all even numbers, then multiply each element by itself.", "out": "义一上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only even values, then make each one squared.", "out": "义一上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then extract all even numbers, then square each value in the list.", "out": "义一上"} {"kind": "builder", "in": "义一上", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "义一上", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the even numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then truncate to the last three items.", "out": "万为丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then show only the last three.", "out": "万为丹"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then remove all but the last three.", "out": "万为丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then take the final 3 elements.", "out": "万为丹"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then drop everything except the final three.", "out": "万为丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then give me the last three elements.", "out": "万为丹"} {"kind": "builder", "in": "万为丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "万为丹", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then remove the initial run of negative numbers.", "out": "丹万乃"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then strip the front negatives.", "out": "丹万乃"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then remove leading negative numbers.", "out": "丹万乃"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then drop negatives from start.", "out": "丹万乃"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then strip negative values from the start.", "out": "丹万乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then remove negatives before the first non-negative.", "out": "丹万乃"} {"kind": "builder", "in": "丹万乃", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丹万乃", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丑丘乒"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丑丘乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丑丘乒"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丑丘乒"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then give the earliest even value or zero.", "out": "丑丘乒"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "丑丘乒"} {"kind": "builder", "in": "丑丘乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丑丘乒", "out": "Take a list of integers; sort ascending, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each value by itself, then arrange in increasing order.", "out": "为上丑"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then square them all, then Organize these ascending.", "out": "为上丑"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then raise each to the power of two, then Sort in ascending order.", "out": "为上丑"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then I need each number multiplied by itself, then I need this sorted ascending.", "out": "为上丑"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then square all of them, then Put these in ascending order.", "out": "为上丑"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiply each element by itself, then sort smallest to largest.", "out": "为上丑"} {"kind": "builder", "in": "为上丑", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "为上丑", "out": "Take a list of integers; drop the first and last elements, then square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then trim one element off each end.", "out": "丈与为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then cut off the first and last.", "out": "丈与为"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then remove the first and last elements.", "out": "丈与为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then keep only the middle part.", "out": "丈与为"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then drop first and last.", "out": "丈与为"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then eliminate the outermost elements.", "out": "丈与为"} {"kind": "builder", "in": "丈与为", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [-x for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丈与为", "out": "Take a list of integers; double each, then negate each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep the leading run of positive numbers, then raise each to the power of two.", "out": "九乂上"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then take values while they are positive, then I need each number multiplied by itself.", "out": "九乂上"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take positive values then stop, then square all of them.", "out": "九乂上"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep going while positive, then multiply each element by itself.", "out": "九乂上"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then stop at first non positive, then make each one squared.", "out": "九乂上"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take while greater than zero, then square each value in the list.", "out": "九乂上"} {"kind": "builder", "in": "九乂上", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "九乂上", "out": "Take a list of people records (name, age); extract the ages, then take values while they are positive, then square each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then skip negatives at the start, then arrange in decreasing order.", "out": "丘乃专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then remove all negatives at the front, then arrange in descending order.", "out": "丘乃专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the initial run of negative numbers, then reverse sort.", "out": "丘乃专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then strip the front negatives, then sort largest to smallest.", "out": "丘乃专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove leading negative numbers, then sort by descending values.", "out": "丘乃专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop negatives from start, then sort from highest to lowest.", "out": "丘乃专"} {"kind": "builder", "in": "丘乃专", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丘乃专", "out": "Take a list of integers; cap each value at 10, then drop the leading negative values, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then clamp each to at most ten, then true if any value equals zero.", "out": "丏丘乍"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then don't let anything exceed 10, then check for zero.", "out": "丏丘乍"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then clamp each to at most ten, then true if any value equals zero.", "out": "丏丘乍"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then don't let anything exceed 10, then check for zero.", "out": "丏丘乍"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then clamp each to at most ten, then true if any value equals zero.", "out": "丏丘乍"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then don't let anything exceed 10, then check for zero.", "out": "丏丘乍"} {"kind": "builder", "in": "丏丘乍", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [min(x, 10) for x in r]\n return 0 in r"} {"kind": "translator", "in": "丏丘乍", "out": "Take a list of integers; take the absolute value of each, then cap each value at 10, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increment each value, then limit every value to 10.", "out": "乃下丘"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then plus one for all, then maximum of 10 for all.", "out": "乃下丘"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then increment each value, then limit every value to 10.", "out": "乃下丘"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then plus one for all, then maximum of 10 for all.", "out": "乃下丘"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then increment each value, then limit every value to 10.", "out": "乃下丘"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then plus one for all, then maximum of 10 for all.", "out": "乃下丘"} {"kind": "builder", "in": "乃下丘", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "乃下丘", "out": "Take a list of integers; drop the leading negative values, then add one to each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then keep only numbers above 5.", "out": "万举主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then exclude values of 5 and below.", "out": "万举主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then remove anything 5 or less.", "out": "万举主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then filter to keep only values above 5.", "out": "万举主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then get rid of values that aren't greater than five.", "out": "万举主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then drop anything 5 or below.", "out": "万举主"} {"kind": "builder", "in": "万举主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "万举主", "out": "Take a list of integers; keep the negative numbers, then drop the zeros, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then clamp each to at most ten, then truncate to three items.", "out": "丸丘丕"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then don't let anything exceed 10, then show the first three.", "out": "丸丘丕"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then clamp each to at most ten, then take the first three.", "out": "丸丘丕"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then don't let anything exceed 10, then keep first 3.", "out": "丸丘丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then clamp each to at most ten, then truncate to first three.", "out": "丸丘丕"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then don't let anything exceed 10, then first three.", "out": "丸丘丕"} {"kind": "builder", "in": "丸丘丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丸丘丕", "out": "Take a list of integers; sort by absolute value, then cap each value at 10, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then drop anything not divisible by three.", "out": "世丘串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then filter out everything except multiples of three.", "out": "世丘串"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then keep only multiples of three.", "out": "世丘串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then multiples of three only.", "out": "世丘串"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then filter for numbers divisible by three.", "out": "世丘串"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then give me only the values divisible by three.", "out": "世丘串"} {"kind": "builder", "in": "世丘串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "世丘串", "out": "Take a list of integers; drop the first element, then cap each value at 10, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then multiply each by -1.", "out": "丘万与"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then negate.", "out": "丘万与"} {"kind": "builder", "in": "丘万与", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丘万与", "out": "Take a list of integers; cap each value at 10, then keep the negative numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then give back the total.", "out": "丕丸丙"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then sum r.", "out": "丕丸丙"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then add them up.", "out": "丕丸丙"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then calculate the sum of all elements.", "out": "丕丸丙"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then what's the total.", "out": "丕丸丙"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then what do they add up to.", "out": "丕丸丙"} {"kind": "builder", "in": "丕丸丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n return sum(r)"} {"kind": "translator", "in": "丕丸丙", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove both ends, then take values up to (excluding) the first zero.", "out": "举为久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then trim the edges, then keep the part before the first 0.", "out": "举为久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then trim one element off each end, then truncate at the first zero.", "out": "举为久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off the first and last, then delete everything starting with the first zero.", "out": "举为久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first and last elements, then remove from the first zero onwards.", "out": "举为久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the middle part, then up to but not including the first zero.", "out": "举为久"} {"kind": "builder", "in": "举为久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "举为久", "out": "Take a list of integers; drop the zeros, then drop the first and last elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then deduplicate the list.", "out": "串丐且"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then remove repeats.", "out": "串丐且"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then deduplicate the list.", "out": "串丐且"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then remove repeats.", "out": "串丐且"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then deduplicate the list.", "out": "串丐且"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then remove repeats.", "out": "串丐且"} {"kind": "builder", "in": "串丐且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "串丐且", "out": "Take a list of integers; keep multiples of three, then reverse the order, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increase every value by 10, then put the elements backwards.", "out": "丘丽丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then add 10 to each item, then reverse that for me.", "out": "丘丽丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then shift each up by ten, then flip it backwards.", "out": "丘丽丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then increase all numbers by 10, then make it backwards.", "out": "丘丽丐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then add 10 to everything, then reverse the list.", "out": "丘丽丐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give everything a boost of 10, then invert the sequence.", "out": "丘丽丐"} {"kind": "builder", "in": "丘丽丐", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丘丽丐", "out": "Take a list of integers; cap each value at 10, then add ten to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort largest to smallest, then give back the product of all values.", "out": "丕专乐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort by descending values, then product of the list.", "out": "丕专乐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then sort from highest to lowest, then what's the product.", "out": "丕专乐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sort descending, then what do they multiply to.", "out": "丕专乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort largest first, then give me their product.", "out": "丕专乐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort in descending order, then multiply them all together.", "out": "丕专乐"} {"kind": "builder", "in": "丕专乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, reverse=True)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丕专乐", "out": "Take a list of integers; keep only the first three, then sort descending, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the list around, then give back the total.", "out": "乃丐丙"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then flip the order around, then sum r.", "out": "乃丐丙"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then put the elements backwards, then add them up.", "out": "乃丐丙"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then reverse that for me, then calculate the sum of all elements.", "out": "乃丐丙"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip it backwards, then what's the total.", "out": "乃丐丙"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then make it backwards, then what do they add up to.", "out": "乃丐丙"} {"kind": "builder", "in": "乃丐丙", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n return sum(r)"} {"kind": "translator", "in": "乃丐丙", "out": "Take a list of integers; drop the leading negative values, then reverse the order, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the final 3 elements, then skip the first one.", "out": "么丹世"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then drop everything except the final three, then Discard the first element.", "out": "么丹世"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then give me the last three elements, then skip the first one.", "out": "么丹世"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep only the last three, then Discard the first element.", "out": "么丹世"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep the final three items, then skip the first one.", "out": "么丹世"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the last three, then Discard the first element.", "out": "么丹世"} {"kind": "builder", "in": "么丹世", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[-3:]\n r = r[1:]\n return r"} {"kind": "translator", "in": "么丹世", "out": "Take a list of integers; if empty, use a single zero, then keep only the last three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove repeated values, then true only if all are positive.", "out": "不且乌"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then unique values preserving order, then do all of these have positive values.", "out": "不且乌"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove repeated values, then check if every value is positive.", "out": "不且乌"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then unique values preserving order, then confirm all values are positive.", "out": "不且乌"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove repeated values, then all positive.", "out": "不且乌"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then unique values preserving order, then check if every number is above zero.", "out": "不且乌"} {"kind": "builder", "in": "不且乌", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(dict.fromkeys(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "不且乌", "out": "Take a list of integers; subtract one from each, then drop duplicates keeping first occurrence, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then extend to length 3 using zeros, then give back the product of all values.", "out": "丏义乐"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then pad to 3, then product of the list.", "out": "丏义乐"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then extend to length 3 using zeros, then what's the product.", "out": "丏义乐"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then pad to 3, then what do they multiply to.", "out": "丏义乐"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then extend to length 3 using zeros, then give me their product.", "out": "丏义乐"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then pad to 3, then multiply them all together.", "out": "丏义乐"} {"kind": "builder", "in": "丏义乐", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丏义乐", "out": "Take a list of integers; take the absolute value of each, then pad with zeros to at least three elements, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then flip the list around, then ensure at least three items by appending zeros.", "out": "丹丐义"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then flip the order around, then ensure minimum length of three by adding zeros to the end.", "out": "丹丐义"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then put the elements backwards, then ensure at least three items by appending zeros.", "out": "丹丐义"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then reverse that for me, then ensure minimum length of three by adding zeros to the end.", "out": "丹丐义"} {"kind": "speaker", "in": "Take a list of integers; last three only, then flip it backwards, then ensure at least three items by appending zeros.", "out": "丹丐义"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then make it backwards, then ensure minimum length of three by adding zeros to the end.", "out": "丹丐义"} {"kind": "builder", "in": "丹丐义", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丹丐义", "out": "Take a list of integers; keep only the last three, then reverse the order, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then keep only numbers above 5.", "out": "万为主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then exclude values of 5 and below.", "out": "万为主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then remove anything 5 or less.", "out": "万为主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then filter to keep only values above 5.", "out": "万为主"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then get rid of values that aren't greater than five.", "out": "万为主"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then drop anything 5 or below.", "out": "万为主"} {"kind": "builder", "in": "万为主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "万为主", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then raise each to the power of two.", "out": "举乂上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then I need each number multiplied by itself.", "out": "举乂上"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then square all of them.", "out": "举乂上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then multiply each element by itself.", "out": "举乂上"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then make each one squared.", "out": "举乂上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then square each value in the list.", "out": "举乂上"} {"kind": "builder", "in": "举乂上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "举乂上", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then extend to length 3 using zeros, then shift each up by ten.", "out": "丕义丽"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then pad to 3, then increase all numbers by 10.", "out": "丕义丽"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then extend to length 3 using zeros, then add 10 to everything.", "out": "丕义丽"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then pad to 3, then give everything a boost of 10.", "out": "丕义丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then extend to length 3 using zeros, then increment each by ten.", "out": "丕义丽"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then pad to 3, then add a constant 10 to each.", "out": "丕义丽"} {"kind": "builder", "in": "丕义丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丕义丽", "out": "Take a list of integers; keep only the first three, then pad with zeros to at least three elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then default to [0] when there is nothing, then find the max, defaulting to 0.", "out": "丁么业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then when the list is empty, substitute a zero value, then Give me the maximum, but 0 if there are no items.", "out": "丁么业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then replace an empty list with one zero, then What's the highest number in the list.", "out": "丁么业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then zero it out if it's empty, then Return the greatest value or default to 0.", "out": "丁么业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then use zero if the list is empty, then Find the largest element, defaulting to zero.", "out": "丁么业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then default to zero when empty, then give the largest value (0 if none).", "out": "丁么业"} {"kind": "builder", "in": "丁么业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r if r else [0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丁么业", "out": "Take a list of integers; keep the odd numbers, then if empty, use a single zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero, then replace an empty list with one zero.", "out": "乂丸么"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value, then zero it out if it's empty.", "out": "乂丸么"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude, then use zero if the list is empty.", "out": "乂丸么"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending, then default to zero when empty.", "out": "乂丸么"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value, then if there's nothing, put in a zero.", "out": "乂丸么"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value, then if no items, add a zero.", "out": "乂丸么"} {"kind": "builder", "in": "乂丸么", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "乂丸么", "out": "Take a list of integers; take values while they are positive, then sort by absolute value, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then give the earliest even value or zero.", "out": "下丽乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then fetch the first even element, default to 0.", "out": "下丽乒"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then give the earliest even value or zero.", "out": "下丽乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then fetch the first even element, default to 0.", "out": "下丽乒"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then give the earliest even value or zero.", "out": "下丽乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then fetch the first even element, default to 0.", "out": "下丽乒"} {"kind": "builder", "in": "下丽乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "下丽乒", "out": "Take a list of integers; add one to each, then add ten to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort largest to smallest, then put the elements backwards.", "out": "丹专丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort by descending values, then reverse that for me.", "out": "丹专丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then sort from highest to lowest, then flip it backwards.", "out": "丹专丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then sort descending, then make it backwards.", "out": "丹专丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort largest first, then reverse the list.", "out": "丹专丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort in descending order, then invert the sequence.", "out": "丹专丐"} {"kind": "builder", "in": "丹专丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, reverse=True)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹专丐", "out": "Take a list of integers; keep only the last three, then sort descending, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements, then drop the even numbers.", "out": "义丹丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three, then strip out the evens.", "out": "义丹丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements, then drop the even numbers.", "out": "义丹丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three, then strip out the evens.", "out": "义丹丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items, then drop the even numbers.", "out": "义丹丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three, then strip out the evens.", "out": "义丹丁"} {"kind": "builder", "in": "义丹丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义丹丁", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove all zero values, then count the elements.", "out": "么举东"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then exclude zeros, then how many items remain.", "out": "么举东"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove all zero values, then tell me the length.", "out": "么举东"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then exclude zeros, then return the length.", "out": "么举东"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove all zero values, then count them.", "out": "么举东"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then exclude zeros, then what's the count.", "out": "么举东"} {"kind": "builder", "in": "么举东", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return len(r)"} {"kind": "translator", "in": "么举东", "out": "Take a list of integers; if empty, use a single zero, then drop the zeros, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; negate each, then order by distance from zero, then limit every value to 10.", "out": "与丸丘"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort based on absolute value, then maximum of 10 for all.", "out": "与丸丘"} {"kind": "speaker", "in": "Take a list of integers; negate each, then organize by magnitude, then limit every value to 10.", "out": "与丸丘"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then arrange by absolute value ascending, then maximum of 10 for all.", "out": "与丸丘"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort from smallest to largest absolute value, then limit every value to 10.", "out": "与丸丘"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort by absolute value, then maximum of 10 for all.", "out": "与丸丘"} {"kind": "builder", "in": "与丸丘", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "与丸丘", "out": "Take a list of integers; negate each, then sort by absolute value, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increment each value, then trim one element off each end.", "out": "乃下为"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then plus one for all, then cut off the first and last.", "out": "乃下为"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then increment each value, then remove the first and last elements.", "out": "乃下为"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then plus one for all, then keep only the middle part.", "out": "乃下为"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then increment each value, then drop first and last.", "out": "乃下为"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then plus one for all, then eliminate the outermost elements.", "out": "乃下为"} {"kind": "builder", "in": "乃下为", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乃下为", "out": "Take a list of integers; drop the leading negative values, then add one to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then extend to length 3 using zeros, then drop the odd numbers.", "out": "丽义一"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then pad to 3, then filter out the odd numbers.", "out": "丽义一"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then extend to length 3 using zeros, then drop the odd numbers.", "out": "丽义一"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then pad to 3, then filter out the odd numbers.", "out": "丽义一"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then extend to length 3 using zeros, then drop the odd numbers.", "out": "丽义一"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then pad to 3, then filter out the odd numbers.", "out": "丽义一"} {"kind": "builder", "in": "丽义一", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丽义一", "out": "Take a list of integers; add ten to each, then pad with zeros to at least three elements, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the leading run of positive numbers, then drop the even numbers.", "out": "下乂丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take values while they are positive, then strip out the evens.", "out": "下乂丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take positive values then stop, then drop the even numbers.", "out": "下乂丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep going while positive, then strip out the evens.", "out": "下乂丁"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then stop at first non positive, then drop the even numbers.", "out": "下乂丁"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take while greater than zero, then strip out the evens.", "out": "下乂丁"} {"kind": "builder", "in": "下乂丁", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "下乂丁", "out": "Take a list of integers; add one to each, then take values while they are positive, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then decrement each value, then arrange in increasing order.", "out": "下不丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Lower each number by one, then Organize these ascending.", "out": "下不丑"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then reduce each by one, then Sort in ascending order.", "out": "下不丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Subtract 1 from all, then I need this sorted ascending.", "out": "下不丑"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Subtract one from each, then Put these in ascending order.", "out": "下不丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Drop each by one, then sort smallest to largest.", "out": "下不丑"} {"kind": "builder", "in": "下不丑", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "下不丑", "out": "Take a list of integers; add one to each, then subtract one from each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then increment each value, then give the earliest even value or zero.", "out": "七下乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then plus one for all, then fetch the first even element, default to 0.", "out": "七下乒"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then increment each value, then give the earliest even value or zero.", "out": "七下乒"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then plus one for all, then fetch the first even element, default to 0.", "out": "七下乒"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then increment each value, then give the earliest even value or zero.", "out": "七下乒"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then plus one for all, then fetch the first even element, default to 0.", "out": "七下乒"} {"kind": "builder", "in": "七下乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x + 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "七下乒", "out": "Take a list of integers; keep the positive numbers, then add one to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first 3 elements, then arrange in decreasing order.", "out": "下丕专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove everything after the third, then arrange in descending order.", "out": "下丕专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate to three items, then reverse sort.", "out": "下丕专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then show the first three, then sort largest to smallest.", "out": "下丕专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first three, then sort by descending values.", "out": "下丕专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep first 3, then sort from highest to lowest.", "out": "下丕专"} {"kind": "builder", "in": "下丕专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:3]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "下丕专", "out": "Take a list of integers; add one to each, then keep only the first three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first 3 elements, then raise each to the power of two.", "out": "世丕上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove everything after the third, then I need each number multiplied by itself.", "out": "世丕上"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate to three items, then square all of them.", "out": "世丕上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then show the first three, then multiply each element by itself.", "out": "世丕上"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first three, then make each one squared.", "out": "世丕上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep first 3, then square each value in the list.", "out": "世丕上"} {"kind": "builder", "in": "世丕上", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:3]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "世丕上", "out": "Take a list of integers; drop the first element, then keep only the first three, then square each."} {"kind": "speaker", "in": "Take a list of integers; double each, then multiply each value by itself, then skip the first one.", "out": "丈上世"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then square them all, then Discard the first element.", "out": "丈上世"} {"kind": "speaker", "in": "Take a list of integers; double each, then raise each to the power of two, then skip the first one.", "out": "丈上世"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then I need each number multiplied by itself, then Discard the first element.", "out": "丈上世"} {"kind": "speaker", "in": "Take a list of integers; double each, then square all of them, then skip the first one.", "out": "丈上世"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiply each element by itself, then Discard the first element.", "out": "丈上世"} {"kind": "builder", "in": "丈上世", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x * x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丈上世", "out": "Take a list of integers; double each, then square each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then clamp each to at most ten, then find the max, defaulting to 0.", "out": "丕丘业"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then don't let anything exceed 10, then Give me the maximum, but 0 if there are no items.", "out": "丕丘业"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then clamp each to at most ten, then What's the highest number in the list.", "out": "丕丘业"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then don't let anything exceed 10, then Return the greatest value or default to 0.", "out": "丕丘业"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then clamp each to at most ten, then Find the largest element, defaulting to zero.", "out": "丕丘业"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then don't let anything exceed 10, then give the largest value (0 if none).", "out": "丕丘业"} {"kind": "builder", "in": "丕丘业", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丕丘业", "out": "Take a list of integers; keep only the first three, then cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then multiply each by -1.", "out": "且丽与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then negate.", "out": "且丽与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then multiply each by -1.", "out": "且丽与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then negate.", "out": "且丽与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then multiply each by -1.", "out": "且丽与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then negate.", "out": "且丽与"} {"kind": "builder", "in": "且丽与", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "且丽与", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then drop anything 5 or below, then give the number of evens.", "out": "丽主乓"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep only numbers greater than 5, then find how many values are divisible by two.", "out": "丽主乓"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then filter for numbers above 5, then how many are even.", "out": "丽主乓"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then give me values where x is greater than 5, then get the total number of even values in the list.", "out": "丽主乓"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then show me only the values that are bigger than five, then give me the count of even values.", "out": "丽主乓"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep values greater than five, then I need to know how many of these are even.", "out": "丽主乓"} {"kind": "builder", "in": "丽主乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丽主乓", "out": "Take a list of integers; add ten to each, then keep values greater than five, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the final 3 elements, then ensure at least three items by appending zeros.", "out": "与丹义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop everything except the final three, then ensure minimum length of three by adding zeros to the end.", "out": "与丹义"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give me the last three elements, then ensure at least three items by appending zeros.", "out": "与丹义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the last three, then ensure minimum length of three by adding zeros to the end.", "out": "与丹义"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the final three items, then ensure at least three items by appending zeros.", "out": "与丹义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the last three, then ensure minimum length of three by adding zeros to the end.", "out": "与丹义"} {"kind": "builder", "in": "与丹义", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "与丹义", "out": "Take a list of integers; negate each, then keep only the last three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove all zero values, then raise each to the power of two.", "out": "久举上"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then exclude zeros, then I need each number multiplied by itself.", "out": "久举上"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove all zero values, then square all of them.", "out": "久举上"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then exclude zeros, then multiply each element by itself.", "out": "久举上"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove all zero values, then make each one squared.", "out": "久举上"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then exclude zeros, then square each value in the list.", "out": "久举上"} {"kind": "builder", "in": "久举上", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "久举上", "out": "Take a list of integers; keep everything before the first zero, then drop the zeros, then square each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then cut the list at the first zero, then put the elements backwards.", "out": "丑久丐"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then cut off after the first zero appears, then reverse that for me.", "out": "丑久丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take values up to (excluding) the first zero, then flip it backwards.", "out": "丑久丐"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the part before the first 0, then make it backwards.", "out": "丑久丐"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then truncate at the first zero, then reverse the list.", "out": "丑久丐"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then delete everything starting with the first zero, then invert the sequence.", "out": "丑久丐"} {"kind": "builder", "in": "丑久丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丑久丐", "out": "Take a list of integers; sort ascending, then keep everything before the first zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first 3 elements, then give the number of evens.", "out": "下丕乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove everything after the third, then find how many values are divisible by two.", "out": "下丕乓"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate to three items, then how many are even.", "out": "下丕乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then show the first three, then get the total number of even values in the list.", "out": "下丕乓"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first three, then give me the count of even values.", "out": "下丕乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep first 3, then I need to know how many of these are even.", "out": "下丕乓"} {"kind": "builder", "in": "下丕乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:3]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "下丕乓", "out": "Take a list of integers; add one to each, then keep only the first three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then default to [0] when there is nothing, then give back the total.", "out": "专么丙"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then when the list is empty, substitute a zero value, then sum r.", "out": "专么丙"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then replace an empty list with one zero, then add them up.", "out": "专么丙"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then zero it out if it's empty, then calculate the sum of all elements.", "out": "专么丙"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then use zero if the list is empty, then what's the total.", "out": "专么丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then default to zero when empty, then what do they add up to.", "out": "专么丙"} {"kind": "builder", "in": "专么丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r if r else [0]\n return sum(r)"} {"kind": "translator", "in": "专么丙", "out": "Take a list of integers; sort descending, then if empty, use a single zero, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then skip negatives at the start, then shift each up by ten.", "out": "七乃丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove all negatives at the front, then increase all numbers by 10.", "out": "七乃丽"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the initial run of negative numbers, then add 10 to everything.", "out": "七乃丽"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then strip the front negatives, then give everything a boost of 10.", "out": "七乃丽"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove leading negative numbers, then increment each by ten.", "out": "七乃丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then drop negatives from start, then add a constant 10 to each.", "out": "七乃丽"} {"kind": "builder", "in": "七乃丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "七乃丽", "out": "Take a list of integers; keep the positive numbers, then drop the leading negative values, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then default to [0] when there is nothing, then keep only non-zero numbers.", "out": "一么举"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then when the list is empty, substitute a zero value, then strip the zeros.", "out": "一么举"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then replace an empty list with one zero, then keep only non-zero numbers.", "out": "一么举"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then zero it out if it's empty, then strip the zeros.", "out": "一么举"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then use zero if the list is empty, then keep only non-zero numbers.", "out": "一么举"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then default to zero when empty, then strip the zeros.", "out": "一么举"} {"kind": "builder", "in": "一么举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "一么举", "out": "Take a list of integers; keep the even numbers, then if empty, use a single zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the final 3 elements, then shift each up by ten.", "out": "乂丹丽"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then drop everything except the final three, then increase all numbers by 10.", "out": "乂丹丽"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give me the last three elements, then add 10 to everything.", "out": "乂丹丽"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep only the last three, then give everything a boost of 10.", "out": "乂丹丽"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep the final three items, then increment each by ten.", "out": "乂丹丽"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the last three, then add a constant 10 to each.", "out": "乂丹丽"} {"kind": "builder", "in": "乂丹丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乂丹丽", "out": "Take a list of integers; take values while they are positive, then keep only the last three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then sort smallest to largest, then ensure at least three items by appending zeros.", "out": "丽丑义"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Ascending sort, then ensure minimum length of three by adding zeros to the end.", "out": "丽丑义"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then Sort this ascending, then ensure at least three items by appending zeros.", "out": "丽丑义"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Sort lowest to highest, then ensure minimum length of three by adding zeros to the end.", "out": "丽丑义"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Arrange from smallest to largest, then ensure at least three items by appending zeros.", "out": "丽丑义"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort ascending, then ensure minimum length of three by adding zeros to the end.", "out": "丽丑义"} {"kind": "builder", "in": "丽丑义", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丽丑义", "out": "Take a list of integers; add ten to each, then sort ascending, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increase every value by 10, then deduplicate the list.", "out": "丑丽且"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then add 10 to each item, then remove repeats.", "out": "丑丽且"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then shift each up by ten, then deduplicate the list.", "out": "丑丽且"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then increase all numbers by 10, then remove repeats.", "out": "丑丽且"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then add 10 to everything, then deduplicate the list.", "out": "丑丽且"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then give everything a boost of 10, then remove repeats.", "out": "丑丽且"} {"kind": "builder", "in": "丑丽且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丑丽且", "out": "Take a list of integers; sort ascending, then add ten to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then arrange by magnitude ignoring sign.", "out": "主乂丸"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then put them in order by magnitude.", "out": "主乂丸"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then arrange in order of absolute value.", "out": "主乂丸"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then sort by distance from zero.", "out": "主乂丸"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then order by how far from zero.", "out": "主乂丸"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then order by distance from zero.", "out": "主乂丸"} {"kind": "builder", "in": "主乂丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "主乂丸", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then clamp each to at most ten, then count the elements.", "out": "专丘东"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then don't let anything exceed 10, then how many items remain.", "out": "专丘东"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then clamp each to at most ten, then tell me the length.", "out": "专丘东"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then don't let anything exceed 10, then return the length.", "out": "专丘东"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then clamp each to at most ten, then count them.", "out": "专丘东"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then don't let anything exceed 10, then what's the count.", "out": "专丘东"} {"kind": "builder", "in": "专丘东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [min(x, 10) for x in r]\n return len(r)"} {"kind": "translator", "in": "专丘东", "out": "Take a list of integers; sort descending, then cap each value at 10, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increment each value, then give the earliest even value or zero.", "out": "乂下乒"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then plus one for all, then fetch the first even element, default to 0.", "out": "乂下乒"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then increment each value, then give the earliest even value or zero.", "out": "乂下乒"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then plus one for all, then fetch the first even element, default to 0.", "out": "乂下乒"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then increment each value, then give the earliest even value or zero.", "out": "乂下乒"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then plus one for all, then fetch the first even element, default to 0.", "out": "乂下乒"} {"kind": "builder", "in": "乂下乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "乂下乒", "out": "Take a list of integers; take values while they are positive, then add one to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then skip negatives at the start, then put the elements backwards.", "out": "么乃丐"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove all negatives at the front, then reverse that for me.", "out": "么乃丐"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the initial run of negative numbers, then flip it backwards.", "out": "么乃丐"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then strip the front negatives, then make it backwards.", "out": "么乃丐"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove leading negative numbers, then reverse the list.", "out": "么乃丐"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then drop negatives from start, then invert the sequence.", "out": "么乃丐"} {"kind": "builder", "in": "么乃丐", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "么乃丐", "out": "Take a list of integers; if empty, use a single zero, then drop the leading negative values, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove all zero values, then put the elements backwards.", "out": "丹举丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then exclude zeros, then reverse that for me.", "out": "丹举丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove all zero values, then flip it backwards.", "out": "丹举丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then exclude zeros, then make it backwards.", "out": "丹举丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove all zero values, then reverse the list.", "out": "丹举丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then exclude zeros, then invert the sequence.", "out": "丹举丐"} {"kind": "builder", "in": "丹举丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹举丐", "out": "Take a list of integers; keep only the last three, then drop the zeros, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the first 3 elements, then shift each up by ten.", "out": "为丕丽"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove everything after the third, then increase all numbers by 10.", "out": "为丕丽"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then truncate to three items, then add 10 to everything.", "out": "为丕丽"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then show the first three, then give everything a boost of 10.", "out": "为丕丽"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then take the first three, then increment each by ten.", "out": "为丕丽"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep first 3, then add a constant 10 to each.", "out": "为丕丽"} {"kind": "builder", "in": "为丕丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:3]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "为丕丽", "out": "Take a list of integers; drop the first and last elements, then keep only the first three, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep the leading run of positive numbers, then drop non-positive values.", "out": "不乂七"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then take values while they are positive, then drop the negative numbers.", "out": "不乂七"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take positive values then stop, then filter out the negative ones.", "out": "不乂七"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep going while positive, then remove all negative values.", "out": "不乂七"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then stop at first non positive, then keep positive values only.", "out": "不乂七"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take while greater than zero, then keep values above zero.", "out": "不乂七"} {"kind": "builder", "in": "不乂七", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "不乂七", "out": "Take a list of integers; subtract one from each, then take values while they are positive, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep values below zero, then ensure at least three items by appending zeros.", "out": "丕万义"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "丕万义"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep values below zero, then ensure at least three items by appending zeros.", "out": "丕万义"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "丕万义"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep values below zero, then ensure at least three items by appending zeros.", "out": "丕万义"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then get the negative numbers, then ensure minimum length of three by adding zeros to the end.", "out": "丕万义"} {"kind": "builder", "in": "丕万义", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x < 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丕万义", "out": "Take a list of integers; keep only the first three, then keep the negative numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything 5 or below, then drop anything not divisible by three.", "out": "丈主串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only numbers greater than 5, then filter out everything except multiples of three.", "out": "丈主串"} {"kind": "speaker", "in": "Take a list of integers; double each, then filter for numbers above 5, then keep only multiples of three.", "out": "丈主串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me values where x is greater than 5, then multiples of three only.", "out": "丈主串"} {"kind": "speaker", "in": "Take a list of integers; double each, then show me only the values that are bigger than five, then filter for numbers divisible by three.", "out": "丈主串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep values greater than five, then give me only the values divisible by three.", "out": "丈主串"} {"kind": "builder", "in": "丈主串", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丈主串", "out": "Take a list of integers; double each, then keep values greater than five, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each value by itself, then trim one element off each end.", "out": "串上为"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then square them all, then cut off the first and last.", "out": "串上为"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then raise each to the power of two, then remove the first and last elements.", "out": "串上为"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then I need each number multiplied by itself, then keep only the middle part.", "out": "串上为"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then square all of them, then drop first and last.", "out": "串上为"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then multiply each element by itself, then eliminate the outermost elements.", "out": "串上为"} {"kind": "builder", "in": "串上为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "串上为", "out": "Take a list of integers; keep multiples of three, then square each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increase every value by 10, then take values up to (excluding) the first zero.", "out": "主丽久"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then add 10 to each item, then keep the part before the first 0.", "out": "主丽久"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then shift each up by ten, then truncate at the first zero.", "out": "主丽久"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then increase all numbers by 10, then delete everything starting with the first zero.", "out": "主丽久"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then add 10 to everything, then remove from the first zero onwards.", "out": "主丽久"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then give everything a boost of 10, then up to but not including the first zero.", "out": "主丽久"} {"kind": "builder", "in": "主丽久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "主丽久", "out": "Take a list of integers; keep values greater than five, then add ten to each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then arrange in decreasing order.", "out": "下且专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then arrange in descending order.", "out": "下且专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then reverse sort.", "out": "下且专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then sort largest to smallest.", "out": "下且专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then sort by descending values.", "out": "下且专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then sort from highest to lowest.", "out": "下且专"} {"kind": "builder", "in": "下且专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "下且专", "out": "Take a list of integers; add one to each, then drop duplicates keeping first occurrence, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increment each value, then truncate to the last three items.", "out": "不下丹"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then plus one for all, then show only the last three.", "out": "不下丹"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then increment each value, then remove all but the last three.", "out": "不下丹"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then plus one for all, then take the final 3 elements.", "out": "不下丹"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then increment each value, then drop everything except the final three.", "out": "不下丹"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then plus one for all, then give me the last three elements.", "out": "不下丹"} {"kind": "builder", "in": "不下丹", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "不下丹", "out": "Take a list of integers; subtract one from each, then add one to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then make every value non-negative, then drop anything not divisible by three.", "out": "丑丏串"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then absolute value for all items, then filter out everything except multiples of three.", "out": "丑丏串"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take absolute values, then keep only multiples of three.", "out": "丑丏串"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn negatives into positives, then multiples of three only.", "out": "丑丏串"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then abs each element, then filter for numbers divisible by three.", "out": "丑丏串"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the absolute value of each, then give me only the values divisible by three.", "out": "丑丏串"} {"kind": "builder", "in": "丑丏串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丑丏串", "out": "Take a list of integers; sort ascending, then take the absolute value of each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort largest to smallest, then find the max, defaulting to 0.", "out": "丐专业"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort by descending values, then Give me the maximum, but 0 if there are no items.", "out": "丐专业"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then sort from highest to lowest, then What's the highest number in the list.", "out": "丐专业"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then sort descending, then Return the greatest value or default to 0.", "out": "丐专业"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort largest first, then Find the largest element, defaulting to zero.", "out": "丐专业"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort in descending order, then give the largest value (0 if none).", "out": "丐专业"} {"kind": "builder", "in": "丐专业", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, reverse=True)\n return max(r) if r else 0"} {"kind": "translator", "in": "丐专业", "out": "Take a list of integers; reverse the order, then sort descending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each value by itself, then give the earliest even value or zero.", "out": "丐上乒"} {"kind": "speaker", "in": "Take a list of integers; reverse, then square them all, then fetch the first even element, default to 0.", "out": "丐上乒"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then raise each to the power of two, then give the earliest even value or zero.", "out": "丐上乒"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then I need each number multiplied by itself, then fetch the first even element, default to 0.", "out": "丐上乒"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then square all of them, then give the earliest even value or zero.", "out": "丐上乒"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiply each element by itself, then fetch the first even element, default to 0.", "out": "丐上乒"} {"kind": "builder", "in": "丐上乒", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * x for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丐上乒", "out": "Take a list of integers; reverse the order, then square each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each value by itself, then bump each up by one.", "out": "丐上下"} {"kind": "speaker", "in": "Take a list of integers; reverse, then square them all, then increment each item.", "out": "丐上下"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then raise each to the power of two, then bump each up by one.", "out": "丐上下"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then I need each number multiplied by itself, then increment each item.", "out": "丐上下"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then square all of them, then bump each up by one.", "out": "丐上下"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiply each element by itself, then increment each item.", "out": "丐上下"} {"kind": "builder", "in": "丐上下", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * x for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丐上下", "out": "Take a list of integers; reverse the order, then square each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then order by distance from zero, then arrange in increasing order.", "out": "主丸丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort based on absolute value, then Organize these ascending.", "out": "主丸丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then organize by magnitude, then Sort in ascending order.", "out": "主丸丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then arrange by absolute value ascending, then I need this sorted ascending.", "out": "主丸丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort from smallest to largest absolute value, then Put these in ascending order.", "out": "主丸丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort by absolute value, then sort smallest to largest.", "out": "主丸丑"} {"kind": "builder", "in": "主丸丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主丸丑", "out": "Take a list of integers; keep values greater than five, then sort by absolute value, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then count the elements.", "out": "丕丸东"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then how many items remain.", "out": "丕丸东"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then tell me the length.", "out": "丕丸东"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then return the length.", "out": "丕丸东"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then count them.", "out": "丕丸东"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then what's the count.", "out": "丕丸东"} {"kind": "builder", "in": "丕丸东", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n return len(r)"} {"kind": "translator", "in": "丕丸东", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the sign of each, then arrange in increasing order.", "out": "主与丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then turn positives to negatives and vice versa, then Organize these ascending.", "out": "主与丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then flip the sign of each, then Sort in ascending order.", "out": "主与丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then turn positives to negatives and vice versa, then I need this sorted ascending.", "out": "主与丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip the sign of each, then Put these in ascending order.", "out": "主与丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then turn positives to negatives and vice versa, then sort smallest to largest.", "out": "主与丑"} {"kind": "builder", "in": "主与丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主与丑", "out": "Take a list of integers; keep values greater than five, then negate each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then bump each up by one.", "out": "串丐下"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then increment each item.", "out": "串丐下"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then bump each up by one.", "out": "串丐下"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then increment each item.", "out": "串丐下"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then bump each up by one.", "out": "串丐下"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then increment each item.", "out": "串丐下"} {"kind": "builder", "in": "串丐下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "串丐下", "out": "Take a list of integers; keep multiples of three, then reverse the order, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then true if already sorted smallest to largest.", "out": "一丁乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then does this list go in ascending order.", "out": "一丁乎"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then check if the list is in ascending order.", "out": "一丁乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then is the list sorted.", "out": "一丁乎"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then is it sorted.", "out": "一丁乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then check if values are in increasing order.", "out": "一丁乎"} {"kind": "builder", "in": "一丁乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "一丁乎", "out": "Take a list of integers; keep the even numbers, then keep the odd numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the first 3 elements, then limit every value to 10.", "out": "丽丕丘"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove everything after the third, then maximum of 10 for all.", "out": "丽丕丘"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then truncate to three items, then limit every value to 10.", "out": "丽丕丘"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then show the first three, then maximum of 10 for all.", "out": "丽丕丘"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then take the first three, then limit every value to 10.", "out": "丽丕丘"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep first 3, then maximum of 10 for all.", "out": "丽丕丘"} {"kind": "builder", "in": "丽丕丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:3]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丽丕丘", "out": "Take a list of integers; add ten to each, then keep only the first three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then skip negatives at the start, then make each twice as big.", "out": "世乃丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove all negatives at the front, then multiply each by 2.", "out": "世乃丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the initial run of negative numbers, then make each twice as big.", "out": "世乃丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then strip the front negatives, then multiply each by 2.", "out": "世乃丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove leading negative numbers, then make each twice as big.", "out": "世乃丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop negatives from start, then multiply each by 2.", "out": "世乃丈"} {"kind": "builder", "in": "世乃丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "世乃丈", "out": "Take a list of integers; drop the first element, then drop the leading negative values, then double each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values below zero, then bump each up by one.", "out": "么万下"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then get the negative numbers, then increment each item.", "out": "么万下"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep values below zero, then bump each up by one.", "out": "么万下"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then get the negative numbers, then increment each item.", "out": "么万下"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep values below zero, then bump each up by one.", "out": "么万下"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then get the negative numbers, then increment each item.", "out": "么万下"} {"kind": "builder", "in": "么万下", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "么万下", "out": "Take a list of integers; if empty, use a single zero, then keep the negative numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then extend to length 3 using zeros, then true if already sorted smallest to largest.", "out": "与义乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then pad to 3, then does this list go in ascending order.", "out": "与义乎"} {"kind": "speaker", "in": "Take a list of integers; negate each, then extend to length 3 using zeros, then check if the list is in ascending order.", "out": "与义乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then pad to 3, then is the list sorted.", "out": "与义乎"} {"kind": "speaker", "in": "Take a list of integers; negate each, then extend to length 3 using zeros, then is it sorted.", "out": "与义乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then pad to 3, then check if values are in increasing order.", "out": "与义乎"} {"kind": "builder", "in": "与义乎", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r == sorted(r)"} {"kind": "translator", "in": "与义乎", "out": "Take a list of integers; negate each, then pad with zeros to at least three elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the leading run of positive numbers, then give the earliest even value or zero.", "out": "世乂乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take values while they are positive, then fetch the first even element, default to 0.", "out": "世乂乒"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take positive values then stop, then give the earliest even value or zero.", "out": "世乂乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep going while positive, then fetch the first even element, default to 0.", "out": "世乂乒"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then stop at first non positive, then give the earliest even value or zero.", "out": "世乂乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take while greater than zero, then fetch the first even element, default to 0.", "out": "世乂乒"} {"kind": "builder", "in": "世乂乒", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "世乂乒", "out": "Take a list of integers; drop the first element, then take values while they are positive, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then extend to length 3 using zeros, then skip the first one.", "out": "七义世"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then pad to 3, then Discard the first element.", "out": "七义世"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then extend to length 3 using zeros, then skip the first one.", "out": "七义世"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then pad to 3, then Discard the first element.", "out": "七义世"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then extend to length 3 using zeros, then skip the first one.", "out": "七义世"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then pad to 3, then Discard the first element.", "out": "七义世"} {"kind": "builder", "in": "七义世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:]\n return r"} {"kind": "translator", "in": "七义世", "out": "Take a list of integers; keep the positive numbers, then pad with zeros to at least three elements, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then take values up to (excluding) the first zero.", "out": "七丘久"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then keep the part before the first 0.", "out": "七丘久"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then truncate at the first zero.", "out": "七丘久"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then delete everything starting with the first zero.", "out": "七丘久"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then remove from the first zero onwards.", "out": "七丘久"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then up to but not including the first zero.", "out": "七丘久"} {"kind": "builder", "in": "七丘久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "七丘久", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then give back the product of all values.", "out": "下世乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then product of the list.", "out": "下世乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then what's the product.", "out": "下世乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then what do they multiply to.", "out": "下世乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then give me their product.", "out": "下世乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then multiply them all together.", "out": "下世乐"} {"kind": "builder", "in": "下世乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "下世乐", "out": "Take a list of integers; add one to each, then drop the first element, then return their product."} {"kind": "speaker", "in": "Take a list of integers; double each, then order by distance from zero, then keep only numbers above 5.", "out": "丈丸主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort based on absolute value, then exclude values of 5 and below.", "out": "丈丸主"} {"kind": "speaker", "in": "Take a list of integers; double each, then organize by magnitude, then remove anything 5 or less.", "out": "丈丸主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then arrange by absolute value ascending, then filter to keep only values above 5.", "out": "丈丸主"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from smallest to largest absolute value, then get rid of values that aren't greater than five.", "out": "丈丸主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by absolute value, then drop anything 5 or below.", "out": "丈丸主"} {"kind": "builder", "in": "丈丸主", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丈丸主", "out": "Take a list of integers; double each, then sort by absolute value, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove repeated values, then arrange by magnitude ignoring sign.", "out": "九且丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then unique values preserving order, then put them in order by magnitude.", "out": "九且丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove repeated values, then arrange in order of absolute value.", "out": "九且丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then unique values preserving order, then sort by distance from zero.", "out": "九且丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove repeated values, then order by how far from zero.", "out": "九且丸"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then unique values preserving order, then order by distance from zero.", "out": "九且丸"} {"kind": "builder", "in": "九且丸", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(dict.fromkeys(r))\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "九且丸", "out": "Take a list of people records (name, age); extract the ages, then drop duplicates keeping first occurrence, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then default to [0] when there is nothing, then find the max, defaulting to 0.", "out": "世么业"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then when the list is empty, substitute a zero value, then Give me the maximum, but 0 if there are no items.", "out": "世么业"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then replace an empty list with one zero, then What's the highest number in the list.", "out": "世么业"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then zero it out if it's empty, then Return the greatest value or default to 0.", "out": "世么业"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then use zero if the list is empty, then Find the largest element, defaulting to zero.", "out": "世么业"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then default to zero when empty, then give the largest value (0 if none).", "out": "世么业"} {"kind": "builder", "in": "世么业", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r if r else [0]\n return max(r) if r else 0"} {"kind": "translator", "in": "世么业", "out": "Take a list of integers; drop the first element, then if empty, use a single zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the leading run of positive numbers, then take values up to (excluding) the first zero.", "out": "世乂久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take values while they are positive, then keep the part before the first 0.", "out": "世乂久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take positive values then stop, then truncate at the first zero.", "out": "世乂久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep going while positive, then delete everything starting with the first zero.", "out": "世乂久"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then stop at first non positive, then remove from the first zero onwards.", "out": "世乂久"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take while greater than zero, then up to but not including the first zero.", "out": "世乂久"} {"kind": "builder", "in": "世乂久", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "世乂久", "out": "Take a list of integers; drop the first element, then take values while they are positive, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increment each value, then drop anything not divisible by three.", "out": "丑下串"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then plus one for all, then filter out everything except multiples of three.", "out": "丑下串"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then increment each value, then keep only multiples of three.", "out": "丑下串"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then plus one for all, then multiples of three only.", "out": "丑下串"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then increment each value, then filter for numbers divisible by three.", "out": "丑下串"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then plus one for all, then give me only the values divisible by three.", "out": "丑下串"} {"kind": "builder", "in": "丑下串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丑下串", "out": "Take a list of integers; sort ascending, then add one to each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then extend to length 3 using zeros, then strip the signs.", "out": "么义丏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then pad to 3, then take abs of each.", "out": "么义丏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then extend to length 3 using zeros, then get the absolute value of everything.", "out": "么义丏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then pad to 3, then apply absolute value to the whole list.", "out": "么义丏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then extend to length 3 using zeros, then make them all positive.", "out": "么义丏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then pad to 3, then make every value non-negative.", "out": "么义丏"} {"kind": "builder", "in": "么义丏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "么义丏", "out": "Take a list of integers; if empty, use a single zero, then pad with zeros to at least three elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove both ends, then multiply each by -1.", "out": "一为与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then trim the edges, then negate.", "out": "一为与"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then trim one element off each end, then multiply each by -1.", "out": "一为与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off the first and last, then negate.", "out": "一为与"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first and last elements, then multiply each by -1.", "out": "一为与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the middle part, then negate.", "out": "一为与"} {"kind": "builder", "in": "一为与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "一为与", "out": "Take a list of integers; keep the even numbers, then drop the first and last elements, then negate each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the final 3 elements, then bump each up by one.", "out": "乂丹下"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then drop everything except the final three, then increment each item.", "out": "乂丹下"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give me the last three elements, then bump each up by one.", "out": "乂丹下"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep only the last three, then increment each item.", "out": "乂丹下"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep the final three items, then bump each up by one.", "out": "乂丹下"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the last three, then increment each item.", "out": "乂丹下"} {"kind": "builder", "in": "乂丹下", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "乂丹下", "out": "Take a list of integers; take values while they are positive, then keep only the last three, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then flip the sign of each, then arrange in increasing order.", "out": "丐与丑"} {"kind": "speaker", "in": "Take a list of integers; reverse, then turn positives to negatives and vice versa, then Organize these ascending.", "out": "丐与丑"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then flip the sign of each, then Sort in ascending order.", "out": "丐与丑"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn positives to negatives and vice versa, then I need this sorted ascending.", "out": "丐与丑"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then flip the sign of each, then Put these in ascending order.", "out": "丐与丑"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then turn positives to negatives and vice versa, then sort smallest to largest.", "out": "丐与丑"} {"kind": "builder", "in": "丐与丑", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [-x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丐与丑", "out": "Take a list of integers; reverse the order, then negate each, then sort ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then trim one element off each end.", "out": "九乃为"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then cut off the first and last.", "out": "九乃为"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then remove the first and last elements.", "out": "九乃为"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then keep only the middle part.", "out": "九乃为"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then drop first and last.", "out": "九乃为"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then eliminate the outermost elements.", "out": "九乃为"} {"kind": "builder", "in": "九乃为", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "九乃为", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort smallest to largest, then trim one element off each end.", "out": "与丑为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Ascending sort, then cut off the first and last.", "out": "与丑为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Sort this ascending, then remove the first and last elements.", "out": "与丑为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Sort lowest to highest, then keep only the middle part.", "out": "与丑为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Arrange from smallest to largest, then drop first and last.", "out": "与丑为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort ascending, then eliminate the outermost elements.", "out": "与丑为"} {"kind": "builder", "in": "与丑为", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "与丑为", "out": "Take a list of integers; negate each, then sort ascending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then count the elements.", "out": "与丁东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then how many items remain.", "out": "与丁东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then tell me the length.", "out": "与丁东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then return the length.", "out": "与丁东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then count them.", "out": "与丁东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then what's the count.", "out": "与丁东"} {"kind": "builder", "in": "与丁东", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n return len(r)"} {"kind": "translator", "in": "与丁东", "out": "Take a list of integers; negate each, then keep the odd numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort smallest to largest, then truncate to the last three items.", "out": "丁丑丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Ascending sort, then show only the last three.", "out": "丁丑丹"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Sort this ascending, then remove all but the last three.", "out": "丁丑丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Sort lowest to highest, then take the final 3 elements.", "out": "丁丑丹"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Arrange from smallest to largest, then drop everything except the final three.", "out": "丁丑丹"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort ascending, then give me the last three elements.", "out": "丁丑丹"} {"kind": "builder", "in": "丁丑丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丁丑丹", "out": "Take a list of integers; keep the odd numbers, then sort ascending, then keep only the last three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then decrement each value, then give back the total.", "out": "九不丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Lower each number by one, then sum r.", "out": "九不丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then reduce each by one, then add them up.", "out": "九不丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Subtract 1 from all, then calculate the sum of all elements.", "out": "九不丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Subtract one from each, then what's the total.", "out": "九不丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Drop each by one, then what do they add up to.", "out": "九不丙"} {"kind": "builder", "in": "九不丙", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x - 1 for x in r]\n return sum(r)"} {"kind": "translator", "in": "九不丙", "out": "Take a list of people records (name, age); extract the ages, then subtract one from each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then true if every value is unique.", "out": "丹万乏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then check for duplicates in the values.", "out": "丹万乏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then do all values appear only once.", "out": "丹万乏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then check that there are no duplicates.", "out": "丹万乏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then are the values all unique.", "out": "丹万乏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then check if all values are unique.", "out": "丹万乏"} {"kind": "builder", "in": "丹万乏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丹万乏", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then default to [0] when there is nothing, then keep only non-zero numbers.", "out": "乃么举"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then when the list is empty, substitute a zero value, then strip the zeros.", "out": "乃么举"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then replace an empty list with one zero, then keep only non-zero numbers.", "out": "乃么举"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then zero it out if it's empty, then strip the zeros.", "out": "乃么举"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then use zero if the list is empty, then keep only non-zero numbers.", "out": "乃么举"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then default to zero when empty, then strip the zeros.", "out": "乃么举"} {"kind": "builder", "in": "乃么举", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乃么举", "out": "Take a list of integers; drop the leading negative values, then if empty, use a single zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the list around, then keep only numbers above 5.", "out": "乃丐主"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then flip the order around, then exclude values of 5 and below.", "out": "乃丐主"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then put the elements backwards, then remove anything 5 or less.", "out": "乃丐主"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then reverse that for me, then filter to keep only values above 5.", "out": "乃丐主"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip it backwards, then get rid of values that aren't greater than five.", "out": "乃丐主"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then make it backwards, then drop anything 5 or below.", "out": "乃丐主"} {"kind": "builder", "in": "乃丐主", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乃丐主", "out": "Take a list of integers; drop the leading negative values, then reverse the order, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "下与义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "下与义"} {"kind": "builder", "in": "下与义", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "下与义", "out": "Take a list of integers; add one to each, then negate each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then order by distance from zero, then take values up to (excluding) the first zero.", "out": "丹丸久"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort based on absolute value, then keep the part before the first 0.", "out": "丹丸久"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then organize by magnitude, then truncate at the first zero.", "out": "丹丸久"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then arrange by absolute value ascending, then delete everything starting with the first zero.", "out": "丹丸久"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort from smallest to largest absolute value, then remove from the first zero onwards.", "out": "丹丸久"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort by absolute value, then up to but not including the first zero.", "out": "丹丸久"} {"kind": "builder", "in": "丹丸久", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丹丸久", "out": "Take a list of integers; keep only the last three, then sort by absolute value, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then limit every value to 10.", "out": "举丈丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then maximum of 10 for all.", "out": "举丈丘"} {"kind": "builder", "in": "举丈丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "举丈丘", "out": "Take a list of integers; drop the zeros, then double each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove all zero values, then truncate to three items.", "out": "丏举丕"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then exclude zeros, then show the first three.", "out": "丏举丕"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove all zero values, then take the first three.", "out": "丏举丕"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then exclude zeros, then keep first 3.", "out": "丏举丕"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove all zero values, then truncate to first three.", "out": "丏举丕"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then exclude zeros, then first three.", "out": "丏举丕"} {"kind": "builder", "in": "丏举丕", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丏举丕", "out": "Take a list of integers; take the absolute value of each, then drop the zeros, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then deduplicate the list.", "out": "丑丘且"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then remove repeats.", "out": "丑丘且"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then deduplicate the list.", "out": "丑丘且"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then remove repeats.", "out": "丑丘且"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then deduplicate the list.", "out": "丑丘且"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then remove repeats.", "out": "丑丘且"} {"kind": "builder", "in": "丑丘且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丑丘且", "out": "Take a list of integers; sort ascending, then cap each value at 10, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the list around, then strip the signs.", "out": "久丐丏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then flip the order around, then take abs of each.", "out": "久丐丏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then put the elements backwards, then get the absolute value of everything.", "out": "久丐丏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then reverse that for me, then apply absolute value to the whole list.", "out": "久丐丏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip it backwards, then make them all positive.", "out": "久丐丏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then make it backwards, then make every value non-negative.", "out": "久丐丏"} {"kind": "builder", "in": "久丐丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "久丐丏", "out": "Take a list of integers; keep everything before the first zero, then reverse the order, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then strip the signs.", "out": "丸丈丏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then take abs of each.", "out": "丸丈丏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then get the absolute value of everything.", "out": "丸丈丏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then apply absolute value to the whole list.", "out": "丸丈丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then make them all positive.", "out": "丸丈丏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then make every value non-negative.", "out": "丸丈丏"} {"kind": "builder", "in": "丸丈丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丸丈丏", "out": "Take a list of integers; sort by absolute value, then double each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then take values up to (excluding) the first zero.", "out": "一举久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then keep the part before the first 0.", "out": "一举久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then truncate at the first zero.", "out": "一举久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then delete everything starting with the first zero.", "out": "一举久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then remove from the first zero onwards.", "out": "一举久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then up to but not including the first zero.", "out": "一举久"} {"kind": "builder", "in": "一举久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "一举久", "out": "Take a list of integers; keep the even numbers, then drop the zeros, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros, then give back the product of all values.", "out": "为义乐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3, then product of the list.", "out": "为义乐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros, then what's the product.", "out": "为义乐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3, then what do they multiply to.", "out": "为义乐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros, then give me their product.", "out": "为义乐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3, then multiply them all together.", "out": "为义乐"} {"kind": "builder", "in": "为义乐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "为义乐", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements, then return their product."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then default to [0] when there is nothing, then reduce each by one.", "out": "下么不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then when the list is empty, substitute a zero value, then Subtract 1 from all.", "out": "下么不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then replace an empty list with one zero, then Subtract one from each.", "out": "下么不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then zero it out if it's empty, then Drop each by one.", "out": "下么不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then use zero if the list is empty, then Decrease all values by one.", "out": "下么不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then default to zero when empty, then Remove one from each value.", "out": "下么不"} {"kind": "builder", "in": "下么不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r if r else [0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "下么不", "out": "Take a list of integers; add one to each, then if empty, use a single zero, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each value by itself, then drop non-positive values.", "out": "丕上七"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then square them all, then drop the negative numbers.", "out": "丕上七"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then raise each to the power of two, then filter out the negative ones.", "out": "丕上七"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then I need each number multiplied by itself, then remove all negative values.", "out": "丕上七"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then square all of them, then keep positive values only.", "out": "丕上七"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then multiply each element by itself, then keep values above zero.", "out": "丕上七"} {"kind": "builder", "in": "丕上七", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丕上七", "out": "Take a list of integers; keep only the first three, then square each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then true if at least one even value.", "out": "丈与之"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then any even.", "out": "丈与之"} {"kind": "builder", "in": "丈与之", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [-x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丈与之", "out": "Take a list of integers; double each, then negate each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the sign of each, then put the elements backwards.", "out": "丑与丐"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then turn positives to negatives and vice versa, then reverse that for me.", "out": "丑与丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then flip the sign of each, then flip it backwards.", "out": "丑与丐"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn positives to negatives and vice versa, then make it backwards.", "out": "丑与丐"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip the sign of each, then reverse the list.", "out": "丑与丐"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then turn positives to negatives and vice versa, then invert the sequence.", "out": "丑与丐"} {"kind": "builder", "in": "丑与丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [-x for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丑与丐", "out": "Take a list of integers; sort ascending, then negate each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort smallest to largest, then trim one element off each end.", "out": "么丑为"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Ascending sort, then cut off the first and last.", "out": "么丑为"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then Sort this ascending, then remove the first and last elements.", "out": "么丑为"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Sort lowest to highest, then keep only the middle part.", "out": "么丑为"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Arrange from smallest to largest, then drop first and last.", "out": "么丑为"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort ascending, then eliminate the outermost elements.", "out": "么丑为"} {"kind": "builder", "in": "么丑为", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "么丑为", "out": "Take a list of integers; if empty, use a single zero, then sort ascending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the first 3 elements, then replace an empty list with one zero.", "out": "九丕么"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove everything after the third, then zero it out if it's empty.", "out": "九丕么"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then truncate to three items, then use zero if the list is empty.", "out": "九丕么"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then show the first three, then default to zero when empty.", "out": "九丕么"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then take the first three, then if there's nothing, put in a zero.", "out": "九丕么"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep first 3, then if no items, add a zero.", "out": "九丕么"} {"kind": "builder", "in": "九丕么", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:3]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "九丕么", "out": "Take a list of people records (name, age); extract the ages, then keep only the first three, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then drop anything 5 or below, then true if at least one even value.", "out": "七主之"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep only numbers greater than 5, then any even.", "out": "七主之"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then filter for numbers above 5, then true if at least one even value.", "out": "七主之"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then give me values where x is greater than 5, then any even.", "out": "七主之"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then show me only the values that are bigger than five, then true if at least one even value.", "out": "七主之"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep values greater than five, then any even.", "out": "七主之"} {"kind": "builder", "in": "七主之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x > 5]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "七主之", "out": "Take a list of integers; keep the positive numbers, then keep values greater than five, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only even values, then deduplicate the list.", "out": "么一且"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then extract all even numbers, then remove repeats.", "out": "么一且"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only even values, then deduplicate the list.", "out": "么一且"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then extract all even numbers, then remove repeats.", "out": "么一且"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only even values, then deduplicate the list.", "out": "么一且"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then extract all even numbers, then remove repeats.", "out": "么一且"} {"kind": "builder", "in": "么一且", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "么一且", "out": "Take a list of integers; if empty, use a single zero, then keep the even numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then make every value non-negative, then true if every value is unique.", "out": "丸丏乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then absolute value for all items, then check for duplicates in the values.", "out": "丸丏乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take absolute values, then do all values appear only once.", "out": "丸丏乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn negatives into positives, then check that there are no duplicates.", "out": "丸丏乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then abs each element, then are the values all unique.", "out": "丸丏乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the absolute value of each, then check if all values are unique.", "out": "丸丏乏"} {"kind": "builder", "in": "丸丏乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸丏乏", "out": "Take a list of integers; sort by absolute value, then take the absolute value of each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then drop anything not divisible by three.", "out": "举一串"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then filter out everything except multiples of three.", "out": "举一串"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then keep only multiples of three.", "out": "举一串"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then multiples of three only.", "out": "举一串"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then filter for numbers divisible by three.", "out": "举一串"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then give me only the values divisible by three.", "out": "举一串"} {"kind": "builder", "in": "举一串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "举一串", "out": "Take a list of integers; drop the zeros, then keep the even numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the list around, then replace an empty list with one zero.", "out": "主丐么"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then flip the order around, then zero it out if it's empty.", "out": "主丐么"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then put the elements backwards, then use zero if the list is empty.", "out": "主丐么"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then reverse that for me, then default to zero when empty.", "out": "主丐么"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip it backwards, then if there's nothing, put in a zero.", "out": "主丐么"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then make it backwards, then if no items, add a zero.", "out": "主丐么"} {"kind": "builder", "in": "主丐么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(reversed(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "主丐么", "out": "Take a list of integers; keep values greater than five, then reverse the order, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then order by distance from zero, then take values up to (excluding) the first zero.", "out": "举丸久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort based on absolute value, then keep the part before the first 0.", "out": "举丸久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then organize by magnitude, then truncate at the first zero.", "out": "举丸久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then arrange by absolute value ascending, then delete everything starting with the first zero.", "out": "举丸久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from smallest to largest absolute value, then remove from the first zero onwards.", "out": "举丸久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by absolute value, then up to but not including the first zero.", "out": "举丸久"} {"kind": "builder", "in": "举丸久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "举丸久", "out": "Take a list of integers; drop the zeros, then sort by absolute value, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the sign of each, then deduplicate the list.", "out": "串与且"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then turn positives to negatives and vice versa, then remove repeats.", "out": "串与且"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then flip the sign of each, then deduplicate the list.", "out": "串与且"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn positives to negatives and vice versa, then remove repeats.", "out": "串与且"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip the sign of each, then deduplicate the list.", "out": "串与且"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then turn positives to negatives and vice versa, then remove repeats.", "out": "串与且"} {"kind": "builder", "in": "串与且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "串与且", "out": "Take a list of integers; keep multiples of three, then negate each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then take the final 3 elements, then deduplicate the list.", "out": "串丹且"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then drop everything except the final three, then remove repeats.", "out": "串丹且"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then give me the last three elements, then deduplicate the list.", "out": "串丹且"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep only the last three, then remove repeats.", "out": "串丹且"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep the final three items, then deduplicate the list.", "out": "串丹且"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the last three, then remove repeats.", "out": "串丹且"} {"kind": "builder", "in": "串丹且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[-3:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "串丹且", "out": "Take a list of integers; keep multiples of three, then keep only the last three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then take each string's first letter, then remove short strings (under 3 chars).", "out": "两丨乗"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then give me the first letter of everything, then only keep strings with three or more characters.", "out": "两丨乗"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then reduce each string to its first character, then keep only strings that are at least three characters long.", "out": "两丨乗"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then take first char drop blanks, then filter strings shorter than 3 chars.", "out": "两丨乗"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then keep first letters only, then drop anything shorter than three characters.", "out": "两丨乗"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then first letter from each item that isn't empty, then keep only strings of length 3 or more.", "out": "两丨乗"} {"kind": "builder", "in": "两丨乗", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s[0] for s in r if s]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "两丨乗", "out": "Take a list of strings; drop empty strings, then keep the first character of each (dropping empties), then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove the first item, then make each twice as big.", "out": "丽世丈"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Remove head, then multiply each by 2.", "out": "丽世丈"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the first item, then make each twice as big.", "out": "丽世丈"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Remove head, then multiply each by 2.", "out": "丽世丈"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first item, then make each twice as big.", "out": "丽世丈"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Remove head, then multiply each by 2.", "out": "丽世丈"} {"kind": "builder", "in": "丽世丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丽世丈", "out": "Take a list of integers; add ten to each, then drop the first element, then double each."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then give back the total.", "out": "丈一丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then sum r.", "out": "丈一丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then add them up.", "out": "丈一丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then calculate the sum of all elements.", "out": "丈一丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then what's the total.", "out": "丈一丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then what do they add up to.", "out": "丈一丙"} {"kind": "builder", "in": "丈一丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n return sum(r)"} {"kind": "translator", "in": "丈一丙", "out": "Take a list of integers; double each, then keep the even numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each value by itself, then multiply each by -1.", "out": "且上与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then square them all, then negate.", "out": "且上与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then raise each to the power of two, then multiply each by -1.", "out": "且上与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then I need each number multiplied by itself, then negate.", "out": "且上与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then square all of them, then multiply each by -1.", "out": "且上与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiply each element by itself, then negate.", "out": "且上与"} {"kind": "builder", "in": "且上与", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * x for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "且上与", "out": "Take a list of integers; drop duplicates keeping first occurrence, then square each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then strip the signs.", "out": "丘与丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then take abs of each.", "out": "丘与丏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then get the absolute value of everything.", "out": "丘与丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then apply absolute value to the whole list.", "out": "丘与丏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then make them all positive.", "out": "丘与丏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then make every value non-negative.", "out": "丘与丏"} {"kind": "builder", "in": "丘与丏", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [-x for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丘与丏", "out": "Take a list of integers; cap each value at 10, then negate each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then cut the list at the first zero, then drop non-positive values.", "out": "举久七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off after the first zero appears, then drop the negative numbers.", "out": "举久七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take values up to (excluding) the first zero, then filter out the negative ones.", "out": "举久七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep the part before the first 0, then remove all negative values.", "out": "举久七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate at the first zero, then keep positive values only.", "out": "举久七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then delete everything starting with the first zero, then keep values above zero.", "out": "举久七"} {"kind": "builder", "in": "举久七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "举久七", "out": "Take a list of integers; drop the zeros, then keep everything before the first zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep values above zero, then strip the signs.", "out": "丕七丏"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then filter for positive numbers, then take abs of each.", "out": "丕七丏"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only positive numbers, then get the absolute value of everything.", "out": "丕七丏"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep the positives, then apply absolute value to the whole list.", "out": "丕七丏"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove negatives, then make them all positive.", "out": "丕七丏"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep the positive numbers, then make every value non-negative.", "out": "丕七丏"} {"kind": "builder", "in": "丕七丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丕七丏", "out": "Take a list of integers; keep only the first three, then keep the positive numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then decrement each value, then drop non-negative values.", "out": "义不万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Lower each number by one, then drop all positive numbers.", "out": "义不万"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then reduce each by one, then drop non-negative values.", "out": "义不万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Subtract 1 from all, then drop all positive numbers.", "out": "义不万"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Subtract one from each, then drop non-negative values.", "out": "义不万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Drop each by one, then drop all positive numbers.", "out": "义不万"} {"kind": "builder", "in": "义不万", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "义不万", "out": "Take a list of integers; pad with zeros to at least three elements, then subtract one from each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first item, then make each twice as big.", "out": "一世丈"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Remove head, then multiply each by 2.", "out": "一世丈"} {"kind": "builder", "in": "一世丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "一世丈", "out": "Take a list of integers; keep the even numbers, then drop the first element, then double each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then decrement each value, then true only if all are positive.", "out": "与不乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Lower each number by one, then do all of these have positive values.", "out": "与不乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then reduce each by one, then check if every value is positive.", "out": "与不乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Subtract 1 from all, then confirm all values are positive.", "out": "与不乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Subtract one from each, then all positive.", "out": "与不乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Drop each by one, then check if every number is above zero.", "out": "与不乌"} {"kind": "builder", "in": "与不乌", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x - 1 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "与不乌", "out": "Take a list of integers; negate each, then subtract one from each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the first 3 elements, then find the max, defaulting to 0.", "out": "丽丕业"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove everything after the third, then Give me the maximum, but 0 if there are no items.", "out": "丽丕业"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then truncate to three items, then What's the highest number in the list.", "out": "丽丕业"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then show the first three, then Return the greatest value or default to 0.", "out": "丽丕业"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then take the first three, then Find the largest element, defaulting to zero.", "out": "丽丕业"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep first 3, then give the largest value (0 if none).", "out": "丽丕业"} {"kind": "builder", "in": "丽丕业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:3]\n return max(r) if r else 0"} {"kind": "translator", "in": "丽丕业", "out": "Take a list of integers; add ten to each, then keep only the first three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increase every value by 10, then true if at least one even value.", "out": "乂丽之"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then add 10 to each item, then any even.", "out": "乂丽之"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then shift each up by ten, then true if at least one even value.", "out": "乂丽之"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then increase all numbers by 10, then any even.", "out": "乂丽之"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then add 10 to everything, then true if at least one even value.", "out": "乂丽之"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then give everything a boost of 10, then any even.", "out": "乂丽之"} {"kind": "builder", "in": "乂丽之", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乂丽之", "out": "Take a list of integers; take values while they are positive, then add ten to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then stop at the first non-positive value.", "out": "下丁乂"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then keep the leading run of positive numbers.", "out": "下丁乂"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then take values while they are positive.", "out": "下丁乂"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then take positive values then stop.", "out": "下丁乂"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then keep going while positive.", "out": "下丁乂"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then stop at first non positive.", "out": "下丁乂"} {"kind": "builder", "in": "下丁乂", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "下丁乂", "out": "Take a list of integers; add one to each, then keep the odd numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the age field from each record, then true if at least one even value.", "out": "习九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then get the age field, then any even.", "out": "习九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's age, then true if at least one even value.", "out": "习九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then extract age values, then any even.", "out": "习九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then get all the ages, then true if at least one even value.", "out": "习九之"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then what are the ages, then any even.", "out": "习九之"} {"kind": "builder", "in": "习九之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['age'] for d in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "习九之", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the ages, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then clamp each to at most ten, then keep only non-zero numbers.", "out": "不丘举"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then don't let anything exceed 10, then strip the zeros.", "out": "不丘举"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then clamp each to at most ten, then keep only non-zero numbers.", "out": "不丘举"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then don't let anything exceed 10, then strip the zeros.", "out": "不丘举"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then clamp each to at most ten, then keep only non-zero numbers.", "out": "不丘举"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then don't let anything exceed 10, then strip the zeros.", "out": "不丘举"} {"kind": "builder", "in": "不丘举", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "不丘举", "out": "Take a list of integers; subtract one from each, then cap each value at 10, then drop the zeros."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then arrange in increasing order.", "out": "九么丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then Organize these ascending.", "out": "九么丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then Sort in ascending order.", "out": "九么丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then I need this sorted ascending.", "out": "九么丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then Put these in ascending order.", "out": "九么丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then sort smallest to largest.", "out": "九么丑"} {"kind": "builder", "in": "九么丑", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "九么丑", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then order by distance from zero, then arrange in increasing order.", "out": "么丸丑"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then sort based on absolute value, then Organize these ascending.", "out": "么丸丑"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then organize by magnitude, then Sort in ascending order.", "out": "么丸丑"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then arrange by absolute value ascending, then I need this sorted ascending.", "out": "么丸丑"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then sort from smallest to largest absolute value, then Put these in ascending order.", "out": "么丸丑"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort by absolute value, then sort smallest to largest.", "out": "么丸丑"} {"kind": "builder", "in": "么丸丑", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r, key=abs)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "么丸丑", "out": "Take a list of integers; if empty, use a single zero, then sort by absolute value, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove both ends, then shift each up by ten.", "out": "七为丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then trim the edges, then increase all numbers by 10.", "out": "七为丽"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then trim one element off each end, then add 10 to everything.", "out": "七为丽"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then cut off the first and last, then give everything a boost of 10.", "out": "七为丽"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first and last elements, then increment each by ten.", "out": "七为丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep only the middle part, then add a constant 10 to each.", "out": "七为丽"} {"kind": "builder", "in": "七为丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:-1]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "七为丽", "out": "Take a list of integers; keep the positive numbers, then drop the first and last elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then skip negatives at the start, then keep only numbers above 5.", "out": "丁乃主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove all negatives at the front, then exclude values of 5 and below.", "out": "丁乃主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the initial run of negative numbers, then remove anything 5 or less.", "out": "丁乃主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then strip the front negatives, then filter to keep only values above 5.", "out": "丁乃主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove leading negative numbers, then get rid of values that aren't greater than five.", "out": "丁乃主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop negatives from start, then drop anything 5 or below.", "out": "丁乃主"} {"kind": "builder", "in": "丁乃主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丁乃主", "out": "Take a list of integers; keep the odd numbers, then drop the leading negative values, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then ensure at least three items by appending zeros.", "out": "主乂义"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then ensure minimum length of three by adding zeros to the end.", "out": "主乂义"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then ensure at least three items by appending zeros.", "out": "主乂义"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then ensure minimum length of three by adding zeros to the end.", "out": "主乂义"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then ensure at least three items by appending zeros.", "out": "主乂义"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then ensure minimum length of three by adding zeros to the end.", "out": "主乂义"} {"kind": "builder", "in": "主乂义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "主乂义", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then make every value non-negative, then drop anything not divisible by three.", "out": "九丏串"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then absolute value for all items, then filter out everything except multiples of three.", "out": "九丏串"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take absolute values, then keep only multiples of three.", "out": "九丏串"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn negatives into positives, then multiples of three only.", "out": "九丏串"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then abs each element, then filter for numbers divisible by three.", "out": "九丏串"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the absolute value of each, then give me only the values divisible by three.", "out": "九丏串"} {"kind": "builder", "in": "九丏串", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "九丏串", "out": "Take a list of people records (name, age); extract the ages, then take the absolute value of each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the list around, then keep only numbers above 5.", "out": "为丐主"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then flip the order around, then exclude values of 5 and below.", "out": "为丐主"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then put the elements backwards, then remove anything 5 or less.", "out": "为丐主"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then reverse that for me, then filter to keep only values above 5.", "out": "为丐主"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip it backwards, then get rid of values that aren't greater than five.", "out": "为丐主"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then make it backwards, then drop anything 5 or below.", "out": "为丐主"} {"kind": "builder", "in": "为丐主", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(reversed(r))\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "为丐主", "out": "Take a list of integers; drop the first and last elements, then reverse the order, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then stop at the first non-positive value.", "out": "久世乂"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then keep the leading run of positive numbers.", "out": "久世乂"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then take values while they are positive.", "out": "久世乂"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then take positive values then stop.", "out": "久世乂"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then keep going while positive.", "out": "久世乂"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then stop at first non positive.", "out": "久世乂"} {"kind": "builder", "in": "久世乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "久世乂", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each value by itself, then drop anything not divisible by three.", "out": "不上串"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then square them all, then filter out everything except multiples of three.", "out": "不上串"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then raise each to the power of two, then keep only multiples of three.", "out": "不上串"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then I need each number multiplied by itself, then multiples of three only.", "out": "不上串"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then square all of them, then filter for numbers divisible by three.", "out": "不上串"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiply each element by itself, then give me only the values divisible by three.", "out": "不上串"} {"kind": "builder", "in": "不上串", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "不上串", "out": "Take a list of integers; subtract one from each, then square each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increase every value by 10, then make each twice as big.", "out": "丁丽丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then add 10 to each item, then multiply each by 2.", "out": "丁丽丈"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then shift each up by ten, then make each twice as big.", "out": "丁丽丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then increase all numbers by 10, then multiply each by 2.", "out": "丁丽丈"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then add 10 to everything, then make each twice as big.", "out": "丁丽丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give everything a boost of 10, then multiply each by 2.", "out": "丁丽丈"} {"kind": "builder", "in": "丁丽丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丁丽丈", "out": "Take a list of integers; keep the odd numbers, then add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only odd values, then stop at the first non-positive value.", "out": "专丁乂"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then eliminate the even numbers, then keep the leading run of positive numbers.", "out": "专丁乂"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only odd values, then take values while they are positive.", "out": "专丁乂"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then eliminate the even numbers, then take positive values then stop.", "out": "专丁乂"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only odd values, then keep going while positive.", "out": "专丁乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then eliminate the even numbers, then stop at first non positive.", "out": "专丁乂"} {"kind": "builder", "in": "专丁乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "专丁乂", "out": "Take a list of integers; sort descending, then keep the odd numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove both ends, then remove the initial run of negative numbers.", "out": "丁为乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then trim the edges, then strip the front negatives.", "out": "丁为乃"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then trim one element off each end, then remove leading negative numbers.", "out": "丁为乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off the first and last, then drop negatives from start.", "out": "丁为乃"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first and last elements, then strip negative values from the start.", "out": "丁为乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the middle part, then remove negatives before the first non-negative.", "out": "丁为乃"} {"kind": "builder", "in": "丁为乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丁为乃", "out": "Take a list of integers; keep the odd numbers, then drop the first and last elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then decrement each value, then arrange in decreasing order.", "out": "丁不专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Lower each number by one, then arrange in descending order.", "out": "丁不专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then reduce each by one, then reverse sort.", "out": "丁不专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Subtract 1 from all, then sort largest to smallest.", "out": "丁不专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Subtract one from each, then sort by descending values.", "out": "丁不专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Drop each by one, then sort from highest to lowest.", "out": "丁不专"} {"kind": "builder", "in": "丁不专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x - 1 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丁不专", "out": "Take a list of integers; keep the odd numbers, then subtract one from each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove the first item, then make each twice as big.", "out": "乃世丈"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Remove head, then multiply each by 2.", "out": "乃世丈"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove the first item, then make each twice as big.", "out": "乃世丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Remove head, then multiply each by 2.", "out": "乃世丈"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first item, then make each twice as big.", "out": "乃世丈"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Remove head, then multiply each by 2.", "out": "乃世丈"} {"kind": "builder", "in": "乃世丈", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乃世丈", "out": "Take a list of integers; drop the leading negative values, then drop the first element, then double each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then default to [0] when there is nothing, then give back the product of all values.", "out": "丐么乐"} {"kind": "speaker", "in": "Take a list of integers; reverse, then when the list is empty, substitute a zero value, then product of the list.", "out": "丐么乐"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then replace an empty list with one zero, then what's the product.", "out": "丐么乐"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then zero it out if it's empty, then what do they multiply to.", "out": "丐么乐"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then use zero if the list is empty, then give me their product.", "out": "丐么乐"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then default to zero when empty, then multiply them all together.", "out": "丐么乐"} {"kind": "builder", "in": "丐么乐", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r if r else [0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丐么乐", "out": "Take a list of integers; reverse the order, then if empty, use a single zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then cut the list at the first zero, then truncate to the last three items.", "out": "么久丹"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then cut off after the first zero appears, then show only the last three.", "out": "么久丹"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take values up to (excluding) the first zero, then remove all but the last three.", "out": "么久丹"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the part before the first 0, then take the final 3 elements.", "out": "么久丹"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then truncate at the first zero, then drop everything except the final three.", "out": "么久丹"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then delete everything starting with the first zero, then give me the last three elements.", "out": "么久丹"} {"kind": "builder", "in": "么久丹", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "么久丹", "out": "Take a list of integers; if empty, use a single zero, then keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then truncate to the last three items.", "out": "义乂丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then show only the last three.", "out": "义乂丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then remove all but the last three.", "out": "义乂丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then take the final 3 elements.", "out": "义乂丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then drop everything except the final three.", "out": "义乂丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then give me the last three elements.", "out": "义乂丹"} {"kind": "builder", "in": "义乂丹", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "义乂丹", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then put the elements backwards.", "out": "丕丈丐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then reverse that for me.", "out": "丕丈丐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then flip it backwards.", "out": "丕丈丐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then make it backwards.", "out": "丕丈丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then reverse the list.", "out": "丕丈丐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then invert the sequence.", "out": "丕丈丐"} {"kind": "builder", "in": "丕丈丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丕丈丐", "out": "Take a list of integers; keep only the first three, then double each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros, then deduplicate the list.", "out": "为义且"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3, then remove repeats.", "out": "为义且"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros, then deduplicate the list.", "out": "为义且"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3, then remove repeats.", "out": "为义且"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros, then deduplicate the list.", "out": "为义且"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3, then remove repeats.", "out": "为义且"} {"kind": "builder", "in": "为义且", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "为义且", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then decrement each value, then put the elements backwards.", "out": "万不丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Lower each number by one, then reverse that for me.", "out": "万不丐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then reduce each by one, then flip it backwards.", "out": "万不丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Subtract 1 from all, then make it backwards.", "out": "万不丐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Subtract one from each, then reverse the list.", "out": "万不丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Drop each by one, then invert the sequence.", "out": "万不丐"} {"kind": "builder", "in": "万不丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "万不丐", "out": "Take a list of integers; keep the negative numbers, then subtract one from each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove all zero values, then strip the signs.", "out": "串举丏"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then exclude zeros, then take abs of each.", "out": "串举丏"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove all zero values, then get the absolute value of everything.", "out": "串举丏"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then exclude zeros, then apply absolute value to the whole list.", "out": "串举丏"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove all zero values, then make them all positive.", "out": "串举丏"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then exclude zeros, then make every value non-negative.", "out": "串举丏"} {"kind": "builder", "in": "串举丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "串举丏", "out": "Take a list of integers; keep multiples of three, then drop the zeros, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then give the number of evens.", "out": "乂乃乓"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then find how many values are divisible by two.", "out": "乂乃乓"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then how many are even.", "out": "乂乃乓"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then get the total number of even values in the list.", "out": "乂乃乓"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then give me the count of even values.", "out": "乂乃乓"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then I need to know how many of these are even.", "out": "乂乃乓"} {"kind": "builder", "in": "乂乃乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "乂乃乓", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increase every value by 10, then drop the even numbers.", "out": "不丽丁"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then add 10 to each item, then strip out the evens.", "out": "不丽丁"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then shift each up by ten, then drop the even numbers.", "out": "不丽丁"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then increase all numbers by 10, then strip out the evens.", "out": "不丽丁"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then add 10 to everything, then drop the even numbers.", "out": "不丽丁"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then give everything a boost of 10, then strip out the evens.", "out": "不丽丁"} {"kind": "builder", "in": "不丽丁", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "不丽丁", "out": "Take a list of integers; subtract one from each, then add ten to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then decrement each value, then give back the product of all values.", "out": "九不乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Lower each number by one, then product of the list.", "out": "九不乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then reduce each by one, then what's the product.", "out": "九不乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Subtract 1 from all, then what do they multiply to.", "out": "九不乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Subtract one from each, then give me their product.", "out": "九不乐"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Drop each by one, then multiply them all together.", "out": "九不乐"} {"kind": "builder", "in": "九不乐", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x - 1 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "九不乐", "out": "Take a list of people records (name, age); extract the ages, then subtract one from each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then make every value non-negative, then make each twice as big.", "out": "丘丏丈"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then absolute value for all items, then multiply each by 2.", "out": "丘丏丈"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take absolute values, then make each twice as big.", "out": "丘丏丈"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn negatives into positives, then multiply each by 2.", "out": "丘丏丈"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then abs each element, then make each twice as big.", "out": "丘丏丈"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the absolute value of each, then multiply each by 2.", "out": "丘丏丈"} {"kind": "builder", "in": "丘丏丈", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丘丏丈", "out": "Take a list of integers; cap each value at 10, then take the absolute value of each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values divisible by 3, then strip the signs.", "out": "久串丏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep items where x mod 3 equals zero, then take abs of each.", "out": "久串丏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then drop anything not divisible by three, then get the absolute value of everything.", "out": "久串丏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then filter out everything except multiples of three, then apply absolute value to the whole list.", "out": "久串丏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only multiples of three, then make them all positive.", "out": "久串丏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiples of three only, then make every value non-negative.", "out": "久串丏"} {"kind": "builder", "in": "久串丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "久串丏", "out": "Take a list of integers; keep everything before the first zero, then keep multiples of three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then order by distance from zero, then keep only numbers above 5.", "out": "下丸主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort based on absolute value, then exclude values of 5 and below.", "out": "下丸主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then organize by magnitude, then remove anything 5 or less.", "out": "下丸主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then arrange by absolute value ascending, then filter to keep only values above 5.", "out": "下丸主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from smallest to largest absolute value, then get rid of values that aren't greater than five.", "out": "下丸主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by absolute value, then drop anything 5 or below.", "out": "下丸主"} {"kind": "builder", "in": "下丸主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "下丸主", "out": "Take a list of integers; add one to each, then sort by absolute value, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values divisible by 3, then give the earliest even value or zero.", "out": "且串乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep items where x mod 3 equals zero, then fetch the first even element, default to 0.", "out": "且串乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything not divisible by three, then give the earliest even value or zero.", "out": "且串乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter out everything except multiples of three, then fetch the first even element, default to 0.", "out": "且串乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only multiples of three, then give the earliest even value or zero.", "out": "且串乒"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiples of three only, then fetch the first even element, default to 0.", "out": "且串乒"} {"kind": "builder", "in": "且串乒", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "且串乒", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep multiples of three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then strip the signs.", "out": "串主丏"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then take abs of each.", "out": "串主丏"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then get the absolute value of everything.", "out": "串主丏"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then apply absolute value to the whole list.", "out": "串主丏"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then make them all positive.", "out": "串主丏"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then make every value non-negative.", "out": "串主丏"} {"kind": "builder", "in": "串主丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "串主丏", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the leading run of positive numbers, then keep only non-zero numbers.", "out": "与乂举"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take values while they are positive, then strip the zeros.", "out": "与乂举"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take positive values then stop, then keep only non-zero numbers.", "out": "与乂举"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep going while positive, then strip the zeros.", "out": "与乂举"} {"kind": "speaker", "in": "Take a list of integers; negate each, then stop at first non positive, then keep only non-zero numbers.", "out": "与乂举"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take while greater than zero, then strip the zeros.", "out": "与乂举"} {"kind": "builder", "in": "与乂举", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "与乂举", "out": "Take a list of integers; negate each, then take values while they are positive, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the list around, then keep only non-zero numbers.", "out": "世丐举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then flip the order around, then strip the zeros.", "out": "世丐举"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then put the elements backwards, then keep only non-zero numbers.", "out": "世丐举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then reverse that for me, then strip the zeros.", "out": "世丐举"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip it backwards, then keep only non-zero numbers.", "out": "世丐举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then make it backwards, then strip the zeros.", "out": "世丐举"} {"kind": "builder", "in": "世丐举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "世丐举", "out": "Take a list of integers; drop the first element, then reverse the order, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then drop the odd numbers.", "out": "丹丽一"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then filter out the odd numbers.", "out": "丹丽一"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then drop the odd numbers.", "out": "丹丽一"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then filter out the odd numbers.", "out": "丹丽一"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then drop the odd numbers.", "out": "丹丽一"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then filter out the odd numbers.", "out": "丹丽一"} {"kind": "builder", "in": "丹丽一", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丹丽一", "out": "Take a list of integers; keep only the last three, then add ten to each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then clamp each to at most ten, then true if at least one even value.", "out": "丹丘之"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then don't let anything exceed 10, then any even.", "out": "丹丘之"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then clamp each to at most ten, then true if at least one even value.", "out": "丹丘之"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then don't let anything exceed 10, then any even.", "out": "丹丘之"} {"kind": "speaker", "in": "Take a list of integers; last three only, then clamp each to at most ten, then true if at least one even value.", "out": "丹丘之"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then don't let anything exceed 10, then any even.", "out": "丹丘之"} {"kind": "builder", "in": "丹丘之", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丹丘之", "out": "Take a list of integers; keep only the last three, then cap each value at 10, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort largest to smallest, then make each twice as big.", "out": "丏专丈"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort by descending values, then multiply each by 2.", "out": "丏专丈"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then sort from highest to lowest, then make each twice as big.", "out": "丏专丈"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then sort descending, then multiply each by 2.", "out": "丏专丈"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort largest first, then make each twice as big.", "out": "丏专丈"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort in descending order, then multiply each by 2.", "out": "丏专丈"} {"kind": "builder", "in": "丏专丈", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丏专丈", "out": "Take a list of integers; take the absolute value of each, then sort descending, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then extend to length 3 using zeros, then true if any value equals zero.", "out": "世义乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then pad to 3, then check for zero.", "out": "世义乍"} {"kind": "builder", "in": "世义乍", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return 0 in r"} {"kind": "translator", "in": "世义乍", "out": "Take a list of integers; drop the first element, then pad with zeros to at least three elements, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then arrange by magnitude ignoring sign.", "out": "丹丽丸"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then put them in order by magnitude.", "out": "丹丽丸"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then arrange in order of absolute value.", "out": "丹丽丸"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then sort by distance from zero.", "out": "丹丽丸"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then order by how far from zero.", "out": "丹丽丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then order by distance from zero.", "out": "丹丽丸"} {"kind": "builder", "in": "丹丽丸", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丹丽丸", "out": "Take a list of integers; keep only the last three, then add ten to each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the first 3 elements, then arrange in increasing order.", "out": "不丕丑"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove everything after the third, then Organize these ascending.", "out": "不丕丑"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then truncate to three items, then Sort in ascending order.", "out": "不丕丑"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then show the first three, then I need this sorted ascending.", "out": "不丕丑"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then take the first three, then Put these in ascending order.", "out": "不丕丑"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep first 3, then sort smallest to largest.", "out": "不丕丑"} {"kind": "builder", "in": "不丕丑", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:3]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "不丕丑", "out": "Take a list of integers; subtract one from each, then keep only the first three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself, then keep only numbers above 5.", "out": "乃上主"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all, then exclude values of 5 and below.", "out": "乃上主"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two, then remove anything 5 or less.", "out": "乃上主"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself, then filter to keep only values above 5.", "out": "乃上主"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them, then get rid of values that aren't greater than five.", "out": "乃上主"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself, then drop anything 5 or below.", "out": "乃上主"} {"kind": "builder", "in": "乃上主", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乃上主", "out": "Take a list of integers; drop the leading negative values, then square each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then convert each to upper case, then count characters across all strings.", "out": "严丟个"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then change all strings to uppercase, then character count.", "out": "严丟个"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then make every string uppercase, then count all the characters.", "out": "严丟个"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then uppercase each one, then total number of characters.", "out": "严丟个"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then make all the strings uppercase, then what's the total character count.", "out": "严丟个"} {"kind": "speaker", "in": "Take a list of strings; length sort, then convert all strings to uppercase letters, then add up the lengths.", "out": "严丟个"} {"kind": "builder", "in": "严丟个", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.upper() for s in r]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "严丟个", "out": "Take a list of strings; sort by length, shortest first, then uppercase each string, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove both ends, then raise each to the power of two.", "out": "丽为上"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then trim the edges, then I need each number multiplied by itself.", "out": "丽为上"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then trim one element off each end, then square all of them.", "out": "丽为上"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then cut off the first and last, then multiply each element by itself.", "out": "丽为上"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first and last elements, then make each one squared.", "out": "丽为上"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep only the middle part, then square each value in the list.", "out": "丽为上"} {"kind": "builder", "in": "丽为上", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:-1]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丽为上", "out": "Take a list of integers; add ten to each, then drop the first and last elements, then square each."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then add '#' to the start of each string, then arrange in lexicographic order.", "out": "丢乘乖"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then make each one start with a hash, then sort by letter.", "out": "丢乘乖"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then add '#' to the start of each string, then arrange in lexicographic order.", "out": "丢乘乖"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then make each one start with a hash, then sort by letter.", "out": "丢乘乖"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then add '#' to the start of each string, then arrange in lexicographic order.", "out": "丢乘乖"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then make each one start with a hash, then sort by letter.", "out": "丢乘乖"} {"kind": "builder", "in": "丢乘乖", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = ['#' + s for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丢乘乖", "out": "Take a list of strings; trim whitespace from each, then prefix each with a hash, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the final 3 elements, then bump each up by one.", "out": "七丹下"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then drop everything except the final three, then increment each item.", "out": "七丹下"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then give me the last three elements, then bump each up by one.", "out": "七丹下"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep only the last three, then increment each item.", "out": "七丹下"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep the final three items, then bump each up by one.", "out": "七丹下"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the last three, then increment each item.", "out": "七丹下"} {"kind": "builder", "in": "七丹下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[-3:]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "七丹下", "out": "Take a list of integers; keep the positive numbers, then keep only the last three, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then skip negatives at the start, then deduplicate the list.", "out": "七乃且"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove all negatives at the front, then remove repeats.", "out": "七乃且"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the initial run of negative numbers, then deduplicate the list.", "out": "七乃且"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then strip the front negatives, then remove repeats.", "out": "七乃且"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove leading negative numbers, then deduplicate the list.", "out": "七乃且"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then drop negatives from start, then remove repeats.", "out": "七乃且"} {"kind": "builder", "in": "七乃且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "七乃且", "out": "Take a list of integers; keep the positive numbers, then drop the leading negative values, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then cut the list at the first zero, then replace an empty list with one zero.", "out": "主久么"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then cut off after the first zero appears, then zero it out if it's empty.", "out": "主久么"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take values up to (excluding) the first zero, then use zero if the list is empty.", "out": "主久么"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the part before the first 0, then default to zero when empty.", "out": "主久么"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then truncate at the first zero, then if there's nothing, put in a zero.", "out": "主久么"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then delete everything starting with the first zero, then if no items, add a zero.", "out": "主久么"} {"kind": "builder", "in": "主久么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "主久么", "out": "Take a list of integers; keep values greater than five, then keep everything before the first zero, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then add '#' to the start of each string, then return the number of strings.", "out": "乞乘丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then make each one start with a hash, then count the strings.", "out": "乞乘丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then add '#' to the start of each string, then return how many strings remain.", "out": "乞乘丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then make each one start with a hash, then give me the total number of strings.", "out": "乞乘丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then add '#' to the start of each string, then tell me how many strings we have.", "out": "乞乘丫"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then make each one start with a hash, then what's the string count.", "out": "乞乘丫"} {"kind": "builder", "in": "乞乘丫", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = ['#' + s for s in r]\n return len(r)"} {"kind": "translator", "in": "乞乘丫", "out": "Take a list of people records (name, age); extract the names, then prefix each with a hash, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then make every value non-negative, then drop non-positive values.", "out": "万丏七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then absolute value for all items, then drop the negative numbers.", "out": "万丏七"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take absolute values, then filter out the negative ones.", "out": "万丏七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn negatives into positives, then remove all negative values.", "out": "万丏七"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then abs each element, then keep positive values only.", "out": "万丏七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the absolute value of each, then keep values above zero.", "out": "万丏七"} {"kind": "builder", "in": "万丏七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "万丏七", "out": "Take a list of integers; keep the negative numbers, then take the absolute value of each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then cut the list at the first zero, then raise each to the power of two.", "out": "主久上"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then cut off after the first zero appears, then I need each number multiplied by itself.", "out": "主久上"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take values up to (excluding) the first zero, then square all of them.", "out": "主久上"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the part before the first 0, then multiply each element by itself.", "out": "主久上"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then truncate at the first zero, then make each one squared.", "out": "主久上"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then delete everything starting with the first zero, then square each value in the list.", "out": "主久上"} {"kind": "builder", "in": "主久上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "主久上", "out": "Take a list of integers; keep values greater than five, then keep everything before the first zero, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then default to [0] when there is nothing, then drop non-positive values.", "out": "久么七"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then when the list is empty, substitute a zero value, then drop the negative numbers.", "out": "久么七"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then replace an empty list with one zero, then filter out the negative ones.", "out": "久么七"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then zero it out if it's empty, then remove all negative values.", "out": "久么七"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then use zero if the list is empty, then keep positive values only.", "out": "久么七"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then default to zero when empty, then keep values above zero.", "out": "久么七"} {"kind": "builder", "in": "久么七", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r if r else [0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "久么七", "out": "Take a list of integers; keep everything before the first zero, then if empty, use a single zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then clamp each to at most ten, then deduplicate the list.", "out": "么丘且"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then don't let anything exceed 10, then remove repeats.", "out": "么丘且"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then clamp each to at most ten, then deduplicate the list.", "out": "么丘且"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then don't let anything exceed 10, then remove repeats.", "out": "么丘且"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then clamp each to at most ten, then deduplicate the list.", "out": "么丘且"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then don't let anything exceed 10, then remove repeats.", "out": "么丘且"} {"kind": "builder", "in": "么丘且", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "么丘且", "out": "Take a list of integers; if empty, use a single zero, then cap each value at 10, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the list around, then true if every value is unique.", "out": "丘丐乏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then flip the order around, then check for duplicates in the values.", "out": "丘丐乏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then put the elements backwards, then do all values appear only once.", "out": "丘丐乏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then reverse that for me, then check that there are no duplicates.", "out": "丘丐乏"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip it backwards, then are the values all unique.", "out": "丘丐乏"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then make it backwards, then check if all values are unique.", "out": "丘丐乏"} {"kind": "builder", "in": "丘丐乏", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = list(reversed(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丘丐乏", "out": "Take a list of integers; cap each value at 10, then reverse the order, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increment each value, then count the elements.", "out": "为下东"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then plus one for all, then how many items remain.", "out": "为下东"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then increment each value, then tell me the length.", "out": "为下东"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then plus one for all, then return the length.", "out": "为下东"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then increment each value, then count them.", "out": "为下东"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then plus one for all, then what's the count.", "out": "为下东"} {"kind": "builder", "in": "为下东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 1 for x in r]\n return len(r)"} {"kind": "translator", "in": "为下东", "out": "Take a list of integers; drop the first and last elements, then add one to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the list around, then drop the odd numbers.", "out": "世丐一"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then flip the order around, then filter out the odd numbers.", "out": "世丐一"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then put the elements backwards, then drop the odd numbers.", "out": "世丐一"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then reverse that for me, then filter out the odd numbers.", "out": "世丐一"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip it backwards, then drop the odd numbers.", "out": "世丐一"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then make it backwards, then filter out the odd numbers.", "out": "世丐一"} {"kind": "builder", "in": "世丐一", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "世丐一", "out": "Take a list of integers; drop the first element, then reverse the order, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only even values, then strip the signs.", "out": "不一丏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then extract all even numbers, then take abs of each.", "out": "不一丏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only even values, then get the absolute value of everything.", "out": "不一丏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then extract all even numbers, then apply absolute value to the whole list.", "out": "不一丏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only even values, then make them all positive.", "out": "不一丏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then extract all even numbers, then make every value non-negative.", "out": "不一丏"} {"kind": "builder", "in": "不一丏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "不一丏", "out": "Take a list of integers; subtract one from each, then keep the even numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove both ends, then raise each to the power of two.", "out": "丘为上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then trim the edges, then I need each number multiplied by itself.", "out": "丘为上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then trim one element off each end, then square all of them.", "out": "丘为上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off the first and last, then multiply each element by itself.", "out": "丘为上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first and last elements, then make each one squared.", "out": "丘为上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the middle part, then square each value in the list.", "out": "丘为上"} {"kind": "builder", "in": "丘为上", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[1:-1]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丘为上", "out": "Take a list of integers; cap each value at 10, then drop the first and last elements, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then keep only non-empty strings, then find the longest one, defaulting to empty.", "out": "乞两丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then filter empty strings, then Longest string, or nothing if there isn't one.", "out": "乞两丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove empty strings from the list, then find the longest one, defaulting to empty.", "out": "乞两丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then clean up empty strings, then Longest string, or nothing if there isn't one.", "out": "乞两丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then delete empty entries, then find the longest one, defaulting to empty.", "out": "乞两丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then drop empty strings, then Longest string, or nothing if there isn't one.", "out": "乞两丰"} {"kind": "builder", "in": "乞两丰", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s for s in r if s]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "乞两丰", "out": "Take a list of people records (name, age); extract the names, then drop empty strings, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove repeated values, then bump each up by one.", "out": "丏且下"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then unique values preserving order, then increment each item.", "out": "丏且下"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove repeated values, then bump each up by one.", "out": "丏且下"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then unique values preserving order, then increment each item.", "out": "丏且下"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove repeated values, then bump each up by one.", "out": "丏且下"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then unique values preserving order, then increment each item.", "out": "丏且下"} {"kind": "builder", "in": "丏且下", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丏且下", "out": "Take a list of integers; take the absolute value of each, then drop duplicates keeping first occurrence, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the final 3 elements, then true if every value is unique.", "out": "丏丹乏"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then drop everything except the final three, then check for duplicates in the values.", "out": "丏丹乏"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then give me the last three elements, then do all values appear only once.", "out": "丏丹乏"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep only the last three, then check that there are no duplicates.", "out": "丏丹乏"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep the final three items, then are the values all unique.", "out": "丏丹乏"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take the last three, then check if all values are unique.", "out": "丏丹乏"} {"kind": "builder", "in": "丏丹乏", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[-3:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丏丹乏", "out": "Take a list of integers; take the absolute value of each, then keep only the last three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the age field from each record, then raise each to the power of two.", "out": "习九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then get the age field, then I need each number multiplied by itself.", "out": "习九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's age, then square all of them.", "out": "习九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then extract age values, then multiply each element by itself.", "out": "习九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then get all the ages, then make each one squared.", "out": "习九上"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then what are the ages, then square each value in the list.", "out": "习九上"} {"kind": "builder", "in": "习九上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['age'] for d in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "习九上", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the ages, then square each."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep only strings of length 3 or more, then count characters across all strings.", "out": "乖乗个"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then get rid of short ones, then character count.", "out": "乖乗个"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove strings with less than three characters, then count all the characters.", "out": "乖乗个"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove all strings under three characters in length, then total number of characters.", "out": "乖乗个"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then filter out short strings under three chars, then what's the total character count.", "out": "乖乗个"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop strings shorter than three characters, then add up the lengths.", "out": "乖乗个"} {"kind": "builder", "in": "乖乗个", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s for s in r if len(s) >= 3]\n return sum(len(s) for s in r)"} {"kind": "translator", "in": "乖乗个", "out": "Take a list of strings; sort alphabetically, then drop strings shorter than three characters, then return the total number of characters."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort smallest to largest, then true if at least one even value.", "out": "上丑之"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Ascending sort, then any even.", "out": "上丑之"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then Sort this ascending, then true if at least one even value.", "out": "上丑之"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Sort lowest to highest, then any even.", "out": "上丑之"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then Arrange from smallest to largest, then true if at least one even value.", "out": "上丑之"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort ascending, then any even.", "out": "上丑之"} {"kind": "builder", "in": "上丑之", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "上丑之", "out": "Take a list of integers; square each, then sort ascending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then cut the list at the first zero, then keep only non-zero numbers.", "out": "丑久举"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then cut off after the first zero appears, then strip the zeros.", "out": "丑久举"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take values up to (excluding) the first zero, then keep only non-zero numbers.", "out": "丑久举"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the part before the first 0, then strip the zeros.", "out": "丑久举"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then truncate at the first zero, then keep only non-zero numbers.", "out": "丑久举"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then delete everything starting with the first zero, then strip the zeros.", "out": "丑久举"} {"kind": "builder", "in": "丑久举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丑久举", "out": "Take a list of integers; sort ascending, then keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then drop non-positive values.", "out": "世一七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then drop the negative numbers.", "out": "世一七"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then filter out the negative ones.", "out": "世一七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then remove all negative values.", "out": "世一七"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then keep positive values only.", "out": "世一七"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then keep values above zero.", "out": "世一七"} {"kind": "builder", "in": "世一七", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "世一七", "out": "Take a list of integers; drop the first element, then keep the even numbers, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increase every value by 10, then true if at least one even value.", "out": "义丽之"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then add 10 to each item, then any even.", "out": "义丽之"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then shift each up by ten, then true if at least one even value.", "out": "义丽之"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then increase all numbers by 10, then any even.", "out": "义丽之"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then add 10 to everything, then true if at least one even value.", "out": "义丽之"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give everything a boost of 10, then any even.", "out": "义丽之"} {"kind": "builder", "in": "义丽之", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "义丽之", "out": "Take a list of integers; pad with zeros to at least three elements, then add ten to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then convert each to upper case, then reduce each string to its first character.", "out": "严丟丨"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then change all strings to uppercase, then take first char drop blanks.", "out": "严丟丨"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then make every string uppercase, then keep first letters only.", "out": "严丟丨"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then uppercase each one, then first letter from each item that isn't empty.", "out": "严丟丨"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then make all the strings uppercase, then grab the first char from each.", "out": "严丟丨"} {"kind": "speaker", "in": "Take a list of strings; length sort, then convert all strings to uppercase letters, then isolate the first character per entry.", "out": "严丟丨"} {"kind": "builder", "in": "严丟丨", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.upper() for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "严丟丨", "out": "Take a list of strings; sort by length, shortest first, then uppercase each string, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then order by distance from zero, then raise each to the power of two.", "out": "与丸上"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort based on absolute value, then I need each number multiplied by itself.", "out": "与丸上"} {"kind": "speaker", "in": "Take a list of integers; negate each, then organize by magnitude, then square all of them.", "out": "与丸上"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then arrange by absolute value ascending, then multiply each element by itself.", "out": "与丸上"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort from smallest to largest absolute value, then make each one squared.", "out": "与丸上"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort by absolute value, then square each value in the list.", "out": "与丸上"} {"kind": "builder", "in": "与丸上", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "与丸上", "out": "Take a list of integers; negate each, then sort by absolute value, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values above zero, then give back the total.", "out": "久七丙"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then filter for positive numbers, then sum r.", "out": "久七丙"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only positive numbers, then add them up.", "out": "久七丙"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep the positives, then calculate the sum of all elements.", "out": "久七丙"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove negatives, then what's the total.", "out": "久七丙"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep the positive numbers, then what do they add up to.", "out": "久七丙"} {"kind": "builder", "in": "久七丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return sum(r)"} {"kind": "translator", "in": "久七丙", "out": "Take a list of integers; keep everything before the first zero, then keep the positive numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values above zero, then true only if all are positive.", "out": "乂七乌"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then filter for positive numbers, then do all of these have positive values.", "out": "乂七乌"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only positive numbers, then check if every value is positive.", "out": "乂七乌"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the positives, then confirm all values are positive.", "out": "乂七乌"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove negatives, then all positive.", "out": "乂七乌"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep the positive numbers, then check if every number is above zero.", "out": "乂七乌"} {"kind": "builder", "in": "乂七乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乂七乌", "out": "Take a list of integers; take values while they are positive, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then decrement each value, then ensure at least three items by appending zeros.", "out": "丈不义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Lower each number by one, then ensure minimum length of three by adding zeros to the end.", "out": "丈不义"} {"kind": "speaker", "in": "Take a list of integers; double each, then reduce each by one, then ensure at least three items by appending zeros.", "out": "丈不义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Subtract 1 from all, then ensure minimum length of three by adding zeros to the end.", "out": "丈不义"} {"kind": "speaker", "in": "Take a list of integers; double each, then Subtract one from each, then ensure at least three items by appending zeros.", "out": "丈不义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Drop each by one, then ensure minimum length of three by adding zeros to the end.", "out": "丈不义"} {"kind": "builder", "in": "丈不义", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丈不义", "out": "Take a list of integers; double each, then subtract one from each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then clamp each to at most ten, then give the earliest even value or zero.", "out": "为丘乒"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "为丘乒"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then clamp each to at most ten, then give the earliest even value or zero.", "out": "为丘乒"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "为丘乒"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then clamp each to at most ten, then give the earliest even value or zero.", "out": "为丘乒"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "为丘乒"} {"kind": "builder", "in": "为丘乒", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "为丘乒", "out": "Take a list of integers; drop the first and last elements, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then take the first 3 elements, then raise each to the power of two.", "out": "丹丕上"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove everything after the third, then I need each number multiplied by itself.", "out": "丹丕上"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then truncate to three items, then square all of them.", "out": "丹丕上"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then show the first three, then multiply each element by itself.", "out": "丹丕上"} {"kind": "speaker", "in": "Take a list of integers; last three only, then take the first three, then make each one squared.", "out": "丹丕上"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep first 3, then square each value in the list.", "out": "丹丕上"} {"kind": "builder", "in": "丹丕上", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:3]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丹丕上", "out": "Take a list of integers; keep only the last three, then keep only the first three, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then take each string's first letter, then find the longest one, defaulting to empty.", "out": "乞丨丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then give me the first letter of everything, then Longest string, or nothing if there isn't one.", "out": "乞丨丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then reduce each string to its first character, then find the longest one, defaulting to empty.", "out": "乞丨丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then take first char drop blanks, then Longest string, or nothing if there isn't one.", "out": "乞丨丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then keep first letters only, then find the longest one, defaulting to empty.", "out": "乞丨丰"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then first letter from each item that isn't empty, then Longest string, or nothing if there isn't one.", "out": "乞丨丰"} {"kind": "builder", "in": "乞丨丰", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s[0] for s in r if s]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "乞丨丰", "out": "Take a list of people records (name, age); extract the names, then keep the first character of each (dropping empties), then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then clamp each to at most ten, then trim one element off each end.", "out": "主丘为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then don't let anything exceed 10, then cut off the first and last.", "out": "主丘为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then clamp each to at most ten, then remove the first and last elements.", "out": "主丘为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then don't let anything exceed 10, then keep only the middle part.", "out": "主丘为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then clamp each to at most ten, then drop first and last.", "out": "主丘为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then don't let anything exceed 10, then eliminate the outermost elements.", "out": "主丘为"} {"kind": "builder", "in": "主丘为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主丘为", "out": "Take a list of integers; keep values greater than five, then cap each value at 10, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the list around, then make each twice as big.", "out": "乂丐丈"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then flip the order around, then multiply each by 2.", "out": "乂丐丈"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then put the elements backwards, then make each twice as big.", "out": "乂丐丈"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then reverse that for me, then multiply each by 2.", "out": "乂丐丈"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip it backwards, then make each twice as big.", "out": "乂丐丈"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then make it backwards, then multiply each by 2.", "out": "乂丐丈"} {"kind": "builder", "in": "乂丐丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乂丐丈", "out": "Take a list of integers; take values while they are positive, then reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each value by itself, then drop non-negative values.", "out": "串上万"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then square them all, then drop all positive numbers.", "out": "串上万"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then raise each to the power of two, then drop non-negative values.", "out": "串上万"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then I need each number multiplied by itself, then drop all positive numbers.", "out": "串上万"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then square all of them, then drop non-negative values.", "out": "串上万"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then multiply each element by itself, then drop all positive numbers.", "out": "串上万"} {"kind": "builder", "in": "串上万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "串上万", "out": "Take a list of integers; keep multiples of three, then square each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then skip negatives at the start, then find the max, defaulting to 0.", "out": "么乃业"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove all negatives at the front, then Give me the maximum, but 0 if there are no items.", "out": "么乃业"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the initial run of negative numbers, then What's the highest number in the list.", "out": "么乃业"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then strip the front negatives, then Return the greatest value or default to 0.", "out": "么乃业"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove leading negative numbers, then Find the largest element, defaulting to zero.", "out": "么乃业"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then drop negatives from start, then give the largest value (0 if none).", "out": "么乃业"} {"kind": "builder", "in": "么乃业", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return max(r) if r else 0"} {"kind": "translator", "in": "么乃业", "out": "Take a list of integers; if empty, use a single zero, then drop the leading negative values, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then order by distance from zero, then arrange in decreasing order.", "out": "且丸专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort based on absolute value, then arrange in descending order.", "out": "且丸专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then organize by magnitude, then reverse sort.", "out": "且丸专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then arrange by absolute value ascending, then sort largest to smallest.", "out": "且丸专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort from smallest to largest absolute value, then sort by descending values.", "out": "且丸专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort by absolute value, then sort from highest to lowest.", "out": "且丸专"} {"kind": "builder", "in": "且丸专", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r, key=abs)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "且丸专", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort by absolute value, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then replace an empty list with one zero.", "out": "世丁么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then zero it out if it's empty.", "out": "世丁么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then use zero if the list is empty.", "out": "世丁么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then default to zero when empty.", "out": "世丁么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only odd values, then if there's nothing, put in a zero.", "out": "世丁么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then eliminate the even numbers, then if no items, add a zero.", "out": "世丁么"} {"kind": "builder", "in": "世丁么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "世丁么", "out": "Take a list of integers; drop the first element, then keep the odd numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; negate each, then default to [0] when there is nothing, then true if any value equals zero.", "out": "与么乍"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then when the list is empty, substitute a zero value, then check for zero.", "out": "与么乍"} {"kind": "speaker", "in": "Take a list of integers; negate each, then replace an empty list with one zero, then true if any value equals zero.", "out": "与么乍"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then zero it out if it's empty, then check for zero.", "out": "与么乍"} {"kind": "speaker", "in": "Take a list of integers; negate each, then use zero if the list is empty, then true if any value equals zero.", "out": "与么乍"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then default to zero when empty, then check for zero.", "out": "与么乍"} {"kind": "builder", "in": "与么乍", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r if r else [0]\n return 0 in r"} {"kind": "translator", "in": "与么乍", "out": "Take a list of integers; negate each, then if empty, use a single zero, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first 3 elements, then count the elements.", "out": "丁丕东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove everything after the third, then how many items remain.", "out": "丁丕东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate to three items, then tell me the length.", "out": "丁丕东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then show the first three, then return the length.", "out": "丁丕东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first three, then count them.", "out": "丁丕东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep first 3, then what's the count.", "out": "丁丕东"} {"kind": "builder", "in": "丁丕东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:3]\n return len(r)"} {"kind": "translator", "in": "丁丕东", "out": "Take a list of integers; keep the odd numbers, then keep only the first three, then return how many remain."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort smallest to largest, then truncate to the last three items.", "out": "九丑丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Ascending sort, then show only the last three.", "out": "九丑丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then Sort this ascending, then remove all but the last three.", "out": "九丑丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Sort lowest to highest, then take the final 3 elements.", "out": "九丑丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Arrange from smallest to largest, then drop everything except the final three.", "out": "九丑丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort ascending, then give me the last three elements.", "out": "九丑丹"} {"kind": "builder", "in": "九丑丹", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "九丑丹", "out": "Take a list of people records (name, age); extract the ages, then sort ascending, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove repeated values, then take values up to (excluding) the first zero.", "out": "上且久"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then unique values preserving order, then keep the part before the first 0.", "out": "上且久"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove repeated values, then truncate at the first zero.", "out": "上且久"} {"kind": "speaker", "in": "Take a list of integers; square them all, then unique values preserving order, then delete everything starting with the first zero.", "out": "上且久"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove repeated values, then remove from the first zero onwards.", "out": "上且久"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then unique values preserving order, then up to but not including the first zero.", "out": "上且久"} {"kind": "builder", "in": "上且久", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "上且久", "out": "Take a list of integers; square each, then drop duplicates keeping first occurrence, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements, then skip the first one.", "out": "义丕世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third, then Discard the first element.", "out": "义丕世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items, then skip the first one.", "out": "义丕世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three, then Discard the first element.", "out": "义丕世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three, then skip the first one.", "out": "义丕世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3, then Discard the first element.", "out": "义丕世"} {"kind": "builder", "in": "义丕世", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n r = r[1:]\n return r"} {"kind": "translator", "in": "义丕世", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then order by distance from zero, then drop the even numbers.", "out": "么丸丁"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then sort based on absolute value, then strip out the evens.", "out": "么丸丁"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then organize by magnitude, then drop the even numbers.", "out": "么丸丁"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then arrange by absolute value ascending, then strip out the evens.", "out": "么丸丁"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then sort from smallest to largest absolute value, then drop the even numbers.", "out": "么丸丁"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort by absolute value, then strip out the evens.", "out": "么丸丁"} {"kind": "builder", "in": "么丸丁", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "么丸丁", "out": "Take a list of integers; if empty, use a single zero, then sort by absolute value, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then cut the list at the first zero, then give back the product of all values.", "out": "义久乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off after the first zero appears, then product of the list.", "out": "义久乐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take values up to (excluding) the first zero, then what's the product.", "out": "义久乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the part before the first 0, then what do they multiply to.", "out": "义久乐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate at the first zero, then give me their product.", "out": "义久乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then delete everything starting with the first zero, then multiply them all together.", "out": "义久乐"} {"kind": "builder", "in": "义久乐", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "义久乐", "out": "Take a list of integers; pad with zeros to at least three elements, then keep everything before the first zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values below zero, then give the earliest even value or zero.", "out": "不万乒"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then get the negative numbers, then fetch the first even element, default to 0.", "out": "不万乒"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep values below zero, then give the earliest even value or zero.", "out": "不万乒"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the negative numbers, then fetch the first even element, default to 0.", "out": "不万乒"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep values below zero, then give the earliest even value or zero.", "out": "不万乒"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the negative numbers, then fetch the first even element, default to 0.", "out": "不万乒"} {"kind": "builder", "in": "不万乒", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "不万乒", "out": "Take a list of integers; subtract one from each, then keep the negative numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then order by distance from zero, then true if every value is unique.", "out": "丐丸乏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort based on absolute value, then check for duplicates in the values.", "out": "丐丸乏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then organize by magnitude, then do all values appear only once.", "out": "丐丸乏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then arrange by absolute value ascending, then check that there are no duplicates.", "out": "丐丸乏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort from smallest to largest absolute value, then are the values all unique.", "out": "丐丸乏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort by absolute value, then check if all values are unique.", "out": "丐丸乏"} {"kind": "builder", "in": "丐丸乏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, key=abs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丐丸乏", "out": "Take a list of integers; reverse the order, then sort by absolute value, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove both ends, then truncate to the last three items.", "out": "义为丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then trim the edges, then show only the last three.", "out": "义为丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then trim one element off each end, then remove all but the last three.", "out": "义为丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off the first and last, then take the final 3 elements.", "out": "义为丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first and last elements, then drop everything except the final three.", "out": "义为丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the middle part, then give me the last three elements.", "out": "义为丹"} {"kind": "builder", "in": "义为丹", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "义为丹", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the first and last elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then order by distance from zero, then true only if all are positive.", "out": "丐丸乌"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort based on absolute value, then do all of these have positive values.", "out": "丐丸乌"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then organize by magnitude, then check if every value is positive.", "out": "丐丸乌"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then arrange by absolute value ascending, then confirm all values are positive.", "out": "丐丸乌"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort from smallest to largest absolute value, then all positive.", "out": "丐丸乌"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort by absolute value, then check if every number is above zero.", "out": "丐丸乌"} {"kind": "builder", "in": "丐丸乌", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, key=abs)\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丐丸乌", "out": "Take a list of integers; reverse the order, then sort by absolute value, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the first 3 elements, then drop anything not divisible by three.", "out": "上丕串"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove everything after the third, then filter out everything except multiples of three.", "out": "上丕串"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then truncate to three items, then keep only multiples of three.", "out": "上丕串"} {"kind": "speaker", "in": "Take a list of integers; square them all, then show the first three, then multiples of three only.", "out": "上丕串"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then take the first three, then filter for numbers divisible by three.", "out": "上丕串"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep first 3, then give me only the values divisible by three.", "out": "上丕串"} {"kind": "builder", "in": "上丕串", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:3]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "上丕串", "out": "Take a list of integers; square each, then keep only the first three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then make every value non-negative, then ensure at least three items by appending zeros.", "out": "丑丏义"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then absolute value for all items, then ensure minimum length of three by adding zeros to the end.", "out": "丑丏义"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take absolute values, then ensure at least three items by appending zeros.", "out": "丑丏义"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn negatives into positives, then ensure minimum length of three by adding zeros to the end.", "out": "丑丏义"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then abs each element, then ensure at least three items by appending zeros.", "out": "丑丏义"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the absolute value of each, then ensure minimum length of three by adding zeros to the end.", "out": "丑丏义"} {"kind": "builder", "in": "丑丏义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丑丏义", "out": "Take a list of integers; sort ascending, then take the absolute value of each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item, then deduplicate the list.", "out": "九世且"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head, then remove repeats.", "out": "九世且"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item, then deduplicate the list.", "out": "九世且"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head, then remove repeats.", "out": "九世且"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item, then deduplicate the list.", "out": "九世且"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head, then remove repeats.", "out": "九世且"} {"kind": "builder", "in": "九世且", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "九世且", "out": "Take a list of people records (name, age); extract the ages, then drop the first element, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then make every value non-negative, then keep only non-zero numbers.", "out": "为丏举"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then absolute value for all items, then strip the zeros.", "out": "为丏举"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take absolute values, then keep only non-zero numbers.", "out": "为丏举"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn negatives into positives, then strip the zeros.", "out": "为丏举"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then abs each element, then keep only non-zero numbers.", "out": "为丏举"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the absolute value of each, then strip the zeros.", "out": "为丏举"} {"kind": "builder", "in": "为丏举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "为丏举", "out": "Take a list of integers; drop the first and last elements, then take the absolute value of each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; negate each, then skip negatives at the start, then trim one element off each end.", "out": "与乃为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then remove all negatives at the front, then cut off the first and last.", "out": "与乃为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the initial run of negative numbers, then remove the first and last elements.", "out": "与乃为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then strip the front negatives, then keep only the middle part.", "out": "与乃为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove leading negative numbers, then drop first and last.", "out": "与乃为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop negatives from start, then eliminate the outermost elements.", "out": "与乃为"} {"kind": "builder", "in": "与乃为", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "与乃为", "out": "Take a list of integers; negate each, then drop the leading negative values, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then truncate to three items.", "out": "下万丕"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then show the first three.", "out": "下万丕"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then take the first three.", "out": "下万丕"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then keep first 3.", "out": "下万丕"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then truncate to first three.", "out": "下万丕"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then first three.", "out": "下万丕"} {"kind": "builder", "in": "下万丕", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "下万丕", "out": "Take a list of integers; add one to each, then keep the negative numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; square each, then flip the list around, then give the earliest even value or zero.", "out": "上丐乒"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then flip the order around, then fetch the first even element, default to 0.", "out": "上丐乒"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then put the elements backwards, then give the earliest even value or zero.", "out": "上丐乒"} {"kind": "speaker", "in": "Take a list of integers; square them all, then reverse that for me, then fetch the first even element, default to 0.", "out": "上丐乒"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then flip it backwards, then give the earliest even value or zero.", "out": "上丐乒"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then make it backwards, then fetch the first even element, default to 0.", "out": "上丐乒"} {"kind": "builder", "in": "上丐乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(reversed(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "上丐乒", "out": "Take a list of integers; square each, then reverse the order, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then flip the list around, then true if at least one even value.", "out": "丕丐之"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then flip the order around, then any even.", "out": "丕丐之"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then put the elements backwards, then true if at least one even value.", "out": "丕丐之"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then reverse that for me, then any even.", "out": "丕丐之"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then flip it backwards, then true if at least one even value.", "out": "丕丐之"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then make it backwards, then any even.", "out": "丕丐之"} {"kind": "builder", "in": "丕丐之", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = list(reversed(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丕丐之", "out": "Take a list of integers; keep only the first three, then reverse the order, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around, then give the earliest even value or zero.", "out": "下丐乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around, then fetch the first even element, default to 0.", "out": "下丐乒"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards, then give the earliest even value or zero.", "out": "下丐乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me, then fetch the first even element, default to 0.", "out": "下丐乒"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards, then give the earliest even value or zero.", "out": "下丐乒"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards, then fetch the first even element, default to 0.", "out": "下丐乒"} {"kind": "builder", "in": "下丐乒", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "下丐乒", "out": "Take a list of integers; add one to each, then reverse the order, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then raise each to the power of two.", "out": "九么上"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then I need each number multiplied by itself.", "out": "九么上"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then square all of them.", "out": "九么上"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then multiply each element by itself.", "out": "九么上"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then make each one squared.", "out": "九么上"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then square each value in the list.", "out": "九么上"} {"kind": "builder", "in": "九么上", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "九么上", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then arrange in decreasing order.", "out": "一下专"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then arrange in descending order.", "out": "一下专"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then reverse sort.", "out": "一下专"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then sort largest to smallest.", "out": "一下专"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then sort by descending values.", "out": "一下专"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then sort from highest to lowest.", "out": "一下专"} {"kind": "builder", "in": "一下专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "一下专", "out": "Take a list of integers; keep the even numbers, then add one to each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the sign of each, then true if at least one even value.", "out": "下与之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then turn positives to negatives and vice versa, then any even.", "out": "下与之"} {"kind": "builder", "in": "下与之", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [-x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "下与之", "out": "Take a list of integers; add one to each, then negate each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then order by distance from zero, then replace an empty list with one zero.", "out": "专丸么"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then sort based on absolute value, then zero it out if it's empty.", "out": "专丸么"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then organize by magnitude, then use zero if the list is empty.", "out": "专丸么"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then arrange by absolute value ascending, then default to zero when empty.", "out": "专丸么"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then sort from smallest to largest absolute value, then if there's nothing, put in a zero.", "out": "专丸么"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort by absolute value, then if no items, add a zero.", "out": "专丸么"} {"kind": "builder", "in": "专丸么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "专丸么", "out": "Take a list of integers; sort descending, then sort by absolute value, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements, then deduplicate the list.", "out": "义丹且"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three, then remove repeats.", "out": "义丹且"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements, then deduplicate the list.", "out": "义丹且"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three, then remove repeats.", "out": "义丹且"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items, then deduplicate the list.", "out": "义丹且"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three, then remove repeats.", "out": "义丹且"} {"kind": "builder", "in": "义丹且", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "义丹且", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the leading run of positive numbers, then give the earliest even value or zero.", "out": "万乂乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take values while they are positive, then fetch the first even element, default to 0.", "out": "万乂乒"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take positive values then stop, then give the earliest even value or zero.", "out": "万乂乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep going while positive, then fetch the first even element, default to 0.", "out": "万乂乒"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then stop at first non positive, then give the earliest even value or zero.", "out": "万乂乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take while greater than zero, then fetch the first even element, default to 0.", "out": "万乂乒"} {"kind": "builder", "in": "万乂乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "万乂乒", "out": "Take a list of integers; keep the negative numbers, then take values while they are positive, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then truncate to the last three items.", "out": "举万丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then show only the last three.", "out": "举万丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then remove all but the last three.", "out": "举万丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then take the final 3 elements.", "out": "举万丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then drop everything except the final three.", "out": "举万丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then give me the last three elements.", "out": "举万丹"} {"kind": "builder", "in": "举万丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "举万丹", "out": "Take a list of integers; drop the zeros, then keep the negative numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then extend to length 3 using zeros, then remove the initial run of negative numbers.", "out": "久义乃"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then pad to 3, then strip the front negatives.", "out": "久义乃"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then extend to length 3 using zeros, then remove leading negative numbers.", "out": "久义乃"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then pad to 3, then drop negatives from start.", "out": "久义乃"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then extend to length 3 using zeros, then strip negative values from the start.", "out": "久义乃"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then pad to 3, then remove negatives before the first non-negative.", "out": "久义乃"} {"kind": "builder", "in": "久义乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "久义乃", "out": "Take a list of integers; keep everything before the first zero, then pad with zeros to at least three elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the final 3 elements, then drop the even numbers.", "out": "丏丹丁"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then drop everything except the final three, then strip out the evens.", "out": "丏丹丁"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then give me the last three elements, then drop the even numbers.", "out": "丏丹丁"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep only the last three, then strip out the evens.", "out": "丏丹丁"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep the final three items, then drop the even numbers.", "out": "丏丹丁"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take the last three, then strip out the evens.", "out": "丏丹丁"} {"kind": "builder", "in": "丏丹丁", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丏丹丁", "out": "Take a list of integers; take the absolute value of each, then keep only the last three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values divisible by 3, then true if already sorted smallest to largest.", "out": "下串乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep items where x mod 3 equals zero, then does this list go in ascending order.", "out": "下串乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything not divisible by three, then check if the list is in ascending order.", "out": "下串乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter out everything except multiples of three, then is the list sorted.", "out": "下串乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only multiples of three, then is it sorted.", "out": "下串乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiples of three only, then check if values are in increasing order.", "out": "下串乎"} {"kind": "builder", "in": "下串乎", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r == sorted(r)"} {"kind": "translator", "in": "下串乎", "out": "Take a list of integers; add one to each, then keep multiples of three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then clamp each to at most ten, then true if already sorted smallest to largest.", "out": "丸丘乎"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then don't let anything exceed 10, then does this list go in ascending order.", "out": "丸丘乎"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then clamp each to at most ten, then check if the list is in ascending order.", "out": "丸丘乎"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then don't let anything exceed 10, then is the list sorted.", "out": "丸丘乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then clamp each to at most ten, then is it sorted.", "out": "丸丘乎"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then don't let anything exceed 10, then check if values are in increasing order.", "out": "丸丘乎"} {"kind": "builder", "in": "丸丘乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丸丘乎", "out": "Take a list of integers; sort by absolute value, then cap each value at 10, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values above zero, then ensure at least three items by appending zeros.", "out": "久七义"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then filter for positive numbers, then ensure minimum length of three by adding zeros to the end.", "out": "久七义"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only positive numbers, then ensure at least three items by appending zeros.", "out": "久七义"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep the positives, then ensure minimum length of three by adding zeros to the end.", "out": "久七义"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove negatives, then ensure at least three items by appending zeros.", "out": "久七义"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep the positive numbers, then ensure minimum length of three by adding zeros to the end.", "out": "久七义"} {"kind": "builder", "in": "久七义", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "久七义", "out": "Take a list of integers; keep everything before the first zero, then keep the positive numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then arrange in decreasing order.", "out": "丐丈专"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then arrange in descending order.", "out": "丐丈专"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then reverse sort.", "out": "丐丈专"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then sort largest to smallest.", "out": "丐丈专"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then sort by descending values.", "out": "丐丈专"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then sort from highest to lowest.", "out": "丐丈专"} {"kind": "builder", "in": "丐丈专", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丐丈专", "out": "Take a list of integers; reverse the order, then double each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each value by itself, then true if at least one even value.", "out": "下上之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then square them all, then any even.", "out": "下上之"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then raise each to the power of two, then true if at least one even value.", "out": "下上之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then I need each number multiplied by itself, then any even.", "out": "下上之"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then square all of them, then true if at least one even value.", "out": "下上之"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiply each element by itself, then any even.", "out": "下上之"} {"kind": "builder", "in": "下上之", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "下上之", "out": "Take a list of integers; add one to each, then square each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values above zero, then true only if all are positive.", "out": "且七乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter for positive numbers, then do all of these have positive values.", "out": "且七乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only positive numbers, then check if every value is positive.", "out": "且七乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positives, then confirm all values are positive.", "out": "且七乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove negatives, then all positive.", "out": "且七乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positive numbers, then check if every number is above zero.", "out": "且七乌"} {"kind": "builder", "in": "且七乌", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "且七乌", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove both ends, then ensure at least three items by appending zeros.", "out": "专为义"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then trim the edges, then ensure minimum length of three by adding zeros to the end.", "out": "专为义"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then trim one element off each end, then ensure at least three items by appending zeros.", "out": "专为义"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then cut off the first and last, then ensure minimum length of three by adding zeros to the end.", "out": "专为义"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove the first and last elements, then ensure at least three items by appending zeros.", "out": "专为义"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then keep only the middle part, then ensure minimum length of three by adding zeros to the end.", "out": "专为义"} {"kind": "builder", "in": "专为义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "专为义", "out": "Take a list of integers; sort descending, then drop the first and last elements, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the final 3 elements, then stop at the first non-positive value.", "out": "乃丹乂"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then drop everything except the final three, then keep the leading run of positive numbers.", "out": "乃丹乂"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give me the last three elements, then take values while they are positive.", "out": "乃丹乂"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep only the last three, then take positive values then stop.", "out": "乃丹乂"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep the final three items, then keep going while positive.", "out": "乃丹乂"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the last three, then stop at first non positive.", "out": "乃丹乂"} {"kind": "builder", "in": "乃丹乂", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "乃丹乂", "out": "Take a list of integers; drop the leading negative values, then keep only the last three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove all zero values, then drop the even numbers.", "out": "丏举丁"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then exclude zeros, then strip out the evens.", "out": "丏举丁"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove all zero values, then drop the even numbers.", "out": "丏举丁"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then exclude zeros, then strip out the evens.", "out": "丏举丁"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove all zero values, then drop the even numbers.", "out": "丏举丁"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then exclude zeros, then strip out the evens.", "out": "丏举丁"} {"kind": "builder", "in": "丏举丁", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丏举丁", "out": "Take a list of integers; take the absolute value of each, then drop the zeros, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values divisible by 3, then arrange in increasing order.", "out": "丏串丑"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep items where x mod 3 equals zero, then Organize these ascending.", "out": "丏串丑"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then drop anything not divisible by three, then Sort in ascending order.", "out": "丏串丑"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then filter out everything except multiples of three, then I need this sorted ascending.", "out": "丏串丑"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only multiples of three, then Put these in ascending order.", "out": "丏串丑"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then multiples of three only, then sort smallest to largest.", "out": "丏串丑"} {"kind": "builder", "in": "丏串丑", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丏串丑", "out": "Take a list of integers; take the absolute value of each, then keep multiples of three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then replace an empty list with one zero.", "out": "世且么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then zero it out if it's empty.", "out": "世且么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then use zero if the list is empty.", "out": "世且么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then default to zero when empty.", "out": "世且么"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then if there's nothing, put in a zero.", "out": "世且么"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then if no items, add a zero.", "out": "世且么"} {"kind": "builder", "in": "世且么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(dict.fromkeys(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "世且么", "out": "Take a list of integers; drop the first element, then drop duplicates keeping first occurrence, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then count the elements.", "out": "世丘东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then how many items remain.", "out": "世丘东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then tell me the length.", "out": "世丘东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then return the length.", "out": "世丘东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then count them.", "out": "世丘东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then what's the count.", "out": "世丘东"} {"kind": "builder", "in": "世丘东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [min(x, 10) for x in r]\n return len(r)"} {"kind": "translator", "in": "世丘东", "out": "Take a list of integers; drop the first element, then cap each value at 10, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then convert each to lower case, then true if a blank string is present.", "out": "丧丞乙"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then lowercase each one, then check for empty strings in the list.", "out": "丧丞乙"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then convert each to lower case, then check if there's an empty string.", "out": "丧丞乙"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then lowercase each one, then does the collection contain an empty string value somewhere.", "out": "丧丞乙"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then convert each to lower case, then whether any element is blank.", "out": "丧丞乙"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then lowercase each one, then check for an empty string.", "out": "丧丞乙"} {"kind": "builder", "in": "丧丞乙", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s.lower() for s in r]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丧丞乙", "out": "Take a list of strings; drop duplicate strings keeping the first, then lowercase each string, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then reduce each by one.", "out": "下且不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then Subtract 1 from all.", "out": "下且不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then Subtract one from each.", "out": "下且不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then Drop each by one.", "out": "下且不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then Decrease all values by one.", "out": "下且不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then Remove one from each value.", "out": "下且不"} {"kind": "builder", "in": "下且不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "下且不", "out": "Take a list of integers; add one to each, then drop duplicates keeping first occurrence, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then default to [0] when there is nothing, then take values up to (excluding) the first zero.", "out": "丐么久"} {"kind": "speaker", "in": "Take a list of integers; reverse, then when the list is empty, substitute a zero value, then keep the part before the first 0.", "out": "丐么久"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then replace an empty list with one zero, then truncate at the first zero.", "out": "丐么久"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then zero it out if it's empty, then delete everything starting with the first zero.", "out": "丐么久"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then use zero if the list is empty, then remove from the first zero onwards.", "out": "丐么久"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then default to zero when empty, then up to but not including the first zero.", "out": "丐么久"} {"kind": "builder", "in": "丐么久", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丐么久", "out": "Take a list of integers; reverse the order, then if empty, use a single zero, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values above zero, then strip the signs.", "out": "下七丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter for positive numbers, then take abs of each.", "out": "下七丏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only positive numbers, then get the absolute value of everything.", "out": "下七丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positives, then apply absolute value to the whole list.", "out": "下七丏"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove negatives, then make them all positive.", "out": "下七丏"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the positive numbers, then make every value non-negative.", "out": "下七丏"} {"kind": "builder", "in": "下七丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "下七丏", "out": "Take a list of integers; add one to each, then keep the positive numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then increment each value, then raise each to the power of two.", "out": "七下上"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then plus one for all, then I need each number multiplied by itself.", "out": "七下上"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then increment each value, then square all of them.", "out": "七下上"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then plus one for all, then multiply each element by itself.", "out": "七下上"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then increment each value, then make each one squared.", "out": "七下上"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then plus one for all, then square each value in the list.", "out": "七下上"} {"kind": "builder", "in": "七下上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x + 1 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "七下上", "out": "Take a list of integers; keep the positive numbers, then add one to each, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values above zero, then arrange in increasing order.", "out": "乃七丑"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then filter for positive numbers, then Organize these ascending.", "out": "乃七丑"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only positive numbers, then Sort in ascending order.", "out": "乃七丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the positives, then I need this sorted ascending.", "out": "乃七丑"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove negatives, then Put these in ascending order.", "out": "乃七丑"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep the positive numbers, then sort smallest to largest.", "out": "乃七丑"} {"kind": "builder", "in": "乃七丑", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乃七丑", "out": "Take a list of integers; drop the leading negative values, then keep the positive numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then clamp each to at most ten, then stop at the first non-positive value.", "out": "丹丘乂"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then don't let anything exceed 10, then keep the leading run of positive numbers.", "out": "丹丘乂"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then clamp each to at most ten, then take values while they are positive.", "out": "丹丘乂"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then don't let anything exceed 10, then take positive values then stop.", "out": "丹丘乂"} {"kind": "speaker", "in": "Take a list of integers; last three only, then clamp each to at most ten, then keep going while positive.", "out": "丹丘乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then don't let anything exceed 10, then stop at first non positive.", "out": "丹丘乂"} {"kind": "builder", "in": "丹丘乂", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丹丘乂", "out": "Take a list of integers; keep only the last three, then cap each value at 10, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then decrement each value, then replace an empty list with one zero.", "out": "与不么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Lower each number by one, then zero it out if it's empty.", "out": "与不么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then reduce each by one, then use zero if the list is empty.", "out": "与不么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Subtract 1 from all, then default to zero when empty.", "out": "与不么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then Subtract one from each, then if there's nothing, put in a zero.", "out": "与不么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then Drop each by one, then if no items, add a zero.", "out": "与不么"} {"kind": "builder", "in": "与不么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x - 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与不么", "out": "Take a list of integers; negate each, then subtract one from each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only odd values, then drop the odd numbers.", "out": "九丁一"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then eliminate the even numbers, then filter out the odd numbers.", "out": "九丁一"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only odd values, then drop the odd numbers.", "out": "九丁一"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then eliminate the even numbers, then filter out the odd numbers.", "out": "九丁一"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only odd values, then drop the odd numbers.", "out": "九丁一"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then eliminate the even numbers, then filter out the odd numbers.", "out": "九丁一"} {"kind": "builder", "in": "九丁一", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "九丁一", "out": "Take a list of people records (name, age); extract the ages, then keep the odd numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each by two, then arrange in increasing order.", "out": "七丈丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then double each item in the list, then Organize these ascending.", "out": "七丈丑"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then multiply each by two, then Sort in ascending order.", "out": "七丈丑"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then double each item in the list, then I need this sorted ascending.", "out": "七丈丑"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then multiply each by two, then Put these in ascending order.", "out": "七丈丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then double each item in the list, then sort smallest to largest.", "out": "七丈丑"} {"kind": "builder", "in": "七丈丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "七丈丑", "out": "Take a list of integers; keep the positive numbers, then double each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values below zero, then trim one element off each end.", "out": "主万为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then get the negative numbers, then cut off the first and last.", "out": "主万为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep values below zero, then remove the first and last elements.", "out": "主万为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then get the negative numbers, then keep only the middle part.", "out": "主万为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep values below zero, then drop first and last.", "out": "主万为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then get the negative numbers, then eliminate the outermost elements.", "out": "主万为"} {"kind": "builder", "in": "主万为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主万为", "out": "Take a list of integers; keep values greater than five, then keep the negative numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove repeated strings, then make every string lowercase.", "out": "乖丧丞"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then keep unique strings first appearance, then make it all lowercase.", "out": "乖丧丞"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then eliminate repeated strings preserve first occurrence, then make every string lowercase.", "out": "乖丧丞"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop duplicate strings keeping the first, then make it all lowercase.", "out": "乖丧丞"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then dedupe, then make every string lowercase.", "out": "乖丧丞"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove duplicate strings keep first, then make it all lowercase.", "out": "乖丧丞"} {"kind": "builder", "in": "乖丧丞", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "乖丧丞", "out": "Take a list of strings; sort alphabetically, then drop duplicate strings keeping the first, then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then give back the total.", "out": "丘万丙"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then sum r.", "out": "丘万丙"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then add them up.", "out": "丘万丙"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then calculate the sum of all elements.", "out": "丘万丙"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then what's the total.", "out": "丘万丙"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then what do they add up to.", "out": "丘万丙"} {"kind": "builder", "in": "丘万丙", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n return sum(r)"} {"kind": "translator", "in": "丘万丙", "out": "Take a list of integers; cap each value at 10, then keep the negative numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then find the min, defaulting to 0.", "out": "丁且丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then minimum value, zero otherwise.", "out": "丁且丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then get the minimum value or zero if empty.", "out": "丁且丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then give me the min or 0.", "out": "丁且丛"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then return the smallest number, defaulting to 0.", "out": "丁且丛"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then return smallest or zero if empty.", "out": "丁且丛"} {"kind": "builder", "in": "丁且丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "丁且丛", "out": "Take a list of integers; keep the odd numbers, then drop duplicates keeping first occurrence, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the first 3 elements, then true if at least one even value.", "out": "七丕之"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove everything after the third, then any even.", "out": "七丕之"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then truncate to three items, then true if at least one even value.", "out": "七丕之"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then show the first three, then any even.", "out": "七丕之"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then take the first three, then true if at least one even value.", "out": "七丕之"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep first 3, then any even.", "out": "七丕之"} {"kind": "builder", "in": "七丕之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:3]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "七丕之", "out": "Take a list of integers; keep the positive numbers, then keep only the first three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values above zero, then skip the first one.", "out": "丏七世"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then filter for positive numbers, then Discard the first element.", "out": "丏七世"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only positive numbers, then skip the first one.", "out": "丏七世"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the positives, then Discard the first element.", "out": "丏七世"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove negatives, then skip the first one.", "out": "丏七世"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep the positive numbers, then Discard the first element.", "out": "丏七世"} {"kind": "builder", "in": "丏七世", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丏七世", "out": "Take a list of integers; take the absolute value of each, then keep the positive numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then convert each to upper case, then arrange by string length ascending.", "out": "两丟严"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then change all strings to uppercase, then length sort.", "out": "两丟严"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then make every string uppercase, then sort by length shortest first.", "out": "两丟严"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then uppercase each one, then organize by string length least to greatest.", "out": "两丟严"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then make all the strings uppercase, then shortest strings first.", "out": "两丟严"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then convert all strings to uppercase letters, then i want them ordered by how short they are.", "out": "两丟严"} {"kind": "builder", "in": "两丟严", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.upper() for s in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "两丟严", "out": "Take a list of strings; drop empty strings, then uppercase each string, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then cut the list at the first zero, then give back the product of all values.", "out": "么久乐"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then cut off after the first zero appears, then product of the list.", "out": "么久乐"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take values up to (excluding) the first zero, then what's the product.", "out": "么久乐"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the part before the first 0, then what do they multiply to.", "out": "么久乐"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then truncate at the first zero, then give me their product.", "out": "么久乐"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then delete everything starting with the first zero, then multiply them all together.", "out": "么久乐"} {"kind": "builder", "in": "么久乐", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n return __import__('math').prod(r)"} {"kind": "translator", "in": "么久乐", "out": "Take a list of integers; if empty, use a single zero, then keep everything before the first zero, then return their product."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only even values, then limit every value to 10.", "out": "么一丘"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then extract all even numbers, then maximum of 10 for all.", "out": "么一丘"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only even values, then limit every value to 10.", "out": "么一丘"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then extract all even numbers, then maximum of 10 for all.", "out": "么一丘"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only even values, then limit every value to 10.", "out": "么一丘"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then extract all even numbers, then maximum of 10 for all.", "out": "么一丘"} {"kind": "builder", "in": "么一丘", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "么一丘", "out": "Take a list of integers; if empty, use a single zero, then keep the even numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then cut the list at the first zero, then count the elements.", "out": "为久东"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then cut off after the first zero appears, then how many items remain.", "out": "为久东"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take values up to (excluding) the first zero, then tell me the length.", "out": "为久东"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the part before the first 0, then return the length.", "out": "为久东"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then truncate at the first zero, then count them.", "out": "为久东"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then delete everything starting with the first zero, then what's the count.", "out": "为久东"} {"kind": "builder", "in": "为久东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n return len(r)"} {"kind": "translator", "in": "为久东", "out": "Take a list of integers; drop the first and last elements, then keep everything before the first zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values below zero, then true if already sorted smallest to largest.", "out": "乃万乎"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then get the negative numbers, then does this list go in ascending order.", "out": "乃万乎"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep values below zero, then check if the list is in ascending order.", "out": "乃万乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then get the negative numbers, then is the list sorted.", "out": "乃万乎"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep values below zero, then is it sorted.", "out": "乃万乎"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the negative numbers, then check if values are in increasing order.", "out": "乃万乎"} {"kind": "builder", "in": "乃万乎", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n return r == sorted(r)"} {"kind": "translator", "in": "乃万乎", "out": "Take a list of integers; drop the leading negative values, then keep the negative numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increase every value by 10, then arrange in increasing order.", "out": "主丽丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then add 10 to each item, then Organize these ascending.", "out": "主丽丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then shift each up by ten, then Sort in ascending order.", "out": "主丽丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then increase all numbers by 10, then I need this sorted ascending.", "out": "主丽丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then add 10 to everything, then Put these in ascending order.", "out": "主丽丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then give everything a boost of 10, then sort smallest to largest.", "out": "主丽丑"} {"kind": "builder", "in": "主丽丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主丽丑", "out": "Take a list of integers; keep values greater than five, then add ten to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then reduce each by one.", "out": "么主不"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then Subtract 1 from all.", "out": "么主不"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then Subtract one from each.", "out": "么主不"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then Drop each by one.", "out": "么主不"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then Decrease all values by one.", "out": "么主不"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then Remove one from each value.", "out": "么主不"} {"kind": "builder", "in": "么主不", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "么主不", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then raise each to the power of two.", "out": "串丁上"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then I need each number multiplied by itself.", "out": "串丁上"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then square all of them.", "out": "串丁上"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then multiply each element by itself.", "out": "串丁上"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then make each one squared.", "out": "串丁上"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then square each value in the list.", "out": "串丁上"} {"kind": "builder", "in": "串丁上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "串丁上", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then make every value non-negative, then arrange in decreasing order.", "out": "为丏专"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then absolute value for all items, then arrange in descending order.", "out": "为丏专"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take absolute values, then reverse sort.", "out": "为丏专"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn negatives into positives, then sort largest to smallest.", "out": "为丏专"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then abs each element, then sort by descending values.", "out": "为丏专"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the absolute value of each, then sort from highest to lowest.", "out": "为丏专"} {"kind": "builder", "in": "为丏专", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "为丏专", "out": "Take a list of integers; drop the first and last elements, then take the absolute value of each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; double each, then multiply each value by itself, then give the earliest even value or zero.", "out": "丈上乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then square them all, then fetch the first even element, default to 0.", "out": "丈上乒"} {"kind": "speaker", "in": "Take a list of integers; double each, then raise each to the power of two, then give the earliest even value or zero.", "out": "丈上乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then I need each number multiplied by itself, then fetch the first even element, default to 0.", "out": "丈上乒"} {"kind": "speaker", "in": "Take a list of integers; double each, then square all of them, then give the earliest even value or zero.", "out": "丈上乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiply each element by itself, then fetch the first even element, default to 0.", "out": "丈上乒"} {"kind": "builder", "in": "丈上乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x * x for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丈上乒", "out": "Take a list of integers; double each, then square each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values divisible by 3, then drop non-negative values.", "out": "丹串万"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep items where x mod 3 equals zero, then drop all positive numbers.", "out": "丹串万"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then drop anything not divisible by three, then drop non-negative values.", "out": "丹串万"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then filter out everything except multiples of three, then drop all positive numbers.", "out": "丹串万"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only multiples of three, then drop non-negative values.", "out": "丹串万"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiples of three only, then drop all positive numbers.", "out": "丹串万"} {"kind": "builder", "in": "丹串万", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丹串万", "out": "Take a list of integers; keep only the last three, then keep multiples of three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then arrange in decreasing order.", "out": "乂乃专"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then arrange in descending order.", "out": "乂乃专"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then reverse sort.", "out": "乂乃专"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then sort largest to smallest.", "out": "乂乃专"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then sort by descending values.", "out": "乂乃专"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then sort from highest to lowest.", "out": "乂乃专"} {"kind": "builder", "in": "乂乃专", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乂乃专", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then true if every value is unique.", "out": "丸万乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then check for duplicates in the values.", "out": "丸万乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then do all values appear only once.", "out": "丸万乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then check that there are no duplicates.", "out": "丸万乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then are the values all unique.", "out": "丸万乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then check if all values are unique.", "out": "丸万乏"} {"kind": "builder", "in": "丸万乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸万乏", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first 3 elements, then arrange in decreasing order.", "out": "举丕专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove everything after the third, then arrange in descending order.", "out": "举丕专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate to three items, then reverse sort.", "out": "举丕专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then show the first three, then sort largest to smallest.", "out": "举丕专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first three, then sort by descending values.", "out": "举丕专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep first 3, then sort from highest to lowest.", "out": "举丕专"} {"kind": "builder", "in": "举丕专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:3]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "举丕专", "out": "Take a list of integers; drop the zeros, then keep only the first three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the first 3 elements, then multiply each by -1.", "out": "上丕与"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove everything after the third, then negate.", "out": "上丕与"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then truncate to three items, then multiply each by -1.", "out": "上丕与"} {"kind": "speaker", "in": "Take a list of integers; square them all, then show the first three, then negate.", "out": "上丕与"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then take the first three, then multiply each by -1.", "out": "上丕与"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep first 3, then negate.", "out": "上丕与"} {"kind": "builder", "in": "上丕与", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:3]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "上丕与", "out": "Take a list of integers; square each, then keep only the first three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then count the elements.", "out": "一丁东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then how many items remain.", "out": "一丁东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then tell me the length.", "out": "一丁东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then return the length.", "out": "一丁东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then count them.", "out": "一丁东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then what's the count.", "out": "一丁东"} {"kind": "builder", "in": "一丁东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n return len(r)"} {"kind": "translator", "in": "一丁东", "out": "Take a list of integers; keep the even numbers, then keep the odd numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increase every value by 10, then drop non-positive values.", "out": "乃丽七"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then add 10 to each item, then drop the negative numbers.", "out": "乃丽七"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then shift each up by ten, then filter out the negative ones.", "out": "乃丽七"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then increase all numbers by 10, then remove all negative values.", "out": "乃丽七"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then add 10 to everything, then keep positive values only.", "out": "乃丽七"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then give everything a boost of 10, then keep values above zero.", "out": "乃丽七"} {"kind": "builder", "in": "乃丽七", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "乃丽七", "out": "Take a list of integers; drop the leading negative values, then add ten to each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then multiply each value by itself, then stop at the first non-positive value.", "out": "丈上乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then square them all, then keep the leading run of positive numbers.", "out": "丈上乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then raise each to the power of two, then take values while they are positive.", "out": "丈上乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then I need each number multiplied by itself, then take positive values then stop.", "out": "丈上乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then square all of them, then keep going while positive.", "out": "丈上乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiply each element by itself, then stop at first non positive.", "out": "丈上乂"} {"kind": "builder", "in": "丈上乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丈上乂", "out": "Take a list of integers; double each, then square each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only even values, then true if every value is unique.", "out": "乃一乏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then extract all even numbers, then check for duplicates in the values.", "out": "乃一乏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only even values, then do all values appear only once.", "out": "乃一乏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then extract all even numbers, then check that there are no duplicates.", "out": "乃一乏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only even values, then are the values all unique.", "out": "乃一乏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then extract all even numbers, then check if all values are unique.", "out": "乃一乏"} {"kind": "builder", "in": "乃一乏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "乃一乏", "out": "Take a list of integers; drop the leading negative values, then keep the even numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values divisible by 3, then bump each up by one.", "out": "九串下"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep items where x mod 3 equals zero, then increment each item.", "out": "九串下"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then drop anything not divisible by three, then bump each up by one.", "out": "九串下"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then filter out everything except multiples of three, then increment each item.", "out": "九串下"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only multiples of three, then bump each up by one.", "out": "九串下"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiples of three only, then increment each item.", "out": "九串下"} {"kind": "builder", "in": "九串下", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "九串下", "out": "Take a list of people records (name, age); extract the ages, then keep multiples of three, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then order by distance from zero, then stop at the first non-positive value.", "out": "义丸乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort based on absolute value, then keep the leading run of positive numbers.", "out": "义丸乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then organize by magnitude, then take values while they are positive.", "out": "义丸乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then arrange by absolute value ascending, then take positive values then stop.", "out": "义丸乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from smallest to largest absolute value, then keep going while positive.", "out": "义丸乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by absolute value, then stop at first non positive.", "out": "义丸乂"} {"kind": "builder", "in": "义丸乂", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "义丸乂", "out": "Take a list of integers; pad with zeros to at least three elements, then sort by absolute value, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove both ends, then true if every value is unique.", "out": "丏为乏"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then trim the edges, then check for duplicates in the values.", "out": "丏为乏"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then trim one element off each end, then do all values appear only once.", "out": "丏为乏"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then cut off the first and last, then check that there are no duplicates.", "out": "丏为乏"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first and last elements, then are the values all unique.", "out": "丏为乏"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep only the middle part, then check if all values are unique.", "out": "丏为乏"} {"kind": "builder", "in": "丏为乏", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:-1]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丏为乏", "out": "Take a list of integers; take the absolute value of each, then drop the first and last elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then cut the list at the first zero, then multiply each by -1.", "out": "一久与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off after the first zero appears, then negate.", "out": "一久与"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take values up to (excluding) the first zero, then multiply each by -1.", "out": "一久与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the part before the first 0, then negate.", "out": "一久与"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then truncate at the first zero, then multiply each by -1.", "out": "一久与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then delete everything starting with the first zero, then negate.", "out": "一久与"} {"kind": "builder", "in": "一久与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "一久与", "out": "Take a list of integers; keep the even numbers, then keep everything before the first zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then decrement each value, then multiply each by -1.", "out": "么不与"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Lower each number by one, then negate.", "out": "么不与"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then reduce each by one, then multiply each by -1.", "out": "么不与"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Subtract 1 from all, then negate.", "out": "么不与"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Subtract one from each, then multiply each by -1.", "out": "么不与"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Drop each by one, then negate.", "out": "么不与"} {"kind": "builder", "in": "么不与", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x - 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "么不与", "out": "Take a list of integers; if empty, use a single zero, then subtract one from each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove repeated values, then true if already sorted smallest to largest.", "out": "乃且乎"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then unique values preserving order, then does this list go in ascending order.", "out": "乃且乎"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove repeated values, then check if the list is in ascending order.", "out": "乃且乎"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then unique values preserving order, then is the list sorted.", "out": "乃且乎"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove repeated values, then is it sorted.", "out": "乃且乎"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then unique values preserving order, then check if values are in increasing order.", "out": "乃且乎"} {"kind": "builder", "in": "乃且乎", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(dict.fromkeys(r))\n return r == sorted(r)"} {"kind": "translator", "in": "乃且乎", "out": "Take a list of integers; drop the leading negative values, then drop duplicates keeping first occurrence, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the sign of each, then true if any value equals zero.", "out": "主与乍"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then turn positives to negatives and vice versa, then check for zero.", "out": "主与乍"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then flip the sign of each, then true if any value equals zero.", "out": "主与乍"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then turn positives to negatives and vice versa, then check for zero.", "out": "主与乍"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip the sign of each, then true if any value equals zero.", "out": "主与乍"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then turn positives to negatives and vice versa, then check for zero.", "out": "主与乍"} {"kind": "builder", "in": "主与乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n return 0 in r"} {"kind": "translator", "in": "主与乍", "out": "Take a list of integers; keep values greater than five, then negate each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then make every value non-negative, then make each twice as big.", "out": "七丏丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then absolute value for all items, then multiply each by 2.", "out": "七丏丈"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take absolute values, then make each twice as big.", "out": "七丏丈"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn negatives into positives, then multiply each by 2.", "out": "七丏丈"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then abs each element, then make each twice as big.", "out": "七丏丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the absolute value of each, then multiply each by 2.", "out": "七丏丈"} {"kind": "builder", "in": "七丏丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "七丏丈", "out": "Take a list of integers; keep the positive numbers, then take the absolute value of each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove both ends, then true if every value is unique.", "out": "丕为乏"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then trim the edges, then check for duplicates in the values.", "out": "丕为乏"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then trim one element off each end, then do all values appear only once.", "out": "丕为乏"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then cut off the first and last, then check that there are no duplicates.", "out": "丕为乏"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first and last elements, then are the values all unique.", "out": "丕为乏"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep only the middle part, then check if all values are unique.", "out": "丕为乏"} {"kind": "builder", "in": "丕为乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:-1]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丕为乏", "out": "Take a list of integers; keep only the first three, then drop the first and last elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove both ends, then give the number of evens.", "out": "久为乓"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then trim the edges, then find how many values are divisible by two.", "out": "久为乓"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then trim one element off each end, then how many are even.", "out": "久为乓"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then cut off the first and last, then get the total number of even values in the list.", "out": "久为乓"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first and last elements, then give me the count of even values.", "out": "久为乓"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep only the middle part, then I need to know how many of these are even.", "out": "久为乓"} {"kind": "builder", "in": "久为乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "久为乓", "out": "Take a list of integers; keep everything before the first zero, then drop the first and last elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then true if every value is unique.", "out": "丈一乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then check for duplicates in the values.", "out": "丈一乏"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then do all values appear only once.", "out": "丈一乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then check that there are no duplicates.", "out": "丈一乏"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then are the values all unique.", "out": "丈一乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then check if all values are unique.", "out": "丈一乏"} {"kind": "builder", "in": "丈一乏", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丈一乏", "out": "Take a list of integers; double each, then keep the even numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then drop non-negative values.", "out": "义下万"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then drop all positive numbers.", "out": "义下万"} {"kind": "builder", "in": "义下万", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "义下万", "out": "Take a list of integers; pad with zeros to at least three elements, then add one to each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values divisible by 3, then skip the first one.", "out": "上串世"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep items where x mod 3 equals zero, then Discard the first element.", "out": "上串世"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then drop anything not divisible by three, then skip the first one.", "out": "上串世"} {"kind": "speaker", "in": "Take a list of integers; square them all, then filter out everything except multiples of three, then Discard the first element.", "out": "上串世"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only multiples of three, then skip the first one.", "out": "上串世"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then multiples of three only, then Discard the first element.", "out": "上串世"} {"kind": "builder", "in": "上串世", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "上串世", "out": "Take a list of integers; square each, then keep multiples of three, then drop the first element."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then drop anything not divisible by three.", "out": "九么串"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then filter out everything except multiples of three.", "out": "九么串"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then keep only multiples of three.", "out": "九么串"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then multiples of three only.", "out": "九么串"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then filter for numbers divisible by three.", "out": "九么串"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then give me only the values divisible by three.", "out": "九么串"} {"kind": "builder", "in": "九么串", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "九么串", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then truncate to three items.", "out": "与万丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then show the first three.", "out": "与万丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then take the first three.", "out": "与万丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then keep first 3.", "out": "与万丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then truncate to first three.", "out": "与万丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then first three.", "out": "与万丕"} {"kind": "builder", "in": "与万丕", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x < 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "与万丕", "out": "Take a list of integers; negate each, then keep the negative numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then drop anything 5 or below, then drop the even numbers.", "out": "丑主丁"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep only numbers greater than 5, then strip out the evens.", "out": "丑主丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then filter for numbers above 5, then drop the even numbers.", "out": "丑主丁"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then give me values where x is greater than 5, then strip out the evens.", "out": "丑主丁"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then show me only the values that are bigger than five, then drop the even numbers.", "out": "丑主丁"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep values greater than five, then strip out the evens.", "out": "丑主丁"} {"kind": "builder", "in": "丑主丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丑主丁", "out": "Take a list of integers; sort ascending, then keep values greater than five, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then decrement each value, then strip the signs.", "out": "乃不丏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Lower each number by one, then take abs of each.", "out": "乃不丏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then reduce each by one, then get the absolute value of everything.", "out": "乃不丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Subtract 1 from all, then apply absolute value to the whole list.", "out": "乃不丏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then Subtract one from each, then make them all positive.", "out": "乃不丏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Drop each by one, then make every value non-negative.", "out": "乃不丏"} {"kind": "builder", "in": "乃不丏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "乃不丏", "out": "Take a list of integers; drop the leading negative values, then subtract one from each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the list around, then strip the signs.", "out": "举丐丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then flip the order around, then take abs of each.", "out": "举丐丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then put the elements backwards, then get the absolute value of everything.", "out": "举丐丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then reverse that for me, then apply absolute value to the whole list.", "out": "举丐丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip it backwards, then make them all positive.", "out": "举丐丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then make it backwards, then make every value non-negative.", "out": "举丐丏"} {"kind": "builder", "in": "举丐丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举丐丏", "out": "Take a list of integers; drop the zeros, then reverse the order, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then find the max, defaulting to 0.", "out": "且举业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then Give me the maximum, but 0 if there are no items.", "out": "且举业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then What's the highest number in the list.", "out": "且举业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then Return the greatest value or default to 0.", "out": "且举业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then Find the largest element, defaulting to zero.", "out": "且举业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then give the largest value (0 if none).", "out": "且举业"} {"kind": "builder", "in": "且举业", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "且举业", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the zeros, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then make every value non-negative, then skip the first one.", "out": "丹丏世"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then absolute value for all items, then Discard the first element.", "out": "丹丏世"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take absolute values, then skip the first one.", "out": "丹丏世"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn negatives into positives, then Discard the first element.", "out": "丹丏世"} {"kind": "speaker", "in": "Take a list of integers; last three only, then abs each element, then skip the first one.", "out": "丹丏世"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take the absolute value of each, then Discard the first element.", "out": "丹丏世"} {"kind": "builder", "in": "丹丏世", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [abs(x) for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丹丏世", "out": "Take a list of integers; keep only the last three, then take the absolute value of each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start, then strip the signs.", "out": "专乃丏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front, then take abs of each.", "out": "专乃丏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers, then get the absolute value of everything.", "out": "专乃丏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives, then apply absolute value to the whole list.", "out": "专乃丏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers, then make them all positive.", "out": "专乃丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start, then make every value non-negative.", "out": "专乃丏"} {"kind": "builder", "in": "专乃丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "专乃丏", "out": "Take a list of integers; sort descending, then drop the leading negative values, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then take the final 3 elements, then give the earliest even value or zero.", "out": "串丹乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then drop everything except the final three, then fetch the first even element, default to 0.", "out": "串丹乒"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then give me the last three elements, then give the earliest even value or zero.", "out": "串丹乒"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep only the last three, then fetch the first even element, default to 0.", "out": "串丹乒"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep the final three items, then give the earliest even value or zero.", "out": "串丹乒"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the last three, then fetch the first even element, default to 0.", "out": "串丹乒"} {"kind": "builder", "in": "串丹乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[-3:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "串丹乒", "out": "Take a list of integers; keep multiples of three, then keep only the last three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then flip the sign of each, then give the number of evens.", "out": "丕与乓"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then turn positives to negatives and vice versa, then find how many values are divisible by two.", "out": "丕与乓"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then flip the sign of each, then how many are even.", "out": "丕与乓"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn positives to negatives and vice versa, then get the total number of even values in the list.", "out": "丕与乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then flip the sign of each, then give me the count of even values.", "out": "丕与乓"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then turn positives to negatives and vice versa, then I need to know how many of these are even.", "out": "丕与乓"} {"kind": "builder", "in": "丕与乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [-x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丕与乓", "out": "Take a list of integers; keep only the first three, then negate each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then make every value non-negative, then reduce each by one.", "out": "为丏不"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then absolute value for all items, then Subtract 1 from all.", "out": "为丏不"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take absolute values, then Subtract one from each.", "out": "为丏不"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn negatives into positives, then Drop each by one.", "out": "为丏不"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then abs each element, then Decrease all values by one.", "out": "为丏不"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the absolute value of each, then Remove one from each value.", "out": "为丏不"} {"kind": "builder", "in": "为丏不", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "为丏不", "out": "Take a list of integers; drop the first and last elements, then take the absolute value of each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then default to [0] when there is nothing, then drop non-positive values.", "out": "主么七"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then when the list is empty, substitute a zero value, then drop the negative numbers.", "out": "主么七"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then replace an empty list with one zero, then filter out the negative ones.", "out": "主么七"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then zero it out if it's empty, then remove all negative values.", "out": "主么七"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then use zero if the list is empty, then keep positive values only.", "out": "主么七"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then default to zero when empty, then keep values above zero.", "out": "主么七"} {"kind": "builder", "in": "主么七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r if r else [0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "主么七", "out": "Take a list of integers; keep values greater than five, then if empty, use a single zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then make every value non-negative, then take values up to (excluding) the first zero.", "out": "丐丏久"} {"kind": "speaker", "in": "Take a list of integers; reverse, then absolute value for all items, then keep the part before the first 0.", "out": "丐丏久"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take absolute values, then truncate at the first zero.", "out": "丐丏久"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn negatives into positives, then delete everything starting with the first zero.", "out": "丐丏久"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then abs each element, then remove from the first zero onwards.", "out": "丐丏久"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the absolute value of each, then up to but not including the first zero.", "out": "丐丏久"} {"kind": "builder", "in": "丐丏久", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [abs(x) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丐丏久", "out": "Take a list of integers; reverse the order, then take the absolute value of each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then extend to length 3 using zeros, then replace an empty list with one zero.", "out": "久义么"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then pad to 3, then zero it out if it's empty.", "out": "久义么"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then extend to length 3 using zeros, then use zero if the list is empty.", "out": "久义么"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then pad to 3, then default to zero when empty.", "out": "久义么"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then extend to length 3 using zeros, then if there's nothing, put in a zero.", "out": "久义么"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then pad to 3, then if no items, add a zero.", "out": "久义么"} {"kind": "builder", "in": "久义么", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "久义么", "out": "Take a list of integers; keep everything before the first zero, then pad with zeros to at least three elements, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then truncate to three items.", "out": "丸万丕"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then show the first three.", "out": "丸万丕"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then take the first three.", "out": "丸万丕"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then keep first 3.", "out": "丸万丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then truncate to first three.", "out": "丸万丕"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then first three.", "out": "丸万丕"} {"kind": "builder", "in": "丸万丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丸万丕", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort largest to smallest, then give the number of evens.", "out": "丹专乓"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort by descending values, then find how many values are divisible by two.", "out": "丹专乓"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then sort from highest to lowest, then how many are even.", "out": "丹专乓"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then sort descending, then get the total number of even values in the list.", "out": "丹专乓"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort largest first, then give me the count of even values.", "out": "丹专乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort in descending order, then I need to know how many of these are even.", "out": "丹专乓"} {"kind": "builder", "in": "丹专乓", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, reverse=True)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丹专乓", "out": "Take a list of integers; keep only the last three, then sort descending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the list around, then give the number of evens.", "out": "丑丐乓"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then flip the order around, then find how many values are divisible by two.", "out": "丑丐乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then put the elements backwards, then how many are even.", "out": "丑丐乓"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then reverse that for me, then get the total number of even values in the list.", "out": "丑丐乓"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip it backwards, then give me the count of even values.", "out": "丑丐乓"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then make it backwards, then I need to know how many of these are even.", "out": "丑丐乓"} {"kind": "builder", "in": "丑丐乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(reversed(r))\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丑丐乓", "out": "Take a list of integers; sort ascending, then reverse the order, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each value by itself, then strip the signs.", "out": "么上丏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then square them all, then take abs of each.", "out": "么上丏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then raise each to the power of two, then get the absolute value of everything.", "out": "么上丏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then I need each number multiplied by itself, then apply absolute value to the whole list.", "out": "么上丏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then square all of them, then make them all positive.", "out": "么上丏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiply each element by itself, then make every value non-negative.", "out": "么上丏"} {"kind": "builder", "in": "么上丏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * x for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "么上丏", "out": "Take a list of integers; if empty, use a single zero, then square each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; square each, then order by distance from zero, then count the elements.", "out": "上丸东"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort based on absolute value, then how many items remain.", "out": "上丸东"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then organize by magnitude, then tell me the length.", "out": "上丸东"} {"kind": "speaker", "in": "Take a list of integers; square them all, then arrange by absolute value ascending, then return the length.", "out": "上丸东"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort from smallest to largest absolute value, then count them.", "out": "上丸东"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort by absolute value, then what's the count.", "out": "上丸东"} {"kind": "builder", "in": "上丸东", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n return len(r)"} {"kind": "translator", "in": "上丸东", "out": "Take a list of integers; square each, then sort by absolute value, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep only strings of length 3 or more, then deduplicate the strings.", "out": "乖乗丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then get rid of short ones, then filter out duplicate strings retain first.", "out": "乖乗丧"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove strings with less than three characters, then strip duplicates preserve order.", "out": "乖乗丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove all strings under three characters in length, then remove repeated strings.", "out": "乖乗丧"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then filter out short strings under three chars, then keep unique strings first appearance.", "out": "乖乗丧"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop strings shorter than three characters, then eliminate repeated strings preserve first occurrence.", "out": "乖乗丧"} {"kind": "builder", "in": "乖乗丧", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s for s in r if len(s) >= 3]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乖乗丧", "out": "Take a list of strings; sort alphabetically, then drop strings shorter than three characters, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then limit every value to 10.", "out": "且丈丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then maximum of 10 for all.", "out": "且丈丘"} {"kind": "builder", "in": "且丈丘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "且丈丘", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then replace an empty list with one zero.", "out": "丈与么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then zero it out if it's empty.", "out": "丈与么"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then use zero if the list is empty.", "out": "丈与么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then default to zero when empty.", "out": "丈与么"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then if there's nothing, put in a zero.", "out": "丈与么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then if no items, add a zero.", "out": "丈与么"} {"kind": "builder", "in": "丈与么", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [-x for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丈与么", "out": "Take a list of integers; double each, then negate each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then make every value non-negative, then trim one element off each end.", "out": "乃丏为"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then absolute value for all items, then cut off the first and last.", "out": "乃丏为"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take absolute values, then remove the first and last elements.", "out": "乃丏为"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn negatives into positives, then keep only the middle part.", "out": "乃丏为"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then abs each element, then drop first and last.", "out": "乃丏为"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the absolute value of each, then eliminate the outermost elements.", "out": "乃丏为"} {"kind": "builder", "in": "乃丏为", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [abs(x) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乃丏为", "out": "Take a list of integers; drop the leading negative values, then take the absolute value of each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then clamp each to at most ten, then replace an empty list with one zero.", "out": "串丘么"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then don't let anything exceed 10, then zero it out if it's empty.", "out": "串丘么"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then clamp each to at most ten, then use zero if the list is empty.", "out": "串丘么"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then don't let anything exceed 10, then default to zero when empty.", "out": "串丘么"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then clamp each to at most ten, then if there's nothing, put in a zero.", "out": "串丘么"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then don't let anything exceed 10, then if no items, add a zero.", "out": "串丘么"} {"kind": "builder", "in": "串丘么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "串丘么", "out": "Take a list of integers; keep multiples of three, then cap each value at 10, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then limit every value to 10.", "out": "乂乃丘"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then maximum of 10 for all.", "out": "乂乃丘"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then limit every value to 10.", "out": "乂乃丘"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then maximum of 10 for all.", "out": "乂乃丘"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then limit every value to 10.", "out": "乂乃丘"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then maximum of 10 for all.", "out": "乂乃丘"} {"kind": "builder", "in": "乂乃丘", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "乂乃丘", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then true if every value is unique.", "out": "七丘乏"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then check for duplicates in the values.", "out": "七丘乏"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then do all values appear only once.", "out": "七丘乏"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then check that there are no duplicates.", "out": "七丘乏"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then are the values all unique.", "out": "七丘乏"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then check if all values are unique.", "out": "七丘乏"} {"kind": "builder", "in": "七丘乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "七丘乏", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then cut the list at the first zero, then trim one element off each end.", "out": "主久为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then cut off after the first zero appears, then cut off the first and last.", "out": "主久为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take values up to (excluding) the first zero, then remove the first and last elements.", "out": "主久为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the part before the first 0, then keep only the middle part.", "out": "主久为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then truncate at the first zero, then drop first and last.", "out": "主久为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then delete everything starting with the first zero, then eliminate the outermost elements.", "out": "主久为"} {"kind": "builder", "in": "主久为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主久为", "out": "Take a list of integers; keep values greater than five, then keep everything before the first zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then default to [0] when there is nothing, then find the min, defaulting to 0.", "out": "义么丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then when the list is empty, substitute a zero value, then minimum value, zero otherwise.", "out": "义么丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then replace an empty list with one zero, then get the minimum value or zero if empty.", "out": "义么丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then zero it out if it's empty, then give me the min or 0.", "out": "义么丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then use zero if the list is empty, then return the smallest number, defaulting to 0.", "out": "义么丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then default to zero when empty, then return smallest or zero if empty.", "out": "义么丛"} {"kind": "builder", "in": "义么丛", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r if r else [0]\n return min(r) if r else 0"} {"kind": "translator", "in": "义么丛", "out": "Take a list of integers; pad with zeros to at least three elements, then if empty, use a single zero, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only odd values, then deduplicate the list.", "out": "七丁且"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then eliminate the even numbers, then remove repeats.", "out": "七丁且"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only odd values, then deduplicate the list.", "out": "七丁且"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then eliminate the even numbers, then remove repeats.", "out": "七丁且"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only odd values, then deduplicate the list.", "out": "七丁且"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then eliminate the even numbers, then remove repeats.", "out": "七丁且"} {"kind": "builder", "in": "七丁且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "七丁且", "out": "Take a list of integers; keep the positive numbers, then keep the odd numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements, then multiply each by -1.", "out": "义丕与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third, then negate.", "out": "义丕与"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items, then multiply each by -1.", "out": "义丕与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three, then negate.", "out": "义丕与"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three, then multiply each by -1.", "out": "义丕与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3, then negate.", "out": "义丕与"} {"kind": "builder", "in": "义丕与", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "义丕与", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep only odd values, then drop anything not divisible by three.", "out": "丑丁串"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then eliminate the even numbers, then filter out everything except multiples of three.", "out": "丑丁串"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only odd values, then keep only multiples of three.", "out": "丑丁串"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then eliminate the even numbers, then multiples of three only.", "out": "丑丁串"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only odd values, then filter for numbers divisible by three.", "out": "丑丁串"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then eliminate the even numbers, then give me only the values divisible by three.", "out": "丑丁串"} {"kind": "builder", "in": "丑丁串", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丑丁串", "out": "Take a list of integers; sort ascending, then keep the odd numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then arrange by magnitude ignoring sign.", "out": "丈举丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then put them in order by magnitude.", "out": "丈举丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then arrange in order of absolute value.", "out": "丈举丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then sort by distance from zero.", "out": "丈举丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then order by how far from zero.", "out": "丈举丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then order by distance from zero.", "out": "丈举丸"} {"kind": "builder", "in": "丈举丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丈举丸", "out": "Take a list of integers; double each, then drop the zeros, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then keep only numbers above 5.", "out": "世且主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then exclude values of 5 and below.", "out": "世且主"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then remove anything 5 or less.", "out": "世且主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then filter to keep only values above 5.", "out": "世且主"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then get rid of values that aren't greater than five.", "out": "世且主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then drop anything 5 or below.", "out": "世且主"} {"kind": "builder", "in": "世且主", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "世且主", "out": "Take a list of integers; drop the first element, then drop duplicates keeping first occurrence, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove both ends, then ensure at least three items by appending zeros.", "out": "下为义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then trim the edges, then ensure minimum length of three by adding zeros to the end.", "out": "下为义"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then trim one element off each end, then ensure at least three items by appending zeros.", "out": "下为义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off the first and last, then ensure minimum length of three by adding zeros to the end.", "out": "下为义"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first and last elements, then ensure at least three items by appending zeros.", "out": "下为义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the middle part, then ensure minimum length of three by adding zeros to the end.", "out": "下为义"} {"kind": "builder", "in": "下为义", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "下为义", "out": "Take a list of integers; add one to each, then drop the first and last elements, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove repeated values, then drop the even numbers.", "out": "不且丁"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then unique values preserving order, then strip out the evens.", "out": "不且丁"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove repeated values, then drop the even numbers.", "out": "不且丁"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then unique values preserving order, then strip out the evens.", "out": "不且丁"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove repeated values, then drop the even numbers.", "out": "不且丁"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then unique values preserving order, then strip out the evens.", "out": "不且丁"} {"kind": "builder", "in": "不且丁", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "不且丁", "out": "Take a list of integers; subtract one from each, then drop duplicates keeping first occurrence, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then extend to length 3 using zeros, then find the min, defaulting to 0.", "out": "不义丛"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then pad to 3, then minimum value, zero otherwise.", "out": "不义丛"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then extend to length 3 using zeros, then get the minimum value or zero if empty.", "out": "不义丛"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then pad to 3, then give me the min or 0.", "out": "不义丛"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then extend to length 3 using zeros, then return the smallest number, defaulting to 0.", "out": "不义丛"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then pad to 3, then return smallest or zero if empty.", "out": "不义丛"} {"kind": "builder", "in": "不义丛", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return min(r) if r else 0"} {"kind": "translator", "in": "不义丛", "out": "Take a list of integers; subtract one from each, then pad with zeros to at least three elements, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then count the elements.", "out": "久世东"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then how many items remain.", "out": "久世东"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then tell me the length.", "out": "久世东"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then return the length.", "out": "久世东"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then count them.", "out": "久世东"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then what's the count.", "out": "久世东"} {"kind": "builder", "in": "久世东", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n return len(r)"} {"kind": "translator", "in": "久世东", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then strip spaces around each string, then prepend a hash mark to each.", "out": "严丢乘"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then remove leading and trailing spaces, then prefix all with #.", "out": "严丢乘"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then remove whitespace from each item, then prepend a hash mark to each.", "out": "严丢乘"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then clean whitespace from each entry, then prefix all with #.", "out": "严丢乘"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then trim each string, then prepend a hash mark to each.", "out": "严丢乘"} {"kind": "speaker", "in": "Take a list of strings; length sort, then trim whitespace from each, then prefix all with #.", "out": "严丢乘"} {"kind": "builder", "in": "严丢乘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.strip() for s in r]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "严丢乘", "out": "Take a list of strings; sort by length, shortest first, then trim whitespace from each, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increment each value, then multiply each by -1.", "out": "乂下与"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then plus one for all, then negate.", "out": "乂下与"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then increment each value, then multiply each by -1.", "out": "乂下与"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then plus one for all, then negate.", "out": "乂下与"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then increment each value, then multiply each by -1.", "out": "乂下与"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then plus one for all, then negate.", "out": "乂下与"} {"kind": "builder", "in": "乂下与", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乂下与", "out": "Take a list of integers; take values while they are positive, then add one to each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then multiply each value by itself, then strip the signs.", "out": "丹上丏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then square them all, then take abs of each.", "out": "丹上丏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then raise each to the power of two, then get the absolute value of everything.", "out": "丹上丏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then I need each number multiplied by itself, then apply absolute value to the whole list.", "out": "丹上丏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then square all of them, then make them all positive.", "out": "丹上丏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiply each element by itself, then make every value non-negative.", "out": "丹上丏"} {"kind": "builder", "in": "丹上丏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x * x for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丹上丏", "out": "Take a list of integers; keep only the last three, then square each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then arrange by magnitude ignoring sign.", "out": "万为丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then put them in order by magnitude.", "out": "万为丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then arrange in order of absolute value.", "out": "万为丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then sort by distance from zero.", "out": "万为丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then order by how far from zero.", "out": "万为丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then order by distance from zero.", "out": "万为丸"} {"kind": "builder", "in": "万为丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "万为丸", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then make every value non-negative, then keep only non-zero numbers.", "out": "七丏举"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then absolute value for all items, then strip the zeros.", "out": "七丏举"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take absolute values, then keep only non-zero numbers.", "out": "七丏举"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn negatives into positives, then strip the zeros.", "out": "七丏举"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then abs each element, then keep only non-zero numbers.", "out": "七丏举"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the absolute value of each, then strip the zeros.", "out": "七丏举"} {"kind": "builder", "in": "七丏举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "七丏举", "out": "Take a list of integers; keep the positive numbers, then take the absolute value of each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each by two, then raise each to the power of two.", "out": "七丈上"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then double each item in the list, then I need each number multiplied by itself.", "out": "七丈上"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then multiply each by two, then square all of them.", "out": "七丈上"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then double each item in the list, then multiply each element by itself.", "out": "七丈上"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then multiply each by two, then make each one squared.", "out": "七丈上"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then double each item in the list, then square each value in the list.", "out": "七丈上"} {"kind": "builder", "in": "七丈上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "七丈上", "out": "Take a list of integers; keep the positive numbers, then double each, then square each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only even values, then stop at the first non-positive value.", "out": "义一乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then extract all even numbers, then keep the leading run of positive numbers.", "out": "义一乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only even values, then take values while they are positive.", "out": "义一乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then extract all even numbers, then take positive values then stop.", "out": "义一乂"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only even values, then keep going while positive.", "out": "义一乂"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then extract all even numbers, then stop at first non positive.", "out": "义一乂"} {"kind": "builder", "in": "义一乂", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "义一乂", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the even numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then decrement each value, then give the number of evens.", "out": "么不乓"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Lower each number by one, then find how many values are divisible by two.", "out": "么不乓"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then reduce each by one, then how many are even.", "out": "么不乓"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Subtract 1 from all, then get the total number of even values in the list.", "out": "么不乓"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Subtract one from each, then give me the count of even values.", "out": "么不乓"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Drop each by one, then I need to know how many of these are even.", "out": "么不乓"} {"kind": "builder", "in": "么不乓", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x - 1 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "么不乓", "out": "Take a list of integers; if empty, use a single zero, then subtract one from each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then make every value non-negative, then find the max, defaulting to 0.", "out": "且丏业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then absolute value for all items, then Give me the maximum, but 0 if there are no items.", "out": "且丏业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take absolute values, then What's the highest number in the list.", "out": "且丏业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn negatives into positives, then Return the greatest value or default to 0.", "out": "且丏业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then abs each element, then Find the largest element, defaulting to zero.", "out": "且丏业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the absolute value of each, then give the largest value (0 if none).", "out": "且丏业"} {"kind": "builder", "in": "且丏业", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [abs(x) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "且丏业", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take the absolute value of each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the sign of each, then find the min, defaulting to 0.", "out": "么与丛"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then turn positives to negatives and vice versa, then minimum value, zero otherwise.", "out": "么与丛"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then flip the sign of each, then get the minimum value or zero if empty.", "out": "么与丛"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn positives to negatives and vice versa, then give me the min or 0.", "out": "么与丛"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip the sign of each, then return the smallest number, defaulting to 0.", "out": "么与丛"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then turn positives to negatives and vice versa, then return smallest or zero if empty.", "out": "么与丛"} {"kind": "builder", "in": "么与丛", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [-x for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "么与丛", "out": "Take a list of integers; if empty, use a single zero, then negate each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then take the final 3 elements, then multiply each by -1.", "out": "串丹与"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then drop everything except the final three, then negate.", "out": "串丹与"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then give me the last three elements, then multiply each by -1.", "out": "串丹与"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep only the last three, then negate.", "out": "串丹与"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep the final three items, then multiply each by -1.", "out": "串丹与"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the last three, then negate.", "out": "串丹与"} {"kind": "builder", "in": "串丹与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[-3:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "串丹与", "out": "Take a list of integers; keep multiples of three, then keep only the last three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero, then keep only non-zero numbers.", "out": "世丸举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value, then strip the zeros.", "out": "世丸举"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude, then keep only non-zero numbers.", "out": "世丸举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending, then strip the zeros.", "out": "世丸举"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value, then keep only non-zero numbers.", "out": "世丸举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value, then strip the zeros.", "out": "世丸举"} {"kind": "builder", "in": "世丸举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "世丸举", "out": "Take a list of integers; drop the first element, then sort by absolute value, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values divisible by 3, then take values up to (excluding) the first zero.", "out": "举串久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep items where x mod 3 equals zero, then keep the part before the first 0.", "out": "举串久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything not divisible by three, then truncate at the first zero.", "out": "举串久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter out everything except multiples of three, then delete everything starting with the first zero.", "out": "举串久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only multiples of three, then remove from the first zero onwards.", "out": "举串久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiples of three only, then up to but not including the first zero.", "out": "举串久"} {"kind": "builder", "in": "举串久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "举串久", "out": "Take a list of integers; drop the zeros, then keep multiples of three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values divisible by 3, then arrange by magnitude ignoring sign.", "out": "丏串丸"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep items where x mod 3 equals zero, then put them in order by magnitude.", "out": "丏串丸"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then drop anything not divisible by three, then arrange in order of absolute value.", "out": "丏串丸"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then filter out everything except multiples of three, then sort by distance from zero.", "out": "丏串丸"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only multiples of three, then order by how far from zero.", "out": "丏串丸"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then multiples of three only, then order by distance from zero.", "out": "丏串丸"} {"kind": "builder", "in": "丏串丸", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丏串丸", "out": "Take a list of integers; take the absolute value of each, then keep multiples of three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then true if every value is unique.", "out": "万丈乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then check for duplicates in the values.", "out": "万丈乏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then do all values appear only once.", "out": "万丈乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then check that there are no duplicates.", "out": "万丈乏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then are the values all unique.", "out": "万丈乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then check if all values are unique.", "out": "万丈乏"} {"kind": "builder", "in": "万丈乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x * 2 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "万丈乏", "out": "Take a list of integers; keep the negative numbers, then double each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything 5 or below, then trim one element off each end.", "out": "一主为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only numbers greater than 5, then cut off the first and last.", "out": "一主为"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then filter for numbers above 5, then remove the first and last elements.", "out": "一主为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me values where x is greater than 5, then keep only the middle part.", "out": "一主为"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then show me only the values that are bigger than five, then drop first and last.", "out": "一主为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep values greater than five, then eliminate the outermost elements.", "out": "一主为"} {"kind": "builder", "in": "一主为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "一主为", "out": "Take a list of integers; keep the even numbers, then keep values greater than five, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; square each, then extend to length 3 using zeros, then arrange in increasing order.", "out": "上义丑"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then pad to 3, then Organize these ascending.", "out": "上义丑"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then extend to length 3 using zeros, then Sort in ascending order.", "out": "上义丑"} {"kind": "speaker", "in": "Take a list of integers; square them all, then pad to 3, then I need this sorted ascending.", "out": "上义丑"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then extend to length 3 using zeros, then Put these in ascending order.", "out": "上义丑"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then pad to 3, then sort smallest to largest.", "out": "上义丑"} {"kind": "builder", "in": "上义丑", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "上义丑", "out": "Take a list of integers; square each, then pad with zeros to at least three elements, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then decrement each value, then put the elements backwards.", "out": "久不丐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Lower each number by one, then reverse that for me.", "out": "久不丐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then reduce each by one, then flip it backwards.", "out": "久不丐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Subtract 1 from all, then make it backwards.", "out": "久不丐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Subtract one from each, then reverse the list.", "out": "久不丐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Drop each by one, then invert the sequence.", "out": "久不丐"} {"kind": "builder", "in": "久不丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "久不丐", "out": "Take a list of integers; keep everything before the first zero, then subtract one from each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then cut the list at the first zero, then trim one element off each end.", "out": "不久为"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then cut off after the first zero appears, then cut off the first and last.", "out": "不久为"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take values up to (excluding) the first zero, then remove the first and last elements.", "out": "不久为"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the part before the first 0, then keep only the middle part.", "out": "不久为"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then truncate at the first zero, then drop first and last.", "out": "不久为"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then delete everything starting with the first zero, then eliminate the outermost elements.", "out": "不久为"} {"kind": "builder", "in": "不久为", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "不久为", "out": "Take a list of integers; subtract one from each, then keep everything before the first zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then extend to length 3 using zeros, then trim one element off each end.", "out": "九义为"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then pad to 3, then cut off the first and last.", "out": "九义为"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then extend to length 3 using zeros, then remove the first and last elements.", "out": "九义为"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then pad to 3, then keep only the middle part.", "out": "九义为"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then extend to length 3 using zeros, then drop first and last.", "out": "九义为"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then pad to 3, then eliminate the outermost elements.", "out": "九义为"} {"kind": "builder", "in": "九义为", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "九义为", "out": "Take a list of people records (name, age); extract the ages, then pad with zeros to at least three elements, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then strip the signs.", "out": "丸万丏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then take abs of each.", "out": "丸万丏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then get the absolute value of everything.", "out": "丸万丏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then apply absolute value to the whole list.", "out": "丸万丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then make them all positive.", "out": "丸万丏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then make every value non-negative.", "out": "丸万丏"} {"kind": "builder", "in": "丸万丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丸万丏", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item, then remove the initial run of negative numbers.", "out": "九世乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head, then strip the front negatives.", "out": "九世乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item, then remove leading negative numbers.", "out": "九世乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head, then drop negatives from start.", "out": "九世乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item, then strip negative values from the start.", "out": "九世乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head, then remove negatives before the first non-negative.", "out": "九世乃"} {"kind": "builder", "in": "九世乃", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "九世乃", "out": "Take a list of people records (name, age); extract the ages, then drop the first element, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the first 3 elements, then arrange in increasing order.", "out": "么丕丑"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then remove everything after the third, then Organize these ascending.", "out": "么丕丑"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then truncate to three items, then Sort in ascending order.", "out": "么丕丑"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then show the first three, then I need this sorted ascending.", "out": "么丕丑"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then take the first three, then Put these in ascending order.", "out": "么丕丑"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep first 3, then sort smallest to largest.", "out": "么丕丑"} {"kind": "builder", "in": "么丕丑", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:3]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "么丕丑", "out": "Take a list of integers; if empty, use a single zero, then keep only the first three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort largest to smallest, then truncate to three items.", "out": "与专丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort by descending values, then show the first three.", "out": "与专丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort from highest to lowest, then take the first three.", "out": "与专丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort descending, then keep first 3.", "out": "与专丕"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort largest first, then truncate to first three.", "out": "与专丕"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort in descending order, then first three.", "out": "与专丕"} {"kind": "builder", "in": "与专丕", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r, reverse=True)\n r = r[:3]\n return r"} {"kind": "translator", "in": "与专丕", "out": "Take a list of integers; negate each, then sort descending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the list around, then remove the initial run of negative numbers.", "out": "且丐乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then flip the order around, then strip the front negatives.", "out": "且丐乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then put the elements backwards, then remove leading negative numbers.", "out": "且丐乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then reverse that for me, then drop negatives from start.", "out": "且丐乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip it backwards, then strip negative values from the start.", "out": "且丐乃"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then make it backwards, then remove negatives before the first non-negative.", "out": "且丐乃"} {"kind": "builder", "in": "且丐乃", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "且丐乃", "out": "Take a list of integers; drop duplicates keeping first occurrence, then reverse the order, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten, then skip the first one.", "out": "丽丘世"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10, then Discard the first element.", "out": "丽丘世"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten, then skip the first one.", "out": "丽丘世"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10, then Discard the first element.", "out": "丽丘世"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten, then skip the first one.", "out": "丽丘世"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10, then Discard the first element.", "out": "丽丘世"} {"kind": "builder", "in": "丽丘世", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丽丘世", "out": "Take a list of integers; add ten to each, then cap each value at 10, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values above zero, then drop anything not divisible by three.", "out": "丈七串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter for positive numbers, then filter out everything except multiples of three.", "out": "丈七串"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only positive numbers, then keep only multiples of three.", "out": "丈七串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positives, then multiples of three only.", "out": "丈七串"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove negatives, then filter for numbers divisible by three.", "out": "丈七串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positive numbers, then give me only the values divisible by three.", "out": "丈七串"} {"kind": "builder", "in": "丈七串", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丈七串", "out": "Take a list of integers; double each, then keep the positive numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the final 3 elements, then bump each up by one.", "out": "为丹下"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then drop everything except the final three, then increment each item.", "out": "为丹下"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give me the last three elements, then bump each up by one.", "out": "为丹下"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep only the last three, then increment each item.", "out": "为丹下"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep the final three items, then bump each up by one.", "out": "为丹下"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the last three, then increment each item.", "out": "为丹下"} {"kind": "builder", "in": "为丹下", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[-3:]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "为丹下", "out": "Take a list of integers; drop the first and last elements, then keep only the last three, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then true if at least one even value.", "out": "举丑之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then any even.", "out": "举丑之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then true if at least one even value.", "out": "举丑之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then any even.", "out": "举丑之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then true if at least one even value.", "out": "举丑之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then any even.", "out": "举丑之"} {"kind": "builder", "in": "举丑之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "举丑之", "out": "Take a list of integers; drop the zeros, then sort ascending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values divisible by 3, then drop non-negative values.", "out": "不串万"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep items where x mod 3 equals zero, then drop all positive numbers.", "out": "不串万"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then drop anything not divisible by three, then drop non-negative values.", "out": "不串万"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then filter out everything except multiples of three, then drop all positive numbers.", "out": "不串万"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only multiples of three, then drop non-negative values.", "out": "不串万"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiples of three only, then drop all positive numbers.", "out": "不串万"} {"kind": "builder", "in": "不串万", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "不串万", "out": "Take a list of integers; subtract one from each, then keep multiples of three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then arrange in decreasing order.", "out": "丁七专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then arrange in descending order.", "out": "丁七专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then reverse sort.", "out": "丁七专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then sort largest to smallest.", "out": "丁七专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then sort by descending values.", "out": "丁七专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then sort from highest to lowest.", "out": "丁七专"} {"kind": "builder", "in": "丁七专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丁七专", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only even values, then shift each up by ten.", "out": "丕一丽"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then extract all even numbers, then increase all numbers by 10.", "out": "丕一丽"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only even values, then add 10 to everything.", "out": "丕一丽"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then extract all even numbers, then give everything a boost of 10.", "out": "丕一丽"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only even values, then increment each by ten.", "out": "丕一丽"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then extract all even numbers, then add a constant 10 to each.", "out": "丕一丽"} {"kind": "builder", "in": "丕一丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丕一丽", "out": "Take a list of integers; keep only the first three, then keep the even numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove all zero values, then multiply each by -1.", "out": "久举与"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then exclude zeros, then negate.", "out": "久举与"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove all zero values, then multiply each by -1.", "out": "久举与"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then exclude zeros, then negate.", "out": "久举与"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove all zero values, then multiply each by -1.", "out": "久举与"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then exclude zeros, then negate.", "out": "久举与"} {"kind": "builder", "in": "久举与", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "久举与", "out": "Take a list of integers; keep everything before the first zero, then drop the zeros, then negate each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then order by distance from zero, then remove the initial run of negative numbers.", "out": "九丸乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort based on absolute value, then strip the front negatives.", "out": "九丸乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then organize by magnitude, then remove leading negative numbers.", "out": "九丸乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then arrange by absolute value ascending, then drop negatives from start.", "out": "九丸乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort from smallest to largest absolute value, then strip negative values from the start.", "out": "九丸乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort by absolute value, then remove negatives before the first non-negative.", "out": "九丸乃"} {"kind": "builder", "in": "九丸乃", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "九丸乃", "out": "Take a list of people records (name, age); extract the ages, then sort by absolute value, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove both ends, then bump each up by one.", "out": "丕为下"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then trim the edges, then increment each item.", "out": "丕为下"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then trim one element off each end, then bump each up by one.", "out": "丕为下"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then cut off the first and last, then increment each item.", "out": "丕为下"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first and last elements, then bump each up by one.", "out": "丕为下"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep only the middle part, then increment each item.", "out": "丕为下"} {"kind": "builder", "in": "丕为下", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:-1]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丕为下", "out": "Take a list of integers; keep only the first three, then drop the first and last elements, then add one to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increase every value by 10, then find the min, defaulting to 0.", "out": "九丽丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then add 10 to each item, then minimum value, zero otherwise.", "out": "九丽丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then shift each up by ten, then get the minimum value or zero if empty.", "out": "九丽丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then increase all numbers by 10, then give me the min or 0.", "out": "九丽丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then add 10 to everything, then return the smallest number, defaulting to 0.", "out": "九丽丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then give everything a boost of 10, then return smallest or zero if empty.", "out": "九丽丛"} {"kind": "builder", "in": "九丽丛", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 10 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "九丽丛", "out": "Take a list of people records (name, age); extract the ages, then add ten to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then make every value non-negative, then shift each up by ten.", "out": "么丏丽"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then absolute value for all items, then increase all numbers by 10.", "out": "么丏丽"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take absolute values, then add 10 to everything.", "out": "么丏丽"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn negatives into positives, then give everything a boost of 10.", "out": "么丏丽"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then abs each element, then increment each by ten.", "out": "么丏丽"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the absolute value of each, then add a constant 10 to each.", "out": "么丏丽"} {"kind": "builder", "in": "么丏丽", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "么丏丽", "out": "Take a list of integers; if empty, use a single zero, then take the absolute value of each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then raise each to the power of two.", "out": "下一上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then I need each number multiplied by itself.", "out": "下一上"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then square all of them.", "out": "下一上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then multiply each element by itself.", "out": "下一上"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then make each one squared.", "out": "下一上"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then square each value in the list.", "out": "下一上"} {"kind": "builder", "in": "下一上", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "下一上", "out": "Take a list of integers; add one to each, then keep the even numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then truncate to the last three items.", "out": "丽丐丹"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then show only the last three.", "out": "丽丐丹"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then remove all but the last three.", "out": "丽丐丹"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then take the final 3 elements.", "out": "丽丐丹"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then drop everything except the final three.", "out": "丽丐丹"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then give me the last three elements.", "out": "丽丐丹"} {"kind": "builder", "in": "丽丐丹", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丽丐丹", "out": "Take a list of integers; add ten to each, then reverse the order, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the leading run of positive numbers, then find the max, defaulting to 0.", "out": "与乂业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take values while they are positive, then Give me the maximum, but 0 if there are no items.", "out": "与乂业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take positive values then stop, then What's the highest number in the list.", "out": "与乂业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep going while positive, then Return the greatest value or default to 0.", "out": "与乂业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then stop at first non positive, then Find the largest element, defaulting to zero.", "out": "与乂业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take while greater than zero, then give the largest value (0 if none).", "out": "与乂业"} {"kind": "builder", "in": "与乂业", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return max(r) if r else 0"} {"kind": "translator", "in": "与乂业", "out": "Take a list of integers; negate each, then take values while they are positive, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep the leading run of positive numbers, then true if already sorted smallest to largest.", "out": "丸乂乎"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then take values while they are positive, then does this list go in ascending order.", "out": "丸乂乎"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take positive values then stop, then check if the list is in ascending order.", "out": "丸乂乎"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep going while positive, then is the list sorted.", "out": "丸乂乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then stop at first non positive, then is it sorted.", "out": "丸乂乎"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take while greater than zero, then check if values are in increasing order.", "out": "丸乂乎"} {"kind": "builder", "in": "丸乂乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r == sorted(r)"} {"kind": "translator", "in": "丸乂乎", "out": "Take a list of integers; sort by absolute value, then take values while they are positive, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort smallest to largest, then drop non-positive values.", "out": "么丑七"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Ascending sort, then drop the negative numbers.", "out": "么丑七"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then Sort this ascending, then filter out the negative ones.", "out": "么丑七"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Sort lowest to highest, then remove all negative values.", "out": "么丑七"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Arrange from smallest to largest, then keep positive values only.", "out": "么丑七"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort ascending, then keep values above zero.", "out": "么丑七"} {"kind": "builder", "in": "么丑七", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "么丑七", "out": "Take a list of integers; if empty, use a single zero, then sort ascending, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the list around, then find the min, defaulting to 0.", "out": "丈丐丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then flip the order around, then minimum value, zero otherwise.", "out": "丈丐丛"} {"kind": "speaker", "in": "Take a list of integers; double each, then put the elements backwards, then get the minimum value or zero if empty.", "out": "丈丐丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then reverse that for me, then give me the min or 0.", "out": "丈丐丛"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip it backwards, then return the smallest number, defaulting to 0.", "out": "丈丐丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then make it backwards, then return smallest or zero if empty.", "out": "丈丐丛"} {"kind": "builder", "in": "丈丐丛", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(reversed(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "丈丐丛", "out": "Take a list of integers; double each, then reverse the order, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then drop anything 5 or below, then truncate to the last three items.", "out": "久主丹"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep only numbers greater than 5, then show only the last three.", "out": "久主丹"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then filter for numbers above 5, then remove all but the last three.", "out": "久主丹"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then give me values where x is greater than 5, then take the final 3 elements.", "out": "久主丹"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then show me only the values that are bigger than five, then drop everything except the final three.", "out": "久主丹"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep values greater than five, then give me the last three elements.", "out": "久主丹"} {"kind": "builder", "in": "久主丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "久主丹", "out": "Take a list of integers; keep everything before the first zero, then keep values greater than five, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then make every value non-negative, then replace an empty list with one zero.", "out": "万丏么"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then absolute value for all items, then zero it out if it's empty.", "out": "万丏么"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take absolute values, then use zero if the list is empty.", "out": "万丏么"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn negatives into positives, then default to zero when empty.", "out": "万丏么"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then abs each element, then if there's nothing, put in a zero.", "out": "万丏么"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the absolute value of each, then if no items, add a zero.", "out": "万丏么"} {"kind": "builder", "in": "万丏么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "万丏么", "out": "Take a list of integers; keep the negative numbers, then take the absolute value of each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove all zero values, then truncate to three items.", "out": "专举丕"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then exclude zeros, then show the first three.", "out": "专举丕"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove all zero values, then take the first three.", "out": "专举丕"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then exclude zeros, then keep first 3.", "out": "专举丕"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove all zero values, then truncate to first three.", "out": "专举丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then exclude zeros, then first three.", "out": "专举丕"} {"kind": "builder", "in": "专举丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "专举丕", "out": "Take a list of integers; sort descending, then drop the zeros, then keep only the first three."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then take each string's first letter, then return them as one comma-separated string.", "out": "两丨中"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then give me the first letter of everything, then separate by comma.", "out": "两丨中"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then reduce each string to its first character, then join with commas.", "out": "两丨中"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then take first char drop blanks, then comma join.", "out": "两丨中"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then keep first letters only, then combine using commas.", "out": "两丨中"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then first letter from each item that isn't empty, then connect with commas between each item.", "out": "两丨中"} {"kind": "builder", "in": "两丨中", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s[0] for s in r if s]\n return ','.join(r)"} {"kind": "translator", "in": "两丨中", "out": "Take a list of strings; drop empty strings, then keep the first character of each (dropping empties), then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then give the number of evens.", "out": "下万乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then find how many values are divisible by two.", "out": "下万乓"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then how many are even.", "out": "下万乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then get the total number of even values in the list.", "out": "下万乓"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then give me the count of even values.", "out": "下万乓"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then I need to know how many of these are even.", "out": "下万乓"} {"kind": "builder", "in": "下万乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "下万乓", "out": "Take a list of integers; add one to each, then keep the negative numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove both ends, then truncate to three items.", "out": "丑为丕"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then trim the edges, then show the first three.", "out": "丑为丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then trim one element off each end, then take the first three.", "out": "丑为丕"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then cut off the first and last, then keep first 3.", "out": "丑为丕"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first and last elements, then truncate to first three.", "out": "丑为丕"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep only the middle part, then first three.", "out": "丑为丕"} {"kind": "builder", "in": "丑为丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:-1]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丑为丕", "out": "Take a list of integers; sort ascending, then drop the first and last elements, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the sign of each, then make each twice as big.", "out": "么与丈"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then turn positives to negatives and vice versa, then multiply each by 2.", "out": "么与丈"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then flip the sign of each, then make each twice as big.", "out": "么与丈"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn positives to negatives and vice versa, then multiply each by 2.", "out": "么与丈"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip the sign of each, then make each twice as big.", "out": "么与丈"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then turn positives to negatives and vice versa, then multiply each by 2.", "out": "么与丈"} {"kind": "builder", "in": "么与丈", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [-x for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "么与丈", "out": "Take a list of integers; if empty, use a single zero, then negate each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then skip negatives at the start, then keep only numbers above 5.", "out": "七乃主"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then remove all negatives at the front, then exclude values of 5 and below.", "out": "七乃主"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the initial run of negative numbers, then remove anything 5 or less.", "out": "七乃主"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then strip the front negatives, then filter to keep only values above 5.", "out": "七乃主"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove leading negative numbers, then get rid of values that aren't greater than five.", "out": "七乃主"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then drop negatives from start, then drop anything 5 or below.", "out": "七乃主"} {"kind": "builder", "in": "七乃主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "七乃主", "out": "Take a list of integers; keep the positive numbers, then drop the leading negative values, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove all zero values, then limit every value to 10.", "out": "不举丘"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then exclude zeros, then maximum of 10 for all.", "out": "不举丘"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove all zero values, then limit every value to 10.", "out": "不举丘"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then exclude zeros, then maximum of 10 for all.", "out": "不举丘"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove all zero values, then limit every value to 10.", "out": "不举丘"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then exclude zeros, then maximum of 10 for all.", "out": "不举丘"} {"kind": "builder", "in": "不举丘", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x != 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "不举丘", "out": "Take a list of integers; subtract one from each, then drop the zeros, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then multiply each by -1.", "out": "举丑与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then negate.", "out": "举丑与"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then multiply each by -1.", "out": "举丑与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then negate.", "out": "举丑与"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then multiply each by -1.", "out": "举丑与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then negate.", "out": "举丑与"} {"kind": "builder", "in": "举丑与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "举丑与", "out": "Take a list of integers; drop the zeros, then sort ascending, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first item, then trim one element off each end.", "out": "丁世为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Remove head, then cut off the first and last.", "out": "丁世为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first item, then remove the first and last elements.", "out": "丁世为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Remove head, then keep only the middle part.", "out": "丁世为"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first item, then drop first and last.", "out": "丁世为"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Remove head, then eliminate the outermost elements.", "out": "丁世为"} {"kind": "builder", "in": "丁世为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[1:]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丁世为", "out": "Take a list of integers; keep the odd numbers, then drop the first element, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then skip negatives at the start, then make each twice as big.", "out": "举乃丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove all negatives at the front, then multiply each by 2.", "out": "举乃丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the initial run of negative numbers, then make each twice as big.", "out": "举乃丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then strip the front negatives, then multiply each by 2.", "out": "举乃丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove leading negative numbers, then make each twice as big.", "out": "举乃丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop negatives from start, then multiply each by 2.", "out": "举乃丈"} {"kind": "builder", "in": "举乃丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "举乃丈", "out": "Take a list of integers; drop the zeros, then drop the leading negative values, then double each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increment each value, then trim one element off each end.", "out": "么下为"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then plus one for all, then cut off the first and last.", "out": "么下为"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then increment each value, then remove the first and last elements.", "out": "么下为"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then plus one for all, then keep only the middle part.", "out": "么下为"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then increment each value, then drop first and last.", "out": "么下为"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then plus one for all, then eliminate the outermost elements.", "out": "么下为"} {"kind": "builder", "in": "么下为", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "么下为", "out": "Take a list of integers; if empty, use a single zero, then add one to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increase every value by 10, then give the number of evens.", "out": "九丽乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then add 10 to each item, then find how many values are divisible by two.", "out": "九丽乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then shift each up by ten, then how many are even.", "out": "九丽乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then increase all numbers by 10, then get the total number of even values in the list.", "out": "九丽乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then add 10 to everything, then give me the count of even values.", "out": "九丽乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then give everything a boost of 10, then I need to know how many of these are even.", "out": "九丽乓"} {"kind": "builder", "in": "九丽乓", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 10 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "九丽乓", "out": "Take a list of people records (name, age); extract the ages, then add ten to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increase every value by 10, then give the number of evens.", "out": "为丽乓"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then add 10 to each item, then find how many values are divisible by two.", "out": "为丽乓"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then shift each up by ten, then how many are even.", "out": "为丽乓"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then increase all numbers by 10, then get the total number of even values in the list.", "out": "为丽乓"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then add 10 to everything, then give me the count of even values.", "out": "为丽乓"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then give everything a boost of 10, then I need to know how many of these are even.", "out": "为丽乓"} {"kind": "builder", "in": "为丽乓", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 10 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "为丽乓", "out": "Take a list of integers; drop the first and last elements, then add ten to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove repeated values, then true if any value equals zero.", "out": "丐且乍"} {"kind": "speaker", "in": "Take a list of integers; reverse, then unique values preserving order, then check for zero.", "out": "丐且乍"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove repeated values, then true if any value equals zero.", "out": "丐且乍"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then unique values preserving order, then check for zero.", "out": "丐且乍"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove repeated values, then true if any value equals zero.", "out": "丐且乍"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then unique values preserving order, then check for zero.", "out": "丐且乍"} {"kind": "builder", "in": "丐且乍", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = list(dict.fromkeys(r))\n return 0 in r"} {"kind": "translator", "in": "丐且乍", "out": "Take a list of integers; reverse the order, then drop duplicates keeping first occurrence, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then make every value non-negative, then shift each up by ten.", "out": "九丏丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then absolute value for all items, then increase all numbers by 10.", "out": "九丏丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take absolute values, then add 10 to everything.", "out": "九丏丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn negatives into positives, then give everything a boost of 10.", "out": "九丏丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then abs each element, then increment each by ten.", "out": "九丏丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the absolute value of each, then add a constant 10 to each.", "out": "九丏丽"} {"kind": "builder", "in": "九丏丽", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "九丏丽", "out": "Take a list of people records (name, age); extract the ages, then take the absolute value of each, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then order strings from shortest to longest, then find the longest one, defaulting to empty.", "out": "丢严丰"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then shortest to longest, then Longest string, or nothing if there isn't one.", "out": "丢严丰"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then arrange by string length ascending, then find the longest one, defaulting to empty.", "out": "丢严丰"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then length sort, then Longest string, or nothing if there isn't one.", "out": "丢严丰"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then sort by length shortest first, then find the longest one, defaulting to empty.", "out": "丢严丰"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then organize by string length least to greatest, then Longest string, or nothing if there isn't one.", "out": "丢严丰"} {"kind": "builder", "in": "丢严丰", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = sorted(r, key=len)\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "丢严丰", "out": "Take a list of strings; trim whitespace from each, then sort by length, shortest first, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the list around, then true if already sorted smallest to largest.", "out": "举丐乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then flip the order around, then does this list go in ascending order.", "out": "举丐乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then put the elements backwards, then check if the list is in ascending order.", "out": "举丐乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then reverse that for me, then is the list sorted.", "out": "举丐乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip it backwards, then is it sorted.", "out": "举丐乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then make it backwards, then check if values are in increasing order.", "out": "举丐乎"} {"kind": "builder", "in": "举丐乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n return r == sorted(r)"} {"kind": "translator", "in": "举丐乎", "out": "Take a list of integers; drop the zeros, then reverse the order, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the list around, then true only if all are positive.", "out": "义丐乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then flip the order around, then do all of these have positive values.", "out": "义丐乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then put the elements backwards, then check if every value is positive.", "out": "义丐乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then reverse that for me, then confirm all values are positive.", "out": "义丐乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip it backwards, then all positive.", "out": "义丐乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then make it backwards, then check if every number is above zero.", "out": "义丐乌"} {"kind": "builder", "in": "义丐乌", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(reversed(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "义丐乌", "out": "Take a list of integers; pad with zeros to at least three elements, then reverse the order, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then default to [0] when there is nothing, then count the elements.", "out": "与么东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then when the list is empty, substitute a zero value, then how many items remain.", "out": "与么东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then replace an empty list with one zero, then tell me the length.", "out": "与么东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then zero it out if it's empty, then return the length.", "out": "与么东"} {"kind": "speaker", "in": "Take a list of integers; negate each, then use zero if the list is empty, then count them.", "out": "与么东"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then default to zero when empty, then what's the count.", "out": "与么东"} {"kind": "builder", "in": "与么东", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r if r else [0]\n return len(r)"} {"kind": "translator", "in": "与么东", "out": "Take a list of integers; negate each, then if empty, use a single zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then give back the product of all values.", "out": "义且乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then product of the list.", "out": "义且乐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then what's the product.", "out": "义且乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then what do they multiply to.", "out": "义且乐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then give me their product.", "out": "义且乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then multiply them all together.", "out": "义且乐"} {"kind": "builder", "in": "义且乐", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return __import__('math').prod(r)"} {"kind": "translator", "in": "义且乐", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then return their product."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then ensure at least three items by appending zeros.", "out": "下丈义"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then ensure minimum length of three by adding zeros to the end.", "out": "下丈义"} {"kind": "builder", "in": "下丈义", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * 2 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "下丈义", "out": "Take a list of integers; add one to each, then double each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative, then limit every value to 10.", "out": "与丏丘"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items, then maximum of 10 for all.", "out": "与丏丘"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values, then limit every value to 10.", "out": "与丏丘"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives, then maximum of 10 for all.", "out": "与丏丘"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element, then limit every value to 10.", "out": "与丏丘"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each, then maximum of 10 for all.", "out": "与丏丘"} {"kind": "builder", "in": "与丏丘", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "与丏丘", "out": "Take a list of integers; negate each, then take the absolute value of each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep only even values, then raise each to the power of two.", "out": "丸一上"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then extract all even numbers, then I need each number multiplied by itself.", "out": "丸一上"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only even values, then square all of them.", "out": "丸一上"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then extract all even numbers, then multiply each element by itself.", "out": "丸一上"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only even values, then make each one squared.", "out": "丸一上"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then extract all even numbers, then square each value in the list.", "out": "丸一上"} {"kind": "builder", "in": "丸一上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丸一上", "out": "Take a list of integers; sort by absolute value, then keep the even numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each by two, then find the min, defaulting to 0.", "out": "世丈丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then double each item in the list, then minimum value, zero otherwise.", "out": "世丈丛"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each by two, then get the minimum value or zero if empty.", "out": "世丈丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then double each item in the list, then give me the min or 0.", "out": "世丈丛"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then multiply each by two, then return the smallest number, defaulting to 0.", "out": "世丈丛"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then double each item in the list, then return smallest or zero if empty.", "out": "世丈丛"} {"kind": "builder", "in": "世丈丛", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x * 2 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "世丈丛", "out": "Take a list of integers; drop the first element, then double each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then multiply each value by itself, then find the max, defaulting to 0.", "out": "丽上业"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then square them all, then Give me the maximum, but 0 if there are no items.", "out": "丽上业"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then raise each to the power of two, then What's the highest number in the list.", "out": "丽上业"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then I need each number multiplied by itself, then Return the greatest value or default to 0.", "out": "丽上业"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then square all of them, then Find the largest element, defaulting to zero.", "out": "丽上业"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then multiply each element by itself, then give the largest value (0 if none).", "out": "丽上业"} {"kind": "builder", "in": "丽上业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x * x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丽上业", "out": "Take a list of integers; add ten to each, then square each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values below zero, then give back the product of all values.", "out": "丐万乐"} {"kind": "speaker", "in": "Take a list of integers; reverse, then get the negative numbers, then product of the list.", "out": "丐万乐"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep values below zero, then what's the product.", "out": "丐万乐"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then get the negative numbers, then what do they multiply to.", "out": "丐万乐"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep values below zero, then give me their product.", "out": "丐万乐"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then get the negative numbers, then multiply them all together.", "out": "丐万乐"} {"kind": "builder", "in": "丐万乐", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丐万乐", "out": "Take a list of integers; reverse the order, then keep the negative numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values divisible by 3, then drop non-negative values.", "out": "上串万"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep items where x mod 3 equals zero, then drop all positive numbers.", "out": "上串万"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then drop anything not divisible by three, then drop non-negative values.", "out": "上串万"} {"kind": "speaker", "in": "Take a list of integers; square them all, then filter out everything except multiples of three, then drop all positive numbers.", "out": "上串万"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only multiples of three, then drop non-negative values.", "out": "上串万"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then multiples of three only, then drop all positive numbers.", "out": "上串万"} {"kind": "builder", "in": "上串万", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "上串万", "out": "Take a list of integers; square each, then keep multiples of three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then make every value non-negative, then true if already sorted smallest to largest.", "out": "丕丏乎"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then absolute value for all items, then does this list go in ascending order.", "out": "丕丏乎"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take absolute values, then check if the list is in ascending order.", "out": "丕丏乎"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then turn negatives into positives, then is the list sorted.", "out": "丕丏乎"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then abs each element, then is it sorted.", "out": "丕丏乎"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the absolute value of each, then check if values are in increasing order.", "out": "丕丏乎"} {"kind": "builder", "in": "丕丏乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [abs(x) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丕丏乎", "out": "Take a list of integers; keep only the first three, then take the absolute value of each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then count the elements.", "out": "丽乂东"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then how many items remain.", "out": "丽乂东"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then tell me the length.", "out": "丽乂东"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then return the length.", "out": "丽乂东"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then count them.", "out": "丽乂东"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then what's the count.", "out": "丽乂东"} {"kind": "builder", "in": "丽乂东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return len(r)"} {"kind": "translator", "in": "丽乂东", "out": "Take a list of integers; add ten to each, then take values while they are positive, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then true only if all are positive.", "out": "义丈乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then do all of these have positive values.", "out": "义丈乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then check if every value is positive.", "out": "义丈乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then confirm all values are positive.", "out": "义丈乌"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then all positive.", "out": "义丈乌"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then check if every number is above zero.", "out": "义丈乌"} {"kind": "builder", "in": "义丈乌", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * 2 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "义丈乌", "out": "Take a list of integers; pad with zeros to at least three elements, then double each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increase every value by 10, then reduce each by one.", "out": "九丽不"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then add 10 to each item, then Subtract 1 from all.", "out": "九丽不"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then shift each up by ten, then Subtract one from each.", "out": "九丽不"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then increase all numbers by 10, then Drop each by one.", "out": "九丽不"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then add 10 to everything, then Decrease all values by one.", "out": "九丽不"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then give everything a boost of 10, then Remove one from each value.", "out": "九丽不"} {"kind": "builder", "in": "九丽不", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "九丽不", "out": "Take a list of people records (name, age); extract the ages, then add ten to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort largest to smallest, then drop non-positive values.", "out": "丸专七"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then sort by descending values, then drop the negative numbers.", "out": "丸专七"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then sort from highest to lowest, then filter out the negative ones.", "out": "丸专七"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then sort descending, then remove all negative values.", "out": "丸专七"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then sort largest first, then keep positive values only.", "out": "丸专七"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort in descending order, then keep values above zero.", "out": "丸专七"} {"kind": "builder", "in": "丸专七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丸专七", "out": "Take a list of integers; sort by absolute value, then sort descending, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself, then drop non-negative values.", "out": "乃上万"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all, then drop all positive numbers.", "out": "乃上万"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two, then drop non-negative values.", "out": "乃上万"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself, then drop all positive numbers.", "out": "乃上万"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them, then drop non-negative values.", "out": "乃上万"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself, then drop all positive numbers.", "out": "乃上万"} {"kind": "builder", "in": "乃上万", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "乃上万", "out": "Take a list of integers; drop the leading negative values, then square each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then strip the signs.", "out": "且丁丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then take abs of each.", "out": "且丁丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then get the absolute value of everything.", "out": "且丁丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then apply absolute value to the whole list.", "out": "且丁丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then make them all positive.", "out": "且丁丏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then make every value non-negative.", "out": "且丁丏"} {"kind": "builder", "in": "且丁丏", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "且丁丏", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the odd numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then put the elements backwards.", "out": "世丘丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then reverse that for me.", "out": "世丘丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then flip it backwards.", "out": "世丘丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then make it backwards.", "out": "世丘丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then reverse the list.", "out": "世丘丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then invert the sequence.", "out": "世丘丐"} {"kind": "builder", "in": "世丘丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [min(x, 10) for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "世丘丐", "out": "Take a list of integers; drop the first element, then cap each value at 10, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then give the number of evens.", "out": "世一乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then find how many values are divisible by two.", "out": "世一乓"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then how many are even.", "out": "世一乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then get the total number of even values in the list.", "out": "世一乓"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then give me the count of even values.", "out": "世一乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then I need to know how many of these are even.", "out": "世一乓"} {"kind": "builder", "in": "世一乓", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "世一乓", "out": "Take a list of integers; drop the first element, then keep the even numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove the first item, then ensure at least three items by appending zeros.", "out": "丏世义"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "丏世义"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove the first item, then ensure at least three items by appending zeros.", "out": "丏世义"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "丏世义"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first item, then ensure at least three items by appending zeros.", "out": "丏世义"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Remove head, then ensure minimum length of three by adding zeros to the end.", "out": "丏世义"} {"kind": "builder", "in": "丏世义", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丏世义", "out": "Take a list of integers; take the absolute value of each, then drop the first element, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then replace an empty list with one zero.", "out": "丘与么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then zero it out if it's empty.", "out": "丘与么"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then use zero if the list is empty.", "out": "丘与么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then default to zero when empty.", "out": "丘与么"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then if there's nothing, put in a zero.", "out": "丘与么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then if no items, add a zero.", "out": "丘与么"} {"kind": "builder", "in": "丘与么", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [-x for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丘与么", "out": "Take a list of integers; cap each value at 10, then negate each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove all zero values, then take values up to (excluding) the first zero.", "out": "丸举久"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then exclude zeros, then keep the part before the first 0.", "out": "丸举久"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove all zero values, then truncate at the first zero.", "out": "丸举久"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then exclude zeros, then delete everything starting with the first zero.", "out": "丸举久"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove all zero values, then remove from the first zero onwards.", "out": "丸举久"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then exclude zeros, then up to but not including the first zero.", "out": "丸举久"} {"kind": "builder", "in": "丸举久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丸举久", "out": "Take a list of integers; sort by absolute value, then drop the zeros, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; negate each, then default to [0] when there is nothing, then drop the even numbers.", "out": "与么丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then when the list is empty, substitute a zero value, then strip out the evens.", "out": "与么丁"} {"kind": "speaker", "in": "Take a list of integers; negate each, then replace an empty list with one zero, then drop the even numbers.", "out": "与么丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then zero it out if it's empty, then strip out the evens.", "out": "与么丁"} {"kind": "speaker", "in": "Take a list of integers; negate each, then use zero if the list is empty, then drop the even numbers.", "out": "与么丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then default to zero when empty, then strip out the evens.", "out": "与么丁"} {"kind": "builder", "in": "与么丁", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "与么丁", "out": "Take a list of integers; negate each, then if empty, use a single zero, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then take values up to (excluding) the first zero.", "out": "举一久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then keep the part before the first 0.", "out": "举一久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then truncate at the first zero.", "out": "举一久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then delete everything starting with the first zero.", "out": "举一久"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then remove from the first zero onwards.", "out": "举一久"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then up to but not including the first zero.", "out": "举一久"} {"kind": "builder", "in": "举一久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "举一久", "out": "Take a list of integers; drop the zeros, then keep the even numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then extend to length 3 using zeros, then skip the first one.", "out": "上义世"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then pad to 3, then Discard the first element.", "out": "上义世"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then extend to length 3 using zeros, then skip the first one.", "out": "上义世"} {"kind": "speaker", "in": "Take a list of integers; square them all, then pad to 3, then Discard the first element.", "out": "上义世"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then extend to length 3 using zeros, then skip the first one.", "out": "上义世"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then pad to 3, then Discard the first element.", "out": "上义世"} {"kind": "builder", "in": "上义世", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:]\n return r"} {"kind": "translator", "in": "上义世", "out": "Take a list of integers; square each, then pad with zeros to at least three elements, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then default to [0] when there is nothing, then arrange in decreasing order.", "out": "丕么专"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then when the list is empty, substitute a zero value, then arrange in descending order.", "out": "丕么专"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then replace an empty list with one zero, then reverse sort.", "out": "丕么专"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then zero it out if it's empty, then sort largest to smallest.", "out": "丕么专"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then use zero if the list is empty, then sort by descending values.", "out": "丕么专"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then default to zero when empty, then sort from highest to lowest.", "out": "丕么专"} {"kind": "builder", "in": "丕么专", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r if r else [0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丕么专", "out": "Take a list of integers; keep only the first three, then if empty, use a single zero, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then true only if all are positive.", "out": "下举乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then do all of these have positive values.", "out": "下举乌"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then check if every value is positive.", "out": "下举乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then confirm all values are positive.", "out": "下举乌"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then all positive.", "out": "下举乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then check if every number is above zero.", "out": "下举乌"} {"kind": "builder", "in": "下举乌", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "下举乌", "out": "Take a list of integers; add one to each, then drop the zeros, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then true if at least one even value.", "out": "串丐之"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then any even.", "out": "串丐之"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then true if at least one even value.", "out": "串丐之"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then any even.", "out": "串丐之"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then true if at least one even value.", "out": "串丐之"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then any even.", "out": "串丐之"} {"kind": "builder", "in": "串丐之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "串丐之", "out": "Take a list of integers; keep multiples of three, then reverse the order, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then order by distance from zero, then true if every value is unique.", "out": "为丸乏"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort based on absolute value, then check for duplicates in the values.", "out": "为丸乏"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then organize by magnitude, then do all values appear only once.", "out": "为丸乏"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then arrange by absolute value ascending, then check that there are no duplicates.", "out": "为丸乏"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort from smallest to largest absolute value, then are the values all unique.", "out": "为丸乏"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort by absolute value, then check if all values are unique.", "out": "为丸乏"} {"kind": "builder", "in": "为丸乏", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, key=abs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "为丸乏", "out": "Take a list of integers; drop the first and last elements, then sort by absolute value, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then drop anything not divisible by three.", "out": "下义串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then filter out everything except multiples of three.", "out": "下义串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then keep only multiples of three.", "out": "下义串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then multiples of three only.", "out": "下义串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then extend to length 3 using zeros, then filter for numbers divisible by three.", "out": "下义串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then pad to 3, then give me only the values divisible by three.", "out": "下义串"} {"kind": "builder", "in": "下义串", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "下义串", "out": "Take a list of integers; add one to each, then pad with zeros to at least three elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then skip negatives at the start, then arrange in increasing order.", "out": "世乃丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove all negatives at the front, then Organize these ascending.", "out": "世乃丑"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the initial run of negative numbers, then Sort in ascending order.", "out": "世乃丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then strip the front negatives, then I need this sorted ascending.", "out": "世乃丑"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove leading negative numbers, then Put these in ascending order.", "out": "世乃丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop negatives from start, then sort smallest to largest.", "out": "世乃丑"} {"kind": "builder", "in": "世乃丑", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "世乃丑", "out": "Take a list of integers; drop the first element, then drop the leading negative values, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then drop anything 5 or below, then strip the signs.", "out": "丽主丏"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep only numbers greater than 5, then take abs of each.", "out": "丽主丏"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then filter for numbers above 5, then get the absolute value of everything.", "out": "丽主丏"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then give me values where x is greater than 5, then apply absolute value to the whole list.", "out": "丽主丏"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then show me only the values that are bigger than five, then make them all positive.", "out": "丽主丏"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep values greater than five, then make every value non-negative.", "out": "丽主丏"} {"kind": "builder", "in": "丽主丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丽主丏", "out": "Take a list of integers; add ten to each, then keep values greater than five, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then increase every value by 10, then bump each up by one.", "out": "与丽下"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then add 10 to each item, then increment each item.", "out": "与丽下"} {"kind": "speaker", "in": "Take a list of integers; negate each, then shift each up by ten, then bump each up by one.", "out": "与丽下"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then increase all numbers by 10, then increment each item.", "out": "与丽下"} {"kind": "speaker", "in": "Take a list of integers; negate each, then add 10 to everything, then bump each up by one.", "out": "与丽下"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give everything a boost of 10, then increment each item.", "out": "与丽下"} {"kind": "builder", "in": "与丽下", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x + 10 for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "与丽下", "out": "Take a list of integers; negate each, then add ten to each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then sort largest to smallest, then find the min, defaulting to 0.", "out": "为专丛"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort by descending values, then minimum value, zero otherwise.", "out": "为专丛"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then sort from highest to lowest, then get the minimum value or zero if empty.", "out": "为专丛"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then sort descending, then give me the min or 0.", "out": "为专丛"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort largest first, then return the smallest number, defaulting to 0.", "out": "为专丛"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort in descending order, then return smallest or zero if empty.", "out": "为专丛"} {"kind": "builder", "in": "为专丛", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, reverse=True)\n return min(r) if r else 0"} {"kind": "translator", "in": "为专丛", "out": "Take a list of integers; drop the first and last elements, then sort descending, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then extend to length 3 using zeros, then drop non-negative values.", "out": "丏义万"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then pad to 3, then drop all positive numbers.", "out": "丏义万"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then extend to length 3 using zeros, then drop non-negative values.", "out": "丏义万"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then pad to 3, then drop all positive numbers.", "out": "丏义万"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then extend to length 3 using zeros, then drop non-negative values.", "out": "丏义万"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then pad to 3, then drop all positive numbers.", "out": "丏义万"} {"kind": "builder", "in": "丏义万", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丏义万", "out": "Take a list of integers; take the absolute value of each, then pad with zeros to at least three elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then order by distance from zero, then remove the initial run of negative numbers.", "out": "主丸乃"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort based on absolute value, then strip the front negatives.", "out": "主丸乃"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then organize by magnitude, then remove leading negative numbers.", "out": "主丸乃"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then arrange by absolute value ascending, then drop negatives from start.", "out": "主丸乃"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort from smallest to largest absolute value, then strip negative values from the start.", "out": "主丸乃"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort by absolute value, then remove negatives before the first non-negative.", "out": "主丸乃"} {"kind": "builder", "in": "主丸乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "主丸乃", "out": "Take a list of integers; keep values greater than five, then sort by absolute value, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then truncate to three items.", "out": "九么丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then show the first three.", "out": "九么丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then take the first three.", "out": "九么丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then keep first 3.", "out": "九么丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then truncate to first three.", "out": "九么丕"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then first three.", "out": "九么丕"} {"kind": "builder", "in": "九么丕", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "九么丕", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then extend to length 3 using zeros, then drop non-negative values.", "out": "与义万"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then pad to 3, then drop all positive numbers.", "out": "与义万"} {"kind": "builder", "in": "与义万", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "与义万", "out": "Take a list of integers; negate each, then pad with zeros to at least three elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increase every value by 10, then truncate to the last three items.", "out": "主丽丹"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then add 10 to each item, then show only the last three.", "out": "主丽丹"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then shift each up by ten, then remove all but the last three.", "out": "主丽丹"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then increase all numbers by 10, then take the final 3 elements.", "out": "主丽丹"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then add 10 to everything, then drop everything except the final three.", "out": "主丽丹"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then give everything a boost of 10, then give me the last three elements.", "out": "主丽丹"} {"kind": "builder", "in": "主丽丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "主丽丹", "out": "Take a list of integers; keep values greater than five, then add ten to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the sign of each, then truncate to three items.", "out": "义与丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn positives to negatives and vice versa, then show the first three.", "out": "义与丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the sign of each, then take the first three.", "out": "义与丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn positives to negatives and vice versa, then keep first 3.", "out": "义与丕"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the sign of each, then truncate to first three.", "out": "义与丕"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn positives to negatives and vice versa, then first three.", "out": "义与丕"} {"kind": "builder", "in": "义与丕", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [-x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "义与丕", "out": "Take a list of integers; pad with zeros to at least three elements, then negate each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then stop at the first non-positive value.", "out": "丑丘乂"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then keep the leading run of positive numbers.", "out": "丑丘乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then take values while they are positive.", "out": "丑丘乂"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then take positive values then stop.", "out": "丑丘乂"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then keep going while positive.", "out": "丑丘乂"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then stop at first non positive.", "out": "丑丘乂"} {"kind": "builder", "in": "丑丘乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丑丘乂", "out": "Take a list of integers; sort ascending, then cap each value at 10, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then drop anything not divisible by three.", "out": "与丁串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then filter out everything except multiples of three.", "out": "与丁串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then keep only multiples of three.", "out": "与丁串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then multiples of three only.", "out": "与丁串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then filter for numbers divisible by three.", "out": "与丁串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then give me only the values divisible by three.", "out": "与丁串"} {"kind": "builder", "in": "与丁串", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "与丁串", "out": "Take a list of integers; negate each, then keep the odd numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then clamp each to at most ten, then find the min, defaulting to 0.", "out": "不丘丛"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then don't let anything exceed 10, then minimum value, zero otherwise.", "out": "不丘丛"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then clamp each to at most ten, then get the minimum value or zero if empty.", "out": "不丘丛"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then don't let anything exceed 10, then give me the min or 0.", "out": "不丘丛"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then clamp each to at most ten, then return the smallest number, defaulting to 0.", "out": "不丘丛"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then don't let anything exceed 10, then return smallest or zero if empty.", "out": "不丘丛"} {"kind": "builder", "in": "不丘丛", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "不丘丛", "out": "Take a list of integers; subtract one from each, then cap each value at 10, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increment each value, then true if every value is unique.", "out": "丑下乏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then plus one for all, then check for duplicates in the values.", "out": "丑下乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then increment each value, then do all values appear only once.", "out": "丑下乏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then plus one for all, then check that there are no duplicates.", "out": "丑下乏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then increment each value, then are the values all unique.", "out": "丑下乏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then plus one for all, then check if all values are unique.", "out": "丑下乏"} {"kind": "builder", "in": "丑下乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 1 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丑下乏", "out": "Take a list of integers; sort ascending, then add one to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values below zero, then skip the first one.", "out": "一万世"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then get the negative numbers, then Discard the first element.", "out": "一万世"} {"kind": "builder", "in": "一万世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x < 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "一万世", "out": "Take a list of integers; keep the even numbers, then keep the negative numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then sort smallest to largest, then arrange in decreasing order.", "out": "乂丑专"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then Ascending sort, then arrange in descending order.", "out": "乂丑专"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then Sort this ascending, then reverse sort.", "out": "乂丑专"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then Sort lowest to highest, then sort largest to smallest.", "out": "乂丑专"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then Arrange from smallest to largest, then sort by descending values.", "out": "乂丑专"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort ascending, then sort from highest to lowest.", "out": "乂丑专"} {"kind": "builder", "in": "乂丑专", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乂丑专", "out": "Take a list of integers; take values while they are positive, then sort ascending, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increase every value by 10, then make each twice as big.", "out": "丑丽丈"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then add 10 to each item, then multiply each by 2.", "out": "丑丽丈"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then shift each up by ten, then make each twice as big.", "out": "丑丽丈"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then increase all numbers by 10, then multiply each by 2.", "out": "丑丽丈"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then add 10 to everything, then make each twice as big.", "out": "丑丽丈"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then give everything a boost of 10, then multiply each by 2.", "out": "丑丽丈"} {"kind": "builder", "in": "丑丽丈", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丑丽丈", "out": "Take a list of integers; sort ascending, then add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep the leading run of positive numbers, then find the min, defaulting to 0.", "out": "九乂丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then take values while they are positive, then minimum value, zero otherwise.", "out": "九乂丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take positive values then stop, then get the minimum value or zero if empty.", "out": "九乂丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep going while positive, then give me the min or 0.", "out": "九乂丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then stop at first non positive, then return the smallest number, defaulting to 0.", "out": "九乂丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take while greater than zero, then return smallest or zero if empty.", "out": "九乂丛"} {"kind": "builder", "in": "九乂丛", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return min(r) if r else 0"} {"kind": "translator", "in": "九乂丛", "out": "Take a list of people records (name, age); extract the ages, then take values while they are positive, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then extend to length 3 using zeros, then true if every value is unique.", "out": "乂义乏"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then pad to 3, then check for duplicates in the values.", "out": "乂义乏"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then extend to length 3 using zeros, then do all values appear only once.", "out": "乂义乏"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then pad to 3, then check that there are no duplicates.", "out": "乂义乏"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then extend to length 3 using zeros, then are the values all unique.", "out": "乂义乏"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then pad to 3, then check if all values are unique.", "out": "乂义乏"} {"kind": "builder", "in": "乂义乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return len(r) == len(set(r))"} {"kind": "translator", "in": "乂义乏", "out": "Take a list of integers; take values while they are positive, then pad with zeros to at least three elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then drop non-negative values.", "out": "下丁万"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then drop all positive numbers.", "out": "下丁万"} {"kind": "builder", "in": "下丁万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "下丁万", "out": "Take a list of integers; add one to each, then keep the odd numbers, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then decrement each value, then truncate to the last three items.", "out": "上不丹"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Lower each number by one, then show only the last three.", "out": "上不丹"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then reduce each by one, then remove all but the last three.", "out": "上不丹"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Subtract 1 from all, then take the final 3 elements.", "out": "上不丹"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then Subtract one from each, then drop everything except the final three.", "out": "上不丹"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then Drop each by one, then give me the last three elements.", "out": "上不丹"} {"kind": "builder", "in": "上不丹", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x - 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "上不丹", "out": "Take a list of integers; square each, then subtract one from each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values divisible by 3, then give the number of evens.", "out": "丘串乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep items where x mod 3 equals zero, then find how many values are divisible by two.", "out": "丘串乓"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then drop anything not divisible by three, then how many are even.", "out": "丘串乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then filter out everything except multiples of three, then get the total number of even values in the list.", "out": "丘串乓"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only multiples of three, then give me the count of even values.", "out": "丘串乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then multiples of three only, then I need to know how many of these are even.", "out": "丘串乓"} {"kind": "builder", "in": "丘串乓", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 3 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丘串乓", "out": "Take a list of integers; cap each value at 10, then keep multiples of three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the final 3 elements, then replace an empty list with one zero.", "out": "与丹么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop everything except the final three, then zero it out if it's empty.", "out": "与丹么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give me the last three elements, then use zero if the list is empty.", "out": "与丹么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the last three, then default to zero when empty.", "out": "与丹么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the final three items, then if there's nothing, put in a zero.", "out": "与丹么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the last three, then if no items, add a zero.", "out": "与丹么"} {"kind": "builder", "in": "与丹么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[-3:]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与丹么", "out": "Take a list of integers; negate each, then keep only the last three, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then arrange in increasing order.", "out": "丽丐丑"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then Organize these ascending.", "out": "丽丐丑"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then Sort in ascending order.", "out": "丽丐丑"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then I need this sorted ascending.", "out": "丽丐丑"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then Put these in ascending order.", "out": "丽丐丑"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then sort smallest to largest.", "out": "丽丐丑"} {"kind": "builder", "in": "丽丐丑", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丽丐丑", "out": "Take a list of integers; add ten to each, then reverse the order, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest to smallest, then deduplicate the list.", "out": "丘专且"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by descending values, then remove repeats.", "out": "丘专且"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from highest to lowest, then deduplicate the list.", "out": "丘专且"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort descending, then remove repeats.", "out": "丘专且"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest first, then deduplicate the list.", "out": "丘专且"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort in descending order, then remove repeats.", "out": "丘专且"} {"kind": "builder", "in": "丘专且", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, reverse=True)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丘专且", "out": "Take a list of integers; cap each value at 10, then sort descending, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only even values, then count the elements.", "out": "丏一东"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then extract all even numbers, then how many items remain.", "out": "丏一东"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only even values, then tell me the length.", "out": "丏一东"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then extract all even numbers, then return the length.", "out": "丏一东"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only even values, then count them.", "out": "丏一东"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then extract all even numbers, then what's the count.", "out": "丏一东"} {"kind": "builder", "in": "丏一东", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n return len(r)"} {"kind": "translator", "in": "丏一东", "out": "Take a list of integers; take the absolute value of each, then keep the even numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then keep only non-zero numbers.", "out": "万为举"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then strip the zeros.", "out": "万为举"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then keep only non-zero numbers.", "out": "万为举"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then strip the zeros.", "out": "万为举"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then keep only non-zero numbers.", "out": "万为举"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then strip the zeros.", "out": "万为举"} {"kind": "builder", "in": "万为举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "万为举", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the sign of each, then true only if all are positive.", "out": "乂与乌"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then turn positives to negatives and vice versa, then do all of these have positive values.", "out": "乂与乌"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then flip the sign of each, then check if every value is positive.", "out": "乂与乌"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then turn positives to negatives and vice versa, then confirm all values are positive.", "out": "乂与乌"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip the sign of each, then all positive.", "out": "乂与乌"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then turn positives to negatives and vice versa, then check if every number is above zero.", "out": "乂与乌"} {"kind": "builder", "in": "乂与乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [-x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "乂与乌", "out": "Take a list of integers; take values while they are positive, then negate each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then keep only non-zero numbers.", "out": "世且举"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then strip the zeros.", "out": "世且举"} {"kind": "builder", "in": "世且举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "世且举", "out": "Take a list of integers; drop the first element, then drop duplicates keeping first occurrence, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then give back the total.", "out": "举丈丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then sum r.", "out": "举丈丙"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then add them up.", "out": "举丈丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then calculate the sum of all elements.", "out": "举丈丙"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then what's the total.", "out": "举丈丙"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then what do they add up to.", "out": "举丈丙"} {"kind": "builder", "in": "举丈丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return sum(r)"} {"kind": "translator", "in": "举丈丙", "out": "Take a list of integers; drop the zeros, then double each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything 5 or below, then drop anything not divisible by three.", "out": "义主串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only numbers greater than 5, then filter out everything except multiples of three.", "out": "义主串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then filter for numbers above 5, then keep only multiples of three.", "out": "义主串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give me values where x is greater than 5, then multiples of three only.", "out": "义主串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then show me only the values that are bigger than five, then filter for numbers divisible by three.", "out": "义主串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep values greater than five, then give me only the values divisible by three.", "out": "义主串"} {"kind": "builder", "in": "义主串", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "义主串", "out": "Take a list of integers; pad with zeros to at least three elements, then keep values greater than five, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the list around, then true if already sorted smallest to largest.", "out": "九丐乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then flip the order around, then does this list go in ascending order.", "out": "九丐乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then put the elements backwards, then check if the list is in ascending order.", "out": "九丐乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then reverse that for me, then is the list sorted.", "out": "九丐乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip it backwards, then is it sorted.", "out": "九丐乎"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then make it backwards, then check if values are in increasing order.", "out": "九丐乎"} {"kind": "builder", "in": "九丐乎", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(reversed(r))\n return r == sorted(r)"} {"kind": "translator", "in": "九丐乎", "out": "Take a list of people records (name, age); extract the ages, then reverse the order, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then drop anything not divisible by three.", "out": "与举串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then filter out everything except multiples of three.", "out": "与举串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then keep only multiples of three.", "out": "与举串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then multiples of three only.", "out": "与举串"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then filter for numbers divisible by three.", "out": "与举串"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then give me only the values divisible by three.", "out": "与举串"} {"kind": "builder", "in": "与举串", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "与举串", "out": "Take a list of integers; negate each, then drop the zeros, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increase every value by 10, then replace an empty list with one zero.", "out": "专丽么"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then add 10 to each item, then zero it out if it's empty.", "out": "专丽么"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then shift each up by ten, then use zero if the list is empty.", "out": "专丽么"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then increase all numbers by 10, then default to zero when empty.", "out": "专丽么"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then add 10 to everything, then if there's nothing, put in a zero.", "out": "专丽么"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then give everything a boost of 10, then if no items, add a zero.", "out": "专丽么"} {"kind": "builder", "in": "专丽么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 10 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "专丽么", "out": "Take a list of integers; sort descending, then add ten to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then cut the list at the first zero, then drop non-negative values.", "out": "丑久万"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then cut off after the first zero appears, then drop all positive numbers.", "out": "丑久万"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take values up to (excluding) the first zero, then drop non-negative values.", "out": "丑久万"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the part before the first 0, then drop all positive numbers.", "out": "丑久万"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then truncate at the first zero, then drop non-negative values.", "out": "丑久万"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then delete everything starting with the first zero, then drop all positive numbers.", "out": "丑久万"} {"kind": "builder", "in": "丑久万", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丑久万", "out": "Take a list of integers; sort ascending, then keep everything before the first zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the final 3 elements, then give back the product of all values.", "out": "万丹乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop everything except the final three, then product of the list.", "out": "万丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give me the last three elements, then what's the product.", "out": "万丹乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the last three, then what do they multiply to.", "out": "万丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the final three items, then give me their product.", "out": "万丹乐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the last three, then multiply them all together.", "out": "万丹乐"} {"kind": "builder", "in": "万丹乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "万丹乐", "out": "Take a list of integers; keep the negative numbers, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep only even values, then strip the signs.", "out": "主一丏"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then extract all even numbers, then take abs of each.", "out": "主一丏"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only even values, then get the absolute value of everything.", "out": "主一丏"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then extract all even numbers, then apply absolute value to the whole list.", "out": "主一丏"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only even values, then make them all positive.", "out": "主一丏"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then extract all even numbers, then make every value non-negative.", "out": "主一丏"} {"kind": "builder", "in": "主一丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 == 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "主一丏", "out": "Take a list of integers; keep values greater than five, then keep the even numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then increase every value by 10, then limit every value to 10.", "out": "丈丽丘"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then add 10 to each item, then maximum of 10 for all.", "out": "丈丽丘"} {"kind": "speaker", "in": "Take a list of integers; double each, then shift each up by ten, then limit every value to 10.", "out": "丈丽丘"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then increase all numbers by 10, then maximum of 10 for all.", "out": "丈丽丘"} {"kind": "speaker", "in": "Take a list of integers; double each, then add 10 to everything, then limit every value to 10.", "out": "丈丽丘"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give everything a boost of 10, then maximum of 10 for all.", "out": "丈丽丘"} {"kind": "builder", "in": "丈丽丘", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丈丽丘", "out": "Take a list of integers; double each, then add ten to each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then make every value non-negative, then skip the first one.", "out": "且丏世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then absolute value for all items, then Discard the first element.", "out": "且丏世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take absolute values, then skip the first one.", "out": "且丏世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn negatives into positives, then Discard the first element.", "out": "且丏世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then abs each element, then skip the first one.", "out": "且丏世"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the absolute value of each, then Discard the first element.", "out": "且丏世"} {"kind": "builder", "in": "且丏世", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [abs(x) for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "且丏世", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take the absolute value of each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increment each value, then find the max, defaulting to 0.", "out": "丏下业"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then plus one for all, then Give me the maximum, but 0 if there are no items.", "out": "丏下业"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then increment each value, then What's the highest number in the list.", "out": "丏下业"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then plus one for all, then Return the greatest value or default to 0.", "out": "丏下业"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then increment each value, then Find the largest element, defaulting to zero.", "out": "丏下业"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then plus one for all, then give the largest value (0 if none).", "out": "丏下业"} {"kind": "builder", "in": "丏下业", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 1 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丏下业", "out": "Take a list of integers; take the absolute value of each, then add one to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep the leading run of positive numbers, then multiply each by -1.", "out": "上乂与"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then take values while they are positive, then negate.", "out": "上乂与"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take positive values then stop, then multiply each by -1.", "out": "上乂与"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep going while positive, then negate.", "out": "上乂与"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then stop at first non positive, then multiply each by -1.", "out": "上乂与"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take while greater than zero, then negate.", "out": "上乂与"} {"kind": "builder", "in": "上乂与", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "上乂与", "out": "Take a list of integers; square each, then take values while they are positive, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then clamp each to at most ten, then skip the first one.", "out": "丸丘世"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then don't let anything exceed 10, then Discard the first element.", "out": "丸丘世"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then clamp each to at most ten, then skip the first one.", "out": "丸丘世"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then don't let anything exceed 10, then Discard the first element.", "out": "丸丘世"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then clamp each to at most ten, then skip the first one.", "out": "丸丘世"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then don't let anything exceed 10, then Discard the first element.", "out": "丸丘世"} {"kind": "builder", "in": "丸丘世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丸丘世", "out": "Take a list of integers; sort by absolute value, then cap each value at 10, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then find the min, defaulting to 0.", "out": "且一丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then minimum value, zero otherwise.", "out": "且一丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then get the minimum value or zero if empty.", "out": "且一丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then give me the min or 0.", "out": "且一丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then return the smallest number, defaulting to 0.", "out": "且一丛"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then return smallest or zero if empty.", "out": "且一丛"} {"kind": "builder", "in": "且一丛", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "且一丛", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the even numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then give the number of evens.", "out": "丕丈乓"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then find how many values are divisible by two.", "out": "丕丈乓"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then how many are even.", "out": "丕丈乓"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then get the total number of even values in the list.", "out": "丕丈乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then give me the count of even values.", "out": "丕丈乓"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then I need to know how many of these are even.", "out": "丕丈乓"} {"kind": "builder", "in": "丕丈乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丕丈乓", "out": "Take a list of integers; keep only the first three, then double each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each value by itself, then drop non-positive values.", "out": "专上七"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then square them all, then drop the negative numbers.", "out": "专上七"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then raise each to the power of two, then filter out the negative ones.", "out": "专上七"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then I need each number multiplied by itself, then remove all negative values.", "out": "专上七"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then square all of them, then keep positive values only.", "out": "专上七"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiply each element by itself, then keep values above zero.", "out": "专上七"} {"kind": "builder", "in": "专上七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "专上七", "out": "Take a list of integers; sort descending, then square each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the final 3 elements, then reduce each by one.", "out": "上丹不"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then drop everything except the final three, then Subtract 1 from all.", "out": "上丹不"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give me the last three elements, then Subtract one from each.", "out": "上丹不"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep only the last three, then Drop each by one.", "out": "上丹不"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep the final three items, then Decrease all values by one.", "out": "上丹不"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the last three, then Remove one from each value.", "out": "上丹不"} {"kind": "builder", "in": "上丹不", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[-3:]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "上丹不", "out": "Take a list of integers; square each, then keep only the last three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then take the first 3 elements, then true if every value is unique.", "out": "丹丕乏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove everything after the third, then check for duplicates in the values.", "out": "丹丕乏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then truncate to three items, then do all values appear only once.", "out": "丹丕乏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then show the first three, then check that there are no duplicates.", "out": "丹丕乏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then take the first three, then are the values all unique.", "out": "丹丕乏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep first 3, then check if all values are unique.", "out": "丹丕乏"} {"kind": "builder", "in": "丹丕乏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:3]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丹丕乏", "out": "Take a list of integers; keep only the last three, then keep only the first three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then cut the list at the first zero, then drop non-negative values.", "out": "丕久万"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then cut off after the first zero appears, then drop all positive numbers.", "out": "丕久万"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take values up to (excluding) the first zero, then drop non-negative values.", "out": "丕久万"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep the part before the first 0, then drop all positive numbers.", "out": "丕久万"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then truncate at the first zero, then drop non-negative values.", "out": "丕久万"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then delete everything starting with the first zero, then drop all positive numbers.", "out": "丕久万"} {"kind": "builder", "in": "丕久万", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丕久万", "out": "Take a list of integers; keep only the first three, then keep everything before the first zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then true if already sorted smallest to largest.", "out": "举乂乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then does this list go in ascending order.", "out": "举乂乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then check if the list is in ascending order.", "out": "举乂乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then is the list sorted.", "out": "举乂乎"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then is it sorted.", "out": "举乂乎"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then check if values are in increasing order.", "out": "举乂乎"} {"kind": "builder", "in": "举乂乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r == sorted(r)"} {"kind": "translator", "in": "举乂乎", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove repeated values, then drop the even numbers.", "out": "九且丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then unique values preserving order, then strip out the evens.", "out": "九且丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove repeated values, then drop the even numbers.", "out": "九且丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then unique values preserving order, then strip out the evens.", "out": "九且丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove repeated values, then drop the even numbers.", "out": "九且丁"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then unique values preserving order, then strip out the evens.", "out": "九且丁"} {"kind": "builder", "in": "九且丁", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "九且丁", "out": "Take a list of people records (name, age); extract the ages, then drop duplicates keeping first occurrence, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then make each twice as big.", "out": "丁下丈"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then multiply each by 2.", "out": "丁下丈"} {"kind": "builder", "in": "丁下丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丁下丈", "out": "Take a list of integers; keep the odd numbers, then add one to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then deduplicate the list.", "out": "丘丁且"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then remove repeats.", "out": "丘丁且"} {"kind": "builder", "in": "丘丁且", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丘丁且", "out": "Take a list of integers; cap each value at 10, then keep the odd numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort smallest to largest, then shift each up by ten.", "out": "万丑丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Ascending sort, then increase all numbers by 10.", "out": "万丑丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Sort this ascending, then add 10 to everything.", "out": "万丑丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Sort lowest to highest, then give everything a boost of 10.", "out": "万丑丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Arrange from smallest to largest, then increment each by ten.", "out": "万丑丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort ascending, then add a constant 10 to each.", "out": "万丑丽"} {"kind": "builder", "in": "万丑丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "万丑丽", "out": "Take a list of integers; keep the negative numbers, then sort ascending, then add ten to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then add '#' to the start of each string, then make every string lowercase.", "out": "乞乘丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then make each one start with a hash, then make it all lowercase.", "out": "乞乘丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then add '#' to the start of each string, then make every string lowercase.", "out": "乞乘丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then make each one start with a hash, then make it all lowercase.", "out": "乞乘丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then add '#' to the start of each string, then make every string lowercase.", "out": "乞乘丞"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then make each one start with a hash, then make it all lowercase.", "out": "乞乘丞"} {"kind": "builder", "in": "乞乘丞", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = ['#' + s for s in r]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "乞乘丞", "out": "Take a list of people records (name, age); extract the names, then prefix each with a hash, then lowercase each string."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the name field from each record, then arrange in lexicographic order.", "out": "习乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Grab the names, then sort by letter.", "out": "习乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's name, then arrange in lexicographic order.", "out": "习乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then List the names, then sort by letter.", "out": "习乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then Extract the names, then arrange in lexicographic order.", "out": "习乞乖"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Get the name field, then sort by letter.", "out": "习乞乖"} {"kind": "builder", "in": "习乞乖", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['name'] for d in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "习乞乖", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the names, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort smallest to largest, then true if already sorted smallest to largest.", "out": "丐丑乎"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Ascending sort, then does this list go in ascending order.", "out": "丐丑乎"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then Sort this ascending, then check if the list is in ascending order.", "out": "丐丑乎"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Sort lowest to highest, then is the list sorted.", "out": "丐丑乎"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then Arrange from smallest to largest, then is it sorted.", "out": "丐丑乎"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort ascending, then check if values are in increasing order.", "out": "丐丑乎"} {"kind": "builder", "in": "丐丑乎", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r)\n return r == sorted(r)"} {"kind": "translator", "in": "丐丑乎", "out": "Take a list of integers; reverse the order, then sort ascending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then arrange in increasing order.", "out": "丹万丑"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then Organize these ascending.", "out": "丹万丑"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then Sort in ascending order.", "out": "丹万丑"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then I need this sorted ascending.", "out": "丹万丑"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then Put these in ascending order.", "out": "丹万丑"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then sort smallest to largest.", "out": "丹万丑"} {"kind": "builder", "in": "丹万丑", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丹万丑", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increment each value, then strip the signs.", "out": "丐下丏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then plus one for all, then take abs of each.", "out": "丐下丏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then increment each value, then get the absolute value of everything.", "out": "丐下丏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then plus one for all, then apply absolute value to the whole list.", "out": "丐下丏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then increment each value, then make them all positive.", "out": "丐下丏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then plus one for all, then make every value non-negative.", "out": "丐下丏"} {"kind": "builder", "in": "丐下丏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 1 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丐下丏", "out": "Take a list of integers; reverse the order, then add one to each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values above zero, then reduce each by one.", "out": "且七不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter for positive numbers, then Subtract 1 from all.", "out": "且七不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only positive numbers, then Subtract one from each.", "out": "且七不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positives, then Drop each by one.", "out": "且七不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove negatives, then Decrease all values by one.", "out": "且七不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positive numbers, then Remove one from each value.", "out": "且七不"} {"kind": "builder", "in": "且七不", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "且七不", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the positive numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort smallest to largest, then drop the odd numbers.", "out": "丹丑一"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Ascending sort, then filter out the odd numbers.", "out": "丹丑一"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then Sort this ascending, then drop the odd numbers.", "out": "丹丑一"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Sort lowest to highest, then filter out the odd numbers.", "out": "丹丑一"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Arrange from smallest to largest, then drop the odd numbers.", "out": "丹丑一"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort ascending, then filter out the odd numbers.", "out": "丹丑一"} {"kind": "builder", "in": "丹丑一", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r)\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丹丑一", "out": "Take a list of integers; keep only the last three, then sort ascending, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values above zero, then raise each to the power of two.", "out": "专七上"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then filter for positive numbers, then I need each number multiplied by itself.", "out": "专七上"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only positive numbers, then square all of them.", "out": "专七上"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep the positives, then multiply each element by itself.", "out": "专七上"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove negatives, then make each one squared.", "out": "专七上"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then keep the positive numbers, then square each value in the list.", "out": "专七上"} {"kind": "builder", "in": "专七上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x > 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "专七上", "out": "Take a list of integers; sort descending, then keep the positive numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increment each value, then trim one element off each end.", "out": "丐下为"} {"kind": "speaker", "in": "Take a list of integers; reverse, then plus one for all, then cut off the first and last.", "out": "丐下为"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then increment each value, then remove the first and last elements.", "out": "丐下为"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then plus one for all, then keep only the middle part.", "out": "丐下为"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then increment each value, then drop first and last.", "out": "丐下为"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then plus one for all, then eliminate the outermost elements.", "out": "丐下为"} {"kind": "builder", "in": "丐下为", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丐下为", "out": "Take a list of integers; reverse the order, then add one to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep the leading run of positive numbers, then give the number of evens.", "out": "不乂乓"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then take values while they are positive, then find how many values are divisible by two.", "out": "不乂乓"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take positive values then stop, then how many are even.", "out": "不乂乓"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep going while positive, then get the total number of even values in the list.", "out": "不乂乓"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then stop at first non positive, then give me the count of even values.", "out": "不乂乓"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take while greater than zero, then I need to know how many of these are even.", "out": "不乂乓"} {"kind": "builder", "in": "不乂乓", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "不乂乓", "out": "Take a list of integers; subtract one from each, then take values while they are positive, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only even values, then bump each up by one.", "out": "义一下"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then extract all even numbers, then increment each item.", "out": "义一下"} {"kind": "builder", "in": "义一下", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "义一下", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the even numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then order the strings A to Z, then find how long the longest string is.", "out": "丨乖乜"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make it alphabetical, then give the length of the longest string in the list.", "out": "丨乖乜"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then order the strings A to Z, then get me the longest string's length.", "out": "丨乖乜"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make it alphabetical, then give the maximum string length.", "out": "丨乖乜"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then order the strings A to Z, then max length of all strings.", "out": "丨乖乜"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make it alphabetical, then what's the max string length.", "out": "丨乖乜"} {"kind": "builder", "in": "丨乖乜", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = sorted(r)\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丨乖乜", "out": "Take a list of strings; keep the first character of each (dropping empties), then sort alphabetically, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the sign of each, then skip the first one.", "out": "义与世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn positives to negatives and vice versa, then Discard the first element.", "out": "义与世"} {"kind": "builder", "in": "义与世", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [-x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "义与世", "out": "Take a list of integers; pad with zeros to at least three elements, then negate each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value, then find the min, defaulting to 0.", "out": "丘下丛"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all, then minimum value, zero otherwise.", "out": "丘下丛"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value, then get the minimum value or zero if empty.", "out": "丘下丛"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all, then give me the min or 0.", "out": "丘下丛"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value, then return the smallest number, defaulting to 0.", "out": "丘下丛"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all, then return smallest or zero if empty.", "out": "丘下丛"} {"kind": "builder", "in": "丘下丛", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "丘下丛", "out": "Take a list of integers; cap each value at 10, then add one to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increment each value, then truncate to the last three items.", "out": "丐下丹"} {"kind": "speaker", "in": "Take a list of integers; reverse, then plus one for all, then show only the last three.", "out": "丐下丹"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then increment each value, then remove all but the last three.", "out": "丐下丹"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then plus one for all, then take the final 3 elements.", "out": "丐下丹"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then increment each value, then drop everything except the final three.", "out": "丐下丹"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then plus one for all, then give me the last three elements.", "out": "丐下丹"} {"kind": "builder", "in": "丐下丹", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丐下丹", "out": "Take a list of integers; reverse the order, then add one to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then cut the list at the first zero, then arrange by magnitude ignoring sign.", "out": "丘久丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off after the first zero appears, then put them in order by magnitude.", "out": "丘久丸"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take values up to (excluding) the first zero, then arrange in order of absolute value.", "out": "丘久丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep the part before the first 0, then sort by distance from zero.", "out": "丘久丸"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate at the first zero, then order by how far from zero.", "out": "丘久丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then delete everything starting with the first zero, then order by distance from zero.", "out": "丘久丸"} {"kind": "builder", "in": "丘久丸", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丘久丸", "out": "Take a list of integers; cap each value at 10, then keep everything before the first zero, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increase every value by 10, then keep only numbers above 5.", "out": "久丽主"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then add 10 to each item, then exclude values of 5 and below.", "out": "久丽主"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then shift each up by ten, then remove anything 5 or less.", "out": "久丽主"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then increase all numbers by 10, then filter to keep only values above 5.", "out": "久丽主"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "久丽主"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then give everything a boost of 10, then drop anything 5 or below.", "out": "久丽主"} {"kind": "builder", "in": "久丽主", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "久丽主", "out": "Take a list of integers; keep everything before the first zero, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then make every value non-negative, then give the number of evens.", "out": "世丏乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then absolute value for all items, then find how many values are divisible by two.", "out": "世丏乓"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take absolute values, then how many are even.", "out": "世丏乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn negatives into positives, then get the total number of even values in the list.", "out": "世丏乓"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then abs each element, then give me the count of even values.", "out": "世丏乓"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the absolute value of each, then I need to know how many of these are even.", "out": "世丏乓"} {"kind": "builder", "in": "世丏乓", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [abs(x) for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "世丏乓", "out": "Take a list of integers; drop the first element, then take the absolute value of each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increase every value by 10, then limit every value to 10.", "out": "丐丽丘"} {"kind": "speaker", "in": "Take a list of integers; reverse, then add 10 to each item, then maximum of 10 for all.", "out": "丐丽丘"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then shift each up by ten, then limit every value to 10.", "out": "丐丽丘"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then increase all numbers by 10, then maximum of 10 for all.", "out": "丐丽丘"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then add 10 to everything, then limit every value to 10.", "out": "丐丽丘"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give everything a boost of 10, then maximum of 10 for all.", "out": "丐丽丘"} {"kind": "builder", "in": "丐丽丘", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丐丽丘", "out": "Take a list of integers; reverse the order, then add ten to each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only odd values, then skip the first one.", "out": "丐丁世"} {"kind": "speaker", "in": "Take a list of integers; reverse, then eliminate the even numbers, then Discard the first element.", "out": "丐丁世"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only odd values, then skip the first one.", "out": "丐丁世"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then eliminate the even numbers, then Discard the first element.", "out": "丐丁世"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only odd values, then skip the first one.", "out": "丐丁世"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then eliminate the even numbers, then Discard the first element.", "out": "丐丁世"} {"kind": "builder", "in": "丐丁世", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丐丁世", "out": "Take a list of integers; reverse the order, then keep the odd numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove both ends, then bump each up by one.", "out": "丹为下"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then trim the edges, then increment each item.", "out": "丹为下"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then trim one element off each end, then bump each up by one.", "out": "丹为下"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then cut off the first and last, then increment each item.", "out": "丹为下"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first and last elements, then bump each up by one.", "out": "丹为下"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep only the middle part, then increment each item.", "out": "丹为下"} {"kind": "builder", "in": "丹为下", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:-1]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丹为下", "out": "Take a list of integers; keep only the last three, then drop the first and last elements, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then extend to length 3 using zeros, then raise each to the power of two.", "out": "么义上"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then pad to 3, then I need each number multiplied by itself.", "out": "么义上"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then extend to length 3 using zeros, then square all of them.", "out": "么义上"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then pad to 3, then multiply each element by itself.", "out": "么义上"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then extend to length 3 using zeros, then make each one squared.", "out": "么义上"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then pad to 3, then square each value in the list.", "out": "么义上"} {"kind": "builder", "in": "么义上", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "么义上", "out": "Take a list of integers; if empty, use a single zero, then pad with zeros to at least three elements, then square each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove all zero values, then give back the total.", "out": "乂举丙"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then exclude zeros, then sum r.", "out": "乂举丙"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove all zero values, then add them up.", "out": "乂举丙"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then exclude zeros, then calculate the sum of all elements.", "out": "乂举丙"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove all zero values, then what's the total.", "out": "乂举丙"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then exclude zeros, then what do they add up to.", "out": "乂举丙"} {"kind": "builder", "in": "乂举丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x != 0]\n return sum(r)"} {"kind": "translator", "in": "乂举丙", "out": "Take a list of integers; take values while they are positive, then drop the zeros, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove all zero values, then make each twice as big.", "out": "乂举丈"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then exclude zeros, then multiply each by 2.", "out": "乂举丈"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove all zero values, then make each twice as big.", "out": "乂举丈"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then exclude zeros, then multiply each by 2.", "out": "乂举丈"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove all zero values, then make each twice as big.", "out": "乂举丈"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then exclude zeros, then multiply each by 2.", "out": "乂举丈"} {"kind": "builder", "in": "乂举丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乂举丈", "out": "Take a list of integers; take values while they are positive, then drop the zeros, then double each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then cut the list at the first zero, then truncate to the last three items.", "out": "丽久丹"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then cut off after the first zero appears, then show only the last three.", "out": "丽久丹"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take values up to (excluding) the first zero, then remove all but the last three.", "out": "丽久丹"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the part before the first 0, then take the final 3 elements.", "out": "丽久丹"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then truncate at the first zero, then drop everything except the final three.", "out": "丽久丹"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then delete everything starting with the first zero, then give me the last three elements.", "out": "丽久丹"} {"kind": "builder", "in": "丽久丹", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丽久丹", "out": "Take a list of integers; add ten to each, then keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the first 3 elements, then drop non-positive values.", "out": "久丕七"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then remove everything after the third, then drop the negative numbers.", "out": "久丕七"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then truncate to three items, then filter out the negative ones.", "out": "久丕七"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then show the first three, then remove all negative values.", "out": "久丕七"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then take the first three, then keep positive values only.", "out": "久丕七"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep first 3, then keep values above zero.", "out": "久丕七"} {"kind": "builder", "in": "久丕七", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:3]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "久丕七", "out": "Take a list of integers; keep everything before the first zero, then keep only the first three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then drop the even numbers.", "out": "且一丁"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then strip out the evens.", "out": "且一丁"} {"kind": "builder", "in": "且一丁", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "且一丁", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the even numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove the first item, then drop anything not divisible by three.", "out": "丕世串"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Remove head, then filter out everything except multiples of three.", "out": "丕世串"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the first item, then keep only multiples of three.", "out": "丕世串"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Remove head, then multiples of three only.", "out": "丕世串"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first item, then filter for numbers divisible by three.", "out": "丕世串"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Remove head, then give me only the values divisible by three.", "out": "丕世串"} {"kind": "builder", "in": "丕世串", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丕世串", "out": "Take a list of integers; keep only the first three, then drop the first element, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then increase every value by 10, then give the earliest even value or zero.", "out": "丕丽乒"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then add 10 to each item, then fetch the first even element, default to 0.", "out": "丕丽乒"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then shift each up by ten, then give the earliest even value or zero.", "out": "丕丽乒"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then increase all numbers by 10, then fetch the first even element, default to 0.", "out": "丕丽乒"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then add 10 to everything, then give the earliest even value or zero.", "out": "丕丽乒"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then give everything a boost of 10, then fetch the first even element, default to 0.", "out": "丕丽乒"} {"kind": "builder", "in": "丕丽乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x + 10 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丕丽乒", "out": "Take a list of integers; keep only the first three, then add ten to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then make every value non-negative, then limit every value to 10.", "out": "丸丏丘"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then absolute value for all items, then maximum of 10 for all.", "out": "丸丏丘"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take absolute values, then limit every value to 10.", "out": "丸丏丘"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn negatives into positives, then maximum of 10 for all.", "out": "丸丏丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then abs each element, then limit every value to 10.", "out": "丸丏丘"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the absolute value of each, then maximum of 10 for all.", "out": "丸丏丘"} {"kind": "builder", "in": "丸丏丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丸丏丘", "out": "Take a list of integers; sort by absolute value, then take the absolute value of each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then drop anything not divisible by three.", "out": "丁下串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then filter out everything except multiples of three.", "out": "丁下串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then keep only multiples of three.", "out": "丁下串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then multiples of three only.", "out": "丁下串"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then filter for numbers divisible by three.", "out": "丁下串"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then give me only the values divisible by three.", "out": "丁下串"} {"kind": "builder", "in": "丁下串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丁下串", "out": "Take a list of integers; keep the odd numbers, then add one to each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then drop anything 5 or below, then count the elements.", "out": "丕主东"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then keep only numbers greater than 5, then how many items remain.", "out": "丕主东"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then filter for numbers above 5, then tell me the length.", "out": "丕主东"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then give me values where x is greater than 5, then return the length.", "out": "丕主东"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then show me only the values that are bigger than five, then count them.", "out": "丕主东"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep values greater than five, then what's the count.", "out": "丕主东"} {"kind": "builder", "in": "丕主东", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 5]\n return len(r)"} {"kind": "translator", "in": "丕主东", "out": "Take a list of integers; keep only the first three, then keep values greater than five, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then sort smallest to largest, then shift each up by ten.", "out": "久丑丽"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Ascending sort, then increase all numbers by 10.", "out": "久丑丽"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then Sort this ascending, then add 10 to everything.", "out": "久丑丽"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Sort lowest to highest, then give everything a boost of 10.", "out": "久丑丽"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Arrange from smallest to largest, then increment each by ten.", "out": "久丑丽"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort ascending, then add a constant 10 to each.", "out": "久丑丽"} {"kind": "builder", "in": "久丑丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "久丑丽", "out": "Take a list of integers; keep everything before the first zero, then sort ascending, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then extend to length 3 using zeros, then keep only non-zero numbers.", "out": "丈义举"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then pad to 3, then strip the zeros.", "out": "丈义举"} {"kind": "builder", "in": "丈义举", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丈义举", "out": "Take a list of integers; double each, then pad with zeros to at least three elements, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest to smallest, then make each twice as big.", "out": "世专丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by descending values, then multiply each by 2.", "out": "世专丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from highest to lowest, then make each twice as big.", "out": "世专丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort descending, then multiply each by 2.", "out": "世专丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest first, then make each twice as big.", "out": "世专丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort in descending order, then multiply each by 2.", "out": "世专丈"} {"kind": "builder", "in": "世专丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "世专丈", "out": "Take a list of integers; drop the first element, then sort descending, then double each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then cut the list at the first zero, then shift each up by ten.", "out": "丐久丽"} {"kind": "speaker", "in": "Take a list of integers; reverse, then cut off after the first zero appears, then increase all numbers by 10.", "out": "丐久丽"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take values up to (excluding) the first zero, then add 10 to everything.", "out": "丐久丽"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep the part before the first 0, then give everything a boost of 10.", "out": "丐久丽"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then truncate at the first zero, then increment each by ten.", "out": "丐久丽"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then delete everything starting with the first zero, then add a constant 10 to each.", "out": "丐久丽"} {"kind": "builder", "in": "丐久丽", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丐久丽", "out": "Take a list of integers; reverse the order, then keep everything before the first zero, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then reduce each by one.", "out": "且丘不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then Subtract 1 from all.", "out": "且丘不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then Subtract one from each.", "out": "且丘不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then Drop each by one.", "out": "且丘不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then Decrease all values by one.", "out": "且丘不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then Remove one from each value.", "out": "且丘不"} {"kind": "builder", "in": "且丘不", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "且丘不", "out": "Take a list of integers; drop duplicates keeping first occurrence, then cap each value at 10, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then truncate to three items.", "out": "丹丽丕"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then show the first three.", "out": "丹丽丕"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then take the first three.", "out": "丹丽丕"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then keep first 3.", "out": "丹丽丕"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then truncate to first three.", "out": "丹丽丕"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then first three.", "out": "丹丽丕"} {"kind": "builder", "in": "丹丽丕", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丹丽丕", "out": "Take a list of integers; keep only the last three, then add ten to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values above zero, then multiply each by -1.", "out": "且七与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter for positive numbers, then negate.", "out": "且七与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only positive numbers, then multiply each by -1.", "out": "且七与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positives, then negate.", "out": "且七与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove negatives, then multiply each by -1.", "out": "且七与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the positive numbers, then negate.", "out": "且七与"} {"kind": "builder", "in": "且七与", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "且七与", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the positive numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then make every value non-negative, then true if any value equals zero.", "out": "丹丏乍"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then absolute value for all items, then check for zero.", "out": "丹丏乍"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take absolute values, then true if any value equals zero.", "out": "丹丏乍"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn negatives into positives, then check for zero.", "out": "丹丏乍"} {"kind": "speaker", "in": "Take a list of integers; last three only, then abs each element, then true if any value equals zero.", "out": "丹丏乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take the absolute value of each, then check for zero.", "out": "丹丏乍"} {"kind": "builder", "in": "丹丏乍", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [abs(x) for x in r]\n return 0 in r"} {"kind": "translator", "in": "丹丏乍", "out": "Take a list of integers; keep only the last three, then take the absolute value of each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove both ends, then shift each up by ten.", "out": "世为丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then trim the edges, then increase all numbers by 10.", "out": "世为丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then trim one element off each end, then add 10 to everything.", "out": "世为丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off the first and last, then give everything a boost of 10.", "out": "世为丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the first and last elements, then increment each by ten.", "out": "世为丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep only the middle part, then add a constant 10 to each.", "out": "世为丽"} {"kind": "builder", "in": "世为丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[1:-1]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "世为丽", "out": "Take a list of integers; drop the first element, then drop the first and last elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative, then find the min, defaulting to 0.", "out": "与丏丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items, then minimum value, zero otherwise.", "out": "与丏丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values, then get the minimum value or zero if empty.", "out": "与丏丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives, then give me the min or 0.", "out": "与丏丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element, then return the smallest number, defaulting to 0.", "out": "与丏丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each, then return smallest or zero if empty.", "out": "与丏丛"} {"kind": "builder", "in": "与丏丛", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "与丏丛", "out": "Take a list of integers; negate each, then take the absolute value of each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then strip the signs.", "out": "举丁丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then take abs of each.", "out": "举丁丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then get the absolute value of everything.", "out": "举丁丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then apply absolute value to the whole list.", "out": "举丁丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then make them all positive.", "out": "举丁丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then make every value non-negative.", "out": "举丁丏"} {"kind": "builder", "in": "举丁丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举丁丏", "out": "Take a list of integers; drop the zeros, then keep the odd numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort smallest to largest, then deduplicate the list.", "out": "万丑且"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Ascending sort, then remove repeats.", "out": "万丑且"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Sort this ascending, then deduplicate the list.", "out": "万丑且"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Sort lowest to highest, then remove repeats.", "out": "万丑且"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Arrange from smallest to largest, then deduplicate the list.", "out": "万丑且"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort ascending, then remove repeats.", "out": "万丑且"} {"kind": "builder", "in": "万丑且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "万丑且", "out": "Take a list of integers; keep the negative numbers, then sort ascending, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then make every value non-negative, then multiply each by -1.", "out": "义丏与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then absolute value for all items, then negate.", "out": "义丏与"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take absolute values, then multiply each by -1.", "out": "义丏与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn negatives into positives, then negate.", "out": "义丏与"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then abs each element, then multiply each by -1.", "out": "义丏与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the absolute value of each, then negate.", "out": "义丏与"} {"kind": "builder", "in": "义丏与", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [abs(x) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "义丏与", "out": "Take a list of integers; pad with zeros to at least three elements, then take the absolute value of each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then extend to length 3 using zeros, then true if every value is unique.", "out": "专义乏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then pad to 3, then check for duplicates in the values.", "out": "专义乏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then extend to length 3 using zeros, then do all values appear only once.", "out": "专义乏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then pad to 3, then check that there are no duplicates.", "out": "专义乏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then extend to length 3 using zeros, then are the values all unique.", "out": "专义乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then pad to 3, then check if all values are unique.", "out": "专义乏"} {"kind": "builder", "in": "专义乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return len(r) == len(set(r))"} {"kind": "translator", "in": "专义乏", "out": "Take a list of integers; sort descending, then pad with zeros to at least three elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero, then drop the even numbers.", "out": "不七丁"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers, then strip out the evens.", "out": "不七丁"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers, then drop the even numbers.", "out": "不七丁"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives, then strip out the evens.", "out": "不七丁"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives, then drop the even numbers.", "out": "不七丁"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers, then strip out the evens.", "out": "不七丁"} {"kind": "builder", "in": "不七丁", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "不七丁", "out": "Take a list of integers; subtract one from each, then keep the positive numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then reduce each by one.", "out": "举万不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then Subtract 1 from all.", "out": "举万不"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then Subtract one from each.", "out": "举万不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then Drop each by one.", "out": "举万不"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values below zero, then Decrease all values by one.", "out": "举万不"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then get the negative numbers, then Remove one from each value.", "out": "举万不"} {"kind": "builder", "in": "举万不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "举万不", "out": "Take a list of integers; drop the zeros, then keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then multiply each value by itself, then shift each up by ten.", "out": "丑上丽"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then square them all, then increase all numbers by 10.", "out": "丑上丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then raise each to the power of two, then add 10 to everything.", "out": "丑上丽"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then I need each number multiplied by itself, then give everything a boost of 10.", "out": "丑上丽"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then square all of them, then increment each by ten.", "out": "丑上丽"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then multiply each element by itself, then add a constant 10 to each.", "out": "丑上丽"} {"kind": "builder", "in": "丑上丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丑上丽", "out": "Take a list of integers; sort ascending, then square each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove the first item, then drop the even numbers.", "out": "为世丁"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Remove head, then strip out the evens.", "out": "为世丁"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the first item, then drop the even numbers.", "out": "为世丁"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Remove head, then strip out the evens.", "out": "为世丁"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove the first item, then drop the even numbers.", "out": "为世丁"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then Remove head, then strip out the evens.", "out": "为世丁"} {"kind": "builder", "in": "为世丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "为世丁", "out": "Take a list of integers; drop the first and last elements, then drop the first element, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then make every value non-negative, then drop the even numbers.", "out": "么丏丁"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then absolute value for all items, then strip out the evens.", "out": "么丏丁"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take absolute values, then drop the even numbers.", "out": "么丏丁"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then turn negatives into positives, then strip out the evens.", "out": "么丏丁"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then abs each element, then drop the even numbers.", "out": "么丏丁"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the absolute value of each, then strip out the evens.", "out": "么丏丁"} {"kind": "builder", "in": "么丏丁", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "么丏丁", "out": "Take a list of integers; if empty, use a single zero, then take the absolute value of each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep the leading run of positive numbers, then shift each up by ten.", "out": "且乂丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take values while they are positive, then increase all numbers by 10.", "out": "且乂丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take positive values then stop, then add 10 to everything.", "out": "且乂丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep going while positive, then give everything a boost of 10.", "out": "且乂丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then stop at first non positive, then increment each by ten.", "out": "且乂丽"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take while greater than zero, then add a constant 10 to each.", "out": "且乂丽"} {"kind": "builder", "in": "且乂丽", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "且乂丽", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take values while they are positive, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then take each string's first letter, then make every string lowercase.", "out": "丧丨丞"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then give me the first letter of everything, then make it all lowercase.", "out": "丧丨丞"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then reduce each string to its first character, then make every string lowercase.", "out": "丧丨丞"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then take first char drop blanks, then make it all lowercase.", "out": "丧丨丞"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then keep first letters only, then make every string lowercase.", "out": "丧丨丞"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then first letter from each item that isn't empty, then make it all lowercase.", "out": "丧丨丞"} {"kind": "builder", "in": "丧丨丞", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s[0] for s in r if s]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "丧丨丞", "out": "Take a list of strings; drop duplicate strings keeping the first, then keep the first character of each (dropping empties), then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep the leading run of positive numbers, then find the min, defaulting to 0.", "out": "久乂丛"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then take values while they are positive, then minimum value, zero otherwise.", "out": "久乂丛"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take positive values then stop, then get the minimum value or zero if empty.", "out": "久乂丛"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep going while positive, then give me the min or 0.", "out": "久乂丛"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then stop at first non positive, then return the smallest number, defaulting to 0.", "out": "久乂丛"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take while greater than zero, then return smallest or zero if empty.", "out": "久乂丛"} {"kind": "builder", "in": "久乂丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return min(r) if r else 0"} {"kind": "translator", "in": "久乂丛", "out": "Take a list of integers; keep everything before the first zero, then take values while they are positive, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove the first item, then give the earliest even value or zero.", "out": "丏世乒"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Remove head, then fetch the first even element, default to 0.", "out": "丏世乒"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove the first item, then give the earliest even value or zero.", "out": "丏世乒"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Remove head, then fetch the first even element, default to 0.", "out": "丏世乒"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first item, then give the earliest even value or zero.", "out": "丏世乒"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Remove head, then fetch the first even element, default to 0.", "out": "丏世乒"} {"kind": "builder", "in": "丏世乒", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丏世乒", "out": "Take a list of integers; take the absolute value of each, then drop the first element, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then clamp each to at most ten, then replace an empty list with one zero.", "out": "九丘么"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then don't let anything exceed 10, then zero it out if it's empty.", "out": "九丘么"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then clamp each to at most ten, then use zero if the list is empty.", "out": "九丘么"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then don't let anything exceed 10, then default to zero when empty.", "out": "九丘么"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then clamp each to at most ten, then if there's nothing, put in a zero.", "out": "九丘么"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then don't let anything exceed 10, then if no items, add a zero.", "out": "九丘么"} {"kind": "builder", "in": "九丘么", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [min(x, 10) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "九丘么", "out": "Take a list of people records (name, age); extract the ages, then cap each value at 10, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the final 3 elements, then arrange in decreasing order.", "out": "丁丹专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop everything except the final three, then arrange in descending order.", "out": "丁丹专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give me the last three elements, then reverse sort.", "out": "丁丹专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the last three, then sort largest to smallest.", "out": "丁丹专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the final three items, then sort by descending values.", "out": "丁丹专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the last three, then sort from highest to lowest.", "out": "丁丹专"} {"kind": "builder", "in": "丁丹专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丁丹专", "out": "Take a list of integers; keep the odd numbers, then keep only the last three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increase every value by 10, then ensure at least three items by appending zeros.", "out": "万丽义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then add 10 to each item, then ensure minimum length of three by adding zeros to the end.", "out": "万丽义"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then shift each up by ten, then ensure at least three items by appending zeros.", "out": "万丽义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then increase all numbers by 10, then ensure minimum length of three by adding zeros to the end.", "out": "万丽义"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then add 10 to everything, then ensure at least three items by appending zeros.", "out": "万丽义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then give everything a boost of 10, then ensure minimum length of three by adding zeros to the end.", "out": "万丽义"} {"kind": "builder", "in": "万丽义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "万丽义", "out": "Take a list of integers; keep the negative numbers, then add ten to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then strip the signs.", "out": "丁万丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then take abs of each.", "out": "丁万丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then get the absolute value of everything.", "out": "丁万丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then apply absolute value to the whole list.", "out": "丁万丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then make them all positive.", "out": "丁万丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then make every value non-negative.", "out": "丁万丏"} {"kind": "builder", "in": "丁万丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丁万丏", "out": "Take a list of integers; keep the odd numbers, then keep the negative numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values below zero, then keep only numbers above 5.", "out": "丽万主"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then get the negative numbers, then exclude values of 5 and below.", "out": "丽万主"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep values below zero, then remove anything 5 or less.", "out": "丽万主"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then get the negative numbers, then filter to keep only values above 5.", "out": "丽万主"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep values below zero, then get rid of values that aren't greater than five.", "out": "丽万主"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then get the negative numbers, then drop anything 5 or below.", "out": "丽万主"} {"kind": "builder", "in": "丽万主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丽万主", "out": "Take a list of integers; add ten to each, then keep the negative numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then multiply each value by itself, then give the number of evens.", "out": "丑上乓"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then square them all, then find how many values are divisible by two.", "out": "丑上乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then raise each to the power of two, then how many are even.", "out": "丑上乓"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then I need each number multiplied by itself, then get the total number of even values in the list.", "out": "丑上乓"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then square all of them, then give me the count of even values.", "out": "丑上乓"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then multiply each element by itself, then I need to know how many of these are even.", "out": "丑上乓"} {"kind": "builder", "in": "丑上乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x * x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丑上乓", "out": "Take a list of integers; sort ascending, then square each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove all zero values, then skip the first one.", "out": "为举世"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then exclude zeros, then Discard the first element.", "out": "为举世"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove all zero values, then skip the first one.", "out": "为举世"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then exclude zeros, then Discard the first element.", "out": "为举世"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove all zero values, then skip the first one.", "out": "为举世"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then exclude zeros, then Discard the first element.", "out": "为举世"} {"kind": "builder", "in": "为举世", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "为举世", "out": "Take a list of integers; drop the first and last elements, then drop the zeros, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the list around, then truncate to the last three items.", "out": "丏丐丹"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then flip the order around, then show only the last three.", "out": "丏丐丹"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then put the elements backwards, then remove all but the last three.", "out": "丏丐丹"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then reverse that for me, then take the final 3 elements.", "out": "丏丐丹"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip it backwards, then drop everything except the final three.", "out": "丏丐丹"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then make it backwards, then give me the last three elements.", "out": "丏丐丹"} {"kind": "builder", "in": "丏丐丹", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(reversed(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丏丐丹", "out": "Take a list of integers; take the absolute value of each, then reverse the order, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then true only if all are positive.", "out": "丁七乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then do all of these have positive values.", "out": "丁七乌"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then check if every value is positive.", "out": "丁七乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then confirm all values are positive.", "out": "丁七乌"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then all positive.", "out": "丁七乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then check if every number is above zero.", "out": "丁七乌"} {"kind": "builder", "in": "丁七乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丁七乌", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then clamp each to at most ten, then trim one element off each end.", "out": "上丘为"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then don't let anything exceed 10, then cut off the first and last.", "out": "上丘为"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then clamp each to at most ten, then remove the first and last elements.", "out": "上丘为"} {"kind": "speaker", "in": "Take a list of integers; square them all, then don't let anything exceed 10, then keep only the middle part.", "out": "上丘为"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then clamp each to at most ten, then drop first and last.", "out": "上丘为"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then don't let anything exceed 10, then eliminate the outermost elements.", "out": "上丘为"} {"kind": "builder", "in": "上丘为", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [min(x, 10) for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "上丘为", "out": "Take a list of integers; square each, then cap each value at 10, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the first 3 elements, then arrange by magnitude ignoring sign.", "out": "一丕丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then remove everything after the third, then put them in order by magnitude.", "out": "一丕丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then truncate to three items, then arrange in order of absolute value.", "out": "一丕丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then show the first three, then sort by distance from zero.", "out": "一丕丸"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the first three, then order by how far from zero.", "out": "一丕丸"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep first 3, then order by distance from zero.", "out": "一丕丸"} {"kind": "builder", "in": "一丕丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:3]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "一丕丸", "out": "Take a list of integers; keep the even numbers, then keep only the first three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then find the max, defaulting to 0.", "out": "丏丕业"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then Give me the maximum, but 0 if there are no items.", "out": "丏丕业"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then What's the highest number in the list.", "out": "丏丕业"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then Return the greatest value or default to 0.", "out": "丏丕业"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then Find the largest element, defaulting to zero.", "out": "丏丕业"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then give the largest value (0 if none).", "out": "丏丕业"} {"kind": "builder", "in": "丏丕业", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n return max(r) if r else 0"} {"kind": "translator", "in": "丏丕业", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then cut the list at the first zero, then truncate to the last three items.", "out": "串久丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then cut off after the first zero appears, then show only the last three.", "out": "串久丹"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take values up to (excluding) the first zero, then remove all but the last three.", "out": "串久丹"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the part before the first 0, then take the final 3 elements.", "out": "串久丹"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then truncate at the first zero, then drop everything except the final three.", "out": "串久丹"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then delete everything starting with the first zero, then give me the last three elements.", "out": "串久丹"} {"kind": "builder", "in": "串久丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "串久丹", "out": "Take a list of integers; keep multiples of three, then keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then order the strings A to Z, then return them as one comma-separated string.", "out": "乘乖中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then make it alphabetical, then separate by comma.", "out": "乘乖中"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then order the strings A to Z, then join with commas.", "out": "乘乖中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then make it alphabetical, then comma join.", "out": "乘乖中"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then order the strings A to Z, then combine using commas.", "out": "乘乖中"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then make it alphabetical, then connect with commas between each item.", "out": "乘乖中"} {"kind": "builder", "in": "乘乖中", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = sorted(r)\n return ','.join(r)"} {"kind": "translator", "in": "乘乖中", "out": "Take a list of strings; prefix each with a hash, then sort alphabetically, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; square each, then cut the list at the first zero, then give the number of evens.", "out": "上久乓"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then cut off after the first zero appears, then find how many values are divisible by two.", "out": "上久乓"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take values up to (excluding) the first zero, then how many are even.", "out": "上久乓"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the part before the first 0, then get the total number of even values in the list.", "out": "上久乓"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then truncate at the first zero, then give me the count of even values.", "out": "上久乓"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then delete everything starting with the first zero, then I need to know how many of these are even.", "out": "上久乓"} {"kind": "builder", "in": "上久乓", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "上久乓", "out": "Take a list of integers; square each, then keep everything before the first zero, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep the leading run of positive numbers, then skip the first one.", "out": "上乂世"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then take values while they are positive, then Discard the first element.", "out": "上乂世"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take positive values then stop, then skip the first one.", "out": "上乂世"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep going while positive, then Discard the first element.", "out": "上乂世"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then stop at first non positive, then skip the first one.", "out": "上乂世"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take while greater than zero, then Discard the first element.", "out": "上乂世"} {"kind": "builder", "in": "上乂世", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:]\n return r"} {"kind": "translator", "in": "上乂世", "out": "Take a list of integers; square each, then take values while they are positive, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each value by itself, then true if already sorted smallest to largest.", "out": "下上乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then square them all, then does this list go in ascending order.", "out": "下上乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then raise each to the power of two, then check if the list is in ascending order.", "out": "下上乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then I need each number multiplied by itself, then is the list sorted.", "out": "下上乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then square all of them, then is it sorted.", "out": "下上乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiply each element by itself, then check if values are in increasing order.", "out": "下上乎"} {"kind": "builder", "in": "下上乎", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "下上乎", "out": "Take a list of integers; add one to each, then square each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then drop non-positive values.", "out": "丁与七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then drop the negative numbers.", "out": "丁与七"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then filter out the negative ones.", "out": "丁与七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then remove all negative values.", "out": "丁与七"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the sign of each, then keep positive values only.", "out": "丁与七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn positives to negatives and vice versa, then keep values above zero.", "out": "丁与七"} {"kind": "builder", "in": "丁与七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丁与七", "out": "Take a list of integers; keep the odd numbers, then negate each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep only even values, then true if every value is unique.", "out": "丑一乏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then extract all even numbers, then check for duplicates in the values.", "out": "丑一乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only even values, then do all values appear only once.", "out": "丑一乏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then extract all even numbers, then check that there are no duplicates.", "out": "丑一乏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only even values, then are the values all unique.", "out": "丑一乏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then extract all even numbers, then check if all values are unique.", "out": "丑一乏"} {"kind": "builder", "in": "丑一乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 2 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丑一乏", "out": "Take a list of integers; sort ascending, then keep the even numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything 5 or below, then drop the even numbers.", "out": "丈主丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only numbers greater than 5, then strip out the evens.", "out": "丈主丁"} {"kind": "speaker", "in": "Take a list of integers; double each, then filter for numbers above 5, then drop the even numbers.", "out": "丈主丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me values where x is greater than 5, then strip out the evens.", "out": "丈主丁"} {"kind": "speaker", "in": "Take a list of integers; double each, then show me only the values that are bigger than five, then drop the even numbers.", "out": "丈主丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep values greater than five, then strip out the evens.", "out": "丈主丁"} {"kind": "builder", "in": "丈主丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丈主丁", "out": "Take a list of integers; double each, then keep values greater than five, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then increase every value by 10, then true if at least one even value.", "out": "丸丽之"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then add 10 to each item, then any even.", "out": "丸丽之"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then shift each up by ten, then true if at least one even value.", "out": "丸丽之"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then increase all numbers by 10, then any even.", "out": "丸丽之"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then add 10 to everything, then true if at least one even value.", "out": "丸丽之"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then give everything a boost of 10, then any even.", "out": "丸丽之"} {"kind": "builder", "in": "丸丽之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x + 10 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丸丽之", "out": "Take a list of integers; sort by absolute value, then add ten to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then cut the list at the first zero, then give the number of evens.", "out": "丁久乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off after the first zero appears, then find how many values are divisible by two.", "out": "丁久乓"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take values up to (excluding) the first zero, then how many are even.", "out": "丁久乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the part before the first 0, then get the total number of even values in the list.", "out": "丁久乓"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate at the first zero, then give me the count of even values.", "out": "丁久乓"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then delete everything starting with the first zero, then I need to know how many of these are even.", "out": "丁久乓"} {"kind": "builder", "in": "丁久乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:r.index(0)] if 0 in r else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丁久乓", "out": "Take a list of integers; keep the odd numbers, then keep everything before the first zero, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; square each, then order by distance from zero, then truncate to three items.", "out": "上丸丕"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort based on absolute value, then show the first three.", "out": "上丸丕"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then organize by magnitude, then take the first three.", "out": "上丸丕"} {"kind": "speaker", "in": "Take a list of integers; square them all, then arrange by absolute value ascending, then keep first 3.", "out": "上丸丕"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort from smallest to largest absolute value, then truncate to first three.", "out": "上丸丕"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort by absolute value, then first three.", "out": "上丸丕"} {"kind": "builder", "in": "上丸丕", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n r = r[:3]\n return r"} {"kind": "translator", "in": "上丸丕", "out": "Take a list of integers; square each, then sort by absolute value, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then skip negatives at the start, then bump each up by one.", "out": "不乃下"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove all negatives at the front, then increment each item.", "out": "不乃下"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove the initial run of negative numbers, then bump each up by one.", "out": "不乃下"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then strip the front negatives, then increment each item.", "out": "不乃下"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove leading negative numbers, then bump each up by one.", "out": "不乃下"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then drop negatives from start, then increment each item.", "out": "不乃下"} {"kind": "builder", "in": "不乃下", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "不乃下", "out": "Take a list of integers; subtract one from each, then drop the leading negative values, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then skip the first one.", "out": "么主世"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then Discard the first element.", "out": "么主世"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then skip the first one.", "out": "么主世"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then Discard the first element.", "out": "么主世"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then skip the first one.", "out": "么主世"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then Discard the first element.", "out": "么主世"} {"kind": "builder", "in": "么主世", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n r = r[1:]\n return r"} {"kind": "translator", "in": "么主世", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove both ends, then arrange in decreasing order.", "out": "丽为专"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then trim the edges, then arrange in descending order.", "out": "丽为专"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then trim one element off each end, then reverse sort.", "out": "丽为专"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then cut off the first and last, then sort largest to smallest.", "out": "丽为专"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first and last elements, then sort by descending values.", "out": "丽为专"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep only the middle part, then sort from highest to lowest.", "out": "丽为专"} {"kind": "builder", "in": "丽为专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:-1]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丽为专", "out": "Take a list of integers; add ten to each, then drop the first and last elements, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then sort smallest to largest, then drop non-positive values.", "out": "专丑七"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Ascending sort, then drop the negative numbers.", "out": "专丑七"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then Sort this ascending, then filter out the negative ones.", "out": "专丑七"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Sort lowest to highest, then remove all negative values.", "out": "专丑七"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then Arrange from smallest to largest, then keep positive values only.", "out": "专丑七"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort ascending, then keep values above zero.", "out": "专丑七"} {"kind": "builder", "in": "专丑七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "专丑七", "out": "Take a list of integers; sort descending, then sort ascending, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort smallest to largest, then strip the signs.", "out": "丐丑丏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then Ascending sort, then take abs of each.", "out": "丐丑丏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then Sort this ascending, then get the absolute value of everything.", "out": "丐丑丏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then Sort lowest to highest, then apply absolute value to the whole list.", "out": "丐丑丏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then Arrange from smallest to largest, then make them all positive.", "out": "丐丑丏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort ascending, then make every value non-negative.", "out": "丐丑丏"} {"kind": "builder", "in": "丐丑丏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丐丑丏", "out": "Take a list of integers; reverse the order, then sort ascending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then sort largest to smallest, then true if at least one even value.", "out": "乂专之"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort by descending values, then any even.", "out": "乂专之"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then sort from highest to lowest, then true if at least one even value.", "out": "乂专之"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then sort descending, then any even.", "out": "乂专之"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort largest first, then true if at least one even value.", "out": "乂专之"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort in descending order, then any even.", "out": "乂专之"} {"kind": "builder", "in": "乂专之", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, reverse=True)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乂专之", "out": "Take a list of integers; take values while they are positive, then sort descending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort largest to smallest, then limit every value to 10.", "out": "丹专丘"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort by descending values, then maximum of 10 for all.", "out": "丹专丘"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then sort from highest to lowest, then limit every value to 10.", "out": "丹专丘"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then sort descending, then maximum of 10 for all.", "out": "丹专丘"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort largest first, then limit every value to 10.", "out": "丹专丘"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort in descending order, then maximum of 10 for all.", "out": "丹专丘"} {"kind": "builder", "in": "丹专丘", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, reverse=True)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丹专丘", "out": "Take a list of integers; keep only the last three, then sort descending, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove both ends, then find the max, defaulting to 0.", "out": "一为业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then trim the edges, then Give me the maximum, but 0 if there are no items.", "out": "一为业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then trim one element off each end, then What's the highest number in the list.", "out": "一为业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off the first and last, then Return the greatest value or default to 0.", "out": "一为业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the first and last elements, then Find the largest element, defaulting to zero.", "out": "一为业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the middle part, then give the largest value (0 if none).", "out": "一为业"} {"kind": "builder", "in": "一为业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[1:-1]\n return max(r) if r else 0"} {"kind": "translator", "in": "一为业", "out": "Take a list of integers; keep the even numbers, then drop the first and last elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each value by itself, then true if every value is unique.", "out": "万上乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then square them all, then check for duplicates in the values.", "out": "万上乏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then raise each to the power of two, then do all values appear only once.", "out": "万上乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then I need each number multiplied by itself, then check that there are no duplicates.", "out": "万上乏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then square all of them, then are the values all unique.", "out": "万上乏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiply each element by itself, then check if all values are unique.", "out": "万上乏"} {"kind": "builder", "in": "万上乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x * x for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "万上乏", "out": "Take a list of integers; keep the negative numbers, then square each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values above zero, then keep only non-zero numbers.", "out": "乂七举"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then filter for positive numbers, then strip the zeros.", "out": "乂七举"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only positive numbers, then keep only non-zero numbers.", "out": "乂七举"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the positives, then strip the zeros.", "out": "乂七举"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove negatives, then keep only non-zero numbers.", "out": "乂七举"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep the positive numbers, then strip the zeros.", "out": "乂七举"} {"kind": "builder", "in": "乂七举", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乂七举", "out": "Take a list of integers; take values while they are positive, then keep the positive numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then arrange in decreasing order.", "out": "万举专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then arrange in descending order.", "out": "万举专"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then reverse sort.", "out": "万举专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then sort largest to smallest.", "out": "万举专"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then sort by descending values.", "out": "万举专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then sort from highest to lowest.", "out": "万举专"} {"kind": "builder", "in": "万举专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "万举专", "out": "Take a list of integers; keep the negative numbers, then drop the zeros, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep values below zero, then keep only non-zero numbers.", "out": "丽万举"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then get the negative numbers, then strip the zeros.", "out": "丽万举"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep values below zero, then keep only non-zero numbers.", "out": "丽万举"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then get the negative numbers, then strip the zeros.", "out": "丽万举"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep values below zero, then keep only non-zero numbers.", "out": "丽万举"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then get the negative numbers, then strip the zeros.", "out": "丽万举"} {"kind": "builder", "in": "丽万举", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丽万举", "out": "Take a list of integers; add ten to each, then keep the negative numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the first 3 elements, then limit every value to 10.", "out": "丈丕丘"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then remove everything after the third, then maximum of 10 for all.", "out": "丈丕丘"} {"kind": "speaker", "in": "Take a list of integers; double each, then truncate to three items, then limit every value to 10.", "out": "丈丕丘"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then show the first three, then maximum of 10 for all.", "out": "丈丕丘"} {"kind": "speaker", "in": "Take a list of integers; double each, then take the first three, then limit every value to 10.", "out": "丈丕丘"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep first 3, then maximum of 10 for all.", "out": "丈丕丘"} {"kind": "builder", "in": "丈丕丘", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:3]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丈丕丘", "out": "Take a list of integers; double each, then keep only the first three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest to smallest, then take values up to (excluding) the first zero.", "out": "义专久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by descending values, then keep the part before the first 0.", "out": "义专久"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from highest to lowest, then truncate at the first zero.", "out": "义专久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort descending, then delete everything starting with the first zero.", "out": "义专久"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest first, then remove from the first zero onwards.", "out": "义专久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort in descending order, then up to but not including the first zero.", "out": "义专久"} {"kind": "builder", "in": "义专久", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "义专久", "out": "Take a list of integers; pad with zeros to at least three elements, then sort descending, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove all zero values, then give the earliest even value or zero.", "out": "久举乒"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then exclude zeros, then fetch the first even element, default to 0.", "out": "久举乒"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove all zero values, then give the earliest even value or zero.", "out": "久举乒"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then exclude zeros, then fetch the first even element, default to 0.", "out": "久举乒"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove all zero values, then give the earliest even value or zero.", "out": "久举乒"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then exclude zeros, then fetch the first even element, default to 0.", "out": "久举乒"} {"kind": "builder", "in": "久举乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "久举乒", "out": "Take a list of integers; keep everything before the first zero, then drop the zeros, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only odd values, then true if at least one even value.", "out": "上丁之"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then eliminate the even numbers, then any even.", "out": "上丁之"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only odd values, then true if at least one even value.", "out": "上丁之"} {"kind": "speaker", "in": "Take a list of integers; square them all, then eliminate the even numbers, then any even.", "out": "上丁之"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only odd values, then true if at least one even value.", "out": "上丁之"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then eliminate the even numbers, then any even.", "out": "上丁之"} {"kind": "builder", "in": "上丁之", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "上丁之", "out": "Take a list of integers; square each, then keep the odd numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove all zero values, then drop non-positive values.", "out": "丐举七"} {"kind": "speaker", "in": "Take a list of integers; reverse, then exclude zeros, then drop the negative numbers.", "out": "丐举七"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove all zero values, then filter out the negative ones.", "out": "丐举七"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then exclude zeros, then remove all negative values.", "out": "丐举七"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove all zero values, then keep positive values only.", "out": "丐举七"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then exclude zeros, then keep values above zero.", "out": "丐举七"} {"kind": "builder", "in": "丐举七", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丐举七", "out": "Take a list of integers; reverse the order, then drop the zeros, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then keep only non-empty strings, then true if a blank string is present.", "out": "丧两乙"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then filter empty strings, then check for empty strings in the list.", "out": "丧两乙"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then remove empty strings from the list, then check if there's an empty string.", "out": "丧两乙"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then clean up empty strings, then does the collection contain an empty string value somewhere.", "out": "丧两乙"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then delete empty entries, then whether any element is blank.", "out": "丧两乙"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then drop empty strings, then check for an empty string.", "out": "丧两乙"} {"kind": "builder", "in": "丧两乙", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s for s in r if s]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丧两乙", "out": "Take a list of strings; drop duplicate strings keeping the first, then drop empty strings, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort smallest to largest, then make each twice as big.", "out": "下丑丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Ascending sort, then multiply each by 2.", "out": "下丑丈"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Sort this ascending, then make each twice as big.", "out": "下丑丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Sort lowest to highest, then multiply each by 2.", "out": "下丑丈"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Arrange from smallest to largest, then make each twice as big.", "out": "下丑丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort ascending, then multiply each by 2.", "out": "下丑丈"} {"kind": "builder", "in": "下丑丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "下丑丈", "out": "Take a list of integers; add one to each, then sort ascending, then double each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove both ends, then drop the odd numbers.", "out": "义为一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then trim the edges, then filter out the odd numbers.", "out": "义为一"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then trim one element off each end, then drop the odd numbers.", "out": "义为一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off the first and last, then filter out the odd numbers.", "out": "义为一"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first and last elements, then drop the odd numbers.", "out": "义为一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the middle part, then filter out the odd numbers.", "out": "义为一"} {"kind": "builder", "in": "义为一", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "义为一", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the first and last elements, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then cut the list at the first zero, then find the max, defaulting to 0.", "out": "丽久业"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then cut off after the first zero appears, then Give me the maximum, but 0 if there are no items.", "out": "丽久业"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take values up to (excluding) the first zero, then What's the highest number in the list.", "out": "丽久业"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the part before the first 0, then Return the greatest value or default to 0.", "out": "丽久业"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then truncate at the first zero, then Find the largest element, defaulting to zero.", "out": "丽久业"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then delete everything starting with the first zero, then give the largest value (0 if none).", "out": "丽久业"} {"kind": "builder", "in": "丽久业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return max(r) if r else 0"} {"kind": "translator", "in": "丽久业", "out": "Take a list of integers; add ten to each, then keep everything before the first zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then remove the initial run of negative numbers.", "out": "串丐乃"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then strip the front negatives.", "out": "串丐乃"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then remove leading negative numbers.", "out": "串丐乃"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then drop negatives from start.", "out": "串丐乃"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then strip negative values from the start.", "out": "串丐乃"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then remove negatives before the first non-negative.", "out": "串丐乃"} {"kind": "builder", "in": "串丐乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "串丐乃", "out": "Take a list of integers; keep multiples of three, then reverse the order, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increment each value, then true if already sorted smallest to largest.", "out": "丹下乎"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then plus one for all, then does this list go in ascending order.", "out": "丹下乎"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then increment each value, then check if the list is in ascending order.", "out": "丹下乎"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then plus one for all, then is the list sorted.", "out": "丹下乎"} {"kind": "speaker", "in": "Take a list of integers; last three only, then increment each value, then is it sorted.", "out": "丹下乎"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then plus one for all, then check if values are in increasing order.", "out": "丹下乎"} {"kind": "builder", "in": "丹下乎", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 1 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丹下乎", "out": "Take a list of integers; keep only the last three, then add one to each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then ensure at least three items by appending zeros.", "out": "与丁义"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "与丁义"} {"kind": "builder", "in": "与丁义", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "与丁义", "out": "Take a list of integers; negate each, then keep the odd numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "丏与义"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "丏与义"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "丏与义"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "丏与义"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip the sign of each, then ensure at least three items by appending zeros.", "out": "丏与义"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then turn positives to negatives and vice versa, then ensure minimum length of three by adding zeros to the end.", "out": "丏与义"} {"kind": "builder", "in": "丏与义", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [-x for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丏与义", "out": "Take a list of integers; take the absolute value of each, then negate each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then arrange in increasing order.", "out": "举丁丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then Organize these ascending.", "out": "举丁丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then Sort in ascending order.", "out": "举丁丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then I need this sorted ascending.", "out": "举丁丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only odd values, then Put these in ascending order.", "out": "举丁丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then eliminate the even numbers, then sort smallest to largest.", "out": "举丁丑"} {"kind": "builder", "in": "举丁丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "举丁丑", "out": "Take a list of integers; drop the zeros, then keep the odd numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below, then give back the total.", "out": "丏主丙"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5, then sum r.", "out": "丏主丙"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5, then add them up.", "out": "丏主丙"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5, then calculate the sum of all elements.", "out": "丏主丙"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five, then what's the total.", "out": "丏主丙"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five, then what do they add up to.", "out": "丏主丙"} {"kind": "builder", "in": "丏主丙", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n return sum(r)"} {"kind": "translator", "in": "丏主丙", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values below zero, then trim one element off each end.", "out": "串万为"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then get the negative numbers, then cut off the first and last.", "out": "串万为"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep values below zero, then remove the first and last elements.", "out": "串万为"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then get the negative numbers, then keep only the middle part.", "out": "串万为"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep values below zero, then drop first and last.", "out": "串万为"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then get the negative numbers, then eliminate the outermost elements.", "out": "串万为"} {"kind": "builder", "in": "串万为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "串万为", "out": "Take a list of integers; keep multiples of three, then keep the negative numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then default to [0] when there is nothing, then multiply each by -1.", "out": "乃么与"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then when the list is empty, substitute a zero value, then negate.", "out": "乃么与"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then replace an empty list with one zero, then multiply each by -1.", "out": "乃么与"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then zero it out if it's empty, then negate.", "out": "乃么与"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then use zero if the list is empty, then multiply each by -1.", "out": "乃么与"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then default to zero when empty, then negate.", "out": "乃么与"} {"kind": "builder", "in": "乃么与", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乃么与", "out": "Take a list of integers; drop the leading negative values, then if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the list around, then bump each up by one.", "out": "且丐下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then flip the order around, then increment each item.", "out": "且丐下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then put the elements backwards, then bump each up by one.", "out": "且丐下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then reverse that for me, then increment each item.", "out": "且丐下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip it backwards, then bump each up by one.", "out": "且丐下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then make it backwards, then increment each item.", "out": "且丐下"} {"kind": "builder", "in": "且丐下", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = list(reversed(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "且丐下", "out": "Take a list of integers; drop duplicates keeping first occurrence, then reverse the order, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the first 3 elements, then give the earliest even value or zero.", "out": "久丕乒"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then remove everything after the third, then fetch the first even element, default to 0.", "out": "久丕乒"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then truncate to three items, then give the earliest even value or zero.", "out": "久丕乒"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then show the first three, then fetch the first even element, default to 0.", "out": "久丕乒"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then take the first three, then give the earliest even value or zero.", "out": "久丕乒"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep first 3, then fetch the first even element, default to 0.", "out": "久丕乒"} {"kind": "builder", "in": "久丕乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:3]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "久丕乒", "out": "Take a list of integers; keep everything before the first zero, then keep only the first three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then put the elements backwards.", "out": "为万丐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then reverse that for me.", "out": "为万丐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then flip it backwards.", "out": "为万丐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then make it backwards.", "out": "为万丐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then reverse the list.", "out": "为万丐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then invert the sequence.", "out": "为万丐"} {"kind": "builder", "in": "为万丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "为万丐", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove both ends, then give the number of evens.", "out": "丸为乓"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then trim the edges, then find how many values are divisible by two.", "out": "丸为乓"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then trim one element off each end, then how many are even.", "out": "丸为乓"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then cut off the first and last, then get the total number of even values in the list.", "out": "丸为乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first and last elements, then give me the count of even values.", "out": "丸为乓"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep only the middle part, then I need to know how many of these are even.", "out": "丸为乓"} {"kind": "builder", "in": "丸为乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:-1]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丸为乓", "out": "Take a list of integers; sort by absolute value, then drop the first and last elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value, then true only if all are positive.", "out": "主下乌"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all, then do all of these have positive values.", "out": "主下乌"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value, then check if every value is positive.", "out": "主下乌"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all, then confirm all values are positive.", "out": "主下乌"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value, then all positive.", "out": "主下乌"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all, then check if every number is above zero.", "out": "主下乌"} {"kind": "builder", "in": "主下乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "主下乌", "out": "Take a list of integers; keep values greater than five, then add one to each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then raise each to the power of two.", "out": "举一上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then I need each number multiplied by itself.", "out": "举一上"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then square all of them.", "out": "举一上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then multiply each element by itself.", "out": "举一上"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only even values, then make each one squared.", "out": "举一上"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then extract all even numbers, then square each value in the list.", "out": "举一上"} {"kind": "builder", "in": "举一上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "举一上", "out": "Take a list of integers; drop the zeros, then keep the even numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only even values, then find the min, defaulting to 0.", "out": "七一丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then extract all even numbers, then minimum value, zero otherwise.", "out": "七一丛"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only even values, then get the minimum value or zero if empty.", "out": "七一丛"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then extract all even numbers, then give me the min or 0.", "out": "七一丛"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only even values, then return the smallest number, defaulting to 0.", "out": "七一丛"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then extract all even numbers, then return smallest or zero if empty.", "out": "七一丛"} {"kind": "builder", "in": "七一丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 == 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "七一丛", "out": "Take a list of integers; keep the positive numbers, then keep the even numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then clamp each to at most ten, then raise each to the power of two.", "out": "丹丘上"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then don't let anything exceed 10, then I need each number multiplied by itself.", "out": "丹丘上"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then clamp each to at most ten, then square all of them.", "out": "丹丘上"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then don't let anything exceed 10, then multiply each element by itself.", "out": "丹丘上"} {"kind": "speaker", "in": "Take a list of integers; last three only, then clamp each to at most ten, then make each one squared.", "out": "丹丘上"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then don't let anything exceed 10, then square each value in the list.", "out": "丹丘上"} {"kind": "builder", "in": "丹丘上", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丹丘上", "out": "Take a list of integers; keep only the last three, then cap each value at 10, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the list around, then replace an empty list with one zero.", "out": "九丐么"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then flip the order around, then zero it out if it's empty.", "out": "九丐么"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then put the elements backwards, then use zero if the list is empty.", "out": "九丐么"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then reverse that for me, then default to zero when empty.", "out": "九丐么"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip it backwards, then if there's nothing, put in a zero.", "out": "九丐么"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then make it backwards, then if no items, add a zero.", "out": "九丐么"} {"kind": "builder", "in": "九丐么", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(reversed(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "九丐么", "out": "Take a list of people records (name, age); extract the ages, then reverse the order, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the final 3 elements, then true if at least one even value.", "out": "丽丹之"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then drop everything except the final three, then any even.", "out": "丽丹之"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then give me the last three elements, then true if at least one even value.", "out": "丽丹之"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep only the last three, then any even.", "out": "丽丹之"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep the final three items, then true if at least one even value.", "out": "丽丹之"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the last three, then any even.", "out": "丽丹之"} {"kind": "builder", "in": "丽丹之", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[-3:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丽丹之", "out": "Take a list of integers; add ten to each, then keep only the last three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the list around, then make each twice as big.", "out": "丏丐丈"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then flip the order around, then multiply each by 2.", "out": "丏丐丈"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then put the elements backwards, then make each twice as big.", "out": "丏丐丈"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then reverse that for me, then multiply each by 2.", "out": "丏丐丈"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip it backwards, then make each twice as big.", "out": "丏丐丈"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then make it backwards, then multiply each by 2.", "out": "丏丐丈"} {"kind": "builder", "in": "丏丐丈", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丏丐丈", "out": "Take a list of integers; take the absolute value of each, then reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then bump each up by one.", "out": "丽乂下"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then increment each item.", "out": "丽乂下"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then bump each up by one.", "out": "丽乂下"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then increment each item.", "out": "丽乂下"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then bump each up by one.", "out": "丽乂下"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then increment each item.", "out": "丽乂下"} {"kind": "builder", "in": "丽乂下", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丽乂下", "out": "Take a list of integers; add ten to each, then take values while they are positive, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then order by distance from zero, then drop anything not divisible by three.", "out": "丹丸串"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then sort based on absolute value, then filter out everything except multiples of three.", "out": "丹丸串"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then organize by magnitude, then keep only multiples of three.", "out": "丹丸串"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then arrange by absolute value ascending, then multiples of three only.", "out": "丹丸串"} {"kind": "speaker", "in": "Take a list of integers; last three only, then sort from smallest to largest absolute value, then filter for numbers divisible by three.", "out": "丹丸串"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort by absolute value, then give me only the values divisible by three.", "out": "丹丸串"} {"kind": "builder", "in": "丹丸串", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丹丸串", "out": "Take a list of integers; keep only the last three, then sort by absolute value, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only odd values, then true if any value equals zero.", "out": "乃丁乍"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then eliminate the even numbers, then check for zero.", "out": "乃丁乍"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only odd values, then true if any value equals zero.", "out": "乃丁乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then eliminate the even numbers, then check for zero.", "out": "乃丁乍"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only odd values, then true if any value equals zero.", "out": "乃丁乍"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then eliminate the even numbers, then check for zero.", "out": "乃丁乍"} {"kind": "builder", "in": "乃丁乍", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 != 0]\n return 0 in r"} {"kind": "translator", "in": "乃丁乍", "out": "Take a list of integers; drop the leading negative values, then keep the odd numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; negate each, then cut the list at the first zero, then keep only numbers above 5.", "out": "与久主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off after the first zero appears, then exclude values of 5 and below.", "out": "与久主"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take values up to (excluding) the first zero, then remove anything 5 or less.", "out": "与久主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the part before the first 0, then filter to keep only values above 5.", "out": "与久主"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate at the first zero, then get rid of values that aren't greater than five.", "out": "与久主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then delete everything starting with the first zero, then drop anything 5 or below.", "out": "与久主"} {"kind": "builder", "in": "与久主", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "与久主", "out": "Take a list of integers; negate each, then keep everything before the first zero, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the final 3 elements, then strip the signs.", "out": "乃丹丏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then drop everything except the final three, then take abs of each.", "out": "乃丹丏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give me the last three elements, then get the absolute value of everything.", "out": "乃丹丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep only the last three, then apply absolute value to the whole list.", "out": "乃丹丏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep the final three items, then make them all positive.", "out": "乃丹丏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the last three, then make every value non-negative.", "out": "乃丹丏"} {"kind": "builder", "in": "乃丹丏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "乃丹丏", "out": "Take a list of integers; drop the leading negative values, then keep only the last three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then default to [0] when there is nothing, then limit every value to 10.", "out": "丹么丘"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then when the list is empty, substitute a zero value, then maximum of 10 for all.", "out": "丹么丘"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then replace an empty list with one zero, then limit every value to 10.", "out": "丹么丘"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then zero it out if it's empty, then maximum of 10 for all.", "out": "丹么丘"} {"kind": "speaker", "in": "Take a list of integers; last three only, then use zero if the list is empty, then limit every value to 10.", "out": "丹么丘"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then default to zero when empty, then maximum of 10 for all.", "out": "丹么丘"} {"kind": "builder", "in": "丹么丘", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丹么丘", "out": "Take a list of integers; keep only the last three, then if empty, use a single zero, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the sign of each, then trim one element off each end.", "out": "乂与为"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then turn positives to negatives and vice versa, then cut off the first and last.", "out": "乂与为"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then flip the sign of each, then remove the first and last elements.", "out": "乂与为"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then turn positives to negatives and vice versa, then keep only the middle part.", "out": "乂与为"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip the sign of each, then drop first and last.", "out": "乂与为"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then turn positives to negatives and vice versa, then eliminate the outermost elements.", "out": "乂与为"} {"kind": "builder", "in": "乂与为", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [-x for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乂与为", "out": "Take a list of integers; take values while they are positive, then negate each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each value by itself, then give the number of evens.", "out": "一上乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then square them all, then find how many values are divisible by two.", "out": "一上乓"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then raise each to the power of two, then how many are even.", "out": "一上乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then I need each number multiplied by itself, then get the total number of even values in the list.", "out": "一上乓"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then square all of them, then give me the count of even values.", "out": "一上乓"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiply each element by itself, then I need to know how many of these are even.", "out": "一上乓"} {"kind": "builder", "in": "一上乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "一上乓", "out": "Take a list of integers; keep the even numbers, then square each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values above zero, then shift each up by ten.", "out": "世七丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter for positive numbers, then increase all numbers by 10.", "out": "世七丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only positive numbers, then add 10 to everything.", "out": "世七丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positives, then give everything a boost of 10.", "out": "世七丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove negatives, then increment each by ten.", "out": "世七丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the positive numbers, then add a constant 10 to each.", "out": "世七丽"} {"kind": "builder", "in": "世七丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x > 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "世七丽", "out": "Take a list of integers; drop the first element, then keep the positive numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then keep only strings of length 3 or more, then true if a blank string is present.", "out": "丟乗乙"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then get rid of short ones, then check for empty strings in the list.", "out": "丟乗乙"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove strings with less than three characters, then check if there's an empty string.", "out": "丟乗乙"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then remove all strings under three characters in length, then does the collection contain an empty string value somewhere.", "out": "丟乗乙"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then filter out short strings under three chars, then whether any element is blank.", "out": "丟乗乙"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then drop strings shorter than three characters, then check for an empty string.", "out": "丟乗乙"} {"kind": "builder", "in": "丟乗乙", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s for s in r if len(s) >= 3]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丟乗乙", "out": "Take a list of strings; uppercase each string, then drop strings shorter than three characters, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then convert each to upper case, then arrange by string length ascending.", "out": "乗丟严"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then change all strings to uppercase, then length sort.", "out": "乗丟严"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then make every string uppercase, then sort by length shortest first.", "out": "乗丟严"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then uppercase each one, then organize by string length least to greatest.", "out": "乗丟严"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then make all the strings uppercase, then shortest strings first.", "out": "乗丟严"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then convert all strings to uppercase letters, then i want them ordered by how short they are.", "out": "乗丟严"} {"kind": "builder", "in": "乗丟严", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.upper() for s in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "乗丟严", "out": "Take a list of strings; drop strings shorter than three characters, then uppercase each string, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then take values up to (excluding) the first zero.", "out": "丘义久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then keep the part before the first 0.", "out": "丘义久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then truncate at the first zero.", "out": "丘义久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then delete everything starting with the first zero.", "out": "丘义久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then remove from the first zero onwards.", "out": "丘义久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then up to but not including the first zero.", "out": "丘义久"} {"kind": "builder", "in": "丘义久", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丘义久", "out": "Take a list of integers; cap each value at 10, then pad with zeros to at least three elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then give back the total.", "out": "一举丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then sum r.", "out": "一举丙"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then add them up.", "out": "一举丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then calculate the sum of all elements.", "out": "一举丙"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then what's the total.", "out": "一举丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then what do they add up to.", "out": "一举丙"} {"kind": "builder", "in": "一举丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n return sum(r)"} {"kind": "translator", "in": "一举丙", "out": "Take a list of integers; keep the even numbers, then drop the zeros, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements, then drop non-positive values.", "out": "下丹七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three, then drop the negative numbers.", "out": "下丹七"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements, then filter out the negative ones.", "out": "下丹七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three, then remove all negative values.", "out": "下丹七"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items, then keep positive values only.", "out": "下丹七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three, then keep values above zero.", "out": "下丹七"} {"kind": "builder", "in": "下丹七", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "下丹七", "out": "Take a list of integers; add one to each, then keep only the last three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then true if at least one even value.", "out": "一丁之"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then any even.", "out": "一丁之"} {"kind": "builder", "in": "一丁之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "一丁之", "out": "Take a list of integers; keep the even numbers, then keep the odd numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values, then replace an empty list with one zero.", "out": "丕举么"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros, then zero it out if it's empty.", "out": "丕举么"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values, then use zero if the list is empty.", "out": "丕举么"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros, then default to zero when empty.", "out": "丕举么"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values, then if there's nothing, put in a zero.", "out": "丕举么"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros, then if no items, add a zero.", "out": "丕举么"} {"kind": "builder", "in": "丕举么", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丕举么", "out": "Take a list of integers; keep only the first three, then drop the zeros, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then sort smallest to largest, then find the max, defaulting to 0.", "out": "么丑业"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Ascending sort, then Give me the maximum, but 0 if there are no items.", "out": "么丑业"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then Sort this ascending, then What's the highest number in the list.", "out": "么丑业"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Sort lowest to highest, then Return the greatest value or default to 0.", "out": "么丑业"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Arrange from smallest to largest, then Find the largest element, defaulting to zero.", "out": "么丑业"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then sort ascending, then give the largest value (0 if none).", "out": "么丑业"} {"kind": "builder", "in": "么丑业", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = sorted(r)\n return max(r) if r else 0"} {"kind": "translator", "in": "么丑业", "out": "Take a list of integers; if empty, use a single zero, then sort ascending, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then skip the first one.", "out": "一举世"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then Discard the first element.", "out": "一举世"} {"kind": "builder", "in": "一举世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "一举世", "out": "Take a list of integers; keep the even numbers, then drop the zeros, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then drop non-positive values.", "out": "举乂七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then drop the negative numbers.", "out": "举乂七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then filter out the negative ones.", "out": "举乂七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then remove all negative values.", "out": "举乂七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then keep positive values only.", "out": "举乂七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then keep values above zero.", "out": "举乂七"} {"kind": "builder", "in": "举乂七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "举乂七", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then truncate to the last three items.", "out": "万下丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then show only the last three.", "out": "万下丹"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then remove all but the last three.", "out": "万下丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then take the final 3 elements.", "out": "万下丹"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then drop everything except the final three.", "out": "万下丹"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then give me the last three elements.", "out": "万下丹"} {"kind": "builder", "in": "万下丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "万下丹", "out": "Take a list of integers; keep the negative numbers, then add one to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values below zero, then put the elements backwards.", "out": "专万丐"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then get the negative numbers, then reverse that for me.", "out": "专万丐"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep values below zero, then flip it backwards.", "out": "专万丐"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then get the negative numbers, then make it backwards.", "out": "专万丐"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep values below zero, then reverse the list.", "out": "专万丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then get the negative numbers, then invert the sequence.", "out": "专万丐"} {"kind": "builder", "in": "专万丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "专万丐", "out": "Take a list of integers; sort descending, then keep the negative numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values above zero, then put the elements backwards.", "out": "与七丐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter for positive numbers, then reverse that for me.", "out": "与七丐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only positive numbers, then flip it backwards.", "out": "与七丐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the positives, then make it backwards.", "out": "与七丐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove negatives, then reverse the list.", "out": "与七丐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the positive numbers, then invert the sequence.", "out": "与七丐"} {"kind": "builder", "in": "与七丐", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "与七丐", "out": "Take a list of integers; negate each, then keep the positive numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest to smallest, then count the elements.", "out": "世专东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by descending values, then how many items remain.", "out": "世专东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from highest to lowest, then tell me the length.", "out": "世专东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort descending, then return the length.", "out": "世专东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest first, then count them.", "out": "世专东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort in descending order, then what's the count.", "out": "世专东"} {"kind": "builder", "in": "世专东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, reverse=True)\n return len(r)"} {"kind": "translator", "in": "世专东", "out": "Take a list of integers; drop the first element, then sort descending, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then decrement each value, then truncate to three items.", "out": "世不丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Lower each number by one, then show the first three.", "out": "世不丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then reduce each by one, then take the first three.", "out": "世不丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Subtract 1 from all, then keep first 3.", "out": "世不丕"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Subtract one from each, then truncate to first three.", "out": "世不丕"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Drop each by one, then first three.", "out": "世不丕"} {"kind": "builder", "in": "世不丕", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x - 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "世不丕", "out": "Take a list of integers; drop the first element, then subtract one from each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values below zero, then reduce each by one.", "out": "乃万不"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then get the negative numbers, then Subtract 1 from all.", "out": "乃万不"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep values below zero, then Subtract one from each.", "out": "乃万不"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then get the negative numbers, then Drop each by one.", "out": "乃万不"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep values below zero, then Decrease all values by one.", "out": "乃万不"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the negative numbers, then Remove one from each value.", "out": "乃万不"} {"kind": "builder", "in": "乃万不", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "乃万不", "out": "Take a list of integers; drop the leading negative values, then keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then order strings from shortest to longest, then make every string uppercase.", "out": "两严丟"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then shortest to longest, then uppercase each one.", "out": "两严丟"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then arrange by string length ascending, then make all the strings uppercase.", "out": "两严丟"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then length sort, then convert all strings to uppercase letters.", "out": "两严丟"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then sort by length shortest first, then convert to uppercase.", "out": "两严丟"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then organize by string length least to greatest, then i need these in uppercase.", "out": "两严丟"} {"kind": "builder", "in": "两严丟", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = sorted(r, key=len)\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "两严丟", "out": "Take a list of strings; drop empty strings, then sort by length, shortest first, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then decrement each value, then make each twice as big.", "out": "下不丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Lower each number by one, then multiply each by 2.", "out": "下不丈"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then reduce each by one, then make each twice as big.", "out": "下不丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Subtract 1 from all, then multiply each by 2.", "out": "下不丈"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Subtract one from each, then make each twice as big.", "out": "下不丈"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Drop each by one, then multiply each by 2.", "out": "下不丈"} {"kind": "builder", "in": "下不丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "下不丈", "out": "Take a list of integers; add one to each, then subtract one from each, then double each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything 5 or below, then true only if all are positive.", "out": "与主乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only numbers greater than 5, then do all of these have positive values.", "out": "与主乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then filter for numbers above 5, then check if every value is positive.", "out": "与主乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give me values where x is greater than 5, then confirm all values are positive.", "out": "与主乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then show me only the values that are bigger than five, then all positive.", "out": "与主乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep values greater than five, then check if every number is above zero.", "out": "与主乌"} {"kind": "builder", "in": "与主乌", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "与主乌", "out": "Take a list of integers; negate each, then keep values greater than five, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then extend to length 3 using zeros, then drop the odd numbers.", "out": "专义一"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then pad to 3, then filter out the odd numbers.", "out": "专义一"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then extend to length 3 using zeros, then drop the odd numbers.", "out": "专义一"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then pad to 3, then filter out the odd numbers.", "out": "专义一"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then extend to length 3 using zeros, then drop the odd numbers.", "out": "专义一"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then pad to 3, then filter out the odd numbers.", "out": "专义一"} {"kind": "builder", "in": "专义一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "专义一", "out": "Take a list of integers; sort descending, then pad with zeros to at least three elements, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values below zero, then replace an empty list with one zero.", "out": "主万么"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then get the negative numbers, then zero it out if it's empty.", "out": "主万么"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep values below zero, then use zero if the list is empty.", "out": "主万么"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then get the negative numbers, then default to zero when empty.", "out": "主万么"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep values below zero, then if there's nothing, put in a zero.", "out": "主万么"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then get the negative numbers, then if no items, add a zero.", "out": "主万么"} {"kind": "builder", "in": "主万么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "主万么", "out": "Take a list of integers; keep values greater than five, then keep the negative numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove both ends, then truncate to the last three items.", "out": "七为丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then trim the edges, then show only the last three.", "out": "七为丹"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then trim one element off each end, then remove all but the last three.", "out": "七为丹"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then cut off the first and last, then take the final 3 elements.", "out": "七为丹"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first and last elements, then drop everything except the final three.", "out": "七为丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep only the middle part, then give me the last three elements.", "out": "七为丹"} {"kind": "builder", "in": "七为丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:-1]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "七为丹", "out": "Take a list of integers; keep the positive numbers, then drop the first and last elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove repeated values, then true if at least one even value.", "out": "丏且之"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then unique values preserving order, then any even.", "out": "丏且之"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove repeated values, then true if at least one even value.", "out": "丏且之"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then unique values preserving order, then any even.", "out": "丏且之"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove repeated values, then true if at least one even value.", "out": "丏且之"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then unique values preserving order, then any even.", "out": "丏且之"} {"kind": "builder", "in": "丏且之", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丏且之", "out": "Take a list of integers; take the absolute value of each, then drop duplicates keeping first occurrence, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each by two, then find the min, defaulting to 0.", "out": "专丈丛"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then double each item in the list, then minimum value, zero otherwise.", "out": "专丈丛"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then multiply each by two, then get the minimum value or zero if empty.", "out": "专丈丛"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then double each item in the list, then give me the min or 0.", "out": "专丈丛"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then multiply each by two, then return the smallest number, defaulting to 0.", "out": "专丈丛"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then double each item in the list, then return smallest or zero if empty.", "out": "专丈丛"} {"kind": "builder", "in": "专丈丛", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "专丈丛", "out": "Take a list of integers; sort descending, then double each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then skip negatives at the start, then reduce each by one.", "out": "乂乃不"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove all negatives at the front, then Subtract 1 from all.", "out": "乂乃不"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove the initial run of negative numbers, then Subtract one from each.", "out": "乂乃不"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then strip the front negatives, then Drop each by one.", "out": "乂乃不"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove leading negative numbers, then Decrease all values by one.", "out": "乂乃不"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then drop negatives from start, then Remove one from each value.", "out": "乂乃不"} {"kind": "builder", "in": "乂乃不", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "乂乃不", "out": "Take a list of integers; take values while they are positive, then drop the leading negative values, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then strip the signs.", "out": "丹久丏"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then take abs of each.", "out": "丹久丏"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then get the absolute value of everything.", "out": "丹久丏"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then apply absolute value to the whole list.", "out": "丹久丏"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then make them all positive.", "out": "丹久丏"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then make every value non-negative.", "out": "丹久丏"} {"kind": "builder", "in": "丹久丏", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丹久丏", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then deduplicate the list.", "out": "丈与且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then remove repeats.", "out": "丈与且"} {"kind": "builder", "in": "丈与且", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丈与且", "out": "Take a list of integers; double each, then negate each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then order by distance from zero, then truncate to the last three items.", "out": "丏丸丹"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort based on absolute value, then show only the last three.", "out": "丏丸丹"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then organize by magnitude, then remove all but the last three.", "out": "丏丸丹"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then arrange by absolute value ascending, then take the final 3 elements.", "out": "丏丸丹"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort from smallest to largest absolute value, then drop everything except the final three.", "out": "丏丸丹"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort by absolute value, then give me the last three elements.", "out": "丏丸丹"} {"kind": "builder", "in": "丏丸丹", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, key=abs)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丏丸丹", "out": "Take a list of integers; take the absolute value of each, then sort by absolute value, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort smallest to largest, then shift each up by ten.", "out": "下丑丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Ascending sort, then increase all numbers by 10.", "out": "下丑丽"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Sort this ascending, then add 10 to everything.", "out": "下丑丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Sort lowest to highest, then give everything a boost of 10.", "out": "下丑丽"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Arrange from smallest to largest, then increment each by ten.", "out": "下丑丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort ascending, then add a constant 10 to each.", "out": "下丑丽"} {"kind": "builder", "in": "下丑丽", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "下丑丽", "out": "Take a list of integers; add one to each, then sort ascending, then add ten to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then drop anything 5 or below, then shift each up by ten.", "out": "九主丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep only numbers greater than 5, then increase all numbers by 10.", "out": "九主丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then filter for numbers above 5, then add 10 to everything.", "out": "九主丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then give me values where x is greater than 5, then give everything a boost of 10.", "out": "九主丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then show me only the values that are bigger than five, then increment each by ten.", "out": "九主丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep values greater than five, then add a constant 10 to each.", "out": "九主丽"} {"kind": "builder", "in": "九主丽", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "九主丽", "out": "Take a list of people records (name, age); extract the ages, then keep values greater than five, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then extend to length 3 using zeros, then drop non-negative values.", "out": "主义万"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then pad to 3, then drop all positive numbers.", "out": "主义万"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then extend to length 3 using zeros, then drop non-negative values.", "out": "主义万"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then pad to 3, then drop all positive numbers.", "out": "主义万"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then extend to length 3 using zeros, then drop non-negative values.", "out": "主义万"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then pad to 3, then drop all positive numbers.", "out": "主义万"} {"kind": "builder", "in": "主义万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "主义万", "out": "Take a list of integers; keep values greater than five, then pad with zeros to at least three elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then take the first 3 elements, then truncate to the last three items.", "out": "丸丕丹"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then remove everything after the third, then show only the last three.", "out": "丸丕丹"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then truncate to three items, then remove all but the last three.", "out": "丸丕丹"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then show the first three, then take the final 3 elements.", "out": "丸丕丹"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then take the first three, then drop everything except the final three.", "out": "丸丕丹"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep first 3, then give me the last three elements.", "out": "丸丕丹"} {"kind": "builder", "in": "丸丕丹", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:3]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丸丕丹", "out": "Take a list of integers; sort by absolute value, then keep only the first three, then keep only the last three."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then keep only strings of length 3 or more, then reduce each string to its first character.", "out": "两乗丨"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then get rid of short ones, then take first char drop blanks.", "out": "两乗丨"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then remove strings with less than three characters, then keep first letters only.", "out": "两乗丨"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then remove all strings under three characters in length, then first letter from each item that isn't empty.", "out": "两乗丨"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then filter out short strings under three chars, then grab the first char from each.", "out": "两乗丨"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then drop strings shorter than three characters, then isolate the first character per entry.", "out": "两乗丨"} {"kind": "builder", "in": "两乗丨", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s for s in r if len(s) >= 3]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "两乗丨", "out": "Take a list of strings; drop empty strings, then drop strings shorter than three characters, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each by two, then remove the initial run of negative numbers.", "out": "为丈乃"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then double each item in the list, then strip the front negatives.", "out": "为丈乃"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then multiply each by two, then remove leading negative numbers.", "out": "为丈乃"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then double each item in the list, then drop negatives from start.", "out": "为丈乃"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then multiply each by two, then strip negative values from the start.", "out": "为丈乃"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then double each item in the list, then remove negatives before the first non-negative.", "out": "为丈乃"} {"kind": "builder", "in": "为丈乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * 2 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "为丈乃", "out": "Take a list of integers; drop the first and last elements, then double each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then decrement each value, then keep only non-zero numbers.", "out": "丹不举"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Lower each number by one, then strip the zeros.", "out": "丹不举"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then reduce each by one, then keep only non-zero numbers.", "out": "丹不举"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Subtract 1 from all, then strip the zeros.", "out": "丹不举"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Subtract one from each, then keep only non-zero numbers.", "out": "丹不举"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Drop each by one, then strip the zeros.", "out": "丹不举"} {"kind": "builder", "in": "丹不举", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x - 1 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丹不举", "out": "Take a list of integers; keep only the last three, then subtract one from each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then order by distance from zero, then true if at least one even value.", "out": "主丸之"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then sort based on absolute value, then any even.", "out": "主丸之"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then organize by magnitude, then true if at least one even value.", "out": "主丸之"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then arrange by absolute value ascending, then any even.", "out": "主丸之"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then sort from smallest to largest absolute value, then true if at least one even value.", "out": "主丸之"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort by absolute value, then any even.", "out": "主丸之"} {"kind": "builder", "in": "主丸之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "主丸之", "out": "Take a list of integers; keep values greater than five, then sort by absolute value, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the list around, then replace an empty list with one zero.", "out": "丑丐么"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then flip the order around, then zero it out if it's empty.", "out": "丑丐么"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then put the elements backwards, then use zero if the list is empty.", "out": "丑丐么"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then reverse that for me, then default to zero when empty.", "out": "丑丐么"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip it backwards, then if there's nothing, put in a zero.", "out": "丑丐么"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then make it backwards, then if no items, add a zero.", "out": "丑丐么"} {"kind": "builder", "in": "丑丐么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(reversed(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丑丐么", "out": "Take a list of integers; sort ascending, then reverse the order, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then default to [0] when there is nothing, then give the number of evens.", "out": "丕么乓"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then when the list is empty, substitute a zero value, then find how many values are divisible by two.", "out": "丕么乓"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then replace an empty list with one zero, then how many are even.", "out": "丕么乓"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then zero it out if it's empty, then get the total number of even values in the list.", "out": "丕么乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then use zero if the list is empty, then give me the count of even values.", "out": "丕么乓"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then default to zero when empty, then I need to know how many of these are even.", "out": "丕么乓"} {"kind": "builder", "in": "丕么乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r if r else [0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丕么乓", "out": "Take a list of integers; keep only the first three, then if empty, use a single zero, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then extend to length 3 using zeros, then find the min, defaulting to 0.", "out": "丑义丛"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then pad to 3, then minimum value, zero otherwise.", "out": "丑义丛"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then extend to length 3 using zeros, then get the minimum value or zero if empty.", "out": "丑义丛"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then pad to 3, then give me the min or 0.", "out": "丑义丛"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then extend to length 3 using zeros, then return the smallest number, defaulting to 0.", "out": "丑义丛"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then pad to 3, then return smallest or zero if empty.", "out": "丑义丛"} {"kind": "builder", "in": "丑义丛", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return min(r) if r else 0"} {"kind": "translator", "in": "丑义丛", "out": "Take a list of integers; sort ascending, then pad with zeros to at least three elements, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove all zero values, then shift each up by ten.", "out": "丑举丽"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then exclude zeros, then increase all numbers by 10.", "out": "丑举丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove all zero values, then add 10 to everything.", "out": "丑举丽"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then exclude zeros, then give everything a boost of 10.", "out": "丑举丽"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove all zero values, then increment each by ten.", "out": "丑举丽"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then exclude zeros, then add a constant 10 to each.", "out": "丑举丽"} {"kind": "builder", "in": "丑举丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x != 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丑举丽", "out": "Take a list of integers; sort ascending, then drop the zeros, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then increment each value, then make each twice as big.", "out": "乃下丈"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then plus one for all, then multiply each by 2.", "out": "乃下丈"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then increment each value, then make each twice as big.", "out": "乃下丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then plus one for all, then multiply each by 2.", "out": "乃下丈"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then increment each value, then make each twice as big.", "out": "乃下丈"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then plus one for all, then multiply each by 2.", "out": "乃下丈"} {"kind": "builder", "in": "乃下丈", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x + 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乃下丈", "out": "Take a list of integers; drop the leading negative values, then add one to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values above zero, then replace an empty list with one zero.", "out": "主七么"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then filter for positive numbers, then zero it out if it's empty.", "out": "主七么"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only positive numbers, then use zero if the list is empty.", "out": "主七么"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the positives, then default to zero when empty.", "out": "主七么"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove negatives, then if there's nothing, put in a zero.", "out": "主七么"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep the positive numbers, then if no items, add a zero.", "out": "主七么"} {"kind": "builder", "in": "主七么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "主七么", "out": "Take a list of integers; keep values greater than five, then keep the positive numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increment each value, then strip the signs.", "out": "不下丏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then plus one for all, then take abs of each.", "out": "不下丏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then increment each value, then get the absolute value of everything.", "out": "不下丏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then plus one for all, then apply absolute value to the whole list.", "out": "不下丏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then increment each value, then make them all positive.", "out": "不下丏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then plus one for all, then make every value non-negative.", "out": "不下丏"} {"kind": "builder", "in": "不下丏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 1 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "不下丏", "out": "Take a list of integers; subtract one from each, then add one to each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then true only if all are positive.", "out": "丈且乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then do all of these have positive values.", "out": "丈且乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then check if every value is positive.", "out": "丈且乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then confirm all values are positive.", "out": "丈且乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then all positive.", "out": "丈且乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then check if every number is above zero.", "out": "丈且乌"} {"kind": "builder", "in": "丈且乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(dict.fromkeys(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丈且乌", "out": "Take a list of integers; double each, then drop duplicates keeping first occurrence, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values above zero, then replace an empty list with one zero.", "out": "串七么"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then filter for positive numbers, then zero it out if it's empty.", "out": "串七么"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only positive numbers, then use zero if the list is empty.", "out": "串七么"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the positives, then default to zero when empty.", "out": "串七么"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove negatives, then if there's nothing, put in a zero.", "out": "串七么"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep the positive numbers, then if no items, add a zero.", "out": "串七么"} {"kind": "builder", "in": "串七么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "串七么", "out": "Take a list of integers; keep multiples of three, then keep the positive numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then decrement each value, then true only if all are positive.", "out": "主不乌"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Lower each number by one, then do all of these have positive values.", "out": "主不乌"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then reduce each by one, then check if every value is positive.", "out": "主不乌"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Subtract 1 from all, then confirm all values are positive.", "out": "主不乌"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Subtract one from each, then all positive.", "out": "主不乌"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Drop each by one, then check if every number is above zero.", "out": "主不乌"} {"kind": "builder", "in": "主不乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x - 1 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "主不乌", "out": "Take a list of integers; keep values greater than five, then subtract one from each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values below zero, then limit every value to 10.", "out": "不万丘"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then get the negative numbers, then maximum of 10 for all.", "out": "不万丘"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep values below zero, then limit every value to 10.", "out": "不万丘"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the negative numbers, then maximum of 10 for all.", "out": "不万丘"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep values below zero, then limit every value to 10.", "out": "不万丘"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the negative numbers, then maximum of 10 for all.", "out": "不万丘"} {"kind": "builder", "in": "不万丘", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "不万丘", "out": "Take a list of integers; subtract one from each, then keep the negative numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero, then drop non-negative values.", "out": "世丸万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value, then drop all positive numbers.", "out": "世丸万"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude, then drop non-negative values.", "out": "世丸万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending, then drop all positive numbers.", "out": "世丸万"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value, then drop non-negative values.", "out": "世丸万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value, then drop all positive numbers.", "out": "世丸万"} {"kind": "builder", "in": "世丸万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "世丸万", "out": "Take a list of integers; drop the first element, then sort by absolute value, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then default to [0] when there is nothing, then ensure at least three items by appending zeros.", "out": "丈么义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then when the list is empty, substitute a zero value, then ensure minimum length of three by adding zeros to the end.", "out": "丈么义"} {"kind": "speaker", "in": "Take a list of integers; double each, then replace an empty list with one zero, then ensure at least three items by appending zeros.", "out": "丈么义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then zero it out if it's empty, then ensure minimum length of three by adding zeros to the end.", "out": "丈么义"} {"kind": "speaker", "in": "Take a list of integers; double each, then use zero if the list is empty, then ensure at least three items by appending zeros.", "out": "丈么义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then default to zero when empty, then ensure minimum length of three by adding zeros to the end.", "out": "丈么义"} {"kind": "builder", "in": "丈么义", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r if r else [0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丈么义", "out": "Take a list of integers; double each, then if empty, use a single zero, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then take the final 3 elements, then raise each to the power of two.", "out": "七丹上"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then drop everything except the final three, then I need each number multiplied by itself.", "out": "七丹上"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then give me the last three elements, then square all of them.", "out": "七丹上"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep only the last three, then multiply each element by itself.", "out": "七丹上"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep the final three items, then make each one squared.", "out": "七丹上"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take the last three, then square each value in the list.", "out": "七丹上"} {"kind": "builder", "in": "七丹上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[-3:]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "七丹上", "out": "Take a list of integers; keep the positive numbers, then keep only the last three, then square each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then true if at least one even value.", "out": "丘与之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then any even.", "out": "丘与之"} {"kind": "builder", "in": "丘与之", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [-x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丘与之", "out": "Take a list of integers; cap each value at 10, then negate each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only even values, then strip the signs.", "out": "专一丏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then extract all even numbers, then take abs of each.", "out": "专一丏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only even values, then get the absolute value of everything.", "out": "专一丏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then extract all even numbers, then apply absolute value to the whole list.", "out": "专一丏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only even values, then make them all positive.", "out": "专一丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then extract all even numbers, then make every value non-negative.", "out": "专一丏"} {"kind": "builder", "in": "专一丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "专一丏", "out": "Take a list of integers; sort descending, then keep the even numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values above zero, then drop the even numbers.", "out": "与七丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter for positive numbers, then strip out the evens.", "out": "与七丁"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only positive numbers, then drop the even numbers.", "out": "与七丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the positives, then strip out the evens.", "out": "与七丁"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove negatives, then drop the even numbers.", "out": "与七丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the positive numbers, then strip out the evens.", "out": "与七丁"} {"kind": "builder", "in": "与七丁", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "与七丁", "out": "Take a list of integers; negate each, then keep the positive numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each by two, then stop at the first non-positive value.", "out": "主丈乂"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then double each item in the list, then keep the leading run of positive numbers.", "out": "主丈乂"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then multiply each by two, then take values while they are positive.", "out": "主丈乂"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then double each item in the list, then take positive values then stop.", "out": "主丈乂"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then multiply each by two, then keep going while positive.", "out": "主丈乂"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then double each item in the list, then stop at first non positive.", "out": "主丈乂"} {"kind": "builder", "in": "主丈乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "主丈乂", "out": "Take a list of integers; keep values greater than five, then double each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then decrement each value, then limit every value to 10.", "out": "九不丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Lower each number by one, then maximum of 10 for all.", "out": "九不丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then reduce each by one, then limit every value to 10.", "out": "九不丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Subtract 1 from all, then maximum of 10 for all.", "out": "九不丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then Subtract one from each, then limit every value to 10.", "out": "九不丘"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Drop each by one, then maximum of 10 for all.", "out": "九不丘"} {"kind": "builder", "in": "九不丘", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "九不丘", "out": "Take a list of people records (name, age); extract the ages, then subtract one from each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the first 3 elements, then true only if all are positive.", "out": "为丕乌"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove everything after the third, then do all of these have positive values.", "out": "为丕乌"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then truncate to three items, then check if every value is positive.", "out": "为丕乌"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then show the first three, then confirm all values are positive.", "out": "为丕乌"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then take the first three, then all positive.", "out": "为丕乌"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep first 3, then check if every number is above zero.", "out": "为丕乌"} {"kind": "builder", "in": "为丕乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:3]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "为丕乌", "out": "Take a list of integers; drop the first and last elements, then keep only the first three, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep only even values, then keep only numbers above 5.", "out": "乂一主"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then extract all even numbers, then exclude values of 5 and below.", "out": "乂一主"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep only even values, then remove anything 5 or less.", "out": "乂一主"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then extract all even numbers, then filter to keep only values above 5.", "out": "乂一主"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep only even values, then get rid of values that aren't greater than five.", "out": "乂一主"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then extract all even numbers, then drop anything 5 or below.", "out": "乂一主"} {"kind": "builder", "in": "乂一主", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "乂一主", "out": "Take a list of integers; take values while they are positive, then keep the even numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values divisible by 3, then replace an empty list with one zero.", "out": "与串么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep items where x mod 3 equals zero, then zero it out if it's empty.", "out": "与串么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything not divisible by three, then use zero if the list is empty.", "out": "与串么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter out everything except multiples of three, then default to zero when empty.", "out": "与串么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only multiples of three, then if there's nothing, put in a zero.", "out": "与串么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiples of three only, then if no items, add a zero.", "out": "与串么"} {"kind": "builder", "in": "与串么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与串么", "out": "Take a list of integers; negate each, then keep multiples of three, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then default to [0] when there is nothing, then drop the odd numbers.", "out": "乃么一"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then when the list is empty, substitute a zero value, then filter out the odd numbers.", "out": "乃么一"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then replace an empty list with one zero, then drop the odd numbers.", "out": "乃么一"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then zero it out if it's empty, then filter out the odd numbers.", "out": "乃么一"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then use zero if the list is empty, then drop the odd numbers.", "out": "乃么一"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then default to zero when empty, then filter out the odd numbers.", "out": "乃么一"} {"kind": "builder", "in": "乃么一", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "乃么一", "out": "Take a list of integers; drop the leading negative values, then if empty, use a single zero, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then sort smallest to largest, then skip the first one.", "out": "不丑世"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Ascending sort, then Discard the first element.", "out": "不丑世"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then Sort this ascending, then skip the first one.", "out": "不丑世"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Sort lowest to highest, then Discard the first element.", "out": "不丑世"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then Arrange from smallest to largest, then skip the first one.", "out": "不丑世"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then sort ascending, then Discard the first element.", "out": "不丑世"} {"kind": "builder", "in": "不丑世", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = sorted(r)\n r = r[1:]\n return r"} {"kind": "translator", "in": "不丑世", "out": "Take a list of integers; subtract one from each, then sort ascending, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then drop anything 5 or below, then arrange by magnitude ignoring sign.", "out": "丹主丸"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep only numbers greater than 5, then put them in order by magnitude.", "out": "丹主丸"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then filter for numbers above 5, then arrange in order of absolute value.", "out": "丹主丸"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then give me values where x is greater than 5, then sort by distance from zero.", "out": "丹主丸"} {"kind": "speaker", "in": "Take a list of integers; last three only, then show me only the values that are bigger than five, then order by how far from zero.", "out": "丹主丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep values greater than five, then order by distance from zero.", "out": "丹主丸"} {"kind": "builder", "in": "丹主丸", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x > 5]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丹主丸", "out": "Take a list of integers; keep only the last three, then keep values greater than five, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest to smallest, then find the min, defaulting to 0.", "out": "下专丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by descending values, then minimum value, zero otherwise.", "out": "下专丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from highest to lowest, then get the minimum value or zero if empty.", "out": "下专丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort descending, then give me the min or 0.", "out": "下专丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest first, then return the smallest number, defaulting to 0.", "out": "下专丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort in descending order, then return smallest or zero if empty.", "out": "下专丛"} {"kind": "builder", "in": "下专丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n return min(r) if r else 0"} {"kind": "translator", "in": "下专丛", "out": "Take a list of integers; add one to each, then sort descending, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the final 3 elements, then keep only numbers above 5.", "out": "丁丹主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop everything except the final three, then exclude values of 5 and below.", "out": "丁丹主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give me the last three elements, then remove anything 5 or less.", "out": "丁丹主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the last three, then filter to keep only values above 5.", "out": "丁丹主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the final three items, then get rid of values that aren't greater than five.", "out": "丁丹主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the last three, then drop anything 5 or below.", "out": "丁丹主"} {"kind": "builder", "in": "丁丹主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丁丹主", "out": "Take a list of integers; keep the odd numbers, then keep only the last three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each by two, then drop the odd numbers.", "out": "不丈一"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then double each item in the list, then filter out the odd numbers.", "out": "不丈一"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then multiply each by two, then drop the odd numbers.", "out": "不丈一"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then double each item in the list, then filter out the odd numbers.", "out": "不丈一"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then multiply each by two, then drop the odd numbers.", "out": "不丈一"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then double each item in the list, then filter out the odd numbers.", "out": "不丈一"} {"kind": "builder", "in": "不丈一", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "不丈一", "out": "Take a list of integers; subtract one from each, then double each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increase every value by 10, then give the number of evens.", "out": "举丽乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then add 10 to each item, then find how many values are divisible by two.", "out": "举丽乓"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then shift each up by ten, then how many are even.", "out": "举丽乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then increase all numbers by 10, then get the total number of even values in the list.", "out": "举丽乓"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then add 10 to everything, then give me the count of even values.", "out": "举丽乓"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give everything a boost of 10, then I need to know how many of these are even.", "out": "举丽乓"} {"kind": "builder", "in": "举丽乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 10 for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "举丽乓", "out": "Take a list of integers; drop the zeros, then add ten to each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values below zero, then reduce each by one.", "out": "丈万不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the negative numbers, then Subtract 1 from all.", "out": "丈万不"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values below zero, then Subtract one from each.", "out": "丈万不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the negative numbers, then Drop each by one.", "out": "丈万不"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values below zero, then Decrease all values by one.", "out": "丈万不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the negative numbers, then Remove one from each value.", "out": "丈万不"} {"kind": "builder", "in": "丈万不", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丈万不", "out": "Take a list of integers; double each, then keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each value by itself, then bump each up by one.", "out": "么上下"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then square them all, then increment each item.", "out": "么上下"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then raise each to the power of two, then bump each up by one.", "out": "么上下"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then I need each number multiplied by itself, then increment each item.", "out": "么上下"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then square all of them, then bump each up by one.", "out": "么上下"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiply each element by itself, then increment each item.", "out": "么上下"} {"kind": "builder", "in": "么上下", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * x for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "么上下", "out": "Take a list of integers; if empty, use a single zero, then square each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increase every value by 10, then make each twice as big.", "out": "丏丽丈"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then add 10 to each item, then multiply each by 2.", "out": "丏丽丈"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then shift each up by ten, then make each twice as big.", "out": "丏丽丈"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then increase all numbers by 10, then multiply each by 2.", "out": "丏丽丈"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then add 10 to everything, then make each twice as big.", "out": "丏丽丈"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then give everything a boost of 10, then multiply each by 2.", "out": "丏丽丈"} {"kind": "builder", "in": "丏丽丈", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丏丽丈", "out": "Take a list of integers; take the absolute value of each, then add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increase every value by 10, then truncate to the last three items.", "out": "九丽丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then add 10 to each item, then show only the last three.", "out": "九丽丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then shift each up by ten, then remove all but the last three.", "out": "九丽丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then increase all numbers by 10, then take the final 3 elements.", "out": "九丽丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then add 10 to everything, then drop everything except the final three.", "out": "九丽丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then give everything a boost of 10, then give me the last three elements.", "out": "九丽丹"} {"kind": "builder", "in": "九丽丹", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 10 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "九丽丹", "out": "Take a list of people records (name, age); extract the ages, then add ten to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then increase every value by 10, then keep only numbers above 5.", "out": "九丽主"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then add 10 to each item, then exclude values of 5 and below.", "out": "九丽主"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then shift each up by ten, then remove anything 5 or less.", "out": "九丽主"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then increase all numbers by 10, then filter to keep only values above 5.", "out": "九丽主"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then add 10 to everything, then get rid of values that aren't greater than five.", "out": "九丽主"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then give everything a boost of 10, then drop anything 5 or below.", "out": "九丽主"} {"kind": "builder", "in": "九丽主", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "九丽主", "out": "Take a list of people records (name, age); extract the ages, then add ten to each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then remove repeated strings, then make every string uppercase.", "out": "丢丧丟"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then keep unique strings first appearance, then uppercase each one.", "out": "丢丧丟"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then eliminate repeated strings preserve first occurrence, then make all the strings uppercase.", "out": "丢丧丟"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then drop duplicate strings keeping the first, then convert all strings to uppercase letters.", "out": "丢丧丟"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then dedupe, then convert to uppercase.", "out": "丢丧丟"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then remove duplicate strings keep first, then i need these in uppercase.", "out": "丢丧丟"} {"kind": "builder", "in": "丢丧丟", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = list(dict.fromkeys(r))\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "丢丧丟", "out": "Take a list of strings; trim whitespace from each, then drop duplicate strings keeping the first, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then default to [0] when there is nothing, then count the elements.", "out": "不么东"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then when the list is empty, substitute a zero value, then how many items remain.", "out": "不么东"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then replace an empty list with one zero, then tell me the length.", "out": "不么东"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then zero it out if it's empty, then return the length.", "out": "不么东"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then use zero if the list is empty, then count them.", "out": "不么东"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then default to zero when empty, then what's the count.", "out": "不么东"} {"kind": "builder", "in": "不么东", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r if r else [0]\n return len(r)"} {"kind": "translator", "in": "不么东", "out": "Take a list of integers; subtract one from each, then if empty, use a single zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then take the final 3 elements, then bump each up by one.", "out": "专丹下"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then drop everything except the final three, then increment each item.", "out": "专丹下"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then give me the last three elements, then bump each up by one.", "out": "专丹下"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep only the last three, then increment each item.", "out": "专丹下"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep the final three items, then bump each up by one.", "out": "专丹下"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the last three, then increment each item.", "out": "专丹下"} {"kind": "builder", "in": "专丹下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[-3:]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "专丹下", "out": "Take a list of integers; sort descending, then keep only the last three, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep values above zero, then remove the initial run of negative numbers.", "out": "丏七乃"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then filter for positive numbers, then strip the front negatives.", "out": "丏七乃"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only positive numbers, then remove leading negative numbers.", "out": "丏七乃"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the positives, then drop negatives from start.", "out": "丏七乃"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove negatives, then strip negative values from the start.", "out": "丏七乃"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep the positive numbers, then remove negatives before the first non-negative.", "out": "丏七乃"} {"kind": "builder", "in": "丏七乃", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丏七乃", "out": "Take a list of integers; take the absolute value of each, then keep the positive numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove repeated values, then give the number of evens.", "out": "么且乓"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then unique values preserving order, then find how many values are divisible by two.", "out": "么且乓"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove repeated values, then how many are even.", "out": "么且乓"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then unique values preserving order, then get the total number of even values in the list.", "out": "么且乓"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove repeated values, then give me the count of even values.", "out": "么且乓"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then unique values preserving order, then I need to know how many of these are even.", "out": "么且乓"} {"kind": "builder", "in": "么且乓", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = list(dict.fromkeys(r))\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "么且乓", "out": "Take a list of integers; if empty, use a single zero, then drop duplicates keeping first occurrence, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then raise each to the power of two.", "out": "丕丸上"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then I need each number multiplied by itself.", "out": "丕丸上"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then square all of them.", "out": "丕丸上"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then multiply each element by itself.", "out": "丕丸上"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then make each one squared.", "out": "丕丸上"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then square each value in the list.", "out": "丕丸上"} {"kind": "builder", "in": "丕丸上", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丕丸上", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then trim one element off each end.", "out": "世举为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then cut off the first and last.", "out": "世举为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then remove the first and last elements.", "out": "世举为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then keep only the middle part.", "out": "世举为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then drop first and last.", "out": "世举为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then eliminate the outermost elements.", "out": "世举为"} {"kind": "builder", "in": "世举为", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "世举为", "out": "Take a list of integers; drop the first element, then drop the zeros, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove all zero values, then find the max, defaulting to 0.", "out": "乂举业"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then exclude zeros, then Give me the maximum, but 0 if there are no items.", "out": "乂举业"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove all zero values, then What's the highest number in the list.", "out": "乂举业"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then exclude zeros, then Return the greatest value or default to 0.", "out": "乂举业"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove all zero values, then Find the largest element, defaulting to zero.", "out": "乂举业"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then exclude zeros, then give the largest value (0 if none).", "out": "乂举业"} {"kind": "builder", "in": "乂举业", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x != 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "乂举业", "out": "Take a list of integers; take values while they are positive, then drop the zeros, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort largest to smallest, then true if any value equals zero.", "out": "丕专乍"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort by descending values, then check for zero.", "out": "丕专乍"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then sort from highest to lowest, then true if any value equals zero.", "out": "丕专乍"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then sort descending, then check for zero.", "out": "丕专乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort largest first, then true if any value equals zero.", "out": "丕专乍"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort in descending order, then check for zero.", "out": "丕专乍"} {"kind": "builder", "in": "丕专乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, reverse=True)\n return 0 in r"} {"kind": "translator", "in": "丕专乍", "out": "Take a list of integers; keep only the first three, then sort descending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then increment each value, then stop at the first non-positive value.", "out": "上下乂"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then plus one for all, then keep the leading run of positive numbers.", "out": "上下乂"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then increment each value, then take values while they are positive.", "out": "上下乂"} {"kind": "speaker", "in": "Take a list of integers; square them all, then plus one for all, then take positive values then stop.", "out": "上下乂"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then increment each value, then keep going while positive.", "out": "上下乂"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then plus one for all, then stop at first non positive.", "out": "上下乂"} {"kind": "builder", "in": "上下乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x + 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "上下乂", "out": "Take a list of integers; square each, then add one to each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then limit every value to 10.", "out": "丑且丘"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then maximum of 10 for all.", "out": "丑且丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then limit every value to 10.", "out": "丑且丘"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then maximum of 10 for all.", "out": "丑且丘"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then limit every value to 10.", "out": "丑且丘"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then maximum of 10 for all.", "out": "丑且丘"} {"kind": "builder", "in": "丑且丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丑且丘", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then keep only numbers above 5.", "out": "丁七主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then exclude values of 5 and below.", "out": "丁七主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then remove anything 5 or less.", "out": "丁七主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then filter to keep only values above 5.", "out": "丁七主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then get rid of values that aren't greater than five.", "out": "丁七主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then drop anything 5 or below.", "out": "丁七主"} {"kind": "builder", "in": "丁七主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丁七主", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then give back the product of all values.", "out": "义乂乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then product of the list.", "out": "义乂乐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then what's the product.", "out": "义乂乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then what do they multiply to.", "out": "义乂乐"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then give me their product.", "out": "义乂乐"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then multiply them all together.", "out": "义乂乐"} {"kind": "builder", "in": "义乂乐", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "义乂乐", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then return their product."} {"kind": "speaker", "in": "Take a list of integers; double each, then cut the list at the first zero, then true if already sorted smallest to largest.", "out": "丈久乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off after the first zero appears, then does this list go in ascending order.", "out": "丈久乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then take values up to (excluding) the first zero, then check if the list is in ascending order.", "out": "丈久乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the part before the first 0, then is the list sorted.", "out": "丈久乎"} {"kind": "speaker", "in": "Take a list of integers; double each, then truncate at the first zero, then is it sorted.", "out": "丈久乎"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then delete everything starting with the first zero, then check if values are in increasing order.", "out": "丈久乎"} {"kind": "builder", "in": "丈久乎", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r == sorted(r)"} {"kind": "translator", "in": "丈久乎", "out": "Take a list of integers; double each, then keep everything before the first zero, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then raise each to the power of two.", "out": "丘举上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then I need each number multiplied by itself.", "out": "丘举上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then square all of them.", "out": "丘举上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then multiply each element by itself.", "out": "丘举上"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove all zero values, then make each one squared.", "out": "丘举上"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then exclude zeros, then square each value in the list.", "out": "丘举上"} {"kind": "builder", "in": "丘举上", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丘举上", "out": "Take a list of integers; cap each value at 10, then drop the zeros, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then skip negatives at the start, then true if any value equals zero.", "out": "举乃乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove all negatives at the front, then check for zero.", "out": "举乃乍"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the initial run of negative numbers, then true if any value equals zero.", "out": "举乃乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then strip the front negatives, then check for zero.", "out": "举乃乍"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove leading negative numbers, then true if any value equals zero.", "out": "举乃乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop negatives from start, then check for zero.", "out": "举乃乍"} {"kind": "builder", "in": "举乃乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return 0 in r"} {"kind": "translator", "in": "举乃乍", "out": "Take a list of integers; drop the zeros, then drop the leading negative values, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the first 3 elements, then give the number of evens.", "out": "为丕乓"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove everything after the third, then find how many values are divisible by two.", "out": "为丕乓"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then truncate to three items, then how many are even.", "out": "为丕乓"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then show the first three, then get the total number of even values in the list.", "out": "为丕乓"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then take the first three, then give me the count of even values.", "out": "为丕乓"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep first 3, then I need to know how many of these are even.", "out": "为丕乓"} {"kind": "builder", "in": "为丕乓", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:3]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "为丕乓", "out": "Take a list of integers; drop the first and last elements, then keep only the first three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then skip negatives at the start, then truncate to the last three items.", "out": "下乃丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove all negatives at the front, then show only the last three.", "out": "下乃丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the initial run of negative numbers, then remove all but the last three.", "out": "下乃丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then strip the front negatives, then take the final 3 elements.", "out": "下乃丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove leading negative numbers, then drop everything except the final three.", "out": "下乃丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop negatives from start, then give me the last three elements.", "out": "下乃丹"} {"kind": "builder", "in": "下乃丹", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "下乃丹", "out": "Take a list of integers; add one to each, then drop the leading negative values, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then make every value non-negative, then drop non-positive values.", "out": "为丏七"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then absolute value for all items, then drop the negative numbers.", "out": "为丏七"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take absolute values, then filter out the negative ones.", "out": "为丏七"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then turn negatives into positives, then remove all negative values.", "out": "为丏七"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then abs each element, then keep positive values only.", "out": "为丏七"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the absolute value of each, then keep values above zero.", "out": "为丏七"} {"kind": "builder", "in": "为丏七", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "为丏七", "out": "Take a list of integers; drop the first and last elements, then take the absolute value of each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then take each string's first letter, then remove short strings (under 3 chars).", "out": "乘丨乗"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then give me the first letter of everything, then only keep strings with three or more characters.", "out": "乘丨乗"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then reduce each string to its first character, then keep only strings that are at least three characters long.", "out": "乘丨乗"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then take first char drop blanks, then filter strings shorter than 3 chars.", "out": "乘丨乗"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then keep first letters only, then drop anything shorter than three characters.", "out": "乘丨乗"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then first letter from each item that isn't empty, then keep only strings of length 3 or more.", "out": "乘丨乗"} {"kind": "builder", "in": "乘丨乗", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s[0] for s in r if s]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "乘丨乗", "out": "Take a list of strings; prefix each with a hash, then keep the first character of each (dropping empties), then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then default to [0] when there is nothing, then bump each up by one.", "out": "主么下"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then when the list is empty, substitute a zero value, then increment each item.", "out": "主么下"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then replace an empty list with one zero, then bump each up by one.", "out": "主么下"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then zero it out if it's empty, then increment each item.", "out": "主么下"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then use zero if the list is empty, then bump each up by one.", "out": "主么下"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then default to zero when empty, then increment each item.", "out": "主么下"} {"kind": "builder", "in": "主么下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "主么下", "out": "Take a list of integers; keep values greater than five, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values below zero, then true if at least one even value.", "out": "七万之"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then get the negative numbers, then any even.", "out": "七万之"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep values below zero, then true if at least one even value.", "out": "七万之"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then get the negative numbers, then any even.", "out": "七万之"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep values below zero, then true if at least one even value.", "out": "七万之"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then get the negative numbers, then any even.", "out": "七万之"} {"kind": "builder", "in": "七万之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x < 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "七万之", "out": "Take a list of integers; keep the positive numbers, then keep the negative numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then keep only strings of length 3 or more, then reduce each string to its first character.", "out": "丞乗丨"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then get rid of short ones, then take first char drop blanks.", "out": "丞乗丨"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then remove strings with less than three characters, then keep first letters only.", "out": "丞乗丨"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then remove all strings under three characters in length, then first letter from each item that isn't empty.", "out": "丞乗丨"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then filter out short strings under three chars, then grab the first char from each.", "out": "丞乗丨"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then drop strings shorter than three characters, then isolate the first character per entry.", "out": "丞乗丨"} {"kind": "builder", "in": "丞乗丨", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s for s in r if len(s) >= 3]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "丞乗丨", "out": "Take a list of strings; lowercase each string, then drop strings shorter than three characters, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each value by itself, then drop anything not divisible by three.", "out": "丐上串"} {"kind": "speaker", "in": "Take a list of integers; reverse, then square them all, then filter out everything except multiples of three.", "out": "丐上串"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then raise each to the power of two, then keep only multiples of three.", "out": "丐上串"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then I need each number multiplied by itself, then multiples of three only.", "out": "丐上串"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then square all of them, then filter for numbers divisible by three.", "out": "丐上串"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiply each element by itself, then give me only the values divisible by three.", "out": "丐上串"} {"kind": "builder", "in": "丐上串", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丐上串", "out": "Take a list of integers; reverse the order, then square each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then count the elements.", "out": "义且东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then how many items remain.", "out": "义且东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then tell me the length.", "out": "义且东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then return the length.", "out": "义且东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then count them.", "out": "义且东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then what's the count.", "out": "义且东"} {"kind": "builder", "in": "义且东", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n return len(r)"} {"kind": "translator", "in": "义且东", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then increase every value by 10, then arrange in increasing order.", "out": "七丽丑"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then add 10 to each item, then Organize these ascending.", "out": "七丽丑"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then shift each up by ten, then Sort in ascending order.", "out": "七丽丑"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then increase all numbers by 10, then I need this sorted ascending.", "out": "七丽丑"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then add 10 to everything, then Put these in ascending order.", "out": "七丽丑"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then give everything a boost of 10, then sort smallest to largest.", "out": "七丽丑"} {"kind": "builder", "in": "七丽丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x + 10 for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "七丽丑", "out": "Take a list of integers; keep the positive numbers, then add ten to each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep the leading run of positive numbers, then true if every value is unique.", "out": "乃乂乏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then take values while they are positive, then check for duplicates in the values.", "out": "乃乂乏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take positive values then stop, then do all values appear only once.", "out": "乃乂乏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep going while positive, then check that there are no duplicates.", "out": "乃乂乏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then stop at first non positive, then are the values all unique.", "out": "乃乂乏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take while greater than zero, then check if all values are unique.", "out": "乃乂乏"} {"kind": "builder", "in": "乃乂乏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "乃乂乏", "out": "Take a list of integers; drop the leading negative values, then take values while they are positive, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then true if already sorted smallest to largest.", "out": "且丘乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then does this list go in ascending order.", "out": "且丘乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then check if the list is in ascending order.", "out": "且丘乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then is the list sorted.", "out": "且丘乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then is it sorted.", "out": "且丘乎"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then check if values are in increasing order.", "out": "且丘乎"} {"kind": "builder", "in": "且丘乎", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [min(x, 10) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "且丘乎", "out": "Take a list of integers; drop duplicates keeping first occurrence, then cap each value at 10, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove both ends, then arrange by magnitude ignoring sign.", "out": "丑为丸"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then trim the edges, then put them in order by magnitude.", "out": "丑为丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then trim one element off each end, then arrange in order of absolute value.", "out": "丑为丸"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then cut off the first and last, then sort by distance from zero.", "out": "丑为丸"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove the first and last elements, then order by how far from zero.", "out": "丑为丸"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep only the middle part, then order by distance from zero.", "out": "丑为丸"} {"kind": "builder", "in": "丑为丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[1:-1]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丑为丸", "out": "Take a list of integers; sort ascending, then drop the first and last elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then convert each to upper case, then make every string lowercase.", "out": "乗丟丞"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then change all strings to uppercase, then make it all lowercase.", "out": "乗丟丞"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then make every string uppercase, then make every string lowercase.", "out": "乗丟丞"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then uppercase each one, then make it all lowercase.", "out": "乗丟丞"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then make all the strings uppercase, then make every string lowercase.", "out": "乗丟丞"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then convert all strings to uppercase letters, then make it all lowercase.", "out": "乗丟丞"} {"kind": "builder", "in": "乗丟丞", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.upper() for s in r]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "乗丟丞", "out": "Take a list of strings; drop strings shorter than three characters, then uppercase each string, then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then drop the odd numbers.", "out": "下且一"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then filter out the odd numbers.", "out": "下且一"} {"kind": "builder", "in": "下且一", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "下且一", "out": "Take a list of integers; add one to each, then drop duplicates keeping first occurrence, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each value by itself, then true if any value equals zero.", "out": "丕上乍"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then square them all, then check for zero.", "out": "丕上乍"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then raise each to the power of two, then true if any value equals zero.", "out": "丕上乍"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then I need each number multiplied by itself, then check for zero.", "out": "丕上乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then square all of them, then true if any value equals zero.", "out": "丕上乍"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then multiply each element by itself, then check for zero.", "out": "丕上乍"} {"kind": "builder", "in": "丕上乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * x for x in r]\n return 0 in r"} {"kind": "translator", "in": "丕上乍", "out": "Take a list of integers; keep only the first three, then square each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then skip negatives at the start, then truncate to the last three items.", "out": "丕乃丹"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then remove all negatives at the front, then show only the last three.", "out": "丕乃丹"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the initial run of negative numbers, then remove all but the last three.", "out": "丕乃丹"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then strip the front negatives, then take the final 3 elements.", "out": "丕乃丹"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove leading negative numbers, then drop everything except the final three.", "out": "丕乃丹"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then drop negatives from start, then give me the last three elements.", "out": "丕乃丹"} {"kind": "builder", "in": "丕乃丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丕乃丹", "out": "Take a list of integers; keep only the first three, then drop the leading negative values, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; double each, then skip negatives at the start, then give back the total.", "out": "丈乃丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then remove all negatives at the front, then sum r.", "out": "丈乃丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the initial run of negative numbers, then add them up.", "out": "丈乃丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then strip the front negatives, then calculate the sum of all elements.", "out": "丈乃丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove leading negative numbers, then what's the total.", "out": "丈乃丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop negatives from start, then what do they add up to.", "out": "丈乃丙"} {"kind": "builder", "in": "丈乃丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return sum(r)"} {"kind": "translator", "in": "丈乃丙", "out": "Take a list of integers; double each, then drop the leading negative values, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then default to [0] when there is nothing, then find the max, defaulting to 0.", "out": "串么业"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then when the list is empty, substitute a zero value, then Give me the maximum, but 0 if there are no items.", "out": "串么业"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then replace an empty list with one zero, then What's the highest number in the list.", "out": "串么业"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then zero it out if it's empty, then Return the greatest value or default to 0.", "out": "串么业"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then use zero if the list is empty, then Find the largest element, defaulting to zero.", "out": "串么业"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then default to zero when empty, then give the largest value (0 if none).", "out": "串么业"} {"kind": "builder", "in": "串么业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r if r else [0]\n return max(r) if r else 0"} {"kind": "translator", "in": "串么业", "out": "Take a list of integers; keep multiples of three, then if empty, use a single zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then make every value non-negative, then give back the total.", "out": "久丏丙"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then absolute value for all items, then sum r.", "out": "久丏丙"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take absolute values, then add them up.", "out": "久丏丙"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn negatives into positives, then calculate the sum of all elements.", "out": "久丏丙"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then abs each element, then what's the total.", "out": "久丏丙"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the absolute value of each, then what do they add up to.", "out": "久丏丙"} {"kind": "builder", "in": "久丏丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n return sum(r)"} {"kind": "translator", "in": "久丏丙", "out": "Take a list of integers; keep everything before the first zero, then take the absolute value of each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then order by distance from zero, then limit every value to 10.", "out": "丽丸丘"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then sort based on absolute value, then maximum of 10 for all.", "out": "丽丸丘"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then organize by magnitude, then limit every value to 10.", "out": "丽丸丘"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then arrange by absolute value ascending, then maximum of 10 for all.", "out": "丽丸丘"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then sort from smallest to largest absolute value, then limit every value to 10.", "out": "丽丸丘"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort by absolute value, then maximum of 10 for all.", "out": "丽丸丘"} {"kind": "builder", "in": "丽丸丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r, key=abs)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丽丸丘", "out": "Take a list of integers; add ten to each, then sort by absolute value, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then clamp each to at most ten, then find the max, defaulting to 0.", "out": "么丘业"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then don't let anything exceed 10, then Give me the maximum, but 0 if there are no items.", "out": "么丘业"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then clamp each to at most ten, then What's the highest number in the list.", "out": "么丘业"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then don't let anything exceed 10, then Return the greatest value or default to 0.", "out": "么丘业"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then clamp each to at most ten, then Find the largest element, defaulting to zero.", "out": "么丘业"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then don't let anything exceed 10, then give the largest value (0 if none).", "out": "么丘业"} {"kind": "builder", "in": "么丘业", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "么丘业", "out": "Take a list of integers; if empty, use a single zero, then cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep the leading run of positive numbers, then raise each to the power of two.", "out": "乃乂上"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then take values while they are positive, then I need each number multiplied by itself.", "out": "乃乂上"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then take positive values then stop, then square all of them.", "out": "乃乂上"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep going while positive, then multiply each element by itself.", "out": "乃乂上"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then stop at first non positive, then make each one squared.", "out": "乃乂上"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take while greater than zero, then square each value in the list.", "out": "乃乂上"} {"kind": "builder", "in": "乃乂上", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "乃乂上", "out": "Take a list of integers; drop the leading negative values, then take values while they are positive, then square each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the final 3 elements, then give back the product of all values.", "out": "丽丹乐"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then drop everything except the final three, then product of the list.", "out": "丽丹乐"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then give me the last three elements, then what's the product.", "out": "丽丹乐"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep only the last three, then what do they multiply to.", "out": "丽丹乐"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep the final three items, then give me their product.", "out": "丽丹乐"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take the last three, then multiply them all together.", "out": "丽丹乐"} {"kind": "builder", "in": "丽丹乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丽丹乐", "out": "Take a list of integers; add ten to each, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each value by itself, then true if already sorted smallest to largest.", "out": "不上乎"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then square them all, then does this list go in ascending order.", "out": "不上乎"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then raise each to the power of two, then check if the list is in ascending order.", "out": "不上乎"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then I need each number multiplied by itself, then is the list sorted.", "out": "不上乎"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then square all of them, then is it sorted.", "out": "不上乎"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiply each element by itself, then check if values are in increasing order.", "out": "不上乎"} {"kind": "builder", "in": "不上乎", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "不上乎", "out": "Take a list of integers; subtract one from each, then square each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then skip the first one.", "out": "义乂世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then Discard the first element.", "out": "义乂世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then skip the first one.", "out": "义乂世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then Discard the first element.", "out": "义乂世"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then skip the first one.", "out": "义乂世"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then Discard the first element.", "out": "义乂世"} {"kind": "builder", "in": "义乂世", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:]\n return r"} {"kind": "translator", "in": "义乂世", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then give back the total.", "out": "丈下丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then sum r.", "out": "丈下丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then add them up.", "out": "丈下丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then calculate the sum of all elements.", "out": "丈下丙"} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then what's the total.", "out": "丈下丙"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then what do they add up to.", "out": "丈下丙"} {"kind": "builder", "in": "丈下丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 1 for x in r]\n return sum(r)"} {"kind": "translator", "in": "丈下丙", "out": "Take a list of integers; double each, then add one to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then skip negatives at the start, then raise each to the power of two.", "out": "为乃上"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove all negatives at the front, then I need each number multiplied by itself.", "out": "为乃上"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the initial run of negative numbers, then square all of them.", "out": "为乃上"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then strip the front negatives, then multiply each element by itself.", "out": "为乃上"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove leading negative numbers, then make each one squared.", "out": "为乃上"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then drop negatives from start, then square each value in the list.", "out": "为乃上"} {"kind": "builder", "in": "为乃上", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "为乃上", "out": "Take a list of integers; drop the first and last elements, then drop the leading negative values, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values below zero, then true if at least one even value.", "out": "乃万之"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then get the negative numbers, then any even.", "out": "乃万之"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep values below zero, then true if at least one even value.", "out": "乃万之"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then get the negative numbers, then any even.", "out": "乃万之"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep values below zero, then true if at least one even value.", "out": "乃万之"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the negative numbers, then any even.", "out": "乃万之"} {"kind": "builder", "in": "乃万之", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乃万之", "out": "Take a list of integers; drop the leading negative values, then keep the negative numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove all zero values, then true only if all are positive.", "out": "为举乌"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then exclude zeros, then do all of these have positive values.", "out": "为举乌"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove all zero values, then check if every value is positive.", "out": "为举乌"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then exclude zeros, then confirm all values are positive.", "out": "为举乌"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove all zero values, then all positive.", "out": "为举乌"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then exclude zeros, then check if every number is above zero.", "out": "为举乌"} {"kind": "builder", "in": "为举乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "为举乌", "out": "Take a list of integers; drop the first and last elements, then drop the zeros, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two, then true only if all are positive.", "out": "上丈乌"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list, then do all of these have positive values.", "out": "上丈乌"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two, then check if every value is positive.", "out": "上丈乌"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list, then confirm all values are positive.", "out": "上丈乌"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two, then all positive.", "out": "上丈乌"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list, then check if every number is above zero.", "out": "上丈乌"} {"kind": "builder", "in": "上丈乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "上丈乌", "out": "Take a list of integers; square each, then double each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then count the elements.", "out": "义丁东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then how many items remain.", "out": "义丁东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then tell me the length.", "out": "义丁东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then return the length.", "out": "义丁东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then count them.", "out": "义丁东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then what's the count.", "out": "义丁东"} {"kind": "builder", "in": "义丁东", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n return len(r)"} {"kind": "translator", "in": "义丁东", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the odd numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each by two, then take values up to (excluding) the first zero.", "out": "么丈久"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then double each item in the list, then keep the part before the first 0.", "out": "么丈久"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then multiply each by two, then truncate at the first zero.", "out": "么丈久"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then double each item in the list, then delete everything starting with the first zero.", "out": "么丈久"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then multiply each by two, then remove from the first zero onwards.", "out": "么丈久"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then double each item in the list, then up to but not including the first zero.", "out": "么丈久"} {"kind": "builder", "in": "么丈久", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "么丈久", "out": "Take a list of integers; if empty, use a single zero, then double each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values below zero, then take values up to (excluding) the first zero.", "out": "九万久"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then get the negative numbers, then keep the part before the first 0.", "out": "九万久"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep values below zero, then truncate at the first zero.", "out": "九万久"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then get the negative numbers, then delete everything starting with the first zero.", "out": "九万久"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep values below zero, then remove from the first zero onwards.", "out": "九万久"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then get the negative numbers, then up to but not including the first zero.", "out": "九万久"} {"kind": "builder", "in": "九万久", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "九万久", "out": "Take a list of people records (name, age); extract the ages, then keep the negative numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the final 3 elements, then skip the first one.", "out": "一丹世"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop everything except the final three, then Discard the first element.", "out": "一丹世"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then give me the last three elements, then skip the first one.", "out": "一丹世"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the last three, then Discard the first element.", "out": "一丹世"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the final three items, then skip the first one.", "out": "一丹世"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the last three, then Discard the first element.", "out": "一丹世"} {"kind": "builder", "in": "一丹世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[-3:]\n r = r[1:]\n return r"} {"kind": "translator", "in": "一丹世", "out": "Take a list of integers; keep the even numbers, then keep only the last three, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then remove repeated values, then ensure at least three items by appending zeros.", "out": "丑且义"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "丑且义"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove repeated values, then ensure at least three items by appending zeros.", "out": "丑且义"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "丑且义"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove repeated values, then ensure at least three items by appending zeros.", "out": "丑且义"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "丑且义"} {"kind": "builder", "in": "丑且义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丑且义", "out": "Take a list of integers; sort ascending, then drop duplicates keeping first occurrence, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around, then true if any value equals zero.", "out": "下丐乍"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around, then check for zero.", "out": "下丐乍"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards, then true if any value equals zero.", "out": "下丐乍"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me, then check for zero.", "out": "下丐乍"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards, then true if any value equals zero.", "out": "下丐乍"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards, then check for zero.", "out": "下丐乍"} {"kind": "builder", "in": "下丐乍", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n return 0 in r"} {"kind": "translator", "in": "下丐乍", "out": "Take a list of integers; add one to each, then reverse the order, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros, then remove the initial run of negative numbers.", "out": "为义乃"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3, then strip the front negatives.", "out": "为义乃"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros, then remove leading negative numbers.", "out": "为义乃"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3, then drop negatives from start.", "out": "为义乃"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros, then strip negative values from the start.", "out": "为义乃"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3, then remove negatives before the first non-negative.", "out": "为义乃"} {"kind": "builder", "in": "为义乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "为义乃", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then find the max, defaulting to 0.", "out": "下世业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then Give me the maximum, but 0 if there are no items.", "out": "下世业"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then What's the highest number in the list.", "out": "下世业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then Return the greatest value or default to 0.", "out": "下世业"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then Find the largest element, defaulting to zero.", "out": "下世业"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then give the largest value (0 if none).", "out": "下世业"} {"kind": "builder", "in": "下世业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:]\n return max(r) if r else 0"} {"kind": "translator", "in": "下世业", "out": "Take a list of integers; add one to each, then drop the first element, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep the leading run of positive numbers, then limit every value to 10.", "out": "丐乂丘"} {"kind": "speaker", "in": "Take a list of integers; reverse, then take values while they are positive, then maximum of 10 for all.", "out": "丐乂丘"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take positive values then stop, then limit every value to 10.", "out": "丐乂丘"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then keep going while positive, then maximum of 10 for all.", "out": "丐乂丘"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then stop at first non positive, then limit every value to 10.", "out": "丐乂丘"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take while greater than zero, then maximum of 10 for all.", "out": "丐乂丘"} {"kind": "builder", "in": "丐乂丘", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丐乂丘", "out": "Take a list of integers; reverse the order, then take values while they are positive, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything 5 or below, then drop non-positive values.", "out": "举主七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only numbers greater than 5, then drop the negative numbers.", "out": "举主七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then filter for numbers above 5, then filter out the negative ones.", "out": "举主七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give me values where x is greater than 5, then remove all negative values.", "out": "举主七"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then show me only the values that are bigger than five, then keep positive values only.", "out": "举主七"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep values greater than five, then keep values above zero.", "out": "举主七"} {"kind": "builder", "in": "举主七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "举主七", "out": "Take a list of integers; drop the zeros, then keep values greater than five, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then decrement each value, then limit every value to 10.", "out": "举不丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Lower each number by one, then maximum of 10 for all.", "out": "举不丘"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then reduce each by one, then limit every value to 10.", "out": "举不丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Subtract 1 from all, then maximum of 10 for all.", "out": "举不丘"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Subtract one from each, then limit every value to 10.", "out": "举不丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Drop each by one, then maximum of 10 for all.", "out": "举不丘"} {"kind": "builder", "in": "举不丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "举不丘", "out": "Take a list of integers; drop the zeros, then subtract one from each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only odd values, then truncate to three items.", "out": "丹丁丕"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then eliminate the even numbers, then show the first three.", "out": "丹丁丕"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only odd values, then take the first three.", "out": "丹丁丕"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then eliminate the even numbers, then keep first 3.", "out": "丹丁丕"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only odd values, then truncate to first three.", "out": "丹丁丕"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then eliminate the even numbers, then first three.", "out": "丹丁丕"} {"kind": "builder", "in": "丹丁丕", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丹丁丕", "out": "Take a list of integers; keep only the last three, then keep the odd numbers, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then bump each up by one.", "out": "且一下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then increment each item.", "out": "且一下"} {"kind": "builder", "in": "且一下", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "且一下", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the even numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then take values up to (excluding) the first zero.", "out": "丑丘久"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then keep the part before the first 0.", "out": "丑丘久"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then truncate at the first zero.", "out": "丑丘久"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then delete everything starting with the first zero.", "out": "丑丘久"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then remove from the first zero onwards.", "out": "丑丘久"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then up to but not including the first zero.", "out": "丑丘久"} {"kind": "builder", "in": "丑丘久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丑丘久", "out": "Take a list of integers; sort ascending, then cap each value at 10, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then give the number of evens.", "out": "义万乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then find how many values are divisible by two.", "out": "义万乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then how many are even.", "out": "义万乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then get the total number of even values in the list.", "out": "义万乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then give me the count of even values.", "out": "义万乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then I need to know how many of these are even.", "out": "义万乓"} {"kind": "builder", "in": "义万乓", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x < 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "义万乓", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the negative numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then order by distance from zero, then reduce each by one.", "out": "串丸不"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then sort based on absolute value, then Subtract 1 from all.", "out": "串丸不"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then organize by magnitude, then Subtract one from each.", "out": "串丸不"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then arrange by absolute value ascending, then Drop each by one.", "out": "串丸不"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then sort from smallest to largest absolute value, then Decrease all values by one.", "out": "串丸不"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort by absolute value, then Remove one from each value.", "out": "串丸不"} {"kind": "builder", "in": "串丸不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, key=abs)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "串丸不", "out": "Take a list of integers; keep multiples of three, then sort by absolute value, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then truncate to the last three items.", "out": "且下丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then show only the last three.", "out": "且下丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then remove all but the last three.", "out": "且下丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then take the final 3 elements.", "out": "且下丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then drop everything except the final three.", "out": "且下丹"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then give me the last three elements.", "out": "且下丹"} {"kind": "builder", "in": "且下丹", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "且下丹", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add one to each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; double each, then increase every value by 10, then skip the first one.", "out": "丈丽世"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then add 10 to each item, then Discard the first element.", "out": "丈丽世"} {"kind": "speaker", "in": "Take a list of integers; double each, then shift each up by ten, then skip the first one.", "out": "丈丽世"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then increase all numbers by 10, then Discard the first element.", "out": "丈丽世"} {"kind": "speaker", "in": "Take a list of integers; double each, then add 10 to everything, then skip the first one.", "out": "丈丽世"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give everything a boost of 10, then Discard the first element.", "out": "丈丽世"} {"kind": "builder", "in": "丈丽世", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丈丽世", "out": "Take a list of integers; double each, then add ten to each, then drop the first element."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item, then replace an empty list with one zero.", "out": "九世么"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head, then zero it out if it's empty.", "out": "九世么"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item, then use zero if the list is empty.", "out": "九世么"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head, then default to zero when empty.", "out": "九世么"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item, then if there's nothing, put in a zero.", "out": "九世么"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head, then if no items, add a zero.", "out": "九世么"} {"kind": "builder", "in": "九世么", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "九世么", "out": "Take a list of people records (name, age); extract the ages, then drop the first element, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then reduce each by one.", "out": "且丁不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then Subtract 1 from all.", "out": "且丁不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then Subtract one from each.", "out": "且丁不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then Drop each by one.", "out": "且丁不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then Decrease all values by one.", "out": "且丁不"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then Remove one from each value.", "out": "且丁不"} {"kind": "builder", "in": "且丁不", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "且丁不", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the odd numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove all zero values, then shift each up by ten.", "out": "主举丽"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then exclude zeros, then increase all numbers by 10.", "out": "主举丽"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove all zero values, then add 10 to everything.", "out": "主举丽"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then exclude zeros, then give everything a boost of 10.", "out": "主举丽"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove all zero values, then increment each by ten.", "out": "主举丽"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then exclude zeros, then add a constant 10 to each.", "out": "主举丽"} {"kind": "builder", "in": "主举丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x != 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "主举丽", "out": "Take a list of integers; keep values greater than five, then drop the zeros, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then make every value non-negative, then keep only numbers above 5.", "out": "丹丏主"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then absolute value for all items, then exclude values of 5 and below.", "out": "丹丏主"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take absolute values, then remove anything 5 or less.", "out": "丹丏主"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then turn negatives into positives, then filter to keep only values above 5.", "out": "丹丏主"} {"kind": "speaker", "in": "Take a list of integers; last three only, then abs each element, then get rid of values that aren't greater than five.", "out": "丹丏主"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take the absolute value of each, then drop anything 5 or below.", "out": "丹丏主"} {"kind": "builder", "in": "丹丏主", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丹丏主", "out": "Take a list of integers; keep only the last three, then take the absolute value of each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then make every value non-negative, then true only if all are positive.", "out": "丸丏乌"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then absolute value for all items, then do all of these have positive values.", "out": "丸丏乌"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take absolute values, then check if every value is positive.", "out": "丸丏乌"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn negatives into positives, then confirm all values are positive.", "out": "丸丏乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then abs each element, then all positive.", "out": "丸丏乌"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the absolute value of each, then check if every number is above zero.", "out": "丸丏乌"} {"kind": "builder", "in": "丸丏乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丸丏乌", "out": "Take a list of integers; sort by absolute value, then take the absolute value of each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort smallest to largest, then make each twice as big.", "out": "万丑丈"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Ascending sort, then multiply each by 2.", "out": "万丑丈"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Sort this ascending, then make each twice as big.", "out": "万丑丈"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Sort lowest to highest, then multiply each by 2.", "out": "万丑丈"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Arrange from smallest to largest, then make each twice as big.", "out": "万丑丈"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort ascending, then multiply each by 2.", "out": "万丑丈"} {"kind": "builder", "in": "万丑丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "万丑丈", "out": "Take a list of integers; keep the negative numbers, then sort ascending, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then extend to length 3 using zeros, then put the elements backwards.", "out": "丹义丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then pad to 3, then reverse that for me.", "out": "丹义丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then extend to length 3 using zeros, then flip it backwards.", "out": "丹义丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then pad to 3, then make it backwards.", "out": "丹义丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then extend to length 3 using zeros, then reverse the list.", "out": "丹义丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then pad to 3, then invert the sequence.", "out": "丹义丐"} {"kind": "builder", "in": "丹义丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹义丐", "out": "Take a list of integers; keep only the last three, then pad with zeros to at least three elements, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then sort smallest to largest, then limit every value to 10.", "out": "不丑丘"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then Ascending sort, then maximum of 10 for all.", "out": "不丑丘"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then Sort this ascending, then limit every value to 10.", "out": "不丑丘"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then Sort lowest to highest, then maximum of 10 for all.", "out": "不丑丘"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then Arrange from smallest to largest, then limit every value to 10.", "out": "不丑丘"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then sort ascending, then maximum of 10 for all.", "out": "不丑丘"} {"kind": "builder", "in": "不丑丘", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = sorted(r)\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "不丑丘", "out": "Take a list of integers; subtract one from each, then sort ascending, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep the leading run of positive numbers, then ensure at least three items by appending zeros.", "out": "丏乂义"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then take values while they are positive, then ensure minimum length of three by adding zeros to the end.", "out": "丏乂义"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take positive values then stop, then ensure at least three items by appending zeros.", "out": "丏乂义"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep going while positive, then ensure minimum length of three by adding zeros to the end.", "out": "丏乂义"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then stop at first non positive, then ensure at least three items by appending zeros.", "out": "丏乂义"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take while greater than zero, then ensure minimum length of three by adding zeros to the end.", "out": "丏乂义"} {"kind": "builder", "in": "丏乂义", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丏乂义", "out": "Take a list of integers; take the absolute value of each, then take values while they are positive, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then convert each to upper case, then prepend a hash mark to each.", "out": "丧丟乘"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then change all strings to uppercase, then prefix all with #.", "out": "丧丟乘"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then make every string uppercase, then prepend a hash mark to each.", "out": "丧丟乘"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then uppercase each one, then prefix all with #.", "out": "丧丟乘"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then make all the strings uppercase, then prepend a hash mark to each.", "out": "丧丟乘"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then convert all strings to uppercase letters, then prefix all with #.", "out": "丧丟乘"} {"kind": "builder", "in": "丧丟乘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s.upper() for s in r]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "丧丟乘", "out": "Take a list of strings; drop duplicate strings keeping the first, then uppercase each string, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove repeated values, then truncate to the last three items.", "out": "丸且丹"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then unique values preserving order, then show only the last three.", "out": "丸且丹"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove repeated values, then remove all but the last three.", "out": "丸且丹"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then unique values preserving order, then take the final 3 elements.", "out": "丸且丹"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove repeated values, then drop everything except the final three.", "out": "丸且丹"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then unique values preserving order, then give me the last three elements.", "out": "丸且丹"} {"kind": "builder", "in": "丸且丹", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(dict.fromkeys(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丸且丹", "out": "Take a list of integers; sort by absolute value, then drop duplicates keeping first occurrence, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; double each, then decrement each value, then keep only numbers above 5.", "out": "丈不主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Lower each number by one, then exclude values of 5 and below.", "out": "丈不主"} {"kind": "speaker", "in": "Take a list of integers; double each, then reduce each by one, then remove anything 5 or less.", "out": "丈不主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Subtract 1 from all, then filter to keep only values above 5.", "out": "丈不主"} {"kind": "speaker", "in": "Take a list of integers; double each, then Subtract one from each, then get rid of values that aren't greater than five.", "out": "丈不主"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Drop each by one, then drop anything 5 or below.", "out": "丈不主"} {"kind": "builder", "in": "丈不主", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丈不主", "out": "Take a list of integers; double each, then subtract one from each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then give the earliest even value or zero.", "out": "九一乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then fetch the first even element, default to 0.", "out": "九一乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then give the earliest even value or zero.", "out": "九一乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then fetch the first even element, default to 0.", "out": "九一乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then give the earliest even value or zero.", "out": "九一乒"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then fetch the first even element, default to 0.", "out": "九一乒"} {"kind": "builder", "in": "九一乒", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "九一乒", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; double each, then default to [0] when there is nothing, then drop the odd numbers.", "out": "丈么一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then when the list is empty, substitute a zero value, then filter out the odd numbers.", "out": "丈么一"} {"kind": "speaker", "in": "Take a list of integers; double each, then replace an empty list with one zero, then drop the odd numbers.", "out": "丈么一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then zero it out if it's empty, then filter out the odd numbers.", "out": "丈么一"} {"kind": "speaker", "in": "Take a list of integers; double each, then use zero if the list is empty, then drop the odd numbers.", "out": "丈么一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then default to zero when empty, then filter out the odd numbers.", "out": "丈么一"} {"kind": "builder", "in": "丈么一", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丈么一", "out": "Take a list of integers; double each, then if empty, use a single zero, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove repeated values, then give back the product of all values.", "out": "专且乐"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then unique values preserving order, then product of the list.", "out": "专且乐"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove repeated values, then what's the product.", "out": "专且乐"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then unique values preserving order, then what do they multiply to.", "out": "专且乐"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove repeated values, then give me their product.", "out": "专且乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then unique values preserving order, then multiply them all together.", "out": "专且乐"} {"kind": "builder", "in": "专且乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(dict.fromkeys(r))\n return __import__('math').prod(r)"} {"kind": "translator", "in": "专且乐", "out": "Take a list of integers; sort descending, then drop duplicates keeping first occurrence, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only odd values, then drop non-positive values.", "out": "丕丁七"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then eliminate the even numbers, then drop the negative numbers.", "out": "丕丁七"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only odd values, then filter out the negative ones.", "out": "丕丁七"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then eliminate the even numbers, then remove all negative values.", "out": "丕丁七"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only odd values, then keep positive values only.", "out": "丕丁七"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then eliminate the even numbers, then keep values above zero.", "out": "丕丁七"} {"kind": "builder", "in": "丕丁七", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丕丁七", "out": "Take a list of integers; keep only the first three, then keep the odd numbers, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the list around, then deduplicate the list.", "out": "丁丐且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then flip the order around, then remove repeats.", "out": "丁丐且"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then put the elements backwards, then deduplicate the list.", "out": "丁丐且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then reverse that for me, then remove repeats.", "out": "丁丐且"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip it backwards, then deduplicate the list.", "out": "丁丐且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then make it backwards, then remove repeats.", "out": "丁丐且"} {"kind": "builder", "in": "丁丐且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丁丐且", "out": "Take a list of integers; keep the odd numbers, then reverse the order, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep values divisible by 3, then true if every value is unique.", "out": "举串乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep items where x mod 3 equals zero, then check for duplicates in the values.", "out": "举串乏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything not divisible by three, then do all values appear only once.", "out": "举串乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then filter out everything except multiples of three, then check that there are no duplicates.", "out": "举串乏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep only multiples of three, then are the values all unique.", "out": "举串乏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiples of three only, then check if all values are unique.", "out": "举串乏"} {"kind": "builder", "in": "举串乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 3 == 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "举串乏", "out": "Take a list of integers; drop the zeros, then keep multiples of three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then default to [0] when there is nothing, then multiply each by -1.", "out": "举么与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then when the list is empty, substitute a zero value, then negate.", "out": "举么与"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then replace an empty list with one zero, then multiply each by -1.", "out": "举么与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then zero it out if it's empty, then negate.", "out": "举么与"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then use zero if the list is empty, then multiply each by -1.", "out": "举么与"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then default to zero when empty, then negate.", "out": "举么与"} {"kind": "builder", "in": "举么与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "举么与", "out": "Take a list of integers; drop the zeros, then if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then decrement each value, then true if already sorted smallest to largest.", "out": "久不乎"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Lower each number by one, then does this list go in ascending order.", "out": "久不乎"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then reduce each by one, then check if the list is in ascending order.", "out": "久不乎"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Subtract 1 from all, then is the list sorted.", "out": "久不乎"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Subtract one from each, then is it sorted.", "out": "久不乎"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Drop each by one, then check if values are in increasing order.", "out": "久不乎"} {"kind": "builder", "in": "久不乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "久不乎", "out": "Take a list of integers; keep everything before the first zero, then subtract one from each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values divisible by 3, then ensure at least three items by appending zeros.", "out": "且串义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep items where x mod 3 equals zero, then ensure minimum length of three by adding zeros to the end.", "out": "且串义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything not divisible by three, then ensure at least three items by appending zeros.", "out": "且串义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter out everything except multiples of three, then ensure minimum length of three by adding zeros to the end.", "out": "且串义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only multiples of three, then ensure at least three items by appending zeros.", "out": "且串义"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiples of three only, then ensure minimum length of three by adding zeros to the end.", "out": "且串义"} {"kind": "builder", "in": "且串义", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "且串义", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep multiples of three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the list around, then drop non-positive values.", "out": "九丐七"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then flip the order around, then drop the negative numbers.", "out": "九丐七"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then put the elements backwards, then filter out the negative ones.", "out": "九丐七"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then reverse that for me, then remove all negative values.", "out": "九丐七"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip it backwards, then keep positive values only.", "out": "九丐七"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then make it backwards, then keep values above zero.", "out": "九丐七"} {"kind": "builder", "in": "九丐七", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(reversed(r))\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "九丐七", "out": "Take a list of people records (name, age); extract the ages, then reverse the order, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then cut the list at the first zero, then strip the signs.", "out": "丸久丏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then cut off after the first zero appears, then take abs of each.", "out": "丸久丏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take values up to (excluding) the first zero, then get the absolute value of everything.", "out": "丸久丏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the part before the first 0, then apply absolute value to the whole list.", "out": "丸久丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then truncate at the first zero, then make them all positive.", "out": "丸久丏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then delete everything starting with the first zero, then make every value non-negative.", "out": "丸久丏"} {"kind": "builder", "in": "丸久丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丸久丏", "out": "Take a list of integers; sort by absolute value, then keep everything before the first zero, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove both ends, then give the number of evens.", "out": "与为乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then trim the edges, then find how many values are divisible by two.", "out": "与为乓"} {"kind": "speaker", "in": "Take a list of integers; negate each, then trim one element off each end, then how many are even.", "out": "与为乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off the first and last, then get the total number of even values in the list.", "out": "与为乓"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first and last elements, then give me the count of even values.", "out": "与为乓"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the middle part, then I need to know how many of these are even.", "out": "与为乓"} {"kind": "builder", "in": "与为乓", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[1:-1]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "与为乓", "out": "Take a list of integers; negate each, then drop the first and last elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove all zero values, then stop at the first non-positive value.", "out": "丐举乂"} {"kind": "speaker", "in": "Take a list of integers; reverse, then exclude zeros, then keep the leading run of positive numbers.", "out": "丐举乂"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove all zero values, then take values while they are positive.", "out": "丐举乂"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then exclude zeros, then take positive values then stop.", "out": "丐举乂"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove all zero values, then keep going while positive.", "out": "丐举乂"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then exclude zeros, then stop at first non positive.", "out": "丐举乂"} {"kind": "builder", "in": "丐举乂", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丐举乂", "out": "Take a list of integers; reverse the order, then drop the zeros, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then flip the sign of each, then arrange in decreasing order.", "out": "七与专"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then turn positives to negatives and vice versa, then arrange in descending order.", "out": "七与专"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then flip the sign of each, then reverse sort.", "out": "七与专"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then turn positives to negatives and vice versa, then sort largest to smallest.", "out": "七与专"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then flip the sign of each, then sort by descending values.", "out": "七与专"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then turn positives to negatives and vice versa, then sort from highest to lowest.", "out": "七与专"} {"kind": "builder", "in": "七与专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "七与专", "out": "Take a list of integers; keep the positive numbers, then negate each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the list around, then count the elements.", "out": "为丐东"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then flip the order around, then how many items remain.", "out": "为丐东"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then put the elements backwards, then tell me the length.", "out": "为丐东"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then reverse that for me, then return the length.", "out": "为丐东"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip it backwards, then count them.", "out": "为丐东"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then make it backwards, then what's the count.", "out": "为丐东"} {"kind": "builder", "in": "为丐东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(reversed(r))\n return len(r)"} {"kind": "translator", "in": "为丐东", "out": "Take a list of integers; drop the first and last elements, then reverse the order, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then remove repeated strings, then true if a blank string is present.", "out": "丢丧乙"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then keep unique strings first appearance, then check for empty strings in the list.", "out": "丢丧乙"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then eliminate repeated strings preserve first occurrence, then check if there's an empty string.", "out": "丢丧乙"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then drop duplicate strings keeping the first, then does the collection contain an empty string value somewhere.", "out": "丢丧乙"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then dedupe, then whether any element is blank.", "out": "丢丧乙"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then remove duplicate strings keep first, then check for an empty string.", "out": "丢丧乙"} {"kind": "builder", "in": "丢丧乙", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = list(dict.fromkeys(r))\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丢丧乙", "out": "Take a list of strings; trim whitespace from each, then drop duplicate strings keeping the first, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then extend to length 3 using zeros, then true if already sorted smallest to largest.", "out": "乂义乎"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then pad to 3, then does this list go in ascending order.", "out": "乂义乎"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then extend to length 3 using zeros, then check if the list is in ascending order.", "out": "乂义乎"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then pad to 3, then is the list sorted.", "out": "乂义乎"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then extend to length 3 using zeros, then is it sorted.", "out": "乂义乎"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then pad to 3, then check if values are in increasing order.", "out": "乂义乎"} {"kind": "builder", "in": "乂义乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r == sorted(r)"} {"kind": "translator", "in": "乂义乎", "out": "Take a list of integers; take values while they are positive, then pad with zeros to at least three elements, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then make every value non-negative, then true only if all are positive.", "out": "丁丏乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then absolute value for all items, then do all of these have positive values.", "out": "丁丏乌"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take absolute values, then check if every value is positive.", "out": "丁丏乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn negatives into positives, then confirm all values are positive.", "out": "丁丏乌"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then abs each element, then all positive.", "out": "丁丏乌"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the absolute value of each, then check if every number is above zero.", "out": "丁丏乌"} {"kind": "builder", "in": "丁丏乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丁丏乌", "out": "Take a list of integers; keep the odd numbers, then take the absolute value of each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove both ends, then true if every value is unique.", "out": "丈为乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then trim the edges, then check for duplicates in the values.", "out": "丈为乏"} {"kind": "speaker", "in": "Take a list of integers; double each, then trim one element off each end, then do all values appear only once.", "out": "丈为乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off the first and last, then check that there are no duplicates.", "out": "丈为乏"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first and last elements, then are the values all unique.", "out": "丈为乏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the middle part, then check if all values are unique.", "out": "丈为乏"} {"kind": "builder", "in": "丈为乏", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:-1]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丈为乏", "out": "Take a list of integers; double each, then drop the first and last elements, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value, then count the elements.", "out": "串下东"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all, then how many items remain.", "out": "串下东"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value, then tell me the length.", "out": "串下东"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all, then return the length.", "out": "串下东"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value, then count them.", "out": "串下东"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all, then what's the count.", "out": "串下东"} {"kind": "builder", "in": "串下东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n return len(r)"} {"kind": "translator", "in": "串下东", "out": "Take a list of integers; keep multiples of three, then add one to each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only odd values, then give the number of evens.", "out": "专丁乓"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then eliminate the even numbers, then find how many values are divisible by two.", "out": "专丁乓"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only odd values, then how many are even.", "out": "专丁乓"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then eliminate the even numbers, then get the total number of even values in the list.", "out": "专丁乓"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only odd values, then give me the count of even values.", "out": "专丁乓"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then eliminate the even numbers, then I need to know how many of these are even.", "out": "专丁乓"} {"kind": "builder", "in": "专丁乓", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "专丁乓", "out": "Take a list of integers; sort descending, then keep the odd numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then decrement each value, then count the elements.", "out": "义不东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Lower each number by one, then how many items remain.", "out": "义不东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then reduce each by one, then tell me the length.", "out": "义不东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Subtract 1 from all, then return the length.", "out": "义不东"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Subtract one from each, then count them.", "out": "义不东"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Drop each by one, then what's the count.", "out": "义不东"} {"kind": "builder", "in": "义不东", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x - 1 for x in r]\n return len(r)"} {"kind": "translator", "in": "义不东", "out": "Take a list of integers; pad with zeros to at least three elements, then subtract one from each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first 3 elements, then drop the even numbers.", "out": "举丕丁"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove everything after the third, then strip out the evens.", "out": "举丕丁"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate to three items, then drop the even numbers.", "out": "举丕丁"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then show the first three, then strip out the evens.", "out": "举丕丁"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first three, then drop the even numbers.", "out": "举丕丁"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep first 3, then strip out the evens.", "out": "举丕丁"} {"kind": "builder", "in": "举丕丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "举丕丁", "out": "Take a list of integers; drop the zeros, then keep only the first three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then give back the total.", "out": "一丘丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then sum r.", "out": "一丘丙"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then add them up.", "out": "一丘丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then calculate the sum of all elements.", "out": "一丘丙"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then what's the total.", "out": "一丘丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then what do they add up to.", "out": "一丘丙"} {"kind": "builder", "in": "一丘丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [min(x, 10) for x in r]\n return sum(r)"} {"kind": "translator", "in": "一丘丙", "out": "Take a list of integers; keep the even numbers, then cap each value at 10, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove the first item, then count the elements.", "out": "乃世东"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Remove head, then how many items remain.", "out": "乃世东"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove the first item, then tell me the length.", "out": "乃世东"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Remove head, then return the length.", "out": "乃世东"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove the first item, then count them.", "out": "乃世东"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then Remove head, then what's the count.", "out": "乃世东"} {"kind": "builder", "in": "乃世东", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n return len(r)"} {"kind": "translator", "in": "乃世东", "out": "Take a list of integers; drop the leading negative values, then drop the first element, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort largest to smallest, then drop non-negative values.", "out": "丐专万"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort by descending values, then drop all positive numbers.", "out": "丐专万"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then sort from highest to lowest, then drop non-negative values.", "out": "丐专万"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then sort descending, then drop all positive numbers.", "out": "丐专万"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort largest first, then drop non-negative values.", "out": "丐专万"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort in descending order, then drop all positive numbers.", "out": "丐专万"} {"kind": "builder", "in": "丐专万", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, reverse=True)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丐专万", "out": "Take a list of integers; reverse the order, then sort descending, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then extend to length 3 using zeros, then take values up to (excluding) the first zero.", "out": "乂义久"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then pad to 3, then keep the part before the first 0.", "out": "乂义久"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then extend to length 3 using zeros, then truncate at the first zero.", "out": "乂义久"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then pad to 3, then delete everything starting with the first zero.", "out": "乂义久"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then extend to length 3 using zeros, then remove from the first zero onwards.", "out": "乂义久"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then pad to 3, then up to but not including the first zero.", "out": "乂义久"} {"kind": "builder", "in": "乂义久", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "乂义久", "out": "Take a list of integers; take values while they are positive, then pad with zeros to at least three elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove both ends, then shift each up by ten.", "out": "乂为丽"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then trim the edges, then increase all numbers by 10.", "out": "乂为丽"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then trim one element off each end, then add 10 to everything.", "out": "乂为丽"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then cut off the first and last, then give everything a boost of 10.", "out": "乂为丽"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove the first and last elements, then increment each by ten.", "out": "乂为丽"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep only the middle part, then add a constant 10 to each.", "out": "乂为丽"} {"kind": "builder", "in": "乂为丽", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乂为丽", "out": "Take a list of integers; take values while they are positive, then drop the first and last elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values divisible by 3, then reduce each by one.", "out": "么串不"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep items where x mod 3 equals zero, then Subtract 1 from all.", "out": "么串不"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then drop anything not divisible by three, then Subtract one from each.", "out": "么串不"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then filter out everything except multiples of three, then Drop each by one.", "out": "么串不"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only multiples of three, then Decrease all values by one.", "out": "么串不"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then multiples of three only, then Remove one from each value.", "out": "么串不"} {"kind": "builder", "in": "么串不", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 3 == 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "么串不", "out": "Take a list of integers; if empty, use a single zero, then keep multiples of three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then find the min, defaulting to 0.", "out": "下丽丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then minimum value, zero otherwise.", "out": "下丽丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then get the minimum value or zero if empty.", "out": "下丽丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then give me the min or 0.", "out": "下丽丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then return the smallest number, defaulting to 0.", "out": "下丽丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then return smallest or zero if empty.", "out": "下丽丛"} {"kind": "builder", "in": "下丽丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "下丽丛", "out": "Take a list of integers; add one to each, then add ten to each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then take the first 3 elements, then remove the initial run of negative numbers.", "out": "丹丕乃"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove everything after the third, then strip the front negatives.", "out": "丹丕乃"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then truncate to three items, then remove leading negative numbers.", "out": "丹丕乃"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then show the first three, then drop negatives from start.", "out": "丹丕乃"} {"kind": "speaker", "in": "Take a list of integers; last three only, then take the first three, then strip negative values from the start.", "out": "丹丕乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep first 3, then remove negatives before the first non-negative.", "out": "丹丕乃"} {"kind": "builder", "in": "丹丕乃", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丹丕乃", "out": "Take a list of integers; keep only the last three, then keep only the first three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values below zero, then keep only non-zero numbers.", "out": "且万举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then get the negative numbers, then strip the zeros.", "out": "且万举"} {"kind": "builder", "in": "且万举", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "且万举", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the negative numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then make every value non-negative, then keep only numbers above 5.", "out": "丘丏主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then absolute value for all items, then exclude values of 5 and below.", "out": "丘丏主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take absolute values, then remove anything 5 or less.", "out": "丘丏主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn negatives into positives, then filter to keep only values above 5.", "out": "丘丏主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then abs each element, then get rid of values that aren't greater than five.", "out": "丘丏主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the absolute value of each, then drop anything 5 or below.", "out": "丘丏主"} {"kind": "builder", "in": "丘丏主", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丘丏主", "out": "Take a list of integers; cap each value at 10, then take the absolute value of each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; double each, then multiply each value by itself, then arrange in decreasing order.", "out": "丈上专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then square them all, then arrange in descending order.", "out": "丈上专"} {"kind": "speaker", "in": "Take a list of integers; double each, then raise each to the power of two, then reverse sort.", "out": "丈上专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then I need each number multiplied by itself, then sort largest to smallest.", "out": "丈上专"} {"kind": "speaker", "in": "Take a list of integers; double each, then square all of them, then sort by descending values.", "out": "丈上专"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiply each element by itself, then sort from highest to lowest.", "out": "丈上专"} {"kind": "builder", "in": "丈上专", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丈上专", "out": "Take a list of integers; double each, then square each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort smallest to largest, then drop non-negative values.", "out": "主丑万"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Ascending sort, then drop all positive numbers.", "out": "主丑万"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then Sort this ascending, then drop non-negative values.", "out": "主丑万"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Sort lowest to highest, then drop all positive numbers.", "out": "主丑万"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Arrange from smallest to largest, then drop non-negative values.", "out": "主丑万"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort ascending, then drop all positive numbers.", "out": "主丑万"} {"kind": "builder", "in": "主丑万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r)\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "主丑万", "out": "Take a list of integers; keep values greater than five, then sort ascending, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements, then take values up to (excluding) the first zero.", "out": "义丹久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three, then keep the part before the first 0.", "out": "义丹久"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements, then truncate at the first zero.", "out": "义丹久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three, then delete everything starting with the first zero.", "out": "义丹久"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items, then remove from the first zero onwards.", "out": "义丹久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three, then up to but not including the first zero.", "out": "义丹久"} {"kind": "builder", "in": "义丹久", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "义丹久", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then increment each value, then replace an empty list with one zero.", "out": "丑下么"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then plus one for all, then zero it out if it's empty.", "out": "丑下么"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then increment each value, then use zero if the list is empty.", "out": "丑下么"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then plus one for all, then default to zero when empty.", "out": "丑下么"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then increment each value, then if there's nothing, put in a zero.", "out": "丑下么"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then plus one for all, then if no items, add a zero.", "out": "丑下么"} {"kind": "builder", "in": "丑下么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x + 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丑下么", "out": "Take a list of integers; sort ascending, then add one to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values above zero, then make each twice as big.", "out": "九七丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then filter for positive numbers, then multiply each by 2.", "out": "九七丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only positive numbers, then make each twice as big.", "out": "九七丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the positives, then multiply each by 2.", "out": "九七丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove negatives, then make each twice as big.", "out": "九七丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep the positive numbers, then multiply each by 2.", "out": "九七丈"} {"kind": "builder", "in": "九七丈", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "九七丈", "out": "Take a list of people records (name, age); extract the ages, then keep the positive numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove repeated values, then true if every value is unique.", "out": "专且乏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then unique values preserving order, then check for duplicates in the values.", "out": "专且乏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove repeated values, then do all values appear only once.", "out": "专且乏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then unique values preserving order, then check that there are no duplicates.", "out": "专且乏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove repeated values, then are the values all unique.", "out": "专且乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then unique values preserving order, then check if all values are unique.", "out": "专且乏"} {"kind": "builder", "in": "专且乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = list(dict.fromkeys(r))\n return len(r) == len(set(r))"} {"kind": "translator", "in": "专且乏", "out": "Take a list of integers; sort descending, then drop duplicates keeping first occurrence, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then cut the list at the first zero, then arrange in increasing order.", "out": "么久丑"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then cut off after the first zero appears, then Organize these ascending.", "out": "么久丑"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take values up to (excluding) the first zero, then Sort in ascending order.", "out": "么久丑"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the part before the first 0, then I need this sorted ascending.", "out": "么久丑"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then truncate at the first zero, then Put these in ascending order.", "out": "么久丑"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then delete everything starting with the first zero, then sort smallest to largest.", "out": "么久丑"} {"kind": "builder", "in": "么久丑", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "么久丑", "out": "Take a list of integers; if empty, use a single zero, then keep everything before the first zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the sign of each, then give back the product of all values.", "out": "乃与乐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then turn positives to negatives and vice versa, then product of the list.", "out": "乃与乐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then flip the sign of each, then what's the product.", "out": "乃与乐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then turn positives to negatives and vice versa, then what do they multiply to.", "out": "乃与乐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip the sign of each, then give me their product.", "out": "乃与乐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then turn positives to negatives and vice versa, then multiply them all together.", "out": "乃与乐"} {"kind": "builder", "in": "乃与乐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "乃与乐", "out": "Take a list of integers; drop the leading negative values, then negate each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then drop non-negative values.", "out": "一下万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then drop all positive numbers.", "out": "一下万"} {"kind": "builder", "in": "一下万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "一下万", "out": "Take a list of integers; keep the even numbers, then add one to each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the sign of each, then truncate to the last three items.", "out": "久与丹"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then turn positives to negatives and vice versa, then show only the last three.", "out": "久与丹"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then flip the sign of each, then remove all but the last three.", "out": "久与丹"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn positives to negatives and vice versa, then take the final 3 elements.", "out": "久与丹"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip the sign of each, then drop everything except the final three.", "out": "久与丹"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then turn positives to negatives and vice versa, then give me the last three elements.", "out": "久与丹"} {"kind": "builder", "in": "久与丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [-x for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "久与丹", "out": "Take a list of integers; keep everything before the first zero, then negate each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then drop anything 5 or below, then shift each up by ten.", "out": "丑主丽"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep only numbers greater than 5, then increase all numbers by 10.", "out": "丑主丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then filter for numbers above 5, then add 10 to everything.", "out": "丑主丽"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then give me values where x is greater than 5, then give everything a boost of 10.", "out": "丑主丽"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then show me only the values that are bigger than five, then increment each by ten.", "out": "丑主丽"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep values greater than five, then add a constant 10 to each.", "out": "丑主丽"} {"kind": "builder", "in": "丑主丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丑主丽", "out": "Take a list of integers; sort ascending, then keep values greater than five, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then cut the list at the first zero, then skip the first one.", "out": "与久世"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off after the first zero appears, then Discard the first element.", "out": "与久世"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take values up to (excluding) the first zero, then skip the first one.", "out": "与久世"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the part before the first 0, then Discard the first element.", "out": "与久世"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate at the first zero, then skip the first one.", "out": "与久世"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then delete everything starting with the first zero, then Discard the first element.", "out": "与久世"} {"kind": "builder", "in": "与久世", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n return r"} {"kind": "translator", "in": "与久世", "out": "Take a list of integers; negate each, then keep everything before the first zero, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values divisible by 3, then arrange in decreasing order.", "out": "下串专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep items where x mod 3 equals zero, then arrange in descending order.", "out": "下串专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything not divisible by three, then reverse sort.", "out": "下串专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then filter out everything except multiples of three, then sort largest to smallest.", "out": "下串专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only multiples of three, then sort by descending values.", "out": "下串专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiples of three only, then sort from highest to lowest.", "out": "下串专"} {"kind": "builder", "in": "下串专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "下串专", "out": "Take a list of integers; add one to each, then keep multiples of three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values above zero, then true only if all are positive.", "out": "久七乌"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then filter for positive numbers, then do all of these have positive values.", "out": "久七乌"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only positive numbers, then check if every value is positive.", "out": "久七乌"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep the positives, then confirm all values are positive.", "out": "久七乌"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove negatives, then all positive.", "out": "久七乌"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep the positive numbers, then check if every number is above zero.", "out": "久七乌"} {"kind": "builder", "in": "久七乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "久七乌", "out": "Take a list of integers; keep everything before the first zero, then keep the positive numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then decrement each value, then true if at least one even value.", "out": "久不之"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Lower each number by one, then any even.", "out": "久不之"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then reduce each by one, then true if at least one even value.", "out": "久不之"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Subtract 1 from all, then any even.", "out": "久不之"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Subtract one from each, then true if at least one even value.", "out": "久不之"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Drop each by one, then any even.", "out": "久不之"} {"kind": "builder", "in": "久不之", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "久不之", "out": "Take a list of integers; keep everything before the first zero, then subtract one from each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then strip the signs.", "out": "万丘丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then take abs of each.", "out": "万丘丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then get the absolute value of everything.", "out": "万丘丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then apply absolute value to the whole list.", "out": "万丘丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then clamp each to at most ten, then make them all positive.", "out": "万丘丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then don't let anything exceed 10, then make every value non-negative.", "out": "万丘丏"} {"kind": "builder", "in": "万丘丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "万丘丏", "out": "Take a list of integers; keep the negative numbers, then cap each value at 10, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then sort smallest to largest, then strip the signs.", "out": "乃丑丏"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then Ascending sort, then take abs of each.", "out": "乃丑丏"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then Sort this ascending, then get the absolute value of everything.", "out": "乃丑丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then Sort lowest to highest, then apply absolute value to the whole list.", "out": "乃丑丏"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then Arrange from smallest to largest, then make them all positive.", "out": "乃丑丏"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort ascending, then make every value non-negative.", "out": "乃丑丏"} {"kind": "builder", "in": "乃丑丏", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "乃丑丏", "out": "Take a list of integers; drop the leading negative values, then sort ascending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything 5 or below, then strip the signs.", "out": "义主丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only numbers greater than 5, then take abs of each.", "out": "义主丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then filter for numbers above 5, then get the absolute value of everything.", "out": "义主丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give me values where x is greater than 5, then apply absolute value to the whole list.", "out": "义主丏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then show me only the values that are bigger than five, then make them all positive.", "out": "义主丏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep values greater than five, then make every value non-negative.", "out": "义主丏"} {"kind": "builder", "in": "义主丏", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "义主丏", "out": "Take a list of integers; pad with zeros to at least three elements, then keep values greater than five, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then shift each up by ten.", "out": "万与丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then increase all numbers by 10.", "out": "万与丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then add 10 to everything.", "out": "万与丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then give everything a boost of 10.", "out": "万与丽"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then increment each by ten.", "out": "万与丽"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then add a constant 10 to each.", "out": "万与丽"} {"kind": "builder", "in": "万与丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "万与丽", "out": "Take a list of integers; keep the negative numbers, then negate each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything 5 or below, then count the elements.", "out": "下主东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only numbers greater than 5, then how many items remain.", "out": "下主东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then filter for numbers above 5, then tell me the length.", "out": "下主东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me values where x is greater than 5, then return the length.", "out": "下主东"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then show me only the values that are bigger than five, then count them.", "out": "下主东"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep values greater than five, then what's the count.", "out": "下主东"} {"kind": "builder", "in": "下主东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 5]\n return len(r)"} {"kind": "translator", "in": "下主东", "out": "Take a list of integers; add one to each, then keep values greater than five, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only odd values, then deduplicate the list.", "out": "专丁且"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then eliminate the even numbers, then remove repeats.", "out": "专丁且"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only odd values, then deduplicate the list.", "out": "专丁且"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then eliminate the even numbers, then remove repeats.", "out": "专丁且"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only odd values, then deduplicate the list.", "out": "专丁且"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then eliminate the even numbers, then remove repeats.", "out": "专丁且"} {"kind": "builder", "in": "专丁且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "专丁且", "out": "Take a list of integers; sort descending, then keep the odd numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove the first item, then multiply each by -1.", "out": "为世与"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Remove head, then negate.", "out": "为世与"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the first item, then multiply each by -1.", "out": "为世与"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Remove head, then negate.", "out": "为世与"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove the first item, then multiply each by -1.", "out": "为世与"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then Remove head, then negate.", "out": "为世与"} {"kind": "builder", "in": "为世与", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[1:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "为世与", "out": "Take a list of integers; drop the first and last elements, then drop the first element, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then drop the odd numbers.", "out": "为万一"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then filter out the odd numbers.", "out": "为万一"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then drop the odd numbers.", "out": "为万一"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then filter out the odd numbers.", "out": "为万一"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then drop the odd numbers.", "out": "为万一"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then filter out the odd numbers.", "out": "为万一"} {"kind": "builder", "in": "为万一", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "为万一", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first 3 elements, then multiply each by -1.", "out": "下丕与"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove everything after the third, then negate.", "out": "下丕与"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate to three items, then multiply each by -1.", "out": "下丕与"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then show the first three, then negate.", "out": "下丕与"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first three, then multiply each by -1.", "out": "下丕与"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep first 3, then negate.", "out": "下丕与"} {"kind": "builder", "in": "下丕与", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:3]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "下丕与", "out": "Take a list of integers; add one to each, then keep only the first three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then drop anything 5 or below, then drop anything not divisible by three.", "out": "七主串"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep only numbers greater than 5, then filter out everything except multiples of three.", "out": "七主串"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then filter for numbers above 5, then keep only multiples of three.", "out": "七主串"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then give me values where x is greater than 5, then multiples of three only.", "out": "七主串"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then show me only the values that are bigger than five, then filter for numbers divisible by three.", "out": "七主串"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep values greater than five, then give me only the values divisible by three.", "out": "七主串"} {"kind": "builder", "in": "七主串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "七主串", "out": "Take a list of integers; keep the positive numbers, then keep values greater than five, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the sign of each, then bump each up by one.", "out": "串与下"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then turn positives to negatives and vice versa, then increment each item.", "out": "串与下"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then flip the sign of each, then bump each up by one.", "out": "串与下"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn positives to negatives and vice versa, then increment each item.", "out": "串与下"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip the sign of each, then bump each up by one.", "out": "串与下"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then turn positives to negatives and vice versa, then increment each item.", "out": "串与下"} {"kind": "builder", "in": "串与下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "串与下", "out": "Take a list of integers; keep multiples of three, then negate each, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then arrange by magnitude ignoring sign.", "out": "丕丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then put them in order by magnitude.", "out": "丕丈丸"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then arrange in order of absolute value.", "out": "丕丈丸"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then sort by distance from zero.", "out": "丕丈丸"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then order by how far from zero.", "out": "丕丈丸"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then order by distance from zero.", "out": "丕丈丸"} {"kind": "builder", "in": "丕丈丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丕丈丸", "out": "Take a list of integers; keep only the first three, then double each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then stop at the first non-positive value.", "out": "世一乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then keep the leading run of positive numbers.", "out": "世一乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then take values while they are positive.", "out": "世一乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then take positive values then stop.", "out": "世一乂"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then keep going while positive.", "out": "世一乂"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then stop at first non positive.", "out": "世一乂"} {"kind": "builder", "in": "世一乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "世一乂", "out": "Take a list of integers; drop the first element, then keep the even numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then deduplicate the strings.", "out": "丞乖丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then filter out duplicate strings retain first.", "out": "丞乖丧"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then strip duplicates preserve order.", "out": "丞乖丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then remove repeated strings.", "out": "丞乖丧"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order the strings A to Z, then keep unique strings first appearance.", "out": "丞乖丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then make it alphabetical, then eliminate repeated strings preserve first occurrence.", "out": "丞乖丧"} {"kind": "builder", "in": "丞乖丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丞乖丧", "out": "Take a list of strings; lowercase each string, then sort alphabetically, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the final 3 elements, then drop the odd numbers.", "out": "义丹一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then drop everything except the final three, then filter out the odd numbers.", "out": "义丹一"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then give me the last three elements, then drop the odd numbers.", "out": "义丹一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep only the last three, then filter out the odd numbers.", "out": "义丹一"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the final three items, then drop the odd numbers.", "out": "义丹一"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the last three, then filter out the odd numbers.", "out": "义丹一"} {"kind": "builder", "in": "义丹一", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "义丹一", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the last three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove the first item, then put the elements backwards.", "out": "丸世丐"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Remove head, then reverse that for me.", "out": "丸世丐"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the first item, then flip it backwards.", "out": "丸世丐"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Remove head, then make it backwards.", "out": "丸世丐"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first item, then reverse the list.", "out": "丸世丐"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Remove head, then invert the sequence.", "out": "丸世丐"} {"kind": "builder", "in": "丸世丐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丸世丐", "out": "Take a list of integers; sort by absolute value, then drop the first element, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each value by itself, then shift each up by ten.", "out": "七上丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then square them all, then increase all numbers by 10.", "out": "七上丽"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then raise each to the power of two, then add 10 to everything.", "out": "七上丽"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then I need each number multiplied by itself, then give everything a boost of 10.", "out": "七上丽"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then square all of them, then increment each by ten.", "out": "七上丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then multiply each element by itself, then add a constant 10 to each.", "out": "七上丽"} {"kind": "builder", "in": "七上丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "七上丽", "out": "Take a list of integers; keep the positive numbers, then square each, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then add '#' to the start of each string, then make every string lowercase.", "out": "丨乘丞"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make each one start with a hash, then make it all lowercase.", "out": "丨乘丞"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then add '#' to the start of each string, then make every string lowercase.", "out": "丨乘丞"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make each one start with a hash, then make it all lowercase.", "out": "丨乘丞"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then add '#' to the start of each string, then make every string lowercase.", "out": "丨乘丞"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make each one start with a hash, then make it all lowercase.", "out": "丨乘丞"} {"kind": "builder", "in": "丨乘丞", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = ['#' + s for s in r]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "丨乘丞", "out": "Take a list of strings; keep the first character of each (dropping empties), then prefix each with a hash, then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values divisible by 3, then multiply each by -1.", "out": "丁串与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep items where x mod 3 equals zero, then negate.", "out": "丁串与"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then drop anything not divisible by three, then multiply each by -1.", "out": "丁串与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter out everything except multiples of three, then negate.", "out": "丁串与"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only multiples of three, then multiply each by -1.", "out": "丁串与"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiples of three only, then negate.", "out": "丁串与"} {"kind": "builder", "in": "丁串与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丁串与", "out": "Take a list of integers; keep the odd numbers, then keep multiples of three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then take the first 3 elements, then stop at the first non-positive value.", "out": "丹丕乂"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove everything after the third, then keep the leading run of positive numbers.", "out": "丹丕乂"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then truncate to three items, then take values while they are positive.", "out": "丹丕乂"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then show the first three, then take positive values then stop.", "out": "丹丕乂"} {"kind": "speaker", "in": "Take a list of integers; last three only, then take the first three, then keep going while positive.", "out": "丹丕乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep first 3, then stop at first non positive.", "out": "丹丕乂"} {"kind": "builder", "in": "丹丕乂", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丹丕乂", "out": "Take a list of integers; keep only the last three, then keep only the first three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then order by distance from zero, then count the elements.", "out": "丐丸东"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort based on absolute value, then how many items remain.", "out": "丐丸东"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then organize by magnitude, then tell me the length.", "out": "丐丸东"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then arrange by absolute value ascending, then return the length.", "out": "丐丸东"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort from smallest to largest absolute value, then count them.", "out": "丐丸东"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort by absolute value, then what's the count.", "out": "丐丸东"} {"kind": "builder", "in": "丐丸东", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, key=abs)\n return len(r)"} {"kind": "translator", "in": "丐丸东", "out": "Take a list of integers; reverse the order, then sort by absolute value, then return how many remain."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then strip spaces around each string, then return them as one comma-separated string.", "out": "丞丢中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then remove leading and trailing spaces, then separate by comma.", "out": "丞丢中"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then remove whitespace from each item, then join with commas.", "out": "丞丢中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then clean whitespace from each entry, then comma join.", "out": "丞丢中"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then trim each string, then combine using commas.", "out": "丞丢中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then trim whitespace from each, then connect with commas between each item.", "out": "丞丢中"} {"kind": "builder", "in": "丞丢中", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s.strip() for s in r]\n return ','.join(r)"} {"kind": "translator", "in": "丞丢中", "out": "Take a list of strings; lowercase each string, then trim whitespace from each, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then deduplicate the list.", "out": "丏丕且"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then remove repeats.", "out": "丏丕且"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then deduplicate the list.", "out": "丏丕且"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then remove repeats.", "out": "丏丕且"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then deduplicate the list.", "out": "丏丕且"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then remove repeats.", "out": "丏丕且"} {"kind": "builder", "in": "丏丕且", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丏丕且", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the final 3 elements, then arrange in decreasing order.", "out": "久丹专"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then drop everything except the final three, then arrange in descending order.", "out": "久丹专"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then give me the last three elements, then reverse sort.", "out": "久丹专"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep only the last three, then sort largest to smallest.", "out": "久丹专"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep the final three items, then sort by descending values.", "out": "久丹专"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the last three, then sort from highest to lowest.", "out": "久丹专"} {"kind": "builder", "in": "久丹专", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "久丹专", "out": "Take a list of integers; keep everything before the first zero, then keep only the last three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then drop anything 5 or below, then give back the total.", "out": "久主丙"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep only numbers greater than 5, then sum r.", "out": "久主丙"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then filter for numbers above 5, then add them up.", "out": "久主丙"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then give me values where x is greater than 5, then calculate the sum of all elements.", "out": "久主丙"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then show me only the values that are bigger than five, then what's the total.", "out": "久主丙"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep values greater than five, then what do they add up to.", "out": "久主丙"} {"kind": "builder", "in": "久主丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n return sum(r)"} {"kind": "translator", "in": "久主丙", "out": "Take a list of integers; keep everything before the first zero, then keep values greater than five, then return their sum."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the final 3 elements, then keep only numbers above 5.", "out": "九丹主"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then drop everything except the final three, then exclude values of 5 and below.", "out": "九丹主"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then give me the last three elements, then remove anything 5 or less.", "out": "九丹主"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep only the last three, then filter to keep only values above 5.", "out": "九丹主"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep the final three items, then get rid of values that aren't greater than five.", "out": "九丹主"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the last three, then drop anything 5 or below.", "out": "九丹主"} {"kind": "builder", "in": "九丹主", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[-3:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "九丹主", "out": "Take a list of people records (name, age); extract the ages, then keep only the last three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros, then arrange by magnitude ignoring sign.", "out": "为义丸"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3, then put them in order by magnitude.", "out": "为义丸"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros, then arrange in order of absolute value.", "out": "为义丸"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3, then sort by distance from zero.", "out": "为义丸"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros, then order by how far from zero.", "out": "为义丸"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3, then order by distance from zero.", "out": "为义丸"} {"kind": "builder", "in": "为义丸", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "为义丸", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the sign of each, then count the elements.", "out": "一与东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn positives to negatives and vice versa, then how many items remain.", "out": "一与东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the sign of each, then tell me the length.", "out": "一与东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn positives to negatives and vice versa, then return the length.", "out": "一与东"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the sign of each, then count them.", "out": "一与东"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn positives to negatives and vice versa, then what's the count.", "out": "一与东"} {"kind": "builder", "in": "一与东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [-x for x in r]\n return len(r)"} {"kind": "translator", "in": "一与东", "out": "Take a list of integers; keep the even numbers, then negate each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements, then ensure at least three items by appending zeros.", "out": "丕丹义"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three, then ensure minimum length of three by adding zeros to the end.", "out": "丕丹义"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements, then ensure at least three items by appending zeros.", "out": "丕丹义"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three, then ensure minimum length of three by adding zeros to the end.", "out": "丕丹义"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items, then ensure at least three items by appending zeros.", "out": "丕丹义"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three, then ensure minimum length of three by adding zeros to the end.", "out": "丕丹义"} {"kind": "builder", "in": "丕丹义", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丕丹义", "out": "Take a list of integers; keep only the first three, then keep only the last three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then multiply each by two, then strip the signs.", "out": "丑丈丏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then double each item in the list, then take abs of each.", "out": "丑丈丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then multiply each by two, then get the absolute value of everything.", "out": "丑丈丏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then double each item in the list, then apply absolute value to the whole list.", "out": "丑丈丏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then multiply each by two, then make them all positive.", "out": "丑丈丏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then double each item in the list, then make every value non-negative.", "out": "丑丈丏"} {"kind": "builder", "in": "丑丈丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丑丈丏", "out": "Take a list of integers; sort ascending, then double each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the sign of each, then trim one element off each end.", "out": "久与为"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then turn positives to negatives and vice versa, then cut off the first and last.", "out": "久与为"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then flip the sign of each, then remove the first and last elements.", "out": "久与为"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn positives to negatives and vice versa, then keep only the middle part.", "out": "久与为"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip the sign of each, then drop first and last.", "out": "久与为"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then turn positives to negatives and vice versa, then eliminate the outermost elements.", "out": "久与为"} {"kind": "builder", "in": "久与为", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [-x for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "久与为", "out": "Take a list of integers; keep everything before the first zero, then negate each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values below zero, then put the elements backwards.", "out": "丈万丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the negative numbers, then reverse that for me.", "out": "丈万丐"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values below zero, then flip it backwards.", "out": "丈万丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the negative numbers, then make it backwards.", "out": "丈万丐"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values below zero, then reverse the list.", "out": "丈万丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then get the negative numbers, then invert the sequence.", "out": "丈万丐"} {"kind": "builder", "in": "丈万丐", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丈万丐", "out": "Take a list of integers; double each, then keep the negative numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then multiply each value by itself, then give back the total.", "out": "九上丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then square them all, then sum r.", "out": "九上丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then raise each to the power of two, then add them up.", "out": "九上丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then I need each number multiplied by itself, then calculate the sum of all elements.", "out": "九上丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then square all of them, then what's the total.", "out": "九上丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiply each element by itself, then what do they add up to.", "out": "九上丙"} {"kind": "builder", "in": "九上丙", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x * x for x in r]\n return sum(r)"} {"kind": "translator", "in": "九上丙", "out": "Take a list of people records (name, age); extract the ages, then square each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then clamp each to at most ten, then keep only numbers above 5.", "out": "不丘主"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then don't let anything exceed 10, then exclude values of 5 and below.", "out": "不丘主"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then clamp each to at most ten, then remove anything 5 or less.", "out": "不丘主"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then don't let anything exceed 10, then filter to keep only values above 5.", "out": "不丘主"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then clamp each to at most ten, then get rid of values that aren't greater than five.", "out": "不丘主"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then don't let anything exceed 10, then drop anything 5 or below.", "out": "不丘主"} {"kind": "builder", "in": "不丘主", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "不丘主", "out": "Take a list of integers; subtract one from each, then cap each value at 10, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then cut the list at the first zero, then replace an empty list with one zero.", "out": "为久么"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then cut off after the first zero appears, then zero it out if it's empty.", "out": "为久么"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take values up to (excluding) the first zero, then use zero if the list is empty.", "out": "为久么"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the part before the first 0, then default to zero when empty.", "out": "为久么"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then truncate at the first zero, then if there's nothing, put in a zero.", "out": "为久么"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then delete everything starting with the first zero, then if no items, add a zero.", "out": "为久么"} {"kind": "builder", "in": "为久么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "为久么", "out": "Take a list of integers; drop the first and last elements, then keep everything before the first zero, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then convert each to lower case, then arrange in lexicographic order.", "out": "丧丞乖"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then lowercase each one, then sort by letter.", "out": "丧丞乖"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then convert each to lower case, then arrange in lexicographic order.", "out": "丧丞乖"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then lowercase each one, then sort by letter.", "out": "丧丞乖"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then convert each to lower case, then arrange in lexicographic order.", "out": "丧丞乖"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then lowercase each one, then sort by letter.", "out": "丧丞乖"} {"kind": "builder", "in": "丧丞乖", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s.lower() for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丧丞乖", "out": "Take a list of strings; drop duplicate strings keeping the first, then lowercase each string, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then skip negatives at the start, then multiply each by -1.", "out": "一乃与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then remove all negatives at the front, then negate.", "out": "一乃与"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove the initial run of negative numbers, then multiply each by -1.", "out": "一乃与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then strip the front negatives, then negate.", "out": "一乃与"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove leading negative numbers, then multiply each by -1.", "out": "一乃与"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop negatives from start, then negate.", "out": "一乃与"} {"kind": "builder", "in": "一乃与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "一乃与", "out": "Take a list of integers; keep the even numbers, then drop the leading negative values, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort largest to smallest, then true if already sorted smallest to largest.", "out": "万专乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort by descending values, then does this list go in ascending order.", "out": "万专乎"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort from highest to lowest, then check if the list is in ascending order.", "out": "万专乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort descending, then is the list sorted.", "out": "万专乎"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort largest first, then is it sorted.", "out": "万专乎"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort in descending order, then check if values are in increasing order.", "out": "万专乎"} {"kind": "builder", "in": "万专乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r, reverse=True)\n return r == sorted(r)"} {"kind": "translator", "in": "万专乎", "out": "Take a list of integers; keep the negative numbers, then sort descending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then make every value non-negative, then drop anything not divisible by three.", "out": "万丏串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then absolute value for all items, then filter out everything except multiples of three.", "out": "万丏串"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take absolute values, then keep only multiples of three.", "out": "万丏串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn negatives into positives, then multiples of three only.", "out": "万丏串"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then abs each element, then filter for numbers divisible by three.", "out": "万丏串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the absolute value of each, then give me only the values divisible by three.", "out": "万丏串"} {"kind": "builder", "in": "万丏串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "万丏串", "out": "Take a list of integers; keep the negative numbers, then take the absolute value of each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values divisible by 3, then remove the initial run of negative numbers.", "out": "九串乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then keep items where x mod 3 equals zero, then strip the front negatives.", "out": "九串乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then drop anything not divisible by three, then remove leading negative numbers.", "out": "九串乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then filter out everything except multiples of three, then drop negatives from start.", "out": "九串乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only multiples of three, then strip negative values from the start.", "out": "九串乃"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiples of three only, then remove negatives before the first non-negative.", "out": "九串乃"} {"kind": "builder", "in": "九串乃", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 3 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "九串乃", "out": "Take a list of people records (name, age); extract the ages, then keep multiples of three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then give back the product of all values.", "out": "丕丈乐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then product of the list.", "out": "丕丈乐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then what's the product.", "out": "丕丈乐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then what do they multiply to.", "out": "丕丈乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then give me their product.", "out": "丕丈乐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then multiply them all together.", "out": "丕丈乐"} {"kind": "builder", "in": "丕丈乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丕丈乐", "out": "Take a list of integers; keep only the first three, then double each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only odd values, then skip the first one.", "out": "上丁世"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then eliminate the even numbers, then Discard the first element.", "out": "上丁世"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only odd values, then skip the first one.", "out": "上丁世"} {"kind": "speaker", "in": "Take a list of integers; square them all, then eliminate the even numbers, then Discard the first element.", "out": "上丁世"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only odd values, then skip the first one.", "out": "上丁世"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then eliminate the even numbers, then Discard the first element.", "out": "上丁世"} {"kind": "builder", "in": "上丁世", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "上丁世", "out": "Take a list of integers; square each, then keep the odd numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; square each, then skip negatives at the start, then true if any value equals zero.", "out": "上乃乍"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove all negatives at the front, then check for zero.", "out": "上乃乍"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the initial run of negative numbers, then true if any value equals zero.", "out": "上乃乍"} {"kind": "speaker", "in": "Take a list of integers; square them all, then strip the front negatives, then check for zero.", "out": "上乃乍"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove leading negative numbers, then true if any value equals zero.", "out": "上乃乍"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then drop negatives from start, then check for zero.", "out": "上乃乍"} {"kind": "builder", "in": "上乃乍", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return 0 in r"} {"kind": "translator", "in": "上乃乍", "out": "Take a list of integers; square each, then drop the leading negative values, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then make every value non-negative, then true if every value is unique.", "out": "且丏乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then absolute value for all items, then check for duplicates in the values.", "out": "且丏乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take absolute values, then do all values appear only once.", "out": "且丏乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn negatives into positives, then check that there are no duplicates.", "out": "且丏乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then abs each element, then are the values all unique.", "out": "且丏乏"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then take the absolute value of each, then check if all values are unique.", "out": "且丏乏"} {"kind": "builder", "in": "且丏乏", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [abs(x) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "且丏乏", "out": "Take a list of integers; drop duplicates keeping first occurrence, then take the absolute value of each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then sort smallest to largest, then give back the total.", "out": "久丑丙"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Ascending sort, then sum r.", "out": "久丑丙"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then Sort this ascending, then add them up.", "out": "久丑丙"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Sort lowest to highest, then calculate the sum of all elements.", "out": "久丑丙"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Arrange from smallest to largest, then what's the total.", "out": "久丑丙"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then sort ascending, then what do they add up to.", "out": "久丑丙"} {"kind": "builder", "in": "久丑丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n return sum(r)"} {"kind": "translator", "in": "久丑丙", "out": "Take a list of integers; keep everything before the first zero, then sort ascending, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the final 3 elements, then give back the product of all values.", "out": "丘丹乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop everything except the final three, then product of the list.", "out": "丘丹乐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give me the last three elements, then what's the product.", "out": "丘丹乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the last three, then what do they multiply to.", "out": "丘丹乐"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the final three items, then give me their product.", "out": "丘丹乐"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the last three, then multiply them all together.", "out": "丘丹乐"} {"kind": "builder", "in": "丘丹乐", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丘丹乐", "out": "Take a list of integers; cap each value at 10, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then truncate to the last three items.", "out": "举与丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then show only the last three.", "out": "举与丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then remove all but the last three.", "out": "举与丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then take the final 3 elements.", "out": "举与丹"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then drop everything except the final three.", "out": "举与丹"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then give me the last three elements.", "out": "举与丹"} {"kind": "builder", "in": "举与丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "举与丹", "out": "Take a list of integers; drop the zeros, then negate each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then decrement each value, then true if any value equals zero.", "out": "久不乍"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Lower each number by one, then check for zero.", "out": "久不乍"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then reduce each by one, then true if any value equals zero.", "out": "久不乍"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Subtract 1 from all, then check for zero.", "out": "久不乍"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then Subtract one from each, then true if any value equals zero.", "out": "久不乍"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Drop each by one, then check for zero.", "out": "久不乍"} {"kind": "builder", "in": "久不乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x - 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "久不乍", "out": "Take a list of integers; keep everything before the first zero, then subtract one from each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove repeated values, then drop the odd numbers.", "out": "九且一"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then unique values preserving order, then filter out the odd numbers.", "out": "九且一"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove repeated values, then drop the odd numbers.", "out": "九且一"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then unique values preserving order, then filter out the odd numbers.", "out": "九且一"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove repeated values, then drop the odd numbers.", "out": "九且一"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then unique values preserving order, then filter out the odd numbers.", "out": "九且一"} {"kind": "builder", "in": "九且一", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "九且一", "out": "Take a list of people records (name, age); extract the ages, then drop duplicates keeping first occurrence, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then arrange by magnitude ignoring sign.", "out": "丈丁丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then put them in order by magnitude.", "out": "丈丁丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then arrange in order of absolute value.", "out": "丈丁丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then sort by distance from zero.", "out": "丈丁丸"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then order by how far from zero.", "out": "丈丁丸"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then order by distance from zero.", "out": "丈丁丸"} {"kind": "builder", "in": "丈丁丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丈丁丸", "out": "Take a list of integers; double each, then keep the odd numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove all zero values, then true if any value equals zero.", "out": "专举乍"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then exclude zeros, then check for zero.", "out": "专举乍"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove all zero values, then true if any value equals zero.", "out": "专举乍"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then exclude zeros, then check for zero.", "out": "专举乍"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove all zero values, then true if any value equals zero.", "out": "专举乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then exclude zeros, then check for zero.", "out": "专举乍"} {"kind": "builder", "in": "专举乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n return 0 in r"} {"kind": "translator", "in": "专举乍", "out": "Take a list of integers; sort descending, then drop the zeros, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then give the number of evens.", "out": "且丁乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then find how many values are divisible by two.", "out": "且丁乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then how many are even.", "out": "且丁乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then get the total number of even values in the list.", "out": "且丁乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then give me the count of even values.", "out": "且丁乓"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then I need to know how many of these are even.", "out": "且丁乓"} {"kind": "builder", "in": "且丁乓", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "且丁乓", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the odd numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increment each value, then take values up to (excluding) the first zero.", "out": "丹下久"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then plus one for all, then keep the part before the first 0.", "out": "丹下久"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then increment each value, then truncate at the first zero.", "out": "丹下久"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then plus one for all, then delete everything starting with the first zero.", "out": "丹下久"} {"kind": "speaker", "in": "Take a list of integers; last three only, then increment each value, then remove from the first zero onwards.", "out": "丹下久"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then plus one for all, then up to but not including the first zero.", "out": "丹下久"} {"kind": "builder", "in": "丹下久", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丹下久", "out": "Take a list of integers; keep only the last three, then add one to each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then order by distance from zero, then true if every value is unique.", "out": "专丸乏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then sort based on absolute value, then check for duplicates in the values.", "out": "专丸乏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then organize by magnitude, then do all values appear only once.", "out": "专丸乏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then arrange by absolute value ascending, then check that there are no duplicates.", "out": "专丸乏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then sort from smallest to largest absolute value, then are the values all unique.", "out": "专丸乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort by absolute value, then check if all values are unique.", "out": "专丸乏"} {"kind": "builder", "in": "专丸乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "专丸乏", "out": "Take a list of integers; sort descending, then sort by absolute value, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then drop anything 5 or below, then skip the first one.", "out": "久主世"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep only numbers greater than 5, then Discard the first element.", "out": "久主世"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then filter for numbers above 5, then skip the first one.", "out": "久主世"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then give me values where x is greater than 5, then Discard the first element.", "out": "久主世"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then show me only the values that are bigger than five, then skip the first one.", "out": "久主世"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep values greater than five, then Discard the first element.", "out": "久主世"} {"kind": "builder", "in": "久主世", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n r = r[1:]\n return r"} {"kind": "translator", "in": "久主世", "out": "Take a list of integers; keep everything before the first zero, then keep values greater than five, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then drop the even numbers.", "out": "丹久丁"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then strip out the evens.", "out": "丹久丁"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then drop the even numbers.", "out": "丹久丁"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then strip out the evens.", "out": "丹久丁"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then drop the even numbers.", "out": "丹久丁"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then strip out the evens.", "out": "丹久丁"} {"kind": "builder", "in": "丹久丁", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丹久丁", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then drop non-positive values.", "out": "丈丁七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then drop the negative numbers.", "out": "丈丁七"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then filter out the negative ones.", "out": "丈丁七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then remove all negative values.", "out": "丈丁七"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then keep positive values only.", "out": "丈丁七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then keep values above zero.", "out": "丈丁七"} {"kind": "builder", "in": "丈丁七", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丈丁七", "out": "Take a list of integers; double each, then keep the odd numbers, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove the first item, then true only if all are positive.", "out": "七世乌"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Remove head, then do all of these have positive values.", "out": "七世乌"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove the first item, then check if every value is positive.", "out": "七世乌"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Remove head, then confirm all values are positive.", "out": "七世乌"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove the first item, then all positive.", "out": "七世乌"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Remove head, then check if every number is above zero.", "out": "七世乌"} {"kind": "builder", "in": "七世乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[1:]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "七世乌", "out": "Take a list of integers; keep the positive numbers, then drop the first element, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then true if any value equals zero.", "out": "么主乍"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then check for zero.", "out": "么主乍"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then true if any value equals zero.", "out": "么主乍"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then check for zero.", "out": "么主乍"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then true if any value equals zero.", "out": "么主乍"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then check for zero.", "out": "么主乍"} {"kind": "builder", "in": "么主乍", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n return 0 in r"} {"kind": "translator", "in": "么主乍", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything 5 or below, then truncate to three items.", "out": "丈主丕"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only numbers greater than 5, then show the first three.", "out": "丈主丕"} {"kind": "speaker", "in": "Take a list of integers; double each, then filter for numbers above 5, then take the first three.", "out": "丈主丕"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me values where x is greater than 5, then keep first 3.", "out": "丈主丕"} {"kind": "speaker", "in": "Take a list of integers; double each, then show me only the values that are bigger than five, then truncate to first three.", "out": "丈主丕"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep values greater than five, then first three.", "out": "丈主丕"} {"kind": "builder", "in": "丈主丕", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丈主丕", "out": "Take a list of integers; double each, then keep values greater than five, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then make every value non-negative, then multiply each by -1.", "out": "不丏与"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then absolute value for all items, then negate.", "out": "不丏与"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take absolute values, then multiply each by -1.", "out": "不丏与"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn negatives into positives, then negate.", "out": "不丏与"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then abs each element, then multiply each by -1.", "out": "不丏与"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the absolute value of each, then negate.", "out": "不丏与"} {"kind": "builder", "in": "不丏与", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "不丏与", "out": "Take a list of integers; subtract one from each, then take the absolute value of each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then sort largest to smallest, then stop at the first non-positive value.", "out": "丑专乂"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort by descending values, then keep the leading run of positive numbers.", "out": "丑专乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then sort from highest to lowest, then take values while they are positive.", "out": "丑专乂"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then sort descending, then take positive values then stop.", "out": "丑专乂"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort largest first, then keep going while positive.", "out": "丑专乂"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort in descending order, then stop at first non positive.", "out": "丑专乂"} {"kind": "builder", "in": "丑专乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丑专乂", "out": "Take a list of integers; sort ascending, then sort descending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then drop anything 5 or below, then find the min, defaulting to 0.", "out": "七主丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then keep only numbers greater than 5, then minimum value, zero otherwise.", "out": "七主丛"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then filter for numbers above 5, then get the minimum value or zero if empty.", "out": "七主丛"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then give me values where x is greater than 5, then give me the min or 0.", "out": "七主丛"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then show me only the values that are bigger than five, then return the smallest number, defaulting to 0.", "out": "七主丛"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then keep values greater than five, then return smallest or zero if empty.", "out": "七主丛"} {"kind": "builder", "in": "七主丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x > 5]\n return min(r) if r else 0"} {"kind": "translator", "in": "七主丛", "out": "Take a list of integers; keep the positive numbers, then keep values greater than five, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then order by distance from zero, then give back the product of all values.", "out": "一丸乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort based on absolute value, then product of the list.", "out": "一丸乐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then organize by magnitude, then what's the product.", "out": "一丸乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then arrange by absolute value ascending, then what do they multiply to.", "out": "一丸乐"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from smallest to largest absolute value, then give me their product.", "out": "一丸乐"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by absolute value, then multiply them all together.", "out": "一丸乐"} {"kind": "builder", "in": "一丸乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, key=abs)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "一丸乐", "out": "Take a list of integers; keep the even numbers, then sort by absolute value, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort smallest to largest, then true if any value equals zero.", "out": "一丑乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Ascending sort, then check for zero.", "out": "一丑乍"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Sort this ascending, then true if any value equals zero.", "out": "一丑乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then Sort lowest to highest, then check for zero.", "out": "一丑乍"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then Arrange from smallest to largest, then true if any value equals zero.", "out": "一丑乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort ascending, then check for zero.", "out": "一丑乍"} {"kind": "builder", "in": "一丑乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n return 0 in r"} {"kind": "translator", "in": "一丑乍", "out": "Take a list of integers; keep the even numbers, then sort ascending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest to smallest, then give the earliest even value or zero.", "out": "义专乒"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by descending values, then fetch the first even element, default to 0.", "out": "义专乒"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from highest to lowest, then give the earliest even value or zero.", "out": "义专乒"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort descending, then fetch the first even element, default to 0.", "out": "义专乒"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest first, then give the earliest even value or zero.", "out": "义专乒"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort in descending order, then fetch the first even element, default to 0.", "out": "义专乒"} {"kind": "builder", "in": "义专乒", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "义专乒", "out": "Take a list of integers; pad with zeros to at least three elements, then sort descending, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only odd values, then true if any value equals zero.", "out": "不丁乍"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then eliminate the even numbers, then check for zero.", "out": "不丁乍"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only odd values, then true if any value equals zero.", "out": "不丁乍"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then eliminate the even numbers, then check for zero.", "out": "不丁乍"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only odd values, then true if any value equals zero.", "out": "不丁乍"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then eliminate the even numbers, then check for zero.", "out": "不丁乍"} {"kind": "builder", "in": "不丁乍", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return 0 in r"} {"kind": "translator", "in": "不丁乍", "out": "Take a list of integers; subtract one from each, then keep the odd numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then make every value non-negative, then reduce each by one.", "out": "义丏不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then absolute value for all items, then Subtract 1 from all.", "out": "义丏不"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take absolute values, then Subtract one from each.", "out": "义丏不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn negatives into positives, then Drop each by one.", "out": "义丏不"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then abs each element, then Decrease all values by one.", "out": "义丏不"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the absolute value of each, then Remove one from each value.", "out": "义丏不"} {"kind": "builder", "in": "义丏不", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "义丏不", "out": "Take a list of integers; pad with zeros to at least three elements, then take the absolute value of each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove all zero values, then bump each up by one.", "out": "丏举下"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then exclude zeros, then increment each item.", "out": "丏举下"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove all zero values, then bump each up by one.", "out": "丏举下"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then exclude zeros, then increment each item.", "out": "丏举下"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove all zero values, then bump each up by one.", "out": "丏举下"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then exclude zeros, then increment each item.", "out": "丏举下"} {"kind": "builder", "in": "丏举下", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丏举下", "out": "Take a list of integers; take the absolute value of each, then drop the zeros, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove the first item, then drop anything not divisible by three.", "out": "么世串"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Remove head, then filter out everything except multiples of three.", "out": "么世串"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove the first item, then keep only multiples of three.", "out": "么世串"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Remove head, then multiples of three only.", "out": "么世串"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first item, then filter for numbers divisible by three.", "out": "么世串"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Remove head, then give me only the values divisible by three.", "out": "么世串"} {"kind": "builder", "in": "么世串", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "么世串", "out": "Take a list of integers; if empty, use a single zero, then drop the first element, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep the leading run of positive numbers, then strip the signs.", "out": "不乂丏"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then take values while they are positive, then take abs of each.", "out": "不乂丏"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take positive values then stop, then get the absolute value of everything.", "out": "不乂丏"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep going while positive, then apply absolute value to the whole list.", "out": "不乂丏"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then stop at first non positive, then make them all positive.", "out": "不乂丏"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take while greater than zero, then make every value non-negative.", "out": "不乂丏"} {"kind": "builder", "in": "不乂丏", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "不乂丏", "out": "Take a list of integers; subtract one from each, then take values while they are positive, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove repeated values, then bump each up by one.", "out": "世且下"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then unique values preserving order, then increment each item.", "out": "世且下"} {"kind": "builder", "in": "世且下", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "世且下", "out": "Take a list of integers; drop the first element, then drop duplicates keeping first occurrence, then add one to each."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then order the strings A to Z, then return them as one comma-separated string.", "out": "两乖中"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then make it alphabetical, then separate by comma.", "out": "两乖中"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then order the strings A to Z, then join with commas.", "out": "两乖中"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then make it alphabetical, then comma join.", "out": "两乖中"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then order the strings A to Z, then combine using commas.", "out": "两乖中"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then make it alphabetical, then connect with commas between each item.", "out": "两乖中"} {"kind": "builder", "in": "两乖中", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = sorted(r)\n return ','.join(r)"} {"kind": "translator", "in": "两乖中", "out": "Take a list of strings; drop empty strings, then sort alphabetically, then join them with commas."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then strip spaces around each string, then arrange by string length ascending.", "out": "乖丢严"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove leading and trailing spaces, then length sort.", "out": "乖丢严"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove whitespace from each item, then sort by length shortest first.", "out": "乖丢严"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then clean whitespace from each entry, then organize by string length least to greatest.", "out": "乖丢严"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then trim each string, then shortest strings first.", "out": "乖丢严"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then trim whitespace from each, then i want them ordered by how short they are.", "out": "乖丢严"} {"kind": "builder", "in": "乖丢严", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s.strip() for s in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "乖丢严", "out": "Take a list of strings; sort alphabetically, then trim whitespace from each, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort smallest to largest, then keep only non-zero numbers.", "out": "丹丑举"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Ascending sort, then strip the zeros.", "out": "丹丑举"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then Sort this ascending, then keep only non-zero numbers.", "out": "丹丑举"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Sort lowest to highest, then strip the zeros.", "out": "丹丑举"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Arrange from smallest to largest, then keep only non-zero numbers.", "out": "丹丑举"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort ascending, then strip the zeros.", "out": "丹丑举"} {"kind": "builder", "in": "丹丑举", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丹丑举", "out": "Take a list of integers; keep only the last three, then sort ascending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove all zero values, then truncate to the last three items.", "out": "为举丹"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then exclude zeros, then show only the last three.", "out": "为举丹"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove all zero values, then remove all but the last three.", "out": "为举丹"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then exclude zeros, then take the final 3 elements.", "out": "为举丹"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove all zero values, then drop everything except the final three.", "out": "为举丹"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then exclude zeros, then give me the last three elements.", "out": "为举丹"} {"kind": "builder", "in": "为举丹", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "为举丹", "out": "Take a list of integers; drop the first and last elements, then drop the zeros, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each value by itself, then true only if all are positive.", "out": "万上乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then square them all, then do all of these have positive values.", "out": "万上乌"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then raise each to the power of two, then check if every value is positive.", "out": "万上乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then I need each number multiplied by itself, then confirm all values are positive.", "out": "万上乌"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then square all of them, then all positive.", "out": "万上乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then multiply each element by itself, then check if every number is above zero.", "out": "万上乌"} {"kind": "builder", "in": "万上乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x * x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "万上乌", "out": "Take a list of integers; keep the negative numbers, then square each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then default to [0] when there is nothing, then drop non-positive values.", "out": "丈么七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then when the list is empty, substitute a zero value, then drop the negative numbers.", "out": "丈么七"} {"kind": "speaker", "in": "Take a list of integers; double each, then replace an empty list with one zero, then filter out the negative ones.", "out": "丈么七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then zero it out if it's empty, then remove all negative values.", "out": "丈么七"} {"kind": "speaker", "in": "Take a list of integers; double each, then use zero if the list is empty, then keep positive values only.", "out": "丈么七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then default to zero when empty, then keep values above zero.", "out": "丈么七"} {"kind": "builder", "in": "丈么七", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r if r else [0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丈么七", "out": "Take a list of integers; double each, then if empty, use a single zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values divisible by 3, then multiply each by -1.", "out": "专串与"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then keep items where x mod 3 equals zero, then negate.", "out": "专串与"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then drop anything not divisible by three, then multiply each by -1.", "out": "专串与"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then filter out everything except multiples of three, then negate.", "out": "专串与"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only multiples of three, then multiply each by -1.", "out": "专串与"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiples of three only, then negate.", "out": "专串与"} {"kind": "builder", "in": "专串与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "专串与", "out": "Take a list of integers; sort descending, then keep multiples of three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort largest to smallest, then keep only non-zero numbers.", "out": "串专举"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then sort by descending values, then strip the zeros.", "out": "串专举"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then sort from highest to lowest, then keep only non-zero numbers.", "out": "串专举"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then sort descending, then strip the zeros.", "out": "串专举"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then sort largest first, then keep only non-zero numbers.", "out": "串专举"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort in descending order, then strip the zeros.", "out": "串专举"} {"kind": "builder", "in": "串专举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "串专举", "out": "Take a list of integers; keep multiples of three, then sort descending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then add '#' to the start of each string, then deduplicate the strings.", "out": "丢乘丧"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then make each one start with a hash, then filter out duplicate strings retain first.", "out": "丢乘丧"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then add '#' to the start of each string, then strip duplicates preserve order.", "out": "丢乘丧"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then make each one start with a hash, then remove repeated strings.", "out": "丢乘丧"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then add '#' to the start of each string, then keep unique strings first appearance.", "out": "丢乘丧"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then make each one start with a hash, then eliminate repeated strings preserve first occurrence.", "out": "丢乘丧"} {"kind": "builder", "in": "丢乘丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = ['#' + s for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丢乘丧", "out": "Take a list of strings; trim whitespace from each, then prefix each with a hash, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip the list around, then drop non-negative values.", "out": "丁丐万"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then flip the order around, then drop all positive numbers.", "out": "丁丐万"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then put the elements backwards, then drop non-negative values.", "out": "丁丐万"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then reverse that for me, then drop all positive numbers.", "out": "丁丐万"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then flip it backwards, then drop non-negative values.", "out": "丁丐万"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then make it backwards, then drop all positive numbers.", "out": "丁丐万"} {"kind": "builder", "in": "丁丐万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丁丐万", "out": "Take a list of integers; keep the odd numbers, then reverse the order, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then arrange in increasing order.", "out": "且举丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then Organize these ascending.", "out": "且举丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then Sort in ascending order.", "out": "且举丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then I need this sorted ascending.", "out": "且举丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove all zero values, then Put these in ascending order.", "out": "且举丑"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then exclude zeros, then sort smallest to largest.", "out": "且举丑"} {"kind": "builder", "in": "且举丑", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "且举丑", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the zeros, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then find the min, defaulting to 0.", "out": "么主丛"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then minimum value, zero otherwise.", "out": "么主丛"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then get the minimum value or zero if empty.", "out": "么主丛"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then give me the min or 0.", "out": "么主丛"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then return the smallest number, defaulting to 0.", "out": "么主丛"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then return smallest or zero if empty.", "out": "么主丛"} {"kind": "builder", "in": "么主丛", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n return min(r) if r else 0"} {"kind": "translator", "in": "么主丛", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative, then keep only numbers above 5.", "out": "与丏主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items, then exclude values of 5 and below.", "out": "与丏主"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values, then remove anything 5 or less.", "out": "与丏主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives, then filter to keep only values above 5.", "out": "与丏主"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element, then get rid of values that aren't greater than five.", "out": "与丏主"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each, then drop anything 5 or below.", "out": "与丏主"} {"kind": "builder", "in": "与丏主", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "与丏主", "out": "Take a list of integers; negate each, then take the absolute value of each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only odd values, then true if every value is unique.", "out": "么丁乏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then eliminate the even numbers, then check for duplicates in the values.", "out": "么丁乏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only odd values, then do all values appear only once.", "out": "么丁乏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then eliminate the even numbers, then check that there are no duplicates.", "out": "么丁乏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only odd values, then are the values all unique.", "out": "么丁乏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then eliminate the even numbers, then check if all values are unique.", "out": "么丁乏"} {"kind": "builder", "in": "么丁乏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "么丁乏", "out": "Take a list of integers; if empty, use a single zero, then keep the odd numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only even values, then true if any value equals zero.", "out": "乃一乍"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then extract all even numbers, then check for zero.", "out": "乃一乍"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only even values, then true if any value equals zero.", "out": "乃一乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then extract all even numbers, then check for zero.", "out": "乃一乍"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only even values, then true if any value equals zero.", "out": "乃一乍"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then extract all even numbers, then check for zero.", "out": "乃一乍"} {"kind": "builder", "in": "乃一乍", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n return 0 in r"} {"kind": "translator", "in": "乃一乍", "out": "Take a list of integers; drop the leading negative values, then keep the even numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the first 3 elements, then drop the odd numbers.", "out": "万丕一"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then remove everything after the third, then filter out the odd numbers.", "out": "万丕一"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate to three items, then drop the odd numbers.", "out": "万丕一"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then show the first three, then filter out the odd numbers.", "out": "万丕一"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the first three, then drop the odd numbers.", "out": "万丕一"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep first 3, then filter out the odd numbers.", "out": "万丕一"} {"kind": "builder", "in": "万丕一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:3]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "万丕一", "out": "Take a list of integers; keep the negative numbers, then keep only the first three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then default to [0] when there is nothing, then make each twice as big.", "out": "乃么丈"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then when the list is empty, substitute a zero value, then multiply each by 2.", "out": "乃么丈"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then replace an empty list with one zero, then make each twice as big.", "out": "乃么丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then zero it out if it's empty, then multiply each by 2.", "out": "乃么丈"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then use zero if the list is empty, then make each twice as big.", "out": "乃么丈"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then default to zero when empty, then multiply each by 2.", "out": "乃么丈"} {"kind": "builder", "in": "乃么丈", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r if r else [0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乃么丈", "out": "Take a list of integers; drop the leading negative values, then if empty, use a single zero, then double each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then keep only strings of length 3 or more, then reduce each string to its first character.", "out": "乞乗丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then get rid of short ones, then take first char drop blanks.", "out": "乞乗丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove strings with less than three characters, then keep first letters only.", "out": "乞乗丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then remove all strings under three characters in length, then first letter from each item that isn't empty.", "out": "乞乗丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then filter out short strings under three chars, then grab the first char from each.", "out": "乞乗丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then drop strings shorter than three characters, then isolate the first character per entry.", "out": "乞乗丨"} {"kind": "builder", "in": "乞乗丨", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s for s in r if len(s) >= 3]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乞乗丨", "out": "Take a list of people records (name, age); extract the names, then drop strings shorter than three characters, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep the leading run of positive numbers, then arrange in increasing order.", "out": "世乂丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take values while they are positive, then Organize these ascending.", "out": "世乂丑"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take positive values then stop, then Sort in ascending order.", "out": "世乂丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep going while positive, then I need this sorted ascending.", "out": "世乂丑"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then stop at first non positive, then Put these in ascending order.", "out": "世乂丑"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take while greater than zero, then sort smallest to largest.", "out": "世乂丑"} {"kind": "builder", "in": "世乂丑", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "世乂丑", "out": "Take a list of integers; drop the first element, then take values while they are positive, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only odd values, then give back the product of all values.", "out": "七丁乐"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then eliminate the even numbers, then product of the list.", "out": "七丁乐"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only odd values, then what's the product.", "out": "七丁乐"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then eliminate the even numbers, then what do they multiply to.", "out": "七丁乐"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only odd values, then give me their product.", "out": "七丁乐"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then eliminate the even numbers, then multiply them all together.", "out": "七丁乐"} {"kind": "builder", "in": "七丁乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "七丁乐", "out": "Take a list of integers; keep the positive numbers, then keep the odd numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only even values, then true if at least one even value.", "out": "不一之"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then extract all even numbers, then any even.", "out": "不一之"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only even values, then true if at least one even value.", "out": "不一之"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then extract all even numbers, then any even.", "out": "不一之"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only even values, then true if at least one even value.", "out": "不一之"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then extract all even numbers, then any even.", "out": "不一之"} {"kind": "builder", "in": "不一之", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "不一之", "out": "Take a list of integers; subtract one from each, then keep the even numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then default to [0] when there is nothing, then multiply each by -1.", "out": "不么与"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then when the list is empty, substitute a zero value, then negate.", "out": "不么与"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then replace an empty list with one zero, then multiply each by -1.", "out": "不么与"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then zero it out if it's empty, then negate.", "out": "不么与"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then use zero if the list is empty, then multiply each by -1.", "out": "不么与"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then default to zero when empty, then negate.", "out": "不么与"} {"kind": "builder", "in": "不么与", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "不么与", "out": "Take a list of integers; subtract one from each, then if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort largest to smallest, then truncate to three items.", "out": "举专丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by descending values, then show the first three.", "out": "举专丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from highest to lowest, then take the first three.", "out": "举专丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort descending, then keep first 3.", "out": "举专丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort largest first, then truncate to first three.", "out": "举专丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort in descending order, then first three.", "out": "举专丕"} {"kind": "builder", "in": "举专丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, reverse=True)\n r = r[:3]\n return r"} {"kind": "translator", "in": "举专丕", "out": "Take a list of integers; drop the zeros, then sort descending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then reduce each by one.", "out": "与丁不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then Subtract 1 from all.", "out": "与丁不"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then Subtract one from each.", "out": "与丁不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then Drop each by one.", "out": "与丁不"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then Decrease all values by one.", "out": "与丁不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then Remove one from each value.", "out": "与丁不"} {"kind": "builder", "in": "与丁不", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "与丁不", "out": "Take a list of integers; negate each, then keep the odd numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values divisible by 3, then give back the product of all values.", "out": "丸串乐"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep items where x mod 3 equals zero, then product of the list.", "out": "丸串乐"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then drop anything not divisible by three, then what's the product.", "out": "丸串乐"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then filter out everything except multiples of three, then what do they multiply to.", "out": "丸串乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only multiples of three, then give me their product.", "out": "丸串乐"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiples of three only, then multiply them all together.", "out": "丸串乐"} {"kind": "builder", "in": "丸串乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丸串乐", "out": "Take a list of integers; sort by absolute value, then keep multiples of three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero, then give the earliest even value or zero.", "out": "乂丸乒"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "乂丸乒"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude, then give the earliest even value or zero.", "out": "乂丸乒"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "乂丸乒"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "乂丸乒"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value, then fetch the first even element, default to 0.", "out": "乂丸乒"} {"kind": "builder", "in": "乂丸乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "乂丸乒", "out": "Take a list of integers; take values while they are positive, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; square each, then skip negatives at the start, then truncate to three items.", "out": "上乃丕"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove all negatives at the front, then show the first three.", "out": "上乃丕"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the initial run of negative numbers, then take the first three.", "out": "上乃丕"} {"kind": "speaker", "in": "Take a list of integers; square them all, then strip the front negatives, then keep first 3.", "out": "上乃丕"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove leading negative numbers, then truncate to first three.", "out": "上乃丕"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then drop negatives from start, then first three.", "out": "上乃丕"} {"kind": "builder", "in": "上乃丕", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n return r"} {"kind": "translator", "in": "上乃丕", "out": "Take a list of integers; square each, then drop the leading negative values, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; double each, then sort largest to smallest, then find the min, defaulting to 0.", "out": "丈专丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by descending values, then minimum value, zero otherwise.", "out": "丈专丛"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from highest to lowest, then get the minimum value or zero if empty.", "out": "丈专丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort descending, then give me the min or 0.", "out": "丈专丛"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort largest first, then return the smallest number, defaulting to 0.", "out": "丈专丛"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort in descending order, then return smallest or zero if empty.", "out": "丈专丛"} {"kind": "builder", "in": "丈专丛", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, reverse=True)\n return min(r) if r else 0"} {"kind": "translator", "in": "丈专丛", "out": "Take a list of integers; double each, then sort descending, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increment each value, then drop the even numbers.", "out": "丹下丁"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then plus one for all, then strip out the evens.", "out": "丹下丁"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then increment each value, then drop the even numbers.", "out": "丹下丁"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then plus one for all, then strip out the evens.", "out": "丹下丁"} {"kind": "speaker", "in": "Take a list of integers; last three only, then increment each value, then drop the even numbers.", "out": "丹下丁"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then plus one for all, then strip out the evens.", "out": "丹下丁"} {"kind": "builder", "in": "丹下丁", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丹下丁", "out": "Take a list of integers; keep only the last three, then add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then sort largest to smallest, then true if at least one even value.", "out": "乃专之"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then sort by descending values, then any even.", "out": "乃专之"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then sort from highest to lowest, then true if at least one even value.", "out": "乃专之"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then sort descending, then any even.", "out": "乃专之"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then sort largest first, then true if at least one even value.", "out": "乃专之"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then sort in descending order, then any even.", "out": "乃专之"} {"kind": "builder", "in": "乃专之", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = sorted(r, reverse=True)\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乃专之", "out": "Take a list of integers; drop the leading negative values, then sort descending, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only odd values, then truncate to the last three items.", "out": "七丁丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then eliminate the even numbers, then show only the last three.", "out": "七丁丹"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only odd values, then remove all but the last three.", "out": "七丁丹"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then eliminate the even numbers, then take the final 3 elements.", "out": "七丁丹"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only odd values, then drop everything except the final three.", "out": "七丁丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then eliminate the even numbers, then give me the last three elements.", "out": "七丁丹"} {"kind": "builder", "in": "七丁丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "七丁丹", "out": "Take a list of integers; keep the positive numbers, then keep the odd numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the first 3 elements, then arrange in increasing order.", "out": "丽丕丑"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove everything after the third, then Organize these ascending.", "out": "丽丕丑"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then truncate to three items, then Sort in ascending order.", "out": "丽丕丑"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then show the first three, then I need this sorted ascending.", "out": "丽丕丑"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then take the first three, then Put these in ascending order.", "out": "丽丕丑"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep first 3, then sort smallest to largest.", "out": "丽丕丑"} {"kind": "builder", "in": "丽丕丑", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:3]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丽丕丑", "out": "Take a list of integers; add ten to each, then keep only the first three, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then skip negatives at the start, then give the earliest even value or zero.", "out": "主乃乒"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then remove all negatives at the front, then fetch the first even element, default to 0.", "out": "主乃乒"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the initial run of negative numbers, then give the earliest even value or zero.", "out": "主乃乒"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then strip the front negatives, then fetch the first even element, default to 0.", "out": "主乃乒"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove leading negative numbers, then give the earliest even value or zero.", "out": "主乃乒"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then drop negatives from start, then fetch the first even element, default to 0.", "out": "主乃乒"} {"kind": "builder", "in": "主乃乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "主乃乒", "out": "Take a list of integers; keep values greater than five, then drop the leading negative values, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then cut the list at the first zero, then put the elements backwards.", "out": "丽久丐"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then cut off after the first zero appears, then reverse that for me.", "out": "丽久丐"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take values up to (excluding) the first zero, then flip it backwards.", "out": "丽久丐"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the part before the first 0, then make it backwards.", "out": "丽久丐"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then truncate at the first zero, then reverse the list.", "out": "丽久丐"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then delete everything starting with the first zero, then invert the sequence.", "out": "丽久丐"} {"kind": "builder", "in": "丽久丐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丽久丐", "out": "Take a list of integers; add ten to each, then keep everything before the first zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values divisible by 3, then keep only non-zero numbers.", "out": "义串举"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep items where x mod 3 equals zero, then strip the zeros.", "out": "义串举"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything not divisible by three, then keep only non-zero numbers.", "out": "义串举"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter out everything except multiples of three, then strip the zeros.", "out": "义串举"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only multiples of three, then keep only non-zero numbers.", "out": "义串举"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiples of three only, then strip the zeros.", "out": "义串举"} {"kind": "builder", "in": "义串举", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "义串举", "out": "Take a list of integers; pad with zeros to at least three elements, then keep multiples of three, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the first 3 elements, then true if already sorted smallest to largest.", "out": "为丕乎"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove everything after the third, then does this list go in ascending order.", "out": "为丕乎"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then truncate to three items, then check if the list is in ascending order.", "out": "为丕乎"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then show the first three, then is the list sorted.", "out": "为丕乎"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then take the first three, then is it sorted.", "out": "为丕乎"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep first 3, then check if values are in increasing order.", "out": "为丕乎"} {"kind": "builder", "in": "为丕乎", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:3]\n return r == sorted(r)"} {"kind": "translator", "in": "为丕乎", "out": "Take a list of integers; drop the first and last elements, then keep only the first three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values above zero, then reduce each by one.", "out": "丈七不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter for positive numbers, then Subtract 1 from all.", "out": "丈七不"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only positive numbers, then Subtract one from each.", "out": "丈七不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positives, then Drop each by one.", "out": "丈七不"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove negatives, then Decrease all values by one.", "out": "丈七不"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positive numbers, then Remove one from each value.", "out": "丈七不"} {"kind": "builder", "in": "丈七不", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丈七不", "out": "Take a list of integers; double each, then keep the positive numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then extend to length 3 using zeros, then arrange by magnitude ignoring sign.", "out": "丽义丸"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then pad to 3, then put them in order by magnitude.", "out": "丽义丸"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then extend to length 3 using zeros, then arrange in order of absolute value.", "out": "丽义丸"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then pad to 3, then sort by distance from zero.", "out": "丽义丸"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then extend to length 3 using zeros, then order by how far from zero.", "out": "丽义丸"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then pad to 3, then order by distance from zero.", "out": "丽义丸"} {"kind": "builder", "in": "丽义丸", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丽义丸", "out": "Take a list of integers; add ten to each, then pad with zeros to at least three elements, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each by two, then truncate to three items.", "out": "久丈丕"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then double each item in the list, then show the first three.", "out": "久丈丕"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then multiply each by two, then take the first three.", "out": "久丈丕"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then double each item in the list, then keep first 3.", "out": "久丈丕"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then multiply each by two, then truncate to first three.", "out": "久丈丕"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then double each item in the list, then first three.", "out": "久丈丕"} {"kind": "builder", "in": "久丈丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "久丈丕", "out": "Take a list of integers; keep everything before the first zero, then double each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then drop anything 5 or below, then multiply each by -1.", "out": "久主与"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep only numbers greater than 5, then negate.", "out": "久主与"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then filter for numbers above 5, then multiply each by -1.", "out": "久主与"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then give me values where x is greater than 5, then negate.", "out": "久主与"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then show me only the values that are bigger than five, then multiply each by -1.", "out": "久主与"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep values greater than five, then negate.", "out": "久主与"} {"kind": "builder", "in": "久主与", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "久主与", "out": "Take a list of integers; keep everything before the first zero, then keep values greater than five, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value, then arrange by magnitude ignoring sign.", "out": "主下丸"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all, then put them in order by magnitude.", "out": "主下丸"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value, then arrange in order of absolute value.", "out": "主下丸"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all, then sort by distance from zero.", "out": "主下丸"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value, then order by how far from zero.", "out": "主下丸"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all, then order by distance from zero.", "out": "主下丸"} {"kind": "builder", "in": "主下丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "主下丸", "out": "Take a list of integers; keep values greater than five, then add one to each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each by two, then trim one element off each end.", "out": "串丈为"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then double each item in the list, then cut off the first and last.", "out": "串丈为"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then multiply each by two, then remove the first and last elements.", "out": "串丈为"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then double each item in the list, then keep only the middle part.", "out": "串丈为"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then multiply each by two, then drop first and last.", "out": "串丈为"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then double each item in the list, then eliminate the outermost elements.", "out": "串丈为"} {"kind": "builder", "in": "串丈为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "串丈为", "out": "Take a list of integers; keep multiples of three, then double each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the sign of each, then true only if all are positive.", "out": "且与乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn positives to negatives and vice versa, then do all of these have positive values.", "out": "且与乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the sign of each, then check if every value is positive.", "out": "且与乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn positives to negatives and vice versa, then confirm all values are positive.", "out": "且与乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the sign of each, then all positive.", "out": "且与乌"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn positives to negatives and vice versa, then check if every number is above zero.", "out": "且与乌"} {"kind": "builder", "in": "且与乌", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [-x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "且与乌", "out": "Take a list of integers; drop duplicates keeping first occurrence, then negate each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then put the elements backwards.", "out": "九乃丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then reverse that for me.", "out": "九乃丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then flip it backwards.", "out": "九乃丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then make it backwards.", "out": "九乃丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then reverse the list.", "out": "九乃丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then invert the sequence.", "out": "九乃丐"} {"kind": "builder", "in": "九乃丐", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "九乃丐", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then reverse the order."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then make every value non-negative, then give back the total.", "out": "九丏丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then absolute value for all items, then sum r.", "out": "九丏丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take absolute values, then add them up.", "out": "九丏丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn negatives into positives, then calculate the sum of all elements.", "out": "九丏丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then abs each element, then what's the total.", "out": "九丏丙"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the absolute value of each, then what do they add up to.", "out": "九丏丙"} {"kind": "builder", "in": "九丏丙", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [abs(x) for x in r]\n return sum(r)"} {"kind": "translator", "in": "九丏丙", "out": "Take a list of people records (name, age); extract the ages, then take the absolute value of each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then count the elements.", "out": "丁且东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then how many items remain.", "out": "丁且东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then tell me the length.", "out": "丁且东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then return the length.", "out": "丁且东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then count them.", "out": "丁且东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then what's the count.", "out": "丁且东"} {"kind": "builder", "in": "丁且东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return len(r)"} {"kind": "translator", "in": "丁且东", "out": "Take a list of integers; keep the odd numbers, then drop duplicates keeping first occurrence, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort smallest to largest, then keep only non-zero numbers.", "out": "丕丑举"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Ascending sort, then strip the zeros.", "out": "丕丑举"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then Sort this ascending, then keep only non-zero numbers.", "out": "丕丑举"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Sort lowest to highest, then strip the zeros.", "out": "丕丑举"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Arrange from smallest to largest, then keep only non-zero numbers.", "out": "丕丑举"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort ascending, then strip the zeros.", "out": "丕丑举"} {"kind": "builder", "in": "丕丑举", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丕丑举", "out": "Take a list of integers; keep only the first three, then sort ascending, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only odd values, then deduplicate the list.", "out": "久丁且"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then eliminate the even numbers, then remove repeats.", "out": "久丁且"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only odd values, then deduplicate the list.", "out": "久丁且"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then eliminate the even numbers, then remove repeats.", "out": "久丁且"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only odd values, then deduplicate the list.", "out": "久丁且"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then eliminate the even numbers, then remove repeats.", "out": "久丁且"} {"kind": "builder", "in": "久丁且", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "久丁且", "out": "Take a list of integers; keep everything before the first zero, then keep the odd numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the first 3 elements, then put the elements backwards.", "out": "九丕丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove everything after the third, then reverse that for me.", "out": "九丕丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then truncate to three items, then flip it backwards.", "out": "九丕丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then show the first three, then make it backwards.", "out": "九丕丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then take the first three, then reverse the list.", "out": "九丕丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep first 3, then invert the sequence.", "out": "九丕丐"} {"kind": "builder", "in": "九丕丐", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:3]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "九丕丐", "out": "Take a list of people records (name, age); extract the ages, then keep only the first three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove both ends, then true only if all are positive.", "out": "么为乌"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then trim the edges, then do all of these have positive values.", "out": "么为乌"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then trim one element off each end, then check if every value is positive.", "out": "么为乌"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then cut off the first and last, then confirm all values are positive.", "out": "么为乌"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove the first and last elements, then all positive.", "out": "么为乌"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep only the middle part, then check if every number is above zero.", "out": "么为乌"} {"kind": "builder", "in": "么为乌", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[1:-1]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "么为乌", "out": "Take a list of integers; if empty, use a single zero, then drop the first and last elements, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then deduplicate the list.", "out": "丁七且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then remove repeats.", "out": "丁七且"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then deduplicate the list.", "out": "丁七且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then remove repeats.", "out": "丁七且"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then deduplicate the list.", "out": "丁七且"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then remove repeats.", "out": "丁七且"} {"kind": "builder", "in": "丁七且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丁七且", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increment each value, then ensure at least three items by appending zeros.", "out": "丏下义"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丏下义"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then increment each value, then ensure at least three items by appending zeros.", "out": "丏下义"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丏下义"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then increment each value, then ensure at least three items by appending zeros.", "out": "丏下义"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丏下义"} {"kind": "builder", "in": "丏下义", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丏下义", "out": "Take a list of integers; take the absolute value of each, then add one to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then default to [0] when there is nothing, then make each twice as big.", "out": "乂么丈"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then when the list is empty, substitute a zero value, then multiply each by 2.", "out": "乂么丈"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then replace an empty list with one zero, then make each twice as big.", "out": "乂么丈"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then zero it out if it's empty, then multiply each by 2.", "out": "乂么丈"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then use zero if the list is empty, then make each twice as big.", "out": "乂么丈"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then default to zero when empty, then multiply each by 2.", "out": "乂么丈"} {"kind": "builder", "in": "乂么丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乂么丈", "out": "Take a list of integers; take values while they are positive, then if empty, use a single zero, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep the leading run of positive numbers, then give the earliest even value or zero.", "out": "丹乂乒"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then take values while they are positive, then fetch the first even element, default to 0.", "out": "丹乂乒"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take positive values then stop, then give the earliest even value or zero.", "out": "丹乂乒"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep going while positive, then fetch the first even element, default to 0.", "out": "丹乂乒"} {"kind": "speaker", "in": "Take a list of integers; last three only, then stop at first non positive, then give the earliest even value or zero.", "out": "丹乂乒"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then take while greater than zero, then fetch the first even element, default to 0.", "out": "丹乂乒"} {"kind": "builder", "in": "丹乂乒", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丹乂乒", "out": "Take a list of integers; keep only the last three, then take values while they are positive, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then make every value non-negative, then replace an empty list with one zero.", "out": "丘丏么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then absolute value for all items, then zero it out if it's empty.", "out": "丘丏么"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take absolute values, then use zero if the list is empty.", "out": "丘丏么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn negatives into positives, then default to zero when empty.", "out": "丘丏么"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then abs each element, then if there's nothing, put in a zero.", "out": "丘丏么"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the absolute value of each, then if no items, add a zero.", "out": "丘丏么"} {"kind": "builder", "in": "丘丏么", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丘丏么", "out": "Take a list of integers; cap each value at 10, then take the absolute value of each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then cut the list at the first zero, then make each twice as big.", "out": "世久丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then cut off after the first zero appears, then multiply each by 2.", "out": "世久丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take values up to (excluding) the first zero, then make each twice as big.", "out": "世久丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep the part before the first 0, then multiply each by 2.", "out": "世久丈"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate at the first zero, then make each twice as big.", "out": "世久丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then delete everything starting with the first zero, then multiply each by 2.", "out": "世久丈"} {"kind": "builder", "in": "世久丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "世久丈", "out": "Take a list of integers; drop the first element, then keep everything before the first zero, then double each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep the leading run of positive numbers, then truncate to the last three items.", "out": "九乂丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then take values while they are positive, then show only the last three.", "out": "九乂丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take positive values then stop, then remove all but the last three.", "out": "九乂丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep going while positive, then take the final 3 elements.", "out": "九乂丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then stop at first non positive, then drop everything except the final three.", "out": "九乂丹"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take while greater than zero, then give me the last three elements.", "out": "九乂丹"} {"kind": "builder", "in": "九乂丹", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "九乂丹", "out": "Take a list of people records (name, age); extract the ages, then take values while they are positive, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then put the elements backwards.", "out": "丹万丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then reverse that for me.", "out": "丹万丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then flip it backwards.", "out": "丹万丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then make it backwards.", "out": "丹万丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then reverse the list.", "out": "丹万丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then invert the sequence.", "out": "丹万丐"} {"kind": "builder", "in": "丹万丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹万丐", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increase every value by 10, then put the elements backwards.", "out": "万丽丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then add 10 to each item, then reverse that for me.", "out": "万丽丐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then shift each up by ten, then flip it backwards.", "out": "万丽丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then increase all numbers by 10, then make it backwards.", "out": "万丽丐"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then add 10 to everything, then reverse the list.", "out": "万丽丐"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then give everything a boost of 10, then invert the sequence.", "out": "万丽丐"} {"kind": "builder", "in": "万丽丐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "万丽丐", "out": "Take a list of integers; keep the negative numbers, then add ten to each, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove both ends, then drop the odd numbers.", "out": "丕为一"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then trim the edges, then filter out the odd numbers.", "out": "丕为一"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then trim one element off each end, then drop the odd numbers.", "out": "丕为一"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then cut off the first and last, then filter out the odd numbers.", "out": "丕为一"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first and last elements, then drop the odd numbers.", "out": "丕为一"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep only the middle part, then filter out the odd numbers.", "out": "丕为一"} {"kind": "builder", "in": "丕为一", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丕为一", "out": "Take a list of integers; keep only the first three, then drop the first and last elements, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only odd values, then drop non-negative values.", "out": "丕丁万"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then eliminate the even numbers, then drop all positive numbers.", "out": "丕丁万"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only odd values, then drop non-negative values.", "out": "丕丁万"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then eliminate the even numbers, then drop all positive numbers.", "out": "丕丁万"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only odd values, then drop non-negative values.", "out": "丕丁万"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then eliminate the even numbers, then drop all positive numbers.", "out": "丕丁万"} {"kind": "builder", "in": "丕丁万", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丕丁万", "out": "Take a list of integers; keep only the first three, then keep the odd numbers, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then true if every value is unique.", "out": "义乂乏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then check for duplicates in the values.", "out": "义乂乏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then do all values appear only once.", "out": "义乂乏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then check that there are no duplicates.", "out": "义乂乏"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then are the values all unique.", "out": "义乂乏"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then check if all values are unique.", "out": "义乂乏"} {"kind": "builder", "in": "义乂乏", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "义乂乏", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then truncate to the last three items.", "out": "下举丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then show only the last three.", "out": "下举丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then remove all but the last three.", "out": "下举丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then take the final 3 elements.", "out": "下举丹"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove all zero values, then drop everything except the final three.", "out": "下举丹"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then exclude zeros, then give me the last three elements.", "out": "下举丹"} {"kind": "builder", "in": "下举丹", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x != 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "下举丹", "out": "Take a list of integers; add one to each, then drop the zeros, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep the leading run of positive numbers, then remove the initial run of negative numbers.", "out": "义乂乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take values while they are positive, then strip the front negatives.", "out": "义乂乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take positive values then stop, then remove leading negative numbers.", "out": "义乂乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep going while positive, then drop negatives from start.", "out": "义乂乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then stop at first non positive, then strip negative values from the start.", "out": "义乂乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take while greater than zero, then remove negatives before the first non-negative.", "out": "义乂乃"} {"kind": "builder", "in": "义乂乃", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "义乂乃", "out": "Take a list of integers; pad with zeros to at least three elements, then take values while they are positive, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then cut the list at the first zero, then keep only non-zero numbers.", "out": "九久举"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then cut off after the first zero appears, then strip the zeros.", "out": "九久举"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take values up to (excluding) the first zero, then keep only non-zero numbers.", "out": "九久举"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the part before the first 0, then strip the zeros.", "out": "九久举"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then truncate at the first zero, then keep only non-zero numbers.", "out": "九久举"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then delete everything starting with the first zero, then strip the zeros.", "out": "九久举"} {"kind": "builder", "in": "九久举", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "九久举", "out": "Take a list of people records (name, age); extract the ages, then keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then true only if all are positive.", "out": "为万乌"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then do all of these have positive values.", "out": "为万乌"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then check if every value is positive.", "out": "为万乌"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then confirm all values are positive.", "out": "为万乌"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then all positive.", "out": "为万乌"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then check if every number is above zero.", "out": "为万乌"} {"kind": "builder", "in": "为万乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "为万乌", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove both ends, then keep only non-zero numbers.", "out": "丈为举"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then trim the edges, then strip the zeros.", "out": "丈为举"} {"kind": "speaker", "in": "Take a list of integers; double each, then trim one element off each end, then keep only non-zero numbers.", "out": "丈为举"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off the first and last, then strip the zeros.", "out": "丈为举"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first and last elements, then keep only non-zero numbers.", "out": "丈为举"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the middle part, then strip the zeros.", "out": "丈为举"} {"kind": "builder", "in": "丈为举", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:-1]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丈为举", "out": "Take a list of integers; double each, then drop the first and last elements, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort largest to smallest, then trim one element off each end.", "out": "串专为"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then sort by descending values, then cut off the first and last.", "out": "串专为"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then sort from highest to lowest, then remove the first and last elements.", "out": "串专为"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then sort descending, then keep only the middle part.", "out": "串专为"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then sort largest first, then drop first and last.", "out": "串专为"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort in descending order, then eliminate the outermost elements.", "out": "串专为"} {"kind": "builder", "in": "串专为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "串专为", "out": "Take a list of integers; keep multiples of three, then sort descending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then sort largest to smallest, then raise each to the power of two.", "out": "丑专上"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort by descending values, then I need each number multiplied by itself.", "out": "丑专上"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then sort from highest to lowest, then square all of them.", "out": "丑专上"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then sort descending, then multiply each element by itself.", "out": "丑专上"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort largest first, then make each one squared.", "out": "丑专上"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort in descending order, then square each value in the list.", "out": "丑专上"} {"kind": "builder", "in": "丑专上", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丑专上", "out": "Take a list of integers; sort ascending, then sort descending, then square each."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values above zero, then skip the first one.", "out": "不七世"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then filter for positive numbers, then Discard the first element.", "out": "不七世"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only positive numbers, then skip the first one.", "out": "不七世"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the positives, then Discard the first element.", "out": "不七世"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove negatives, then skip the first one.", "out": "不七世"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep the positive numbers, then Discard the first element.", "out": "不七世"} {"kind": "builder", "in": "不七世", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "不七世", "out": "Take a list of integers; subtract one from each, then keep the positive numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then keep only non-zero numbers.", "out": "万与举"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then strip the zeros.", "out": "万与举"} {"kind": "builder", "in": "万与举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "万与举", "out": "Take a list of integers; keep the negative numbers, then negate each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then extend to length 3 using zeros, then true only if all are positive.", "out": "万义乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then pad to 3, then do all of these have positive values.", "out": "万义乌"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then extend to length 3 using zeros, then check if every value is positive.", "out": "万义乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then pad to 3, then confirm all values are positive.", "out": "万义乌"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then extend to length 3 using zeros, then all positive.", "out": "万义乌"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then pad to 3, then check if every number is above zero.", "out": "万义乌"} {"kind": "builder", "in": "万义乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "万义乌", "out": "Take a list of integers; keep the negative numbers, then pad with zeros to at least three elements, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then shift each up by ten.", "out": "丘世丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then increase all numbers by 10.", "out": "丘世丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then add 10 to everything.", "out": "丘世丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then give everything a boost of 10.", "out": "丘世丽"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then increment each by ten.", "out": "丘世丽"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then add a constant 10 to each.", "out": "丘世丽"} {"kind": "builder", "in": "丘世丽", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[1:]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丘世丽", "out": "Take a list of integers; cap each value at 10, then drop the first element, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then decrement each value, then true if any value equals zero.", "out": "丘不乍"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Lower each number by one, then check for zero.", "out": "丘不乍"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then reduce each by one, then true if any value equals zero.", "out": "丘不乍"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Subtract 1 from all, then check for zero.", "out": "丘不乍"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Subtract one from each, then true if any value equals zero.", "out": "丘不乍"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Drop each by one, then check for zero.", "out": "丘不乍"} {"kind": "builder", "in": "丘不乍", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "丘不乍", "out": "Take a list of integers; cap each value at 10, then subtract one from each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then convert each to upper case, then arrange in lexicographic order.", "out": "丞丟乖"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then change all strings to uppercase, then sort by letter.", "out": "丞丟乖"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then make every string uppercase, then arrange in lexicographic order.", "out": "丞丟乖"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then uppercase each one, then sort by letter.", "out": "丞丟乖"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then make all the strings uppercase, then arrange in lexicographic order.", "out": "丞丟乖"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then convert all strings to uppercase letters, then sort by letter.", "out": "丞丟乖"} {"kind": "builder", "in": "丞丟乖", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s.upper() for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丞丟乖", "out": "Take a list of strings; lowercase each string, then uppercase each string, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values above zero, then trim one element off each end.", "out": "与七为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter for positive numbers, then cut off the first and last.", "out": "与七为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only positive numbers, then remove the first and last elements.", "out": "与七为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the positives, then keep only the middle part.", "out": "与七为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove negatives, then drop first and last.", "out": "与七为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep the positive numbers, then eliminate the outermost elements.", "out": "与七为"} {"kind": "builder", "in": "与七为", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "与七为", "out": "Take a list of integers; negate each, then keep the positive numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the sign of each, then skip the first one.", "out": "丽与世"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then turn positives to negatives and vice versa, then Discard the first element.", "out": "丽与世"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then flip the sign of each, then skip the first one.", "out": "丽与世"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn positives to negatives and vice versa, then Discard the first element.", "out": "丽与世"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip the sign of each, then skip the first one.", "out": "丽与世"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then turn positives to negatives and vice versa, then Discard the first element.", "out": "丽与世"} {"kind": "builder", "in": "丽与世", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [-x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丽与世", "out": "Take a list of integers; add ten to each, then negate each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then default to [0] when there is nothing, then arrange in decreasing order.", "out": "丁么专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then when the list is empty, substitute a zero value, then arrange in descending order.", "out": "丁么专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then replace an empty list with one zero, then reverse sort.", "out": "丁么专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then zero it out if it's empty, then sort largest to smallest.", "out": "丁么专"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then use zero if the list is empty, then sort by descending values.", "out": "丁么专"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then default to zero when empty, then sort from highest to lowest.", "out": "丁么专"} {"kind": "builder", "in": "丁么专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r if r else [0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丁么专", "out": "Take a list of integers; keep the odd numbers, then if empty, use a single zero, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then skip the first one.", "out": "串丁世"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then Discard the first element.", "out": "串丁世"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then skip the first one.", "out": "串丁世"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then Discard the first element.", "out": "串丁世"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then skip the first one.", "out": "串丁世"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then Discard the first element.", "out": "串丁世"} {"kind": "builder", "in": "串丁世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "串丁世", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then multiply each value by itself, then drop the odd numbers.", "out": "丹上一"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then square them all, then filter out the odd numbers.", "out": "丹上一"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then raise each to the power of two, then drop the odd numbers.", "out": "丹上一"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then I need each number multiplied by itself, then filter out the odd numbers.", "out": "丹上一"} {"kind": "speaker", "in": "Take a list of integers; last three only, then square all of them, then drop the odd numbers.", "out": "丹上一"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then multiply each element by itself, then filter out the odd numbers.", "out": "丹上一"} {"kind": "builder", "in": "丹上一", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x * x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丹上一", "out": "Take a list of integers; keep only the last three, then square each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then skip negatives at the start, then stop at the first non-positive value.", "out": "久乃乂"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then remove all negatives at the front, then keep the leading run of positive numbers.", "out": "久乃乂"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the initial run of negative numbers, then take values while they are positive.", "out": "久乃乂"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then strip the front negatives, then take positive values then stop.", "out": "久乃乂"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove leading negative numbers, then keep going while positive.", "out": "久乃乂"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then drop negatives from start, then stop at first non positive.", "out": "久乃乂"} {"kind": "builder", "in": "久乃乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "久乃乂", "out": "Take a list of integers; keep everything before the first zero, then drop the leading negative values, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then put the elements backwards.", "out": "且义丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then reverse that for me.", "out": "且义丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then flip it backwards.", "out": "且义丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then make it backwards.", "out": "且义丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then extend to length 3 using zeros, then reverse the list.", "out": "且义丐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then pad to 3, then invert the sequence.", "out": "且义丐"} {"kind": "builder", "in": "且义丐", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "且义丐", "out": "Take a list of integers; drop duplicates keeping first occurrence, then pad with zeros to at least three elements, then reverse the order."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then arrange in increasing order.", "out": "九一丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then Organize these ascending.", "out": "九一丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then Sort in ascending order.", "out": "九一丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then I need this sorted ascending.", "out": "九一丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then Put these in ascending order.", "out": "九一丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then sort smallest to largest.", "out": "九一丑"} {"kind": "builder", "in": "九一丑", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "九一丑", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then add '#' to the start of each string, then arrange by string length ascending.", "out": "两乘严"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then make each one start with a hash, then length sort.", "out": "两乘严"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then add '#' to the start of each string, then sort by length shortest first.", "out": "两乘严"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then make each one start with a hash, then organize by string length least to greatest.", "out": "两乘严"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then add '#' to the start of each string, then shortest strings first.", "out": "两乘严"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then make each one start with a hash, then i want them ordered by how short they are.", "out": "两乘严"} {"kind": "builder", "in": "两乘严", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = ['#' + s for s in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "两乘严", "out": "Take a list of strings; drop empty strings, then prefix each with a hash, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only even values, then drop the even numbers.", "out": "为一丁"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then extract all even numbers, then strip out the evens.", "out": "为一丁"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only even values, then drop the even numbers.", "out": "为一丁"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then extract all even numbers, then strip out the evens.", "out": "为一丁"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only even values, then drop the even numbers.", "out": "为一丁"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then extract all even numbers, then strip out the evens.", "out": "为一丁"} {"kind": "builder", "in": "为一丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "为一丁", "out": "Take a list of integers; drop the first and last elements, then keep the even numbers, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value, then give back the total.", "out": "串下丙"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all, then sum r.", "out": "串下丙"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value, then add them up.", "out": "串下丙"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all, then calculate the sum of all elements.", "out": "串下丙"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value, then what's the total.", "out": "串下丙"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all, then what do they add up to.", "out": "串下丙"} {"kind": "builder", "in": "串下丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n return sum(r)"} {"kind": "translator", "in": "串下丙", "out": "Take a list of integers; keep multiples of three, then add one to each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then remove all zero values, then trim one element off each end.", "out": "乃举为"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then exclude zeros, then cut off the first and last.", "out": "乃举为"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then remove all zero values, then remove the first and last elements.", "out": "乃举为"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then exclude zeros, then keep only the middle part.", "out": "乃举为"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove all zero values, then drop first and last.", "out": "乃举为"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then exclude zeros, then eliminate the outermost elements.", "out": "乃举为"} {"kind": "builder", "in": "乃举为", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乃举为", "out": "Take a list of integers; drop the leading negative values, then drop the zeros, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; square each, then flip the sign of each, then limit every value to 10.", "out": "上与丘"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then turn positives to negatives and vice versa, then maximum of 10 for all.", "out": "上与丘"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then flip the sign of each, then limit every value to 10.", "out": "上与丘"} {"kind": "speaker", "in": "Take a list of integers; square them all, then turn positives to negatives and vice versa, then maximum of 10 for all.", "out": "上与丘"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then flip the sign of each, then limit every value to 10.", "out": "上与丘"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then turn positives to negatives and vice versa, then maximum of 10 for all.", "out": "上与丘"} {"kind": "builder", "in": "上与丘", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [-x for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "上与丘", "out": "Take a list of integers; square each, then negate each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then make every value non-negative, then drop anything not divisible by three.", "out": "义丏串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then absolute value for all items, then filter out everything except multiples of three.", "out": "义丏串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take absolute values, then keep only multiples of three.", "out": "义丏串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn negatives into positives, then multiples of three only.", "out": "义丏串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then abs each element, then filter for numbers divisible by three.", "out": "义丏串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then take the absolute value of each, then give me only the values divisible by three.", "out": "义丏串"} {"kind": "builder", "in": "义丏串", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [abs(x) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "义丏串", "out": "Take a list of integers; pad with zeros to at least three elements, then take the absolute value of each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values below zero, then trim one element off each end.", "out": "不万为"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then get the negative numbers, then cut off the first and last.", "out": "不万为"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep values below zero, then remove the first and last elements.", "out": "不万为"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the negative numbers, then keep only the middle part.", "out": "不万为"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep values below zero, then drop first and last.", "out": "不万为"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the negative numbers, then eliminate the outermost elements.", "out": "不万为"} {"kind": "builder", "in": "不万为", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "不万为", "out": "Take a list of integers; subtract one from each, then keep the negative numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then drop anything not divisible by three.", "out": "丹万串"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then filter out everything except multiples of three.", "out": "丹万串"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then keep only multiples of three.", "out": "丹万串"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then multiples of three only.", "out": "丹万串"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then filter for numbers divisible by three.", "out": "丹万串"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then give me only the values divisible by three.", "out": "丹万串"} {"kind": "builder", "in": "丹万串", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丹万串", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then give the number of evens.", "out": "万丁乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then find how many values are divisible by two.", "out": "万丁乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then how many are even.", "out": "万丁乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then get the total number of even values in the list.", "out": "万丁乓"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep only odd values, then give me the count of even values.", "out": "万丁乓"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then eliminate the even numbers, then I need to know how many of these are even.", "out": "万丁乓"} {"kind": "builder", "in": "万丁乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "万丁乓", "out": "Take a list of integers; keep the negative numbers, then keep the odd numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then multiply each by -1.", "out": "丸万与"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then negate.", "out": "丸万与"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then multiply each by -1.", "out": "丸万与"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then negate.", "out": "丸万与"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then multiply each by -1.", "out": "丸万与"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then negate.", "out": "丸万与"} {"kind": "builder", "in": "丸万与", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丸万与", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then default to [0] when there is nothing, then true only if all are positive.", "out": "丹么乌"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then when the list is empty, substitute a zero value, then do all of these have positive values.", "out": "丹么乌"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then replace an empty list with one zero, then check if every value is positive.", "out": "丹么乌"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then zero it out if it's empty, then confirm all values are positive.", "out": "丹么乌"} {"kind": "speaker", "in": "Take a list of integers; last three only, then use zero if the list is empty, then all positive.", "out": "丹么乌"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then default to zero when empty, then check if every number is above zero.", "out": "丹么乌"} {"kind": "builder", "in": "丹么乌", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r if r else [0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丹么乌", "out": "Take a list of integers; keep only the last three, then if empty, use a single zero, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the list around, then trim one element off each end.", "out": "主丐为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then flip the order around, then cut off the first and last.", "out": "主丐为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then put the elements backwards, then remove the first and last elements.", "out": "主丐为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then reverse that for me, then keep only the middle part.", "out": "主丐为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip it backwards, then drop first and last.", "out": "主丐为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then make it backwards, then eliminate the outermost elements.", "out": "主丐为"} {"kind": "builder", "in": "主丐为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(reversed(r))\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主丐为", "out": "Take a list of integers; keep values greater than five, then reverse the order, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the list around, then remove the initial run of negative numbers.", "out": "世丐乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then flip the order around, then strip the front negatives.", "out": "世丐乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then put the elements backwards, then remove leading negative numbers.", "out": "世丐乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then reverse that for me, then drop negatives from start.", "out": "世丐乃"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip it backwards, then strip negative values from the start.", "out": "世丐乃"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then make it backwards, then remove negatives before the first non-negative.", "out": "世丐乃"} {"kind": "builder", "in": "世丐乃", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "世丐乃", "out": "Take a list of integers; drop the first element, then reverse the order, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each value by itself, then true only if all are positive.", "out": "丸上乌"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then square them all, then do all of these have positive values.", "out": "丸上乌"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then raise each to the power of two, then check if every value is positive.", "out": "丸上乌"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then I need each number multiplied by itself, then confirm all values are positive.", "out": "丸上乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then square all of them, then all positive.", "out": "丸上乌"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiply each element by itself, then check if every number is above zero.", "out": "丸上乌"} {"kind": "builder", "in": "丸上乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丸上乌", "out": "Take a list of integers; sort by absolute value, then square each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything 5 or below, then true only if all are positive.", "out": "丈主乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only numbers greater than 5, then do all of these have positive values.", "out": "丈主乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then filter for numbers above 5, then check if every value is positive.", "out": "丈主乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me values where x is greater than 5, then confirm all values are positive.", "out": "丈主乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then show me only the values that are bigger than five, then all positive.", "out": "丈主乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep values greater than five, then check if every number is above zero.", "out": "丈主乌"} {"kind": "builder", "in": "丈主乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丈主乌", "out": "Take a list of integers; double each, then keep values greater than five, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then put the elements backwards.", "out": "丹久丐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then reverse that for me.", "out": "丹久丐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then flip it backwards.", "out": "丹久丐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then make it backwards.", "out": "丹久丐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then reverse the list.", "out": "丹久丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then invert the sequence.", "out": "丹久丐"} {"kind": "builder", "in": "丹久丐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丹久丐", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then drop non-positive values.", "out": "么主七"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then drop the negative numbers.", "out": "么主七"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then filter out the negative ones.", "out": "么主七"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then remove all negative values.", "out": "么主七"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then keep positive values only.", "out": "么主七"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then keep values above zero.", "out": "么主七"} {"kind": "builder", "in": "么主七", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "么主七", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then make each twice as big.", "out": "举乂丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then multiply each by 2.", "out": "举乂丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then make each twice as big.", "out": "举乂丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then multiply each by 2.", "out": "举乂丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then make each twice as big.", "out": "举乂丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then multiply each by 2.", "out": "举乂丈"} {"kind": "builder", "in": "举乂丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "举乂丈", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then double each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything 5 or below, then true if already sorted smallest to largest.", "out": "与主乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only numbers greater than 5, then does this list go in ascending order.", "out": "与主乎"} {"kind": "speaker", "in": "Take a list of integers; negate each, then filter for numbers above 5, then check if the list is in ascending order.", "out": "与主乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then give me values where x is greater than 5, then is the list sorted.", "out": "与主乎"} {"kind": "speaker", "in": "Take a list of integers; negate each, then show me only the values that are bigger than five, then is it sorted.", "out": "与主乎"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep values greater than five, then check if values are in increasing order.", "out": "与主乎"} {"kind": "builder", "in": "与主乎", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x > 5]\n return r == sorted(r)"} {"kind": "translator", "in": "与主乎", "out": "Take a list of integers; negate each, then keep values greater than five, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then true if at least one even value.", "out": "世与之"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then any even.", "out": "世与之"} {"kind": "builder", "in": "世与之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [-x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "世与之", "out": "Take a list of integers; drop the first element, then negate each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then cut the list at the first zero, then drop non-positive values.", "out": "丁久七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off after the first zero appears, then drop the negative numbers.", "out": "丁久七"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take values up to (excluding) the first zero, then filter out the negative ones.", "out": "丁久七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the part before the first 0, then remove all negative values.", "out": "丁久七"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate at the first zero, then keep positive values only.", "out": "丁久七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then delete everything starting with the first zero, then keep values above zero.", "out": "丁久七"} {"kind": "builder", "in": "丁久七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丁久七", "out": "Take a list of integers; keep the odd numbers, then keep everything before the first zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values below zero, then drop the odd numbers.", "out": "九万一"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then get the negative numbers, then filter out the odd numbers.", "out": "九万一"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep values below zero, then drop the odd numbers.", "out": "九万一"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then get the negative numbers, then filter out the odd numbers.", "out": "九万一"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep values below zero, then drop the odd numbers.", "out": "九万一"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then get the negative numbers, then filter out the odd numbers.", "out": "九万一"} {"kind": "builder", "in": "九万一", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x < 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "九万一", "out": "Take a list of people records (name, age); extract the ages, then keep the negative numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each by two, then drop non-negative values.", "out": "为丈万"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then double each item in the list, then drop all positive numbers.", "out": "为丈万"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then multiply each by two, then drop non-negative values.", "out": "为丈万"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then double each item in the list, then drop all positive numbers.", "out": "为丈万"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then multiply each by two, then drop non-negative values.", "out": "为丈万"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then double each item in the list, then drop all positive numbers.", "out": "为丈万"} {"kind": "builder", "in": "为丈万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "为丈万", "out": "Take a list of integers; drop the first and last elements, then double each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of strings; drop duplicate strings keeping the first, then keep only strings of length 3 or more, then true if a blank string is present.", "out": "丧乗乙"} {"kind": "speaker", "in": "Take a list of strings; dedupe, then get rid of short ones, then check for empty strings in the list.", "out": "丧乗乙"} {"kind": "speaker", "in": "Take a list of strings; remove duplicate strings keep first, then remove strings with less than three characters, then check if there's an empty string.", "out": "丧乗乙"} {"kind": "speaker", "in": "Take a list of strings; remove repeating strings first one stays, then remove all strings under three characters in length, then does the collection contain an empty string value somewhere.", "out": "丧乗乙"} {"kind": "speaker", "in": "Take a list of strings; delete duplicate strings keep the first one, then filter out short strings under three chars, then whether any element is blank.", "out": "丧乗乙"} {"kind": "speaker", "in": "Take a list of strings; deduplicate the strings, then drop strings shorter than three characters, then check for an empty string.", "out": "丧乗乙"} {"kind": "builder", "in": "丧乗乙", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [s for s in r if len(s) >= 3]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "丧乗乙", "out": "Take a list of strings; drop duplicate strings keeping the first, then drop strings shorter than three characters, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of strings; drop strings shorter than three characters, then strip spaces around each string, then prepend a hash mark to each.", "out": "乗丢乘"} {"kind": "speaker", "in": "Take a list of strings; eliminate strings below length three, then remove leading and trailing spaces, then prefix all with #.", "out": "乗丢乘"} {"kind": "speaker", "in": "Take a list of strings; remove short strings (under 3 chars), then remove whitespace from each item, then prepend a hash mark to each.", "out": "乗丢乘"} {"kind": "speaker", "in": "Take a list of strings; only keep strings with three or more characters, then clean whitespace from each entry, then prefix all with #.", "out": "乗丢乘"} {"kind": "speaker", "in": "Take a list of strings; keep only strings that are at least three characters long, then trim each string, then prepend a hash mark to each.", "out": "乗丢乘"} {"kind": "speaker", "in": "Take a list of strings; filter strings shorter than 3 chars, then trim whitespace from each, then prefix all with #.", "out": "乗丢乘"} {"kind": "builder", "in": "乗丢乘", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if len(s) >= 3]\n r = [s.strip() for s in r]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "乗丢乘", "out": "Take a list of strings; drop strings shorter than three characters, then trim whitespace from each, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; square each, then flip the list around, then keep only numbers above 5.", "out": "上丐主"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then flip the order around, then exclude values of 5 and below.", "out": "上丐主"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then put the elements backwards, then remove anything 5 or less.", "out": "上丐主"} {"kind": "speaker", "in": "Take a list of integers; square them all, then reverse that for me, then filter to keep only values above 5.", "out": "上丐主"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then flip it backwards, then get rid of values that aren't greater than five.", "out": "上丐主"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then make it backwards, then drop anything 5 or below.", "out": "上丐主"} {"kind": "builder", "in": "上丐主", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(reversed(r))\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "上丐主", "out": "Take a list of integers; square each, then reverse the order, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything 5 or below, then take values up to (excluding) the first zero.", "out": "一主久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only numbers greater than 5, then keep the part before the first 0.", "out": "一主久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then filter for numbers above 5, then truncate at the first zero.", "out": "一主久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me values where x is greater than 5, then delete everything starting with the first zero.", "out": "一主久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then show me only the values that are bigger than five, then remove from the first zero onwards.", "out": "一主久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep values greater than five, then up to but not including the first zero.", "out": "一主久"} {"kind": "builder", "in": "一主久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "一主久", "out": "Take a list of integers; keep the even numbers, then keep values greater than five, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then reduce each by one.", "out": "丘万不"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then Subtract 1 from all.", "out": "丘万不"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then Subtract one from each.", "out": "丘万不"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then Drop each by one.", "out": "丘万不"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep values below zero, then Decrease all values by one.", "out": "丘万不"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then get the negative numbers, then Remove one from each value.", "out": "丘万不"} {"kind": "builder", "in": "丘万不", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丘万不", "out": "Take a list of integers; cap each value at 10, then keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values below zero, then bump each up by one.", "out": "专万下"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then get the negative numbers, then increment each item.", "out": "专万下"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep values below zero, then bump each up by one.", "out": "专万下"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then get the negative numbers, then increment each item.", "out": "专万下"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep values below zero, then bump each up by one.", "out": "专万下"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then get the negative numbers, then increment each item.", "out": "专万下"} {"kind": "builder", "in": "专万下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "专万下", "out": "Take a list of integers; sort descending, then keep the negative numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then make each twice as big.", "out": "丽丐丈"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then multiply each by 2.", "out": "丽丐丈"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then make each twice as big.", "out": "丽丐丈"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then multiply each by 2.", "out": "丽丐丈"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then make each twice as big.", "out": "丽丐丈"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then multiply each by 2.", "out": "丽丐丈"} {"kind": "builder", "in": "丽丐丈", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丽丐丈", "out": "Take a list of integers; add ten to each, then reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; double each, then order by distance from zero, then give the earliest even value or zero.", "out": "丈丸乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "丈丸乒"} {"kind": "speaker", "in": "Take a list of integers; double each, then organize by magnitude, then give the earliest even value or zero.", "out": "丈丸乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "丈丸乒"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "丈丸乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by absolute value, then fetch the first even element, default to 0.", "out": "丈丸乒"} {"kind": "builder", "in": "丈丸乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丈丸乒", "out": "Take a list of integers; double each, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then default to [0] when there is nothing, then bump each up by one.", "out": "世么下"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then when the list is empty, substitute a zero value, then increment each item.", "out": "世么下"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then replace an empty list with one zero, then bump each up by one.", "out": "世么下"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then zero it out if it's empty, then increment each item.", "out": "世么下"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then use zero if the list is empty, then bump each up by one.", "out": "世么下"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then default to zero when empty, then increment each item.", "out": "世么下"} {"kind": "builder", "in": "世么下", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "世么下", "out": "Take a list of integers; drop the first element, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increase every value by 10, then bump each up by one.", "out": "世丽下"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then add 10 to each item, then increment each item.", "out": "世丽下"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then shift each up by ten, then bump each up by one.", "out": "世丽下"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then increase all numbers by 10, then increment each item.", "out": "世丽下"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then add 10 to everything, then bump each up by one.", "out": "世丽下"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give everything a boost of 10, then increment each item.", "out": "世丽下"} {"kind": "builder", "in": "世丽下", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 10 for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "世丽下", "out": "Take a list of integers; drop the first element, then add ten to each, then add one to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep values below zero, then deduplicate the list.", "out": "九万且"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then get the negative numbers, then remove repeats.", "out": "九万且"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep values below zero, then deduplicate the list.", "out": "九万且"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then get the negative numbers, then remove repeats.", "out": "九万且"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep values below zero, then deduplicate the list.", "out": "九万且"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then get the negative numbers, then remove repeats.", "out": "九万且"} {"kind": "builder", "in": "九万且", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "九万且", "out": "Take a list of people records (name, age); extract the ages, then keep the negative numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then remove all zero values, then give the number of evens.", "out": "不举乓"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then exclude zeros, then find how many values are divisible by two.", "out": "不举乓"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then remove all zero values, then how many are even.", "out": "不举乓"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then exclude zeros, then get the total number of even values in the list.", "out": "不举乓"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then remove all zero values, then give me the count of even values.", "out": "不举乓"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then exclude zeros, then I need to know how many of these are even.", "out": "不举乓"} {"kind": "builder", "in": "不举乓", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "不举乓", "out": "Take a list of integers; subtract one from each, then drop the zeros, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first 3 elements, then deduplicate the list.", "out": "下丕且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then remove everything after the third, then remove repeats.", "out": "下丕且"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate to three items, then deduplicate the list.", "out": "下丕且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then show the first three, then remove repeats.", "out": "下丕且"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the first three, then deduplicate the list.", "out": "下丕且"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep first 3, then remove repeats.", "out": "下丕且"} {"kind": "builder", "in": "下丕且", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:3]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "下丕且", "out": "Take a list of integers; add one to each, then keep only the first three, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; double each, then cut the list at the first zero, then stop at the first non-positive value.", "out": "丈久乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off after the first zero appears, then keep the leading run of positive numbers.", "out": "丈久乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then take values up to (excluding) the first zero, then take values while they are positive.", "out": "丈久乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the part before the first 0, then take positive values then stop.", "out": "丈久乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then truncate at the first zero, then keep going while positive.", "out": "丈久乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then delete everything starting with the first zero, then stop at first non positive.", "out": "丈久乂"} {"kind": "builder", "in": "丈久乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丈久乂", "out": "Take a list of integers; double each, then keep everything before the first zero, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then take the first 3 elements, then strip the signs.", "out": "丐丕丏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then remove everything after the third, then take abs of each.", "out": "丐丕丏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then truncate to three items, then get the absolute value of everything.", "out": "丐丕丏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then show the first three, then apply absolute value to the whole list.", "out": "丐丕丏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then take the first three, then make them all positive.", "out": "丐丕丏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep first 3, then make every value non-negative.", "out": "丐丕丏"} {"kind": "builder", "in": "丐丕丏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[:3]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丐丕丏", "out": "Take a list of integers; reverse the order, then keep only the first three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then decrement each value, then give back the product of all values.", "out": "下不乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Lower each number by one, then product of the list.", "out": "下不乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then reduce each by one, then what's the product.", "out": "下不乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Subtract 1 from all, then what do they multiply to.", "out": "下不乐"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Subtract one from each, then give me their product.", "out": "下不乐"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Drop each by one, then multiply them all together.", "out": "下不乐"} {"kind": "builder", "in": "下不乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "下不乐", "out": "Take a list of integers; add one to each, then subtract one from each, then return their product."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest to smallest, then arrange in increasing order.", "out": "义专丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by descending values, then Organize these ascending.", "out": "义专丑"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from highest to lowest, then Sort in ascending order.", "out": "义专丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort descending, then I need this sorted ascending.", "out": "义专丑"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest first, then Put these in ascending order.", "out": "义专丑"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort in descending order, then sort smallest to largest.", "out": "义专丑"} {"kind": "builder", "in": "义专丑", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n r = sorted(r)\n return r"} {"kind": "translator", "in": "义专丑", "out": "Take a list of integers; pad with zeros to at least three elements, then sort descending, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep the leading run of positive numbers, then arrange in increasing order.", "out": "丏乂丑"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then take values while they are positive, then Organize these ascending.", "out": "丏乂丑"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take positive values then stop, then Sort in ascending order.", "out": "丏乂丑"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep going while positive, then I need this sorted ascending.", "out": "丏乂丑"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then stop at first non positive, then Put these in ascending order.", "out": "丏乂丑"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then take while greater than zero, then sort smallest to largest.", "out": "丏乂丑"} {"kind": "builder", "in": "丏乂丑", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丏乂丑", "out": "Take a list of integers; take the absolute value of each, then take values while they are positive, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove both ends, then give the earliest even value or zero.", "out": "串为乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then trim the edges, then fetch the first even element, default to 0.", "out": "串为乒"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then trim one element off each end, then give the earliest even value or zero.", "out": "串为乒"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then cut off the first and last, then fetch the first even element, default to 0.", "out": "串为乒"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first and last elements, then give the earliest even value or zero.", "out": "串为乒"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep only the middle part, then fetch the first even element, default to 0.", "out": "串为乒"} {"kind": "builder", "in": "串为乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "串为乒", "out": "Take a list of integers; keep multiples of three, then drop the first and last elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then shift each up by ten.", "out": "下万丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then increase all numbers by 10.", "out": "下万丽"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then add 10 to everything.", "out": "下万丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then give everything a boost of 10.", "out": "下万丽"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then increment each by ten.", "out": "下万丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then add a constant 10 to each.", "out": "下万丽"} {"kind": "builder", "in": "下万丽", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "下万丽", "out": "Take a list of integers; add one to each, then keep the negative numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep only even values, then arrange in increasing order.", "out": "主一丑"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then extract all even numbers, then Organize these ascending.", "out": "主一丑"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only even values, then Sort in ascending order.", "out": "主一丑"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then extract all even numbers, then I need this sorted ascending.", "out": "主一丑"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only even values, then Put these in ascending order.", "out": "主一丑"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then extract all even numbers, then sort smallest to largest.", "out": "主一丑"} {"kind": "builder", "in": "主一丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "主一丑", "out": "Take a list of integers; keep values greater than five, then keep the even numbers, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then take values up to (excluding) the first zero.", "out": "万与久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then keep the part before the first 0.", "out": "万与久"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then truncate at the first zero.", "out": "万与久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then delete everything starting with the first zero.", "out": "万与久"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then remove from the first zero onwards.", "out": "万与久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then up to but not including the first zero.", "out": "万与久"} {"kind": "builder", "in": "万与久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "万与久", "out": "Take a list of integers; keep the negative numbers, then negate each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only odd values, then give the earliest even value or zero.", "out": "丈丁乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then eliminate the even numbers, then fetch the first even element, default to 0.", "out": "丈丁乒"} {"kind": "builder", "in": "丈丁乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丈丁乒", "out": "Take a list of integers; double each, then keep the odd numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each value by itself, then drop non-positive values.", "out": "丁上七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then square them all, then drop the negative numbers.", "out": "丁上七"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then raise each to the power of two, then filter out the negative ones.", "out": "丁上七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then I need each number multiplied by itself, then remove all negative values.", "out": "丁上七"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then square all of them, then keep positive values only.", "out": "丁上七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiply each element by itself, then keep values above zero.", "out": "丁上七"} {"kind": "builder", "in": "丁上七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x * x for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丁上七", "out": "Take a list of integers; keep the odd numbers, then square each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep only even values, then give the number of evens.", "out": "丽一乓"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then extract all even numbers, then find how many values are divisible by two.", "out": "丽一乓"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only even values, then how many are even.", "out": "丽一乓"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then extract all even numbers, then get the total number of even values in the list.", "out": "丽一乓"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only even values, then give me the count of even values.", "out": "丽一乓"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then extract all even numbers, then I need to know how many of these are even.", "out": "丽一乓"} {"kind": "builder", "in": "丽一乓", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 == 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丽一乓", "out": "Take a list of integers; add ten to each, then keep the even numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the final 3 elements, then drop the even numbers.", "out": "丘丹丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop everything except the final three, then strip out the evens.", "out": "丘丹丁"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give me the last three elements, then drop the even numbers.", "out": "丘丹丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the last three, then strip out the evens.", "out": "丘丹丁"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the final three items, then drop the even numbers.", "out": "丘丹丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the last three, then strip out the evens.", "out": "丘丹丁"} {"kind": "builder", "in": "丘丹丁", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丘丹丁", "out": "Take a list of integers; cap each value at 10, then keep only the last three, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove repeated values, then ensure at least three items by appending zeros.", "out": "久且义"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "久且义"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove repeated values, then ensure at least three items by appending zeros.", "out": "久且义"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "久且义"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove repeated values, then ensure at least three items by appending zeros.", "out": "久且义"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then unique values preserving order, then ensure minimum length of three by adding zeros to the end.", "out": "久且义"} {"kind": "builder", "in": "久且义", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(dict.fromkeys(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "久且义", "out": "Take a list of integers; keep everything before the first zero, then drop duplicates keeping first occurrence, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then cut the list at the first zero, then bump each up by one.", "out": "乂久下"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then cut off after the first zero appears, then increment each item.", "out": "乂久下"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then take values up to (excluding) the first zero, then bump each up by one.", "out": "乂久下"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the part before the first 0, then increment each item.", "out": "乂久下"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then truncate at the first zero, then bump each up by one.", "out": "乂久下"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then delete everything starting with the first zero, then increment each item.", "out": "乂久下"} {"kind": "builder", "in": "乂久下", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "乂久下", "out": "Take a list of integers; take values while they are positive, then keep everything before the first zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep the leading run of positive numbers, then drop non-positive values.", "out": "丽乂七"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then take values while they are positive, then drop the negative numbers.", "out": "丽乂七"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take positive values then stop, then filter out the negative ones.", "out": "丽乂七"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep going while positive, then remove all negative values.", "out": "丽乂七"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then stop at first non positive, then keep positive values only.", "out": "丽乂七"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then take while greater than zero, then keep values above zero.", "out": "丽乂七"} {"kind": "builder", "in": "丽乂七", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丽乂七", "out": "Take a list of integers; add ten to each, then take values while they are positive, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then drop non-negative values.", "out": "串主万"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then drop all positive numbers.", "out": "串主万"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then drop non-negative values.", "out": "串主万"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then drop all positive numbers.", "out": "串主万"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then drop non-negative values.", "out": "串主万"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then drop all positive numbers.", "out": "串主万"} {"kind": "builder", "in": "串主万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "串主万", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then cut the list at the first zero, then bump each up by one.", "out": "丸久下"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then cut off after the first zero appears, then increment each item.", "out": "丸久下"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take values up to (excluding) the first zero, then bump each up by one.", "out": "丸久下"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the part before the first 0, then increment each item.", "out": "丸久下"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then truncate at the first zero, then bump each up by one.", "out": "丸久下"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then delete everything starting with the first zero, then increment each item.", "out": "丸久下"} {"kind": "builder", "in": "丸久下", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丸久下", "out": "Take a list of integers; sort by absolute value, then keep everything before the first zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep the leading run of positive numbers, then true if any value equals zero.", "out": "专乂乍"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then take values while they are positive, then check for zero.", "out": "专乂乍"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take positive values then stop, then true if any value equals zero.", "out": "专乂乍"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep going while positive, then check for zero.", "out": "专乂乍"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then stop at first non positive, then true if any value equals zero.", "out": "专乂乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take while greater than zero, then check for zero.", "out": "专乂乍"} {"kind": "builder", "in": "专乂乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return 0 in r"} {"kind": "translator", "in": "专乂乍", "out": "Take a list of integers; sort descending, then take values while they are positive, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then skip negatives at the start, then truncate to three items.", "out": "丘乃丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then remove all negatives at the front, then show the first three.", "out": "丘乃丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the initial run of negative numbers, then take the first three.", "out": "丘乃丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then strip the front negatives, then keep first 3.", "out": "丘乃丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove leading negative numbers, then truncate to first three.", "out": "丘乃丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop negatives from start, then first three.", "out": "丘乃丕"} {"kind": "builder", "in": "丘乃丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘乃丕", "out": "Take a list of integers; cap each value at 10, then drop the leading negative values, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then stop at the first non-positive value.", "out": "与万乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then keep the leading run of positive numbers.", "out": "与万乂"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then take values while they are positive.", "out": "与万乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then take positive values then stop.", "out": "与万乂"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values below zero, then keep going while positive.", "out": "与万乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then get the negative numbers, then stop at first non positive.", "out": "与万乂"} {"kind": "builder", "in": "与万乂", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "与万乂", "out": "Take a list of integers; negate each, then keep the negative numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then multiply each value by itself, then drop the odd numbers.", "out": "丏上一"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then square them all, then filter out the odd numbers.", "out": "丏上一"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then raise each to the power of two, then drop the odd numbers.", "out": "丏上一"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then I need each number multiplied by itself, then filter out the odd numbers.", "out": "丏上一"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then square all of them, then drop the odd numbers.", "out": "丏上一"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then multiply each element by itself, then filter out the odd numbers.", "out": "丏上一"} {"kind": "builder", "in": "丏上一", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x * x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丏上一", "out": "Take a list of integers; take the absolute value of each, then square each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then decrement each value, then make each twice as big.", "out": "七不丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then Lower each number by one, then multiply each by 2.", "out": "七不丈"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then reduce each by one, then make each twice as big.", "out": "七不丈"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then Subtract 1 from all, then multiply each by 2.", "out": "七不丈"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then Subtract one from each, then make each twice as big.", "out": "七不丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then Drop each by one, then multiply each by 2.", "out": "七不丈"} {"kind": "builder", "in": "七不丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "七不丈", "out": "Take a list of integers; keep the positive numbers, then subtract one from each, then double each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increment each value, then drop the even numbers.", "out": "乂下丁"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then plus one for all, then strip out the evens.", "out": "乂下丁"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then increment each value, then drop the even numbers.", "out": "乂下丁"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then plus one for all, then strip out the evens.", "out": "乂下丁"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then increment each value, then drop the even numbers.", "out": "乂下丁"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then plus one for all, then strip out the evens.", "out": "乂下丁"} {"kind": "builder", "in": "乂下丁", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "乂下丁", "out": "Take a list of integers; take values while they are positive, then add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then drop non-positive values.", "out": "万下七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then drop the negative numbers.", "out": "万下七"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then filter out the negative ones.", "out": "万下七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then remove all negative values.", "out": "万下七"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then increment each value, then keep positive values only.", "out": "万下七"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then plus one for all, then keep values above zero.", "out": "万下七"} {"kind": "builder", "in": "万下七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "万下七", "out": "Take a list of integers; keep the negative numbers, then add one to each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increment each value, then reduce each by one.", "out": "丹下不"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then plus one for all, then Subtract 1 from all.", "out": "丹下不"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then increment each value, then Subtract one from each.", "out": "丹下不"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then plus one for all, then Drop each by one.", "out": "丹下不"} {"kind": "speaker", "in": "Take a list of integers; last three only, then increment each value, then Decrease all values by one.", "out": "丹下不"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then plus one for all, then Remove one from each value.", "out": "丹下不"} {"kind": "builder", "in": "丹下不", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丹下不", "out": "Take a list of integers; keep only the last three, then add one to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then put the elements backwards.", "out": "世一丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then reverse that for me.", "out": "世一丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then flip it backwards.", "out": "世一丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then make it backwards.", "out": "世一丐"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only even values, then reverse the list.", "out": "世一丐"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then extract all even numbers, then invert the sequence.", "out": "世一丐"} {"kind": "builder", "in": "世一丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 2 == 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "世一丐", "out": "Take a list of integers; drop the first element, then keep the even numbers, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below, then limit every value to 10.", "out": "丏主丘"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5, then maximum of 10 for all.", "out": "丏主丘"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5, then limit every value to 10.", "out": "丏主丘"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5, then maximum of 10 for all.", "out": "丏主丘"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five, then limit every value to 10.", "out": "丏主丘"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five, then maximum of 10 for all.", "out": "丏主丘"} {"kind": "builder", "in": "丏主丘", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丏主丘", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep the leading run of positive numbers, then arrange in increasing order.", "out": "专乂丑"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then take values while they are positive, then Organize these ascending.", "out": "专乂丑"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take positive values then stop, then Sort in ascending order.", "out": "专乂丑"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep going while positive, then I need this sorted ascending.", "out": "专乂丑"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then stop at first non positive, then Put these in ascending order.", "out": "专乂丑"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take while greater than zero, then sort smallest to largest.", "out": "专乂丑"} {"kind": "builder", "in": "专乂丑", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "专乂丑", "out": "Take a list of integers; sort descending, then take values while they are positive, then sort ascending."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then convert each to lower case, then remove surrounding whitespace.", "out": "丨丞丢"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then lowercase each one, then trim the whitespace off everything.", "out": "丨丞丢"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then convert each to lower case, then strip spaces from all strings.", "out": "丨丞丢"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then lowercase each one, then strip all the strings.", "out": "丨丞丢"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then convert each to lower case, then clean up whitespace in the list.", "out": "丨丞丢"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then lowercase each one, then strip spaces around each string.", "out": "丨丞丢"} {"kind": "builder", "in": "丨丞丢", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = [s.lower() for s in r]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "丨丞丢", "out": "Take a list of strings; keep the first character of each (dropping empties), then lowercase each string, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the sign of each, then strip the signs.", "out": "主与丏"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then turn positives to negatives and vice versa, then take abs of each.", "out": "主与丏"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then flip the sign of each, then get the absolute value of everything.", "out": "主与丏"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then turn positives to negatives and vice versa, then apply absolute value to the whole list.", "out": "主与丏"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip the sign of each, then make them all positive.", "out": "主与丏"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then turn positives to negatives and vice versa, then make every value non-negative.", "out": "主与丏"} {"kind": "builder", "in": "主与丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [-x for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "主与丏", "out": "Take a list of integers; keep values greater than five, then negate each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; square each, then skip negatives at the start, then deduplicate the list.", "out": "上乃且"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove all negatives at the front, then remove repeats.", "out": "上乃且"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the initial run of negative numbers, then deduplicate the list.", "out": "上乃且"} {"kind": "speaker", "in": "Take a list of integers; square them all, then strip the front negatives, then remove repeats.", "out": "上乃且"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove leading negative numbers, then deduplicate the list.", "out": "上乃且"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then drop negatives from start, then remove repeats.", "out": "上乃且"} {"kind": "builder", "in": "上乃且", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "上乃且", "out": "Take a list of integers; square each, then drop the leading negative values, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then keep only strings of length 3 or more, then return the number of strings.", "out": "丢乗丫"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then get rid of short ones, then count the strings.", "out": "丢乗丫"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then remove strings with less than three characters, then return how many strings remain.", "out": "丢乗丫"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then remove all strings under three characters in length, then give me the total number of strings.", "out": "丢乗丫"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then filter out short strings under three chars, then tell me how many strings we have.", "out": "丢乗丫"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then drop strings shorter than three characters, then what's the string count.", "out": "丢乗丫"} {"kind": "builder", "in": "丢乗丫", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = [s for s in r if len(s) >= 3]\n return len(r)"} {"kind": "translator", "in": "丢乗丫", "out": "Take a list of strings; trim whitespace from each, then drop strings shorter than three characters, then return how many strings remain."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort largest to smallest, then keep only numbers above 5.", "out": "上专主"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort by descending values, then exclude values of 5 and below.", "out": "上专主"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then sort from highest to lowest, then remove anything 5 or less.", "out": "上专主"} {"kind": "speaker", "in": "Take a list of integers; square them all, then sort descending, then filter to keep only values above 5.", "out": "上专主"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort largest first, then get rid of values that aren't greater than five.", "out": "上专主"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort in descending order, then drop anything 5 or below.", "out": "上专主"} {"kind": "builder", "in": "上专主", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "上专主", "out": "Take a list of integers; square each, then sort descending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then order the strings A to Z, then make every string uppercase.", "out": "丨乖丟"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make it alphabetical, then uppercase each one.", "out": "丨乖丟"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then order the strings A to Z, then make all the strings uppercase.", "out": "丨乖丟"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make it alphabetical, then convert all strings to uppercase letters.", "out": "丨乖丟"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then order the strings A to Z, then convert to uppercase.", "out": "丨乖丟"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make it alphabetical, then i need these in uppercase.", "out": "丨乖丟"} {"kind": "builder", "in": "丨乖丟", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = sorted(r)\n r = [s.upper() for s in r]\n return r"} {"kind": "translator", "in": "丨乖丟", "out": "Take a list of strings; keep the first character of each (dropping empties), then sort alphabetically, then uppercase each string."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increase every value by 10, then true if already sorted smallest to largest.", "out": "丘丽乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then add 10 to each item, then does this list go in ascending order.", "out": "丘丽乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then shift each up by ten, then check if the list is in ascending order.", "out": "丘丽乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then increase all numbers by 10, then is the list sorted.", "out": "丘丽乎"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then add 10 to everything, then is it sorted.", "out": "丘丽乎"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then give everything a boost of 10, then check if values are in increasing order.", "out": "丘丽乎"} {"kind": "builder", "in": "丘丽乎", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丘丽乎", "out": "Take a list of integers; cap each value at 10, then add ten to each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then keep only non-zero numbers.", "out": "丹丽举"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then strip the zeros.", "out": "丹丽举"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then keep only non-zero numbers.", "out": "丹丽举"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then strip the zeros.", "out": "丹丽举"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then keep only non-zero numbers.", "out": "丹丽举"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then strip the zeros.", "out": "丹丽举"} {"kind": "builder", "in": "丹丽举", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丹丽举", "out": "Take a list of integers; keep only the last three, then add ten to each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values above zero, then shift each up by ten.", "out": "为七丽"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then filter for positive numbers, then increase all numbers by 10.", "out": "为七丽"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only positive numbers, then add 10 to everything.", "out": "为七丽"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the positives, then give everything a boost of 10.", "out": "为七丽"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove negatives, then increment each by ten.", "out": "为七丽"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep the positive numbers, then add a constant 10 to each.", "out": "为七丽"} {"kind": "builder", "in": "为七丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x > 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "为七丽", "out": "Take a list of integers; drop the first and last elements, then keep the positive numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then take each string's first letter, then deduplicate the strings.", "out": "严丨丧"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then give me the first letter of everything, then filter out duplicate strings retain first.", "out": "严丨丧"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then reduce each string to its first character, then strip duplicates preserve order.", "out": "严丨丧"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then take first char drop blanks, then remove repeated strings.", "out": "严丨丧"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then keep first letters only, then keep unique strings first appearance.", "out": "严丨丧"} {"kind": "speaker", "in": "Take a list of strings; length sort, then first letter from each item that isn't empty, then eliminate repeated strings preserve first occurrence.", "out": "严丨丧"} {"kind": "builder", "in": "严丨丧", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s[0] for s in r if s]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "严丨丧", "out": "Take a list of strings; sort by length, shortest first, then keep the first character of each (dropping empties), then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of strings; trim whitespace from each, then order strings from shortest to longest, then find how long the longest string is.", "out": "丢严乜"} {"kind": "speaker", "in": "Take a list of strings; strip whitespace from every element, then shortest to longest, then give the length of the longest string in the list.", "out": "丢严乜"} {"kind": "speaker", "in": "Take a list of strings; remove surrounding whitespace, then arrange by string length ascending, then get me the longest string's length.", "out": "丢严乜"} {"kind": "speaker", "in": "Take a list of strings; trim the whitespace off everything, then length sort, then give the maximum string length.", "out": "丢严乜"} {"kind": "speaker", "in": "Take a list of strings; strip spaces from all strings, then sort by length shortest first, then max length of all strings.", "out": "丢严乜"} {"kind": "speaker", "in": "Take a list of strings; strip all the strings, then organize by string length least to greatest, then what's the max string length.", "out": "丢严乜"} {"kind": "builder", "in": "丢严乜", "out": "def solve(xs):\n r = list(xs)\n r = [s.strip() for s in r]\n r = sorted(r, key=len)\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "丢严乜", "out": "Take a list of strings; trim whitespace from each, then sort by length, shortest first, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then order by distance from zero, then remove the initial run of negative numbers.", "out": "专丸乃"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then sort based on absolute value, then strip the front negatives.", "out": "专丸乃"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then organize by magnitude, then remove leading negative numbers.", "out": "专丸乃"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then arrange by absolute value ascending, then drop negatives from start.", "out": "专丸乃"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then sort from smallest to largest absolute value, then strip negative values from the start.", "out": "专丸乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then sort by absolute value, then remove negatives before the first non-negative.", "out": "专丸乃"} {"kind": "builder", "in": "专丸乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "专丸乃", "out": "Take a list of integers; sort descending, then sort by absolute value, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then flip the list around, then make each twice as big.", "out": "不丐丈"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then flip the order around, then multiply each by 2.", "out": "不丐丈"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then put the elements backwards, then make each twice as big.", "out": "不丐丈"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then reverse that for me, then multiply each by 2.", "out": "不丐丈"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then flip it backwards, then make each twice as big.", "out": "不丐丈"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then make it backwards, then multiply each by 2.", "out": "不丐丈"} {"kind": "builder", "in": "不丐丈", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "不丐丈", "out": "Take a list of integers; subtract one from each, then reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero, then drop non-positive values.", "out": "丑丸七"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value, then drop the negative numbers.", "out": "丑丸七"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude, then filter out the negative ones.", "out": "丑丸七"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending, then remove all negative values.", "out": "丑丸七"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value, then keep positive values only.", "out": "丑丸七"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value, then keep values above zero.", "out": "丑丸七"} {"kind": "builder", "in": "丑丸七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丑丸七", "out": "Take a list of integers; sort ascending, then sort by absolute value, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then remove all zero values, then find the min, defaulting to 0.", "out": "为举丛"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then exclude zeros, then minimum value, zero otherwise.", "out": "为举丛"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove all zero values, then get the minimum value or zero if empty.", "out": "为举丛"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then exclude zeros, then give me the min or 0.", "out": "为举丛"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove all zero values, then return the smallest number, defaulting to 0.", "out": "为举丛"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then exclude zeros, then return smallest or zero if empty.", "out": "为举丛"} {"kind": "builder", "in": "为举丛", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x != 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "为举丛", "out": "Take a list of integers; drop the first and last elements, then drop the zeros, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then skip negatives at the start, then skip the first one.", "out": "万乃世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then remove all negatives at the front, then Discard the first element.", "out": "万乃世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the initial run of negative numbers, then skip the first one.", "out": "万乃世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then strip the front negatives, then Discard the first element.", "out": "万乃世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove leading negative numbers, then skip the first one.", "out": "万乃世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop negatives from start, then Discard the first element.", "out": "万乃世"} {"kind": "builder", "in": "万乃世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:]\n return r"} {"kind": "translator", "in": "万乃世", "out": "Take a list of integers; keep the negative numbers, then drop the leading negative values, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then drop the odd numbers.", "out": "丈世一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then filter out the odd numbers.", "out": "丈世一"} {"kind": "builder", "in": "丈世一", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丈世一", "out": "Take a list of integers; double each, then drop the first element, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then make every value non-negative, then stop at the first non-positive value.", "out": "与丏乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then absolute value for all items, then keep the leading run of positive numbers.", "out": "与丏乂"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take absolute values, then take values while they are positive.", "out": "与丏乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then turn negatives into positives, then take positive values then stop.", "out": "与丏乂"} {"kind": "speaker", "in": "Take a list of integers; negate each, then abs each element, then keep going while positive.", "out": "与丏乂"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the absolute value of each, then stop at first non positive.", "out": "与丏乂"} {"kind": "builder", "in": "与丏乂", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "与丏乂", "out": "Take a list of integers; negate each, then take the absolute value of each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increase every value by 10, then multiply each by -1.", "out": "乂丽与"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then add 10 to each item, then negate.", "out": "乂丽与"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then shift each up by ten, then multiply each by -1.", "out": "乂丽与"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then increase all numbers by 10, then negate.", "out": "乂丽与"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then add 10 to everything, then multiply each by -1.", "out": "乂丽与"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then give everything a boost of 10, then negate.", "out": "乂丽与"} {"kind": "builder", "in": "乂丽与", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乂丽与", "out": "Take a list of integers; take values while they are positive, then add ten to each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then skip the first one.", "out": "下万世"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then Discard the first element.", "out": "下万世"} {"kind": "builder", "in": "下万世", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "下万世", "out": "Take a list of integers; add one to each, then keep the negative numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then multiply each by two, then keep only non-zero numbers.", "out": "丑丈举"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then double each item in the list, then strip the zeros.", "out": "丑丈举"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then multiply each by two, then keep only non-zero numbers.", "out": "丑丈举"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then double each item in the list, then strip the zeros.", "out": "丑丈举"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then multiply each by two, then keep only non-zero numbers.", "out": "丑丈举"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then double each item in the list, then strip the zeros.", "out": "丑丈举"} {"kind": "builder", "in": "丑丈举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丑丈举", "out": "Take a list of integers; sort ascending, then double each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything 5 or below, then true if every value is unique.", "out": "一主乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only numbers greater than 5, then check for duplicates in the values.", "out": "一主乏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then filter for numbers above 5, then do all values appear only once.", "out": "一主乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give me values where x is greater than 5, then check that there are no duplicates.", "out": "一主乏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then show me only the values that are bigger than five, then are the values all unique.", "out": "一主乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep values greater than five, then check if all values are unique.", "out": "一主乏"} {"kind": "builder", "in": "一主乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "一主乏", "out": "Take a list of integers; keep the even numbers, then keep values greater than five, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then drop the even numbers.", "out": "义且丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then strip out the evens.", "out": "义且丁"} {"kind": "builder", "in": "义且丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义且丁", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then arrange in decreasing order.", "out": "义丈专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then arrange in descending order.", "out": "义丈专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then reverse sort.", "out": "义丈专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then sort largest to smallest.", "out": "义丈专"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then sort by descending values.", "out": "义丈专"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then sort from highest to lowest.", "out": "义丈专"} {"kind": "builder", "in": "义丈专", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * 2 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "义丈专", "out": "Take a list of integers; pad with zeros to at least three elements, then double each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then default to [0] when there is nothing, then keep only non-zero numbers.", "out": "丑么举"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then when the list is empty, substitute a zero value, then strip the zeros.", "out": "丑么举"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then replace an empty list with one zero, then keep only non-zero numbers.", "out": "丑么举"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then zero it out if it's empty, then strip the zeros.", "out": "丑么举"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then use zero if the list is empty, then keep only non-zero numbers.", "out": "丑么举"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then default to zero when empty, then strip the zeros.", "out": "丑么举"} {"kind": "builder", "in": "丑么举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丑么举", "out": "Take a list of integers; sort ascending, then if empty, use a single zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then flip the list around, then truncate to three items.", "out": "主丐丕"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then flip the order around, then show the first three.", "out": "主丐丕"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then put the elements backwards, then take the first three.", "out": "主丐丕"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then reverse that for me, then keep first 3.", "out": "主丐丕"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then flip it backwards, then truncate to first three.", "out": "主丐丕"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then make it backwards, then first three.", "out": "主丐丕"} {"kind": "builder", "in": "主丐丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(reversed(r))\n r = r[:3]\n return r"} {"kind": "translator", "in": "主丐丕", "out": "Take a list of integers; keep values greater than five, then reverse the order, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then clamp each to at most ten, then keep only non-zero numbers.", "out": "乂丘举"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then don't let anything exceed 10, then strip the zeros.", "out": "乂丘举"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then clamp each to at most ten, then keep only non-zero numbers.", "out": "乂丘举"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then don't let anything exceed 10, then strip the zeros.", "out": "乂丘举"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then clamp each to at most ten, then keep only non-zero numbers.", "out": "乂丘举"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then don't let anything exceed 10, then strip the zeros.", "out": "乂丘举"} {"kind": "builder", "in": "乂丘举", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "乂丘举", "out": "Take a list of integers; take values while they are positive, then cap each value at 10, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each by two, then trim one element off each end.", "out": "乃丈为"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then double each item in the list, then cut off the first and last.", "out": "乃丈为"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then multiply each by two, then remove the first and last elements.", "out": "乃丈为"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then double each item in the list, then keep only the middle part.", "out": "乃丈为"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then multiply each by two, then drop first and last.", "out": "乃丈为"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then double each item in the list, then eliminate the outermost elements.", "out": "乃丈为"} {"kind": "builder", "in": "乃丈为", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乃丈为", "out": "Take a list of integers; drop the leading negative values, then double each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest to smallest, then truncate to the last three items.", "out": "丘专丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by descending values, then show only the last three.", "out": "丘专丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from highest to lowest, then remove all but the last three.", "out": "丘专丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort descending, then take the final 3 elements.", "out": "丘专丹"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest first, then drop everything except the final three.", "out": "丘专丹"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort in descending order, then give me the last three elements.", "out": "丘专丹"} {"kind": "builder", "in": "丘专丹", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, reverse=True)\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丘专丹", "out": "Take a list of integers; cap each value at 10, then sort descending, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the first 3 elements, then find the min, defaulting to 0.", "out": "乂丕丛"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then remove everything after the third, then minimum value, zero otherwise.", "out": "乂丕丛"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then truncate to three items, then get the minimum value or zero if empty.", "out": "乂丕丛"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then show the first three, then give me the min or 0.", "out": "乂丕丛"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then take the first three, then return the smallest number, defaulting to 0.", "out": "乂丕丛"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then keep first 3, then return smallest or zero if empty.", "out": "乂丕丛"} {"kind": "builder", "in": "乂丕丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return min(r) if r else 0"} {"kind": "translator", "in": "乂丕丛", "out": "Take a list of integers; take values while they are positive, then keep only the first three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then skip the first one.", "out": "九一世"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then Discard the first element.", "out": "九一世"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then skip the first one.", "out": "九一世"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then Discard the first element.", "out": "九一世"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then skip the first one.", "out": "九一世"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then Discard the first element.", "out": "九一世"} {"kind": "builder", "in": "九一世", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "九一世", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then drop non-positive values.", "out": "主世七"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then drop the negative numbers.", "out": "主世七"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then filter out the negative ones.", "out": "主世七"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then remove all negative values.", "out": "主世七"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then keep positive values only.", "out": "主世七"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then keep values above zero.", "out": "主世七"} {"kind": "builder", "in": "主世七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "主世七", "out": "Take a list of integers; keep values greater than five, then drop the first element, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep values below zero, then keep only non-zero numbers.", "out": "下万举"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then get the negative numbers, then strip the zeros.", "out": "下万举"} {"kind": "builder", "in": "下万举", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "下万举", "out": "Take a list of integers; add one to each, then keep the negative numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then remove the initial run of negative numbers.", "out": "丁丘乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then strip the front negatives.", "out": "丁丘乃"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then remove leading negative numbers.", "out": "丁丘乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then drop negatives from start.", "out": "丁丘乃"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then clamp each to at most ten, then strip negative values from the start.", "out": "丁丘乃"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then don't let anything exceed 10, then remove negatives before the first non-negative.", "out": "丁丘乃"} {"kind": "builder", "in": "丁丘乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [min(x, 10) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丁丘乃", "out": "Take a list of integers; keep the odd numbers, then cap each value at 10, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then convert each to lower case, then deduplicate the strings.", "out": "严丞丧"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then lowercase each one, then filter out duplicate strings retain first.", "out": "严丞丧"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then convert each to lower case, then strip duplicates preserve order.", "out": "严丞丧"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then lowercase each one, then remove repeated strings.", "out": "严丞丧"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then convert each to lower case, then keep unique strings first appearance.", "out": "严丞丧"} {"kind": "speaker", "in": "Take a list of strings; length sort, then lowercase each one, then eliminate repeated strings preserve first occurrence.", "out": "严丞丧"} {"kind": "builder", "in": "严丞丧", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.lower() for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "严丞丧", "out": "Take a list of strings; sort by length, shortest first, then lowercase each string, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then find the max, defaulting to 0.", "out": "丹丽业"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then Give me the maximum, but 0 if there are no items.", "out": "丹丽业"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then What's the highest number in the list.", "out": "丹丽业"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then Return the greatest value or default to 0.", "out": "丹丽业"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then Find the largest element, defaulting to zero.", "out": "丹丽业"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then give the largest value (0 if none).", "out": "丹丽业"} {"kind": "builder", "in": "丹丽业", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丹丽业", "out": "Take a list of integers; keep only the last three, then add ten to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then keep only non-empty strings, then remove surrounding whitespace.", "out": "乞两丢"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then filter empty strings, then trim the whitespace off everything.", "out": "乞两丢"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove empty strings from the list, then strip spaces from all strings.", "out": "乞两丢"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then clean up empty strings, then strip all the strings.", "out": "乞两丢"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then delete empty entries, then clean up whitespace in the list.", "out": "乞两丢"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then drop empty strings, then strip spaces around each string.", "out": "乞两丢"} {"kind": "builder", "in": "乞两丢", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s for s in r if s]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "乞两丢", "out": "Take a list of people records (name, age); extract the names, then drop empty strings, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort smallest to largest, then give the earliest even value or zero.", "out": "丏丑乒"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Ascending sort, then fetch the first even element, default to 0.", "out": "丏丑乒"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then Sort this ascending, then give the earliest even value or zero.", "out": "丏丑乒"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Sort lowest to highest, then fetch the first even element, default to 0.", "out": "丏丑乒"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Arrange from smallest to largest, then give the earliest even value or zero.", "out": "丏丑乒"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort ascending, then fetch the first even element, default to 0.", "out": "丏丑乒"} {"kind": "builder", "in": "丏丑乒", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丏丑乒", "out": "Take a list of integers; take the absolute value of each, then sort ascending, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip the list around, then replace an empty list with one zero.", "out": "下丐么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then flip the order around, then zero it out if it's empty.", "out": "下丐么"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then put the elements backwards, then use zero if the list is empty.", "out": "下丐么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then reverse that for me, then default to zero when empty.", "out": "下丐么"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then flip it backwards, then if there's nothing, put in a zero.", "out": "下丐么"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then make it backwards, then if no items, add a zero.", "out": "下丐么"} {"kind": "builder", "in": "下丐么", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(reversed(r))\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "下丐么", "out": "Take a list of integers; add one to each, then reverse the order, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then clamp each to at most ten, then true if at least one even value.", "out": "九丘之"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then don't let anything exceed 10, then any even.", "out": "九丘之"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then clamp each to at most ten, then true if at least one even value.", "out": "九丘之"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then don't let anything exceed 10, then any even.", "out": "九丘之"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then clamp each to at most ten, then true if at least one even value.", "out": "九丘之"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then don't let anything exceed 10, then any even.", "out": "九丘之"} {"kind": "builder", "in": "九丘之", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [min(x, 10) for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "九丘之", "out": "Take a list of people records (name, age); extract the ages, then cap each value at 10, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then decrement each value, then trim one element off each end.", "out": "丸不为"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Lower each number by one, then cut off the first and last.", "out": "丸不为"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then reduce each by one, then remove the first and last elements.", "out": "丸不为"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Subtract 1 from all, then keep only the middle part.", "out": "丸不为"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Subtract one from each, then drop first and last.", "out": "丸不为"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Drop each by one, then eliminate the outermost elements.", "out": "丸不为"} {"kind": "builder", "in": "丸不为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x - 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丸不为", "out": "Take a list of integers; sort by absolute value, then subtract one from each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then true if already sorted smallest to largest.", "out": "一举乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then does this list go in ascending order.", "out": "一举乎"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then check if the list is in ascending order.", "out": "一举乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then is the list sorted.", "out": "一举乎"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then remove all zero values, then is it sorted.", "out": "一举乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then exclude zeros, then check if values are in increasing order.", "out": "一举乎"} {"kind": "builder", "in": "一举乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n return r == sorted(r)"} {"kind": "translator", "in": "一举乎", "out": "Take a list of integers; keep the even numbers, then drop the zeros, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest to smallest, then stop at the first non-positive value.", "out": "丘专乂"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by descending values, then keep the leading run of positive numbers.", "out": "丘专乂"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from highest to lowest, then take values while they are positive.", "out": "丘专乂"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort descending, then take positive values then stop.", "out": "丘专乂"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort largest first, then keep going while positive.", "out": "丘专乂"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort in descending order, then stop at first non positive.", "out": "丘专乂"} {"kind": "builder", "in": "丘专乂", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, reverse=True)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丘专乂", "out": "Take a list of integers; cap each value at 10, then sort descending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then shift each up by ten.", "out": "下丘丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then increase all numbers by 10.", "out": "下丘丽"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then add 10 to everything.", "out": "下丘丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then give everything a boost of 10.", "out": "下丘丽"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then increment each by ten.", "out": "下丘丽"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then add a constant 10 to each.", "out": "下丘丽"} {"kind": "builder", "in": "下丘丽", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "下丘丽", "out": "Take a list of integers; add one to each, then cap each value at 10, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep only odd values, then multiply each by -1.", "out": "丽丁与"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then eliminate the even numbers, then negate.", "out": "丽丁与"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only odd values, then multiply each by -1.", "out": "丽丁与"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then eliminate the even numbers, then negate.", "out": "丽丁与"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only odd values, then multiply each by -1.", "out": "丽丁与"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then eliminate the even numbers, then negate.", "out": "丽丁与"} {"kind": "builder", "in": "丽丁与", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丽丁与", "out": "Take a list of integers; add ten to each, then keep the odd numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only even values, then true only if all are positive.", "out": "串一乌"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then extract all even numbers, then do all of these have positive values.", "out": "串一乌"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only even values, then check if every value is positive.", "out": "串一乌"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then extract all even numbers, then confirm all values are positive.", "out": "串一乌"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only even values, then all positive.", "out": "串一乌"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then extract all even numbers, then check if every number is above zero.", "out": "串一乌"} {"kind": "builder", "in": "串一乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 == 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "串一乌", "out": "Take a list of integers; keep multiples of three, then keep the even numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then keep only numbers above 5.", "out": "下一主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then exclude values of 5 and below.", "out": "下一主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then remove anything 5 or less.", "out": "下一主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then filter to keep only values above 5.", "out": "下一主"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then get rid of values that aren't greater than five.", "out": "下一主"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then drop anything 5 or below.", "out": "下一主"} {"kind": "builder", "in": "下一主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "下一主", "out": "Take a list of integers; add one to each, then keep the even numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest to smallest, then true if any value equals zero.", "out": "世专乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by descending values, then check for zero.", "out": "世专乍"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from highest to lowest, then true if any value equals zero.", "out": "世专乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort descending, then check for zero.", "out": "世专乍"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest first, then true if any value equals zero.", "out": "世专乍"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort in descending order, then check for zero.", "out": "世专乍"} {"kind": "builder", "in": "世专乍", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, reverse=True)\n return 0 in r"} {"kind": "translator", "in": "世专乍", "out": "Take a list of integers; drop the first element, then sort descending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then keep only strings of length 3 or more, then reduce each string to its first character.", "out": "严乗丨"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then get rid of short ones, then take first char drop blanks.", "out": "严乗丨"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then remove strings with less than three characters, then keep first letters only.", "out": "严乗丨"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then remove all strings under three characters in length, then first letter from each item that isn't empty.", "out": "严乗丨"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then filter out short strings under three chars, then grab the first char from each.", "out": "严乗丨"} {"kind": "speaker", "in": "Take a list of strings; length sort, then drop strings shorter than three characters, then isolate the first character per entry.", "out": "严乗丨"} {"kind": "builder", "in": "严乗丨", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s for s in r if len(s) >= 3]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "严乗丨", "out": "Take a list of strings; sort by length, shortest first, then drop strings shorter than three characters, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only odd values, then keep only non-zero numbers.", "out": "丏丁举"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then eliminate the even numbers, then strip the zeros.", "out": "丏丁举"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only odd values, then keep only non-zero numbers.", "out": "丏丁举"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then eliminate the even numbers, then strip the zeros.", "out": "丏丁举"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only odd values, then keep only non-zero numbers.", "out": "丏丁举"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then eliminate the even numbers, then strip the zeros.", "out": "丏丁举"} {"kind": "builder", "in": "丏丁举", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丏丁举", "out": "Take a list of integers; take the absolute value of each, then keep the odd numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then drop anything 5 or below, then give back the product of all values.", "out": "乃主乐"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep only numbers greater than 5, then product of the list.", "out": "乃主乐"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then filter for numbers above 5, then what's the product.", "out": "乃主乐"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then give me values where x is greater than 5, then what do they multiply to.", "out": "乃主乐"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then show me only the values that are bigger than five, then give me their product.", "out": "乃主乐"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep values greater than five, then multiply them all together.", "out": "乃主乐"} {"kind": "builder", "in": "乃主乐", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 5]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "乃主乐", "out": "Take a list of integers; drop the leading negative values, then keep values greater than five, then return their product."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep values above zero, then arrange in decreasing order.", "out": "丕七专"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then filter for positive numbers, then arrange in descending order.", "out": "丕七专"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only positive numbers, then reverse sort.", "out": "丕七专"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep the positives, then sort largest to smallest.", "out": "丕七专"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove negatives, then sort by descending values.", "out": "丕七专"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep the positive numbers, then sort from highest to lowest.", "out": "丕七专"} {"kind": "builder", "in": "丕七专", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丕七专", "out": "Take a list of integers; keep only the first three, then keep the positive numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything 5 or below, then deduplicate the list.", "out": "丈主且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only numbers greater than 5, then remove repeats.", "out": "丈主且"} {"kind": "speaker", "in": "Take a list of integers; double each, then filter for numbers above 5, then deduplicate the list.", "out": "丈主且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then give me values where x is greater than 5, then remove repeats.", "out": "丈主且"} {"kind": "speaker", "in": "Take a list of integers; double each, then show me only the values that are bigger than five, then deduplicate the list.", "out": "丈主且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep values greater than five, then remove repeats.", "out": "丈主且"} {"kind": "builder", "in": "丈主且", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丈主且", "out": "Take a list of integers; double each, then keep values greater than five, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; square each, then skip negatives at the start, then give the earliest even value or zero.", "out": "上乃乒"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove all negatives at the front, then fetch the first even element, default to 0.", "out": "上乃乒"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the initial run of negative numbers, then give the earliest even value or zero.", "out": "上乃乒"} {"kind": "speaker", "in": "Take a list of integers; square them all, then strip the front negatives, then fetch the first even element, default to 0.", "out": "上乃乒"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove leading negative numbers, then give the earliest even value or zero.", "out": "上乃乒"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then drop negatives from start, then fetch the first even element, default to 0.", "out": "上乃乒"} {"kind": "builder", "in": "上乃乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "上乃乒", "out": "Take a list of integers; square each, then drop the leading negative values, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then true if every value is unique.", "out": "串丁乏"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then check for duplicates in the values.", "out": "串丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then do all values appear only once.", "out": "串丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then check that there are no duplicates.", "out": "串丁乏"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then are the values all unique.", "out": "串丁乏"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then check if all values are unique.", "out": "串丁乏"} {"kind": "builder", "in": "串丁乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "串丁乏", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest to smallest, then give the number of evens.", "out": "义专乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by descending values, then find how many values are divisible by two.", "out": "义专乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from highest to lowest, then how many are even.", "out": "义专乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort descending, then get the total number of even values in the list.", "out": "义专乓"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest first, then give me the count of even values.", "out": "义专乓"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort in descending order, then I need to know how many of these are even.", "out": "义专乓"} {"kind": "builder", "in": "义专乓", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "义专乓", "out": "Take a list of integers; pad with zeros to at least three elements, then sort descending, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements, then limit every value to 10.", "out": "丕丹丘"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three, then maximum of 10 for all.", "out": "丕丹丘"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements, then limit every value to 10.", "out": "丕丹丘"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three, then maximum of 10 for all.", "out": "丕丹丘"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items, then limit every value to 10.", "out": "丕丹丘"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three, then maximum of 10 for all.", "out": "丕丹丘"} {"kind": "builder", "in": "丕丹丘", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丕丹丘", "out": "Take a list of integers; keep only the first three, then keep only the last three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then reduce each by one.", "out": "丸丈不"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then Subtract 1 from all.", "out": "丸丈不"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then Subtract one from each.", "out": "丸丈不"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then Drop each by one.", "out": "丸丈不"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then Decrease all values by one.", "out": "丸丈不"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then Remove one from each value.", "out": "丸丈不"} {"kind": "builder", "in": "丸丈不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丸丈不", "out": "Take a list of integers; sort by absolute value, then double each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then order by distance from zero, then trim one element off each end.", "out": "丘丸为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort based on absolute value, then cut off the first and last.", "out": "丘丸为"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then organize by magnitude, then remove the first and last elements.", "out": "丘丸为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then arrange by absolute value ascending, then keep only the middle part.", "out": "丘丸为"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from smallest to largest absolute value, then drop first and last.", "out": "丘丸为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by absolute value, then eliminate the outermost elements.", "out": "丘丸为"} {"kind": "builder", "in": "丘丸为", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丘丸为", "out": "Take a list of integers; cap each value at 10, then sort by absolute value, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then bump each up by one.", "out": "义丁下"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then increment each item.", "out": "义丁下"} {"kind": "builder", "in": "义丁下", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "义丁下", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the odd numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove repeated values, then arrange in decreasing order.", "out": "丏且专"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then unique values preserving order, then arrange in descending order.", "out": "丏且专"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then remove repeated values, then reverse sort.", "out": "丏且专"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then unique values preserving order, then sort largest to smallest.", "out": "丏且专"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove repeated values, then sort by descending values.", "out": "丏且专"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then unique values preserving order, then sort from highest to lowest.", "out": "丏且专"} {"kind": "builder", "in": "丏且专", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(dict.fromkeys(r))\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丏且专", "out": "Take a list of integers; take the absolute value of each, then drop duplicates keeping first occurrence, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then ensure at least three items by appending zeros.", "out": "世举义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then ensure minimum length of three by adding zeros to the end.", "out": "世举义"} {"kind": "builder", "in": "世举义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "世举义", "out": "Take a list of integers; drop the first element, then drop the zeros, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest to smallest, then reduce each by one.", "out": "下专不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by descending values, then Subtract 1 from all.", "out": "下专不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from highest to lowest, then Subtract one from each.", "out": "下专不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort descending, then Drop each by one.", "out": "下专不"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest first, then Decrease all values by one.", "out": "下专不"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort in descending order, then Remove one from each value.", "out": "下专不"} {"kind": "builder", "in": "下专不", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "下专不", "out": "Take a list of integers; add one to each, then sort descending, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then default to [0] when there is nothing, then count the elements.", "out": "丕么东"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then when the list is empty, substitute a zero value, then how many items remain.", "out": "丕么东"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then replace an empty list with one zero, then tell me the length.", "out": "丕么东"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then zero it out if it's empty, then return the length.", "out": "丕么东"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then use zero if the list is empty, then count them.", "out": "丕么东"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then default to zero when empty, then what's the count.", "out": "丕么东"} {"kind": "builder", "in": "丕么东", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r if r else [0]\n return len(r)"} {"kind": "translator", "in": "丕么东", "out": "Take a list of integers; keep only the first three, then if empty, use a single zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then skip negatives at the start, then true if already sorted smallest to largest.", "out": "专乃乎"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then remove all negatives at the front, then does this list go in ascending order.", "out": "专乃乎"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the initial run of negative numbers, then check if the list is in ascending order.", "out": "专乃乎"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then strip the front negatives, then is the list sorted.", "out": "专乃乎"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove leading negative numbers, then is it sorted.", "out": "专乃乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then drop negatives from start, then check if values are in increasing order.", "out": "专乃乎"} {"kind": "builder", "in": "专乃乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r == sorted(r)"} {"kind": "translator", "in": "专乃乎", "out": "Take a list of integers; sort descending, then drop the leading negative values, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then convert each to lower case, then find the longest one, defaulting to empty.", "out": "乖丞丰"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then lowercase each one, then Longest string, or nothing if there isn't one.", "out": "乖丞丰"} {"kind": "builder", "in": "乖丞丰", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s.lower() for s in r]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "乖丞丰", "out": "Take a list of strings; sort alphabetically, then lowercase each string, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the final 3 elements, then find the max, defaulting to 0.", "out": "丘丹业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop everything except the final three, then Give me the maximum, but 0 if there are no items.", "out": "丘丹业"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give me the last three elements, then What's the highest number in the list.", "out": "丘丹业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the last three, then Return the greatest value or default to 0.", "out": "丘丹业"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the final three items, then Find the largest element, defaulting to zero.", "out": "丘丹业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the last three, then give the largest value (0 if none).", "out": "丘丹业"} {"kind": "builder", "in": "丘丹业", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[-3:]\n return max(r) if r else 0"} {"kind": "translator", "in": "丘丹业", "out": "Take a list of integers; cap each value at 10, then keep only the last three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the sign of each, then stop at the first non-positive value.", "out": "一与乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn positives to negatives and vice versa, then keep the leading run of positive numbers.", "out": "一与乂"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the sign of each, then take values while they are positive.", "out": "一与乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn positives to negatives and vice versa, then take positive values then stop.", "out": "一与乂"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then flip the sign of each, then keep going while positive.", "out": "一与乂"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn positives to negatives and vice versa, then stop at first non positive.", "out": "一与乂"} {"kind": "builder", "in": "一与乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [-x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "一与乂", "out": "Take a list of integers; keep the even numbers, then negate each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove repeated values, then find the min, defaulting to 0.", "out": "久且丛"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then unique values preserving order, then minimum value, zero otherwise.", "out": "久且丛"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove repeated values, then get the minimum value or zero if empty.", "out": "久且丛"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then unique values preserving order, then give me the min or 0.", "out": "久且丛"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove repeated values, then return the smallest number, defaulting to 0.", "out": "久且丛"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then unique values preserving order, then return smallest or zero if empty.", "out": "久且丛"} {"kind": "builder", "in": "久且丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(dict.fromkeys(r))\n return min(r) if r else 0"} {"kind": "translator", "in": "久且丛", "out": "Take a list of integers; keep everything before the first zero, then drop duplicates keeping first occurrence, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increment each value, then drop the even numbers.", "out": "世下丁"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then plus one for all, then strip out the evens.", "out": "世下丁"} {"kind": "builder", "in": "世下丁", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "世下丁", "out": "Take a list of integers; drop the first element, then add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then make every value non-negative, then arrange in increasing order.", "out": "举丏丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then absolute value for all items, then Organize these ascending.", "out": "举丏丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take absolute values, then Sort in ascending order.", "out": "举丏丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn negatives into positives, then I need this sorted ascending.", "out": "举丏丑"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then abs each element, then Put these in ascending order.", "out": "举丏丑"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the absolute value of each, then sort smallest to largest.", "out": "举丏丑"} {"kind": "builder", "in": "举丏丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [abs(x) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "举丏丑", "out": "Take a list of integers; drop the zeros, then take the absolute value of each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then arrange in decreasing order.", "out": "串丁专"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then arrange in descending order.", "out": "串丁专"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then reverse sort.", "out": "串丁专"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then sort largest to smallest.", "out": "串丁专"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then sort by descending values.", "out": "串丁专"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then sort from highest to lowest.", "out": "串丁专"} {"kind": "builder", "in": "串丁专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "串丁专", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort smallest to largest, then remove the initial run of negative numbers.", "out": "丸丑乃"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Ascending sort, then strip the front negatives.", "out": "丸丑乃"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then Sort this ascending, then remove leading negative numbers.", "out": "丸丑乃"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Sort lowest to highest, then drop negatives from start.", "out": "丸丑乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Arrange from smallest to largest, then strip negative values from the start.", "out": "丸丑乃"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort ascending, then remove negatives before the first non-negative.", "out": "丸丑乃"} {"kind": "builder", "in": "丸丑乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丸丑乃", "out": "Take a list of integers; sort by absolute value, then sort ascending, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest to smallest, then raise each to the power of two.", "out": "义专上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by descending values, then I need each number multiplied by itself.", "out": "义专上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from highest to lowest, then square all of them.", "out": "义专上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort descending, then multiply each element by itself.", "out": "义专上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort largest first, then make each one squared.", "out": "义专上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort in descending order, then square each value in the list.", "out": "义专上"} {"kind": "builder", "in": "义专上", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "义专上", "out": "Take a list of integers; pad with zeros to at least three elements, then sort descending, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero, then bump each up by one.", "out": "七久下"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears, then increment each item.", "out": "七久下"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero, then bump each up by one.", "out": "七久下"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0, then increment each item.", "out": "七久下"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero, then bump each up by one.", "out": "七久下"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero, then increment each item.", "out": "七久下"} {"kind": "builder", "in": "七久下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "七久下", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each by two, then keep only non-zero numbers.", "out": "专丈举"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then double each item in the list, then strip the zeros.", "out": "专丈举"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then multiply each by two, then keep only non-zero numbers.", "out": "专丈举"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then double each item in the list, then strip the zeros.", "out": "专丈举"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then multiply each by two, then keep only non-zero numbers.", "out": "专丈举"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then double each item in the list, then strip the zeros.", "out": "专丈举"} {"kind": "builder", "in": "专丈举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "专丈举", "out": "Take a list of integers; sort descending, then double each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value, then reduce each by one.", "out": "主下不"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all, then Subtract 1 from all.", "out": "主下不"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value, then Subtract one from each.", "out": "主下不"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all, then Drop each by one.", "out": "主下不"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value, then Decrease all values by one.", "out": "主下不"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all, then Remove one from each value.", "out": "主下不"} {"kind": "builder", "in": "主下不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "主下不", "out": "Take a list of integers; keep values greater than five, then add one to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increase every value by 10, then true if at least one even value.", "out": "丏丽之"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then add 10 to each item, then any even.", "out": "丏丽之"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then shift each up by ten, then true if at least one even value.", "out": "丏丽之"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then increase all numbers by 10, then any even.", "out": "丏丽之"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then add 10 to everything, then true if at least one even value.", "out": "丏丽之"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then give everything a boost of 10, then any even.", "out": "丏丽之"} {"kind": "builder", "in": "丏丽之", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丏丽之", "out": "Take a list of integers; take the absolute value of each, then add ten to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements, then arrange in decreasing order.", "out": "丕丹专"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three, then arrange in descending order.", "out": "丕丹专"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements, then reverse sort.", "out": "丕丹专"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three, then sort largest to smallest.", "out": "丕丹专"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items, then sort by descending values.", "out": "丕丹专"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three, then sort from highest to lowest.", "out": "丕丹专"} {"kind": "builder", "in": "丕丹专", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丕丹专", "out": "Take a list of integers; keep only the first three, then keep only the last three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort smallest to largest, then truncate to three items.", "out": "丘丑丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Ascending sort, then show the first three.", "out": "丘丑丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Sort this ascending, then take the first three.", "out": "丘丑丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Sort lowest to highest, then keep first 3.", "out": "丘丑丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Arrange from smallest to largest, then truncate to first three.", "out": "丘丑丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort ascending, then first three.", "out": "丘丑丕"} {"kind": "builder", "in": "丘丑丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r)\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘丑丕", "out": "Take a list of integers; cap each value at 10, then sort ascending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove both ends, then stop at the first non-positive value.", "out": "久为乂"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then trim the edges, then keep the leading run of positive numbers.", "out": "久为乂"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then trim one element off each end, then take values while they are positive.", "out": "久为乂"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then cut off the first and last, then take positive values then stop.", "out": "久为乂"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first and last elements, then keep going while positive.", "out": "久为乂"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep only the middle part, then stop at first non positive.", "out": "久为乂"} {"kind": "builder", "in": "久为乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:-1]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "久为乂", "out": "Take a list of integers; keep everything before the first zero, then drop the first and last elements, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the final 3 elements, then make each twice as big.", "out": "举丹丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop everything except the final three, then multiply each by 2.", "out": "举丹丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give me the last three elements, then make each twice as big.", "out": "举丹丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the last three, then multiply each by 2.", "out": "举丹丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the final three items, then make each twice as big.", "out": "举丹丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the last three, then multiply each by 2.", "out": "举丹丈"} {"kind": "builder", "in": "举丹丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[-3:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "举丹丈", "out": "Take a list of integers; drop the zeros, then keep only the last three, then double each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increment each value, then raise each to the power of two.", "out": "乂下上"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then plus one for all, then I need each number multiplied by itself.", "out": "乂下上"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then increment each value, then square all of them.", "out": "乂下上"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then plus one for all, then multiply each element by itself.", "out": "乂下上"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then increment each value, then make each one squared.", "out": "乂下上"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then plus one for all, then square each value in the list.", "out": "乂下上"} {"kind": "builder", "in": "乂下上", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 1 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "乂下上", "out": "Take a list of integers; take values while they are positive, then add one to each, then square each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove both ends, then deduplicate the list.", "out": "九为且"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then trim the edges, then remove repeats.", "out": "九为且"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then trim one element off each end, then deduplicate the list.", "out": "九为且"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then cut off the first and last, then remove repeats.", "out": "九为且"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first and last elements, then deduplicate the list.", "out": "九为且"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep only the middle part, then remove repeats.", "out": "九为且"} {"kind": "builder", "in": "九为且", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:-1]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "九为且", "out": "Take a list of people records (name, age); extract the ages, then drop the first and last elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort smallest to largest, then give back the product of all values.", "out": "丁丑乐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Ascending sort, then product of the list.", "out": "丁丑乐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Sort this ascending, then what's the product.", "out": "丁丑乐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Sort lowest to highest, then what do they multiply to.", "out": "丁丑乐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Arrange from smallest to largest, then give me their product.", "out": "丁丑乐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort ascending, then multiply them all together.", "out": "丁丑乐"} {"kind": "builder", "in": "丁丑乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丁丑乐", "out": "Take a list of integers; keep the odd numbers, then sort ascending, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then make every value non-negative, then true if at least one even value.", "out": "丸丏之"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then absolute value for all items, then any even.", "out": "丸丏之"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take absolute values, then true if at least one even value.", "out": "丸丏之"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn negatives into positives, then any even.", "out": "丸丏之"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then abs each element, then true if at least one even value.", "out": "丸丏之"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the absolute value of each, then any even.", "out": "丸丏之"} {"kind": "builder", "in": "丸丏之", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丸丏之", "out": "Take a list of integers; sort by absolute value, then take the absolute value of each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each by two, then drop non-positive values.", "out": "主丈七"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then double each item in the list, then drop the negative numbers.", "out": "主丈七"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then multiply each by two, then filter out the negative ones.", "out": "主丈七"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then double each item in the list, then remove all negative values.", "out": "主丈七"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then multiply each by two, then keep positive values only.", "out": "主丈七"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then double each item in the list, then keep values above zero.", "out": "主丈七"} {"kind": "builder", "in": "主丈七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "主丈七", "out": "Take a list of integers; keep values greater than five, then double each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then skip negatives at the start, then make each twice as big.", "out": "为乃丈"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove all negatives at the front, then multiply each by 2.", "out": "为乃丈"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then remove the initial run of negative numbers, then make each twice as big.", "out": "为乃丈"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then strip the front negatives, then multiply each by 2.", "out": "为乃丈"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove leading negative numbers, then make each twice as big.", "out": "为乃丈"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then drop negatives from start, then multiply each by 2.", "out": "为乃丈"} {"kind": "builder", "in": "为乃丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "为乃丈", "out": "Take a list of integers; drop the first and last elements, then drop the leading negative values, then double each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then cut the list at the first zero, then give the earliest even value or zero.", "out": "丏久乒"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then cut off after the first zero appears, then fetch the first even element, default to 0.", "out": "丏久乒"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then take values up to (excluding) the first zero, then give the earliest even value or zero.", "out": "丏久乒"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then keep the part before the first 0, then fetch the first even element, default to 0.", "out": "丏久乒"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then truncate at the first zero, then give the earliest even value or zero.", "out": "丏久乒"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then delete everything starting with the first zero, then fetch the first even element, default to 0.", "out": "丏久乒"} {"kind": "builder", "in": "丏久乒", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丏久乒", "out": "Take a list of integers; take the absolute value of each, then keep everything before the first zero, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then make every value non-negative, then find the max, defaulting to 0.", "out": "久丏业"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then absolute value for all items, then Give me the maximum, but 0 if there are no items.", "out": "久丏业"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take absolute values, then What's the highest number in the list.", "out": "久丏业"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn negatives into positives, then Return the greatest value or default to 0.", "out": "久丏业"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then abs each element, then Find the largest element, defaulting to zero.", "out": "久丏业"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the absolute value of each, then give the largest value (0 if none).", "out": "久丏业"} {"kind": "builder", "in": "久丏业", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "久丏业", "out": "Take a list of integers; keep everything before the first zero, then take the absolute value of each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then make every value non-negative, then give back the total.", "out": "丁丏丙"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then absolute value for all items, then sum r.", "out": "丁丏丙"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take absolute values, then add them up.", "out": "丁丏丙"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then turn negatives into positives, then calculate the sum of all elements.", "out": "丁丏丙"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then abs each element, then what's the total.", "out": "丁丏丙"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the absolute value of each, then what do they add up to.", "out": "丁丏丙"} {"kind": "builder", "in": "丁丏丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [abs(x) for x in r]\n return sum(r)"} {"kind": "translator", "in": "丁丏丙", "out": "Take a list of integers; keep the odd numbers, then take the absolute value of each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the first 3 elements, then multiply each by -1.", "out": "且丕与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then remove everything after the third, then negate.", "out": "且丕与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate to three items, then multiply each by -1.", "out": "且丕与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then show the first three, then negate.", "out": "且丕与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take the first three, then multiply each by -1.", "out": "且丕与"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep first 3, then negate.", "out": "且丕与"} {"kind": "builder", "in": "且丕与", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:3]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "且丕与", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep only the first three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the sign of each, then find the min, defaulting to 0.", "out": "串与丛"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then turn positives to negatives and vice versa, then minimum value, zero otherwise.", "out": "串与丛"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then flip the sign of each, then get the minimum value or zero if empty.", "out": "串与丛"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn positives to negatives and vice versa, then give me the min or 0.", "out": "串与丛"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip the sign of each, then return the smallest number, defaulting to 0.", "out": "串与丛"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then turn positives to negatives and vice versa, then return smallest or zero if empty.", "out": "串与丛"} {"kind": "builder", "in": "串与丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "串与丛", "out": "Take a list of integers; keep multiples of three, then negate each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the final 3 elements, then arrange by magnitude ignoring sign.", "out": "丁丹丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop everything except the final three, then put them in order by magnitude.", "out": "丁丹丸"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give me the last three elements, then arrange in order of absolute value.", "out": "丁丹丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the last three, then sort by distance from zero.", "out": "丁丹丸"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the final three items, then order by how far from zero.", "out": "丁丹丸"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the last three, then order by distance from zero.", "out": "丁丹丸"} {"kind": "builder", "in": "丁丹丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丁丹丸", "out": "Take a list of integers; keep the odd numbers, then keep only the last three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values below zero, then keep only numbers above 5.", "out": "且万主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then get the negative numbers, then exclude values of 5 and below.", "out": "且万主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values below zero, then remove anything 5 or less.", "out": "且万主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then get the negative numbers, then filter to keep only values above 5.", "out": "且万主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values below zero, then get rid of values that aren't greater than five.", "out": "且万主"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then get the negative numbers, then drop anything 5 or below.", "out": "且万主"} {"kind": "builder", "in": "且万主", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "且万主", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the negative numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep values below zero, then reduce each by one.", "out": "丹万不"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then get the negative numbers, then Subtract 1 from all.", "out": "丹万不"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep values below zero, then Subtract one from each.", "out": "丹万不"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then get the negative numbers, then Drop each by one.", "out": "丹万不"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep values below zero, then Decrease all values by one.", "out": "丹万不"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then get the negative numbers, then Remove one from each value.", "out": "丹万不"} {"kind": "builder", "in": "丹万不", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丹万不", "out": "Take a list of integers; keep only the last three, then keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then strip the signs.", "out": "举义丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then take abs of each.", "out": "举义丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then get the absolute value of everything.", "out": "举义丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then apply absolute value to the whole list.", "out": "举义丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then make them all positive.", "out": "举义丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then make every value non-negative.", "out": "举义丏"} {"kind": "builder", "in": "举义丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举义丏", "out": "Take a list of integers; drop the zeros, then pad with zeros to at least three elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then arrange in decreasing order.", "out": "下一专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then arrange in descending order.", "out": "下一专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then reverse sort.", "out": "下一专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then sort largest to smallest.", "out": "下一专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only even values, then sort by descending values.", "out": "下一专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then extract all even numbers, then sort from highest to lowest.", "out": "下一专"} {"kind": "builder", "in": "下一专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "下一专", "out": "Take a list of integers; add one to each, then keep the even numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove the first item, then true only if all are positive.", "out": "九世乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then Remove head, then do all of these have positive values.", "out": "九世乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the first item, then check if every value is positive.", "out": "九世乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then Remove head, then confirm all values are positive.", "out": "九世乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first item, then all positive.", "out": "九世乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then Remove head, then check if every number is above zero.", "out": "九世乌"} {"kind": "builder", "in": "九世乌", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "九世乌", "out": "Take a list of people records (name, age); extract the ages, then drop the first element, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep values above zero, then skip the first one.", "out": "串七世"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then filter for positive numbers, then Discard the first element.", "out": "串七世"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only positive numbers, then skip the first one.", "out": "串七世"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep the positives, then Discard the first element.", "out": "串七世"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove negatives, then skip the first one.", "out": "串七世"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep the positive numbers, then Discard the first element.", "out": "串七世"} {"kind": "builder", "in": "串七世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "串七世", "out": "Take a list of integers; keep multiples of three, then keep the positive numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove all zero values, then true if any value equals zero.", "out": "万举乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then exclude zeros, then check for zero.", "out": "万举乍"} {"kind": "builder", "in": "万举乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x for x in r if x != 0]\n return 0 in r"} {"kind": "translator", "in": "万举乍", "out": "Take a list of integers; keep the negative numbers, then drop the zeros, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then make every value non-negative, then true if every value is unique.", "out": "丑丏乏"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then absolute value for all items, then check for duplicates in the values.", "out": "丑丏乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take absolute values, then do all values appear only once.", "out": "丑丏乏"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn negatives into positives, then check that there are no duplicates.", "out": "丑丏乏"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then abs each element, then are the values all unique.", "out": "丑丏乏"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the absolute value of each, then check if all values are unique.", "out": "丑丏乏"} {"kind": "builder", "in": "丑丏乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [abs(x) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丑丏乏", "out": "Take a list of integers; sort ascending, then take the absolute value of each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then add '#' to the start of each string, then remove short strings (under 3 chars).", "out": "丨乘乗"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then make each one start with a hash, then only keep strings with three or more characters.", "out": "丨乘乗"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then add '#' to the start of each string, then keep only strings that are at least three characters long.", "out": "丨乘乗"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then make each one start with a hash, then filter strings shorter than 3 chars.", "out": "丨乘乗"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then add '#' to the start of each string, then drop anything shorter than three characters.", "out": "丨乘乗"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then make each one start with a hash, then keep only strings of length 3 or more.", "out": "丨乘乗"} {"kind": "builder", "in": "丨乘乗", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = ['#' + s for s in r]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "丨乘乗", "out": "Take a list of strings; keep the first character of each (dropping empties), then prefix each with a hash, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort smallest to largest, then arrange in decreasing order.", "out": "上丑专"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Ascending sort, then arrange in descending order.", "out": "上丑专"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then Sort this ascending, then reverse sort.", "out": "上丑专"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Sort lowest to highest, then sort largest to smallest.", "out": "上丑专"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then Arrange from smallest to largest, then sort by descending values.", "out": "上丑专"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort ascending, then sort from highest to lowest.", "out": "上丑专"} {"kind": "builder", "in": "上丑专", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "上丑专", "out": "Take a list of integers; square each, then sort ascending, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove both ends, then find the max, defaulting to 0.", "out": "丁为业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then trim the edges, then Give me the maximum, but 0 if there are no items.", "out": "丁为业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then trim one element off each end, then What's the highest number in the list.", "out": "丁为业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then cut off the first and last, then Return the greatest value or default to 0.", "out": "丁为业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first and last elements, then Find the largest element, defaulting to zero.", "out": "丁为业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the middle part, then give the largest value (0 if none).", "out": "丁为业"} {"kind": "builder", "in": "丁为业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[1:-1]\n return max(r) if r else 0"} {"kind": "translator", "in": "丁为业", "out": "Take a list of integers; keep the odd numbers, then drop the first and last elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep values below zero, then strip the signs.", "out": "七万丏"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then get the negative numbers, then take abs of each.", "out": "七万丏"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep values below zero, then get the absolute value of everything.", "out": "七万丏"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then get the negative numbers, then apply absolute value to the whole list.", "out": "七万丏"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep values below zero, then make them all positive.", "out": "七万丏"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then get the negative numbers, then make every value non-negative.", "out": "七万丏"} {"kind": "builder", "in": "七万丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "七万丏", "out": "Take a list of integers; keep the positive numbers, then keep the negative numbers, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increase every value by 10, then reduce each by one.", "out": "主丽不"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then add 10 to each item, then Subtract 1 from all.", "out": "主丽不"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then shift each up by ten, then Subtract one from each.", "out": "主丽不"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then increase all numbers by 10, then Drop each by one.", "out": "主丽不"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then add 10 to everything, then Decrease all values by one.", "out": "主丽不"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then give everything a boost of 10, then Remove one from each value.", "out": "主丽不"} {"kind": "builder", "in": "主丽不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "主丽不", "out": "Take a list of integers; keep values greater than five, then add ten to each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then arrange by magnitude ignoring sign.", "out": "久世丸"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then put them in order by magnitude.", "out": "久世丸"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then arrange in order of absolute value.", "out": "久世丸"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then sort by distance from zero.", "out": "久世丸"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then order by how far from zero.", "out": "久世丸"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then order by distance from zero.", "out": "久世丸"} {"kind": "builder", "in": "久世丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "久世丸", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then true if at least one even value.", "out": "串丁之"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then any even.", "out": "串丁之"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then true if at least one even value.", "out": "串丁之"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then any even.", "out": "串丁之"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then true if at least one even value.", "out": "串丁之"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then any even.", "out": "串丁之"} {"kind": "builder", "in": "串丁之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "串丁之", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove repeated values, then strip the signs.", "out": "久且丏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then unique values preserving order, then take abs of each.", "out": "久且丏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove repeated values, then get the absolute value of everything.", "out": "久且丏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then unique values preserving order, then apply absolute value to the whole list.", "out": "久且丏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove repeated values, then make them all positive.", "out": "久且丏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then unique values preserving order, then make every value non-negative.", "out": "久且丏"} {"kind": "builder", "in": "久且丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(dict.fromkeys(r))\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "久且丏", "out": "Take a list of integers; keep everything before the first zero, then drop duplicates keeping first occurrence, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each value by itself, then stop at the first non-positive value.", "out": "丸上乂"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then square them all, then keep the leading run of positive numbers.", "out": "丸上乂"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then raise each to the power of two, then take values while they are positive.", "out": "丸上乂"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then I need each number multiplied by itself, then take positive values then stop.", "out": "丸上乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then square all of them, then keep going while positive.", "out": "丸上乂"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiply each element by itself, then stop at first non positive.", "out": "丸上乂"} {"kind": "builder", "in": "丸上乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丸上乂", "out": "Take a list of integers; sort by absolute value, then square each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then true if any value equals zero.", "out": "不主乍"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then check for zero.", "out": "不主乍"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then true if any value equals zero.", "out": "不主乍"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then check for zero.", "out": "不主乍"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then true if any value equals zero.", "out": "不主乍"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then check for zero.", "out": "不主乍"} {"kind": "builder", "in": "不主乍", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return 0 in r"} {"kind": "translator", "in": "不主乍", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero, then skip the first one.", "out": "丑丸世"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value, then Discard the first element.", "out": "丑丸世"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude, then skip the first one.", "out": "丑丸世"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending, then Discard the first element.", "out": "丑丸世"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value, then skip the first one.", "out": "丑丸世"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value, then Discard the first element.", "out": "丑丸世"} {"kind": "builder", "in": "丑丸世", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n r = r[1:]\n return r"} {"kind": "translator", "in": "丑丸世", "out": "Take a list of integers; sort ascending, then sort by absolute value, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then remove the initial run of negative numbers.", "out": "万为乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then strip the front negatives.", "out": "万为乃"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then remove leading negative numbers.", "out": "万为乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then drop negatives from start.", "out": "万为乃"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then strip negative values from the start.", "out": "万为乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then remove negatives before the first non-negative.", "out": "万为乃"} {"kind": "builder", "in": "万为乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "万为乃", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the leading run of positive numbers, then reduce each by one.", "out": "与乂不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take values while they are positive, then Subtract 1 from all.", "out": "与乂不"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take positive values then stop, then Subtract one from each.", "out": "与乂不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep going while positive, then Drop each by one.", "out": "与乂不"} {"kind": "speaker", "in": "Take a list of integers; negate each, then stop at first non positive, then Decrease all values by one.", "out": "与乂不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take while greater than zero, then Remove one from each value.", "out": "与乂不"} {"kind": "builder", "in": "与乂不", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "与乂不", "out": "Take a list of integers; negate each, then take values while they are positive, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the final 3 elements, then ensure at least three items by appending zeros.", "out": "为丹义"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then drop everything except the final three, then ensure minimum length of three by adding zeros to the end.", "out": "为丹义"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give me the last three elements, then ensure at least three items by appending zeros.", "out": "为丹义"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep only the last three, then ensure minimum length of three by adding zeros to the end.", "out": "为丹义"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep the final three items, then ensure at least three items by appending zeros.", "out": "为丹义"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the last three, then ensure minimum length of three by adding zeros to the end.", "out": "为丹义"} {"kind": "builder", "in": "为丹义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "为丹义", "out": "Take a list of integers; drop the first and last elements, then keep only the last three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove both ends, then find the max, defaulting to 0.", "out": "丘为业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then trim the edges, then Give me the maximum, but 0 if there are no items.", "out": "丘为业"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then trim one element off each end, then What's the highest number in the list.", "out": "丘为业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then cut off the first and last, then Return the greatest value or default to 0.", "out": "丘为业"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first and last elements, then Find the largest element, defaulting to zero.", "out": "丘为业"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the middle part, then give the largest value (0 if none).", "out": "丘为业"} {"kind": "builder", "in": "丘为业", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[1:-1]\n return max(r) if r else 0"} {"kind": "translator", "in": "丘为业", "out": "Take a list of integers; cap each value at 10, then drop the first and last elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values below zero, then bump each up by one.", "out": "一万下"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then get the negative numbers, then increment each item.", "out": "一万下"} {"kind": "builder", "in": "一万下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x < 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "一万下", "out": "Take a list of integers; keep the even numbers, then keep the negative numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values divisible by 3, then put the elements backwards.", "out": "丈串丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep items where x mod 3 equals zero, then reverse that for me.", "out": "丈串丐"} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything not divisible by three, then flip it backwards.", "out": "丈串丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter out everything except multiples of three, then make it backwards.", "out": "丈串丐"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only multiples of three, then reverse the list.", "out": "丈串丐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiples of three only, then invert the sequence.", "out": "丈串丐"} {"kind": "builder", "in": "丈串丐", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丈串丐", "out": "Take a list of integers; double each, then keep multiples of three, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then stop at the first non-positive value.", "out": "举下乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then keep the leading run of positive numbers.", "out": "举下乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then take values while they are positive.", "out": "举下乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then take positive values then stop.", "out": "举下乂"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then keep going while positive.", "out": "举下乂"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then stop at first non positive.", "out": "举下乂"} {"kind": "builder", "in": "举下乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "举下乂", "out": "Take a list of integers; drop the zeros, then add one to each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove both ends, then deduplicate the list.", "out": "丕为且"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then trim the edges, then remove repeats.", "out": "丕为且"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then trim one element off each end, then deduplicate the list.", "out": "丕为且"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then cut off the first and last, then remove repeats.", "out": "丕为且"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first and last elements, then deduplicate the list.", "out": "丕为且"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep only the middle part, then remove repeats.", "out": "丕为且"} {"kind": "builder", "in": "丕为且", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:-1]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丕为且", "out": "Take a list of integers; keep only the first three, then drop the first and last elements, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then extend to length 3 using zeros, then trim one element off each end.", "out": "丹义为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then pad to 3, then cut off the first and last.", "out": "丹义为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then extend to length 3 using zeros, then remove the first and last elements.", "out": "丹义为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then pad to 3, then keep only the middle part.", "out": "丹义为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then extend to length 3 using zeros, then drop first and last.", "out": "丹义为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then pad to 3, then eliminate the outermost elements.", "out": "丹义为"} {"kind": "builder", "in": "丹义为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹义为", "out": "Take a list of integers; keep only the last three, then pad with zeros to at least three elements, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each value by itself, then drop the odd numbers.", "out": "为上一"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then square them all, then filter out the odd numbers.", "out": "为上一"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then raise each to the power of two, then drop the odd numbers.", "out": "为上一"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then I need each number multiplied by itself, then filter out the odd numbers.", "out": "为上一"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then square all of them, then drop the odd numbers.", "out": "为上一"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiply each element by itself, then filter out the odd numbers.", "out": "为上一"} {"kind": "builder", "in": "为上一", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * x for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "为上一", "out": "Take a list of integers; drop the first and last elements, then square each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then find the max, defaulting to 0.", "out": "一丘业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then Give me the maximum, but 0 if there are no items.", "out": "一丘业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then What's the highest number in the list.", "out": "一丘业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then Return the greatest value or default to 0.", "out": "一丘业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then clamp each to at most ten, then Find the largest element, defaulting to zero.", "out": "一丘业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then don't let anything exceed 10, then give the largest value (0 if none).", "out": "一丘业"} {"kind": "builder", "in": "一丘业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "一丘业", "out": "Take a list of integers; keep the even numbers, then cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the sign of each, then count the elements.", "out": "丽与东"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then turn positives to negatives and vice versa, then how many items remain.", "out": "丽与东"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then flip the sign of each, then tell me the length.", "out": "丽与东"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then turn positives to negatives and vice versa, then return the length.", "out": "丽与东"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip the sign of each, then count them.", "out": "丽与东"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then turn positives to negatives and vice versa, then what's the count.", "out": "丽与东"} {"kind": "builder", "in": "丽与东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [-x for x in r]\n return len(r)"} {"kind": "translator", "in": "丽与东", "out": "Take a list of integers; add ten to each, then negate each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest to smallest, then true only if all are positive.", "out": "下专乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by descending values, then do all of these have positive values.", "out": "下专乌"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from highest to lowest, then check if every value is positive.", "out": "下专乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort descending, then confirm all values are positive.", "out": "下专乌"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort largest first, then all positive.", "out": "下专乌"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort in descending order, then check if every number is above zero.", "out": "下专乌"} {"kind": "builder", "in": "下专乌", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, reverse=True)\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "下专乌", "out": "Take a list of integers; add one to each, then sort descending, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep the leading run of positive numbers, then true if any value equals zero.", "out": "丕乂乍"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then take values while they are positive, then check for zero.", "out": "丕乂乍"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take positive values then stop, then true if any value equals zero.", "out": "丕乂乍"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep going while positive, then check for zero.", "out": "丕乂乍"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then stop at first non positive, then true if any value equals zero.", "out": "丕乂乍"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take while greater than zero, then check for zero.", "out": "丕乂乍"} {"kind": "builder", "in": "丕乂乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return 0 in r"} {"kind": "translator", "in": "丕乂乍", "out": "Take a list of integers; keep only the first three, then take values while they are positive, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the final 3 elements, then true if at least one even value.", "out": "乃丹之"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then drop everything except the final three, then any even.", "out": "乃丹之"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give me the last three elements, then true if at least one even value.", "out": "乃丹之"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep only the last three, then any even.", "out": "乃丹之"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep the final three items, then true if at least one even value.", "out": "乃丹之"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the last three, then any even.", "out": "乃丹之"} {"kind": "builder", "in": "乃丹之", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乃丹之", "out": "Take a list of integers; drop the leading negative values, then keep only the last three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then clamp each to at most ten, then give back the total.", "out": "不丘丙"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then don't let anything exceed 10, then sum r.", "out": "不丘丙"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then clamp each to at most ten, then add them up.", "out": "不丘丙"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then don't let anything exceed 10, then calculate the sum of all elements.", "out": "不丘丙"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then clamp each to at most ten, then what's the total.", "out": "不丘丙"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then don't let anything exceed 10, then what do they add up to.", "out": "不丘丙"} {"kind": "builder", "in": "不丘丙", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n return sum(r)"} {"kind": "translator", "in": "不丘丙", "out": "Take a list of integers; subtract one from each, then cap each value at 10, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values below zero, then deduplicate the list.", "out": "乂万且"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then get the negative numbers, then remove repeats.", "out": "乂万且"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep values below zero, then deduplicate the list.", "out": "乂万且"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then get the negative numbers, then remove repeats.", "out": "乂万且"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep values below zero, then deduplicate the list.", "out": "乂万且"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then get the negative numbers, then remove repeats.", "out": "乂万且"} {"kind": "builder", "in": "乂万且", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乂万且", "out": "Take a list of integers; take values while they are positive, then keep the negative numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove repeated values, then give the number of evens.", "out": "串且乓"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then unique values preserving order, then find how many values are divisible by two.", "out": "串且乓"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove repeated values, then how many are even.", "out": "串且乓"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then unique values preserving order, then get the total number of even values in the list.", "out": "串且乓"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove repeated values, then give me the count of even values.", "out": "串且乓"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then unique values preserving order, then I need to know how many of these are even.", "out": "串且乓"} {"kind": "builder", "in": "串且乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(dict.fromkeys(r))\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "串且乓", "out": "Take a list of integers; keep multiples of three, then drop duplicates keeping first occurrence, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove both ends, then make each twice as big.", "out": "串为丈"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then trim the edges, then multiply each by 2.", "out": "串为丈"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then trim one element off each end, then make each twice as big.", "out": "串为丈"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then cut off the first and last, then multiply each by 2.", "out": "串为丈"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first and last elements, then make each twice as big.", "out": "串为丈"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep only the middle part, then multiply each by 2.", "out": "串为丈"} {"kind": "builder", "in": "串为丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "串为丈", "out": "Take a list of integers; keep multiples of three, then drop the first and last elements, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then drop anything not divisible by three.", "out": "一下串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then filter out everything except multiples of three.", "out": "一下串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then keep only multiples of three.", "out": "一下串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then multiples of three only.", "out": "一下串"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then filter for numbers divisible by three.", "out": "一下串"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then give me only the values divisible by three.", "out": "一下串"} {"kind": "builder", "in": "一下串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "一下串", "out": "Take a list of integers; keep the even numbers, then add one to each, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then increment each value, then truncate to three items.", "out": "丽下丕"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then plus one for all, then show the first three.", "out": "丽下丕"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then increment each value, then take the first three.", "out": "丽下丕"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then plus one for all, then keep first 3.", "out": "丽下丕"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then increment each value, then truncate to first three.", "out": "丽下丕"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then plus one for all, then first three.", "out": "丽下丕"} {"kind": "builder", "in": "丽下丕", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x + 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丽下丕", "out": "Take a list of integers; add ten to each, then add one to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then arrange in decreasing order.", "out": "九一专"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then arrange in descending order.", "out": "九一专"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then reverse sort.", "out": "九一专"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then sort largest to smallest.", "out": "九一专"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then sort by descending values.", "out": "九一专"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then sort from highest to lowest.", "out": "九一专"} {"kind": "builder", "in": "九一专", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "九一专", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the list around, then remove the initial run of negative numbers.", "out": "乂丐乃"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then flip the order around, then strip the front negatives.", "out": "乂丐乃"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then put the elements backwards, then remove leading negative numbers.", "out": "乂丐乃"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then reverse that for me, then drop negatives from start.", "out": "乂丐乃"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip it backwards, then strip negative values from the start.", "out": "乂丐乃"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then make it backwards, then remove negatives before the first non-negative.", "out": "乂丐乃"} {"kind": "builder", "in": "乂丐乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "乂丐乃", "out": "Take a list of integers; take values while they are positive, then reverse the order, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then clamp each to at most ten, then stop at the first non-positive value.", "out": "丐丘乂"} {"kind": "speaker", "in": "Take a list of integers; reverse, then don't let anything exceed 10, then keep the leading run of positive numbers.", "out": "丐丘乂"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then clamp each to at most ten, then take values while they are positive.", "out": "丐丘乂"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then don't let anything exceed 10, then take positive values then stop.", "out": "丐丘乂"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then clamp each to at most ten, then keep going while positive.", "out": "丐丘乂"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then don't let anything exceed 10, then stop at first non positive.", "out": "丐丘乂"} {"kind": "builder", "in": "丐丘乂", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丐丘乂", "out": "Take a list of integers; reverse the order, then cap each value at 10, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then keep only numbers above 5.", "out": "世万主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then exclude values of 5 and below.", "out": "世万主"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then remove anything 5 or less.", "out": "世万主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then filter to keep only values above 5.", "out": "世万主"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then get rid of values that aren't greater than five.", "out": "世万主"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then drop anything 5 or below.", "out": "世万主"} {"kind": "builder", "in": "世万主", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "世万主", "out": "Take a list of integers; drop the first element, then keep the negative numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then true if any value equals zero.", "out": "么丽乍"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then check for zero.", "out": "么丽乍"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then true if any value equals zero.", "out": "么丽乍"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then check for zero.", "out": "么丽乍"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then true if any value equals zero.", "out": "么丽乍"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then check for zero.", "out": "么丽乍"} {"kind": "builder", "in": "么丽乍", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n return 0 in r"} {"kind": "translator", "in": "么丽乍", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then give back the product of all values.", "out": "且丁乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then product of the list.", "out": "且丁乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then what's the product.", "out": "且丁乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then what do they multiply to.", "out": "且丁乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only odd values, then give me their product.", "out": "且丁乐"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then eliminate the even numbers, then multiply them all together.", "out": "且丁乐"} {"kind": "builder", "in": "且丁乐", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 != 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "且丁乐", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the odd numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only even values, then raise each to the power of two.", "out": "丐一上"} {"kind": "speaker", "in": "Take a list of integers; reverse, then extract all even numbers, then I need each number multiplied by itself.", "out": "丐一上"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only even values, then square all of them.", "out": "丐一上"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then extract all even numbers, then multiply each element by itself.", "out": "丐一上"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only even values, then make each one squared.", "out": "丐一上"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then extract all even numbers, then square each value in the list.", "out": "丐一上"} {"kind": "builder", "in": "丐一上", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丐一上", "out": "Take a list of integers; reverse the order, then keep the even numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then default to [0] when there is nothing, then give the earliest even value or zero.", "out": "主么乒"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then when the list is empty, substitute a zero value, then fetch the first even element, default to 0.", "out": "主么乒"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then replace an empty list with one zero, then give the earliest even value or zero.", "out": "主么乒"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then zero it out if it's empty, then fetch the first even element, default to 0.", "out": "主么乒"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then use zero if the list is empty, then give the earliest even value or zero.", "out": "主么乒"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then default to zero when empty, then fetch the first even element, default to 0.", "out": "主么乒"} {"kind": "builder", "in": "主么乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "主么乒", "out": "Take a list of integers; keep values greater than five, then if empty, use a single zero, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then order by distance from zero, then trim one element off each end.", "out": "一丸为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort based on absolute value, then cut off the first and last.", "out": "一丸为"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then organize by magnitude, then remove the first and last elements.", "out": "一丸为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then arrange by absolute value ascending, then keep only the middle part.", "out": "一丸为"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then sort from smallest to largest absolute value, then drop first and last.", "out": "一丸为"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then sort by absolute value, then eliminate the outermost elements.", "out": "一丸为"} {"kind": "builder", "in": "一丸为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, key=abs)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "一丸为", "out": "Take a list of integers; keep the even numbers, then sort by absolute value, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then multiply each value by itself, then keep only non-zero numbers.", "out": "为上举"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then square them all, then strip the zeros.", "out": "为上举"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then raise each to the power of two, then keep only non-zero numbers.", "out": "为上举"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then I need each number multiplied by itself, then strip the zeros.", "out": "为上举"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then square all of them, then keep only non-zero numbers.", "out": "为上举"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then multiply each element by itself, then strip the zeros.", "out": "为上举"} {"kind": "builder", "in": "为上举", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x * x for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "为上举", "out": "Take a list of integers; drop the first and last elements, then square each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each value by itself, then arrange in increasing order.", "out": "不上丑"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then square them all, then Organize these ascending.", "out": "不上丑"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then raise each to the power of two, then Sort in ascending order.", "out": "不上丑"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then I need each number multiplied by itself, then I need this sorted ascending.", "out": "不上丑"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then square all of them, then Put these in ascending order.", "out": "不上丑"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiply each element by itself, then sort smallest to largest.", "out": "不上丑"} {"kind": "builder", "in": "不上丑", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "不上丑", "out": "Take a list of integers; subtract one from each, then square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only odd values, then give the earliest even value or zero.", "out": "与丁乒"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then eliminate the even numbers, then fetch the first even element, default to 0.", "out": "与丁乒"} {"kind": "builder", "in": "与丁乒", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 != 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "与丁乒", "out": "Take a list of integers; negate each, then keep the odd numbers, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only even values, then limit every value to 10.", "out": "且一丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then extract all even numbers, then maximum of 10 for all.", "out": "且一丘"} {"kind": "builder", "in": "且一丘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 2 == 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "且一丘", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep the even numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then remove both ends, then give the number of evens.", "out": "丏为乓"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then trim the edges, then find how many values are divisible by two.", "out": "丏为乓"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then trim one element off each end, then how many are even.", "out": "丏为乓"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then cut off the first and last, then get the total number of even values in the list.", "out": "丏为乓"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then remove the first and last elements, then give me the count of even values.", "out": "丏为乓"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep only the middle part, then I need to know how many of these are even.", "out": "丏为乓"} {"kind": "builder", "in": "丏为乓", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[1:-1]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丏为乓", "out": "Take a list of integers; take the absolute value of each, then drop the first and last elements, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then extend to length 3 using zeros, then find the min, defaulting to 0.", "out": "一义丛"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then pad to 3, then minimum value, zero otherwise.", "out": "一义丛"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then extend to length 3 using zeros, then get the minimum value or zero if empty.", "out": "一义丛"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then pad to 3, then give me the min or 0.", "out": "一义丛"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then extend to length 3 using zeros, then return the smallest number, defaulting to 0.", "out": "一义丛"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then pad to 3, then return smallest or zero if empty.", "out": "一义丛"} {"kind": "builder", "in": "一义丛", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return min(r) if r else 0"} {"kind": "translator", "in": "一义丛", "out": "Take a list of integers; keep the even numbers, then pad with zeros to at least three elements, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep only odd values, then true if any value equals zero.", "out": "丸丁乍"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then eliminate the even numbers, then check for zero.", "out": "丸丁乍"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only odd values, then true if any value equals zero.", "out": "丸丁乍"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then eliminate the even numbers, then check for zero.", "out": "丸丁乍"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only odd values, then true if any value equals zero.", "out": "丸丁乍"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then eliminate the even numbers, then check for zero.", "out": "丸丁乍"} {"kind": "builder", "in": "丸丁乍", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 != 0]\n return 0 in r"} {"kind": "translator", "in": "丸丁乍", "out": "Take a list of integers; sort by absolute value, then keep the odd numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then decrement each value, then drop non-negative values.", "out": "丏不万"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Lower each number by one, then drop all positive numbers.", "out": "丏不万"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then reduce each by one, then drop non-negative values.", "out": "丏不万"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Subtract 1 from all, then drop all positive numbers.", "out": "丏不万"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Subtract one from each, then drop non-negative values.", "out": "丏不万"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Drop each by one, then drop all positive numbers.", "out": "丏不万"} {"kind": "builder", "in": "丏不万", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丏不万", "out": "Take a list of integers; take the absolute value of each, then subtract one from each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then add '#' to the start of each string, then arrange in lexicographic order.", "out": "严乘乖"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then make each one start with a hash, then sort by letter.", "out": "严乘乖"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then add '#' to the start of each string, then arrange in lexicographic order.", "out": "严乘乖"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then make each one start with a hash, then sort by letter.", "out": "严乘乖"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then add '#' to the start of each string, then arrange in lexicographic order.", "out": "严乘乖"} {"kind": "speaker", "in": "Take a list of strings; length sort, then make each one start with a hash, then sort by letter.", "out": "严乘乖"} {"kind": "builder", "in": "严乘乖", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = ['#' + s for s in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "严乘乖", "out": "Take a list of strings; sort by length, shortest first, then prefix each with a hash, then sort alphabetically."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then extend to length 3 using zeros, then truncate to the last three items.", "out": "丕义丹"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then pad to 3, then show only the last three.", "out": "丕义丹"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then extend to length 3 using zeros, then remove all but the last three.", "out": "丕义丹"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then pad to 3, then take the final 3 elements.", "out": "丕义丹"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then extend to length 3 using zeros, then drop everything except the final three.", "out": "丕义丹"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then pad to 3, then give me the last three elements.", "out": "丕义丹"} {"kind": "builder", "in": "丕义丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "丕义丹", "out": "Take a list of integers; keep only the first three, then pad with zeros to at least three elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then arrange by magnitude ignoring sign.", "out": "世与丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then put them in order by magnitude.", "out": "世与丸"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then arrange in order of absolute value.", "out": "世与丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then sort by distance from zero.", "out": "世与丸"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then flip the sign of each, then order by how far from zero.", "out": "世与丸"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn positives to negatives and vice versa, then order by distance from zero.", "out": "世与丸"} {"kind": "builder", "in": "世与丸", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [-x for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "世与丸", "out": "Take a list of integers; drop the first element, then negate each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then skip negatives at the start, then drop non-positive values.", "out": "丑乃七"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove all negatives at the front, then drop the negative numbers.", "out": "丑乃七"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove the initial run of negative numbers, then filter out the negative ones.", "out": "丑乃七"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then strip the front negatives, then remove all negative values.", "out": "丑乃七"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove leading negative numbers, then keep positive values only.", "out": "丑乃七"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then drop negatives from start, then keep values above zero.", "out": "丑乃七"} {"kind": "builder", "in": "丑乃七", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丑乃七", "out": "Take a list of integers; sort ascending, then drop the leading negative values, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then true if every value is unique.", "out": "与举乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then check for duplicates in the values.", "out": "与举乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then do all values appear only once.", "out": "与举乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then check that there are no duplicates.", "out": "与举乏"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove all zero values, then are the values all unique.", "out": "与举乏"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then exclude zeros, then check if all values are unique.", "out": "与举乏"} {"kind": "builder", "in": "与举乏", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "与举乏", "out": "Take a list of integers; negate each, then drop the zeros, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then arrange by magnitude ignoring sign.", "out": "万丈丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then put them in order by magnitude.", "out": "万丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then arrange in order of absolute value.", "out": "万丈丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then sort by distance from zero.", "out": "万丈丸"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then multiply each by two, then order by how far from zero.", "out": "万丈丸"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then double each item in the list, then order by distance from zero.", "out": "万丈丸"} {"kind": "builder", "in": "万丈丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x * 2 for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "万丈丸", "out": "Take a list of integers; keep the negative numbers, then double each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values divisible by 3, then replace an empty list with one zero.", "out": "丈串么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep items where x mod 3 equals zero, then zero it out if it's empty.", "out": "丈串么"} {"kind": "speaker", "in": "Take a list of integers; double each, then drop anything not divisible by three, then use zero if the list is empty.", "out": "丈串么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter out everything except multiples of three, then default to zero when empty.", "out": "丈串么"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only multiples of three, then if there's nothing, put in a zero.", "out": "丈串么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then multiples of three only, then if no items, add a zero.", "out": "丈串么"} {"kind": "builder", "in": "丈串么", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丈串么", "out": "Take a list of integers; double each, then keep multiples of three, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values below zero, then make each twice as big.", "out": "丐万丈"} {"kind": "speaker", "in": "Take a list of integers; reverse, then get the negative numbers, then multiply each by 2.", "out": "丐万丈"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep values below zero, then make each twice as big.", "out": "丐万丈"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then get the negative numbers, then multiply each by 2.", "out": "丐万丈"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep values below zero, then make each twice as big.", "out": "丐万丈"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then get the negative numbers, then multiply each by 2.", "out": "丐万丈"} {"kind": "builder", "in": "丐万丈", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丐万丈", "out": "Take a list of integers; reverse the order, then keep the negative numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then flip the list around, then bump each up by one.", "out": "丕丐下"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then flip the order around, then increment each item.", "out": "丕丐下"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then put the elements backwards, then bump each up by one.", "out": "丕丐下"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then reverse that for me, then increment each item.", "out": "丕丐下"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then flip it backwards, then bump each up by one.", "out": "丕丐下"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then make it backwards, then increment each item.", "out": "丕丐下"} {"kind": "builder", "in": "丕丐下", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = list(reversed(r))\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丕丐下", "out": "Take a list of integers; keep only the first three, then reverse the order, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the sign of each, then truncate to the last three items.", "out": "义与丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn positives to negatives and vice versa, then show only the last three.", "out": "义与丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the sign of each, then remove all but the last three.", "out": "义与丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn positives to negatives and vice versa, then take the final 3 elements.", "out": "义与丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then flip the sign of each, then drop everything except the final three.", "out": "义与丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then turn positives to negatives and vice versa, then give me the last three elements.", "out": "义与丹"} {"kind": "builder", "in": "义与丹", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [-x for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "义与丹", "out": "Take a list of integers; pad with zeros to at least three elements, then negate each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then remove the initial run of negative numbers.", "out": "丈与乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then strip the front negatives.", "out": "丈与乃"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then remove leading negative numbers.", "out": "丈与乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then drop negatives from start.", "out": "丈与乃"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the sign of each, then strip negative values from the start.", "out": "丈与乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn positives to negatives and vice versa, then remove negatives before the first non-negative.", "out": "丈与乃"} {"kind": "builder", "in": "丈与乃", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [-x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丈与乃", "out": "Take a list of integers; double each, then negate each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then extend to length 3 using zeros, then keep only numbers above 5.", "out": "九义主"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then pad to 3, then exclude values of 5 and below.", "out": "九义主"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then extend to length 3 using zeros, then remove anything 5 or less.", "out": "九义主"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then pad to 3, then filter to keep only values above 5.", "out": "九义主"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then extend to length 3 using zeros, then get rid of values that aren't greater than five.", "out": "九义主"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then pad to 3, then drop anything 5 or below.", "out": "九义主"} {"kind": "builder", "in": "九义主", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "九义主", "out": "Take a list of people records (name, age); extract the ages, then pad with zeros to at least three elements, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then make every value non-negative, then arrange in increasing order.", "out": "不丏丑"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then absolute value for all items, then Organize these ascending.", "out": "不丏丑"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take absolute values, then Sort in ascending order.", "out": "不丏丑"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then turn negatives into positives, then I need this sorted ascending.", "out": "不丏丑"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then abs each element, then Put these in ascending order.", "out": "不丏丑"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then take the absolute value of each, then sort smallest to largest.", "out": "不丏丑"} {"kind": "builder", "in": "不丏丑", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "不丏丑", "out": "Take a list of integers; subtract one from each, then take the absolute value of each, then sort ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then remove both ends, then ensure at least three items by appending zeros.", "out": "九为义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then trim the edges, then ensure minimum length of three by adding zeros to the end.", "out": "九为义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then trim one element off each end, then ensure at least three items by appending zeros.", "out": "九为义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then cut off the first and last, then ensure minimum length of three by adding zeros to the end.", "out": "九为义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove the first and last elements, then ensure at least three items by appending zeros.", "out": "九为义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then keep only the middle part, then ensure minimum length of three by adding zeros to the end.", "out": "九为义"} {"kind": "builder", "in": "九为义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九为义", "out": "Take a list of people records (name, age); extract the ages, then drop the first and last elements, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then skip the first one.", "out": "万为世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then Discard the first element.", "out": "万为世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then skip the first one.", "out": "万为世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then Discard the first element.", "out": "万为世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then skip the first one.", "out": "万为世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then Discard the first element.", "out": "万为世"} {"kind": "builder", "in": "万为世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = r[1:]\n return r"} {"kind": "translator", "in": "万为世", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the sign of each, then make each twice as big.", "out": "万与丈"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn positives to negatives and vice versa, then multiply each by 2.", "out": "万与丈"} {"kind": "builder", "in": "万与丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [-x for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "万与丈", "out": "Take a list of integers; keep the negative numbers, then negate each, then double each."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then find the min, defaulting to 0.", "out": "下世丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then minimum value, zero otherwise.", "out": "下世丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then get the minimum value or zero if empty.", "out": "下世丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then give me the min or 0.", "out": "下世丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first item, then return the smallest number, defaulting to 0.", "out": "下世丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Remove head, then return smallest or zero if empty.", "out": "下世丛"} {"kind": "builder", "in": "下世丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:]\n return min(r) if r else 0"} {"kind": "translator", "in": "下世丛", "out": "Take a list of integers; add one to each, then drop the first element, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then keep only numbers above 5.", "out": "义万主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then exclude values of 5 and below.", "out": "义万主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then remove anything 5 or less.", "out": "义万主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then filter to keep only values above 5.", "out": "义万主"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values below zero, then get rid of values that aren't greater than five.", "out": "义万主"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then get the negative numbers, then drop anything 5 or below.", "out": "义万主"} {"kind": "builder", "in": "义万主", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x < 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "义万主", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the negative numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then flip the list around, then count the elements.", "out": "丽丐东"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then flip the order around, then how many items remain.", "out": "丽丐东"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then put the elements backwards, then tell me the length.", "out": "丽丐东"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then reverse that for me, then return the length.", "out": "丽丐东"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then flip it backwards, then count them.", "out": "丽丐东"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then make it backwards, then what's the count.", "out": "丽丐东"} {"kind": "builder", "in": "丽丐东", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(reversed(r))\n return len(r)"} {"kind": "translator", "in": "丽丐东", "out": "Take a list of integers; add ten to each, then reverse the order, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the final 3 elements, then remove the initial run of negative numbers.", "out": "万丹乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then drop everything except the final three, then strip the front negatives.", "out": "万丹乃"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then give me the last three elements, then remove leading negative numbers.", "out": "万丹乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the last three, then drop negatives from start.", "out": "万丹乃"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the final three items, then strip negative values from the start.", "out": "万丹乃"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the last three, then remove negatives before the first non-negative.", "out": "万丹乃"} {"kind": "builder", "in": "万丹乃", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "万丹乃", "out": "Take a list of integers; keep the negative numbers, then keep only the last three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros, then arrange in decreasing order.", "out": "为义专"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3, then arrange in descending order.", "out": "为义专"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros, then reverse sort.", "out": "为义专"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3, then sort largest to smallest.", "out": "为义专"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros, then sort by descending values.", "out": "为义专"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3, then sort from highest to lowest.", "out": "为义专"} {"kind": "builder", "in": "为义专", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "为义专", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then make every value non-negative, then true only if all are positive.", "out": "久丏乌"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then absolute value for all items, then do all of these have positive values.", "out": "久丏乌"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take absolute values, then check if every value is positive.", "out": "久丏乌"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then turn negatives into positives, then confirm all values are positive.", "out": "久丏乌"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then abs each element, then all positive.", "out": "久丏乌"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the absolute value of each, then check if every number is above zero.", "out": "久丏乌"} {"kind": "builder", "in": "久丏乌", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "久丏乌", "out": "Take a list of integers; keep everything before the first zero, then take the absolute value of each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then cut the list at the first zero, then truncate to the last three items.", "out": "上久丹"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then cut off after the first zero appears, then show only the last three.", "out": "上久丹"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take values up to (excluding) the first zero, then remove all but the last three.", "out": "上久丹"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep the part before the first 0, then take the final 3 elements.", "out": "上久丹"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then truncate at the first zero, then drop everything except the final three.", "out": "上久丹"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then delete everything starting with the first zero, then give me the last three elements.", "out": "上久丹"} {"kind": "builder", "in": "上久丹", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "上久丹", "out": "Take a list of integers; square each, then keep everything before the first zero, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then take the final 3 elements, then drop non-negative values.", "out": "串丹万"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then drop everything except the final three, then drop all positive numbers.", "out": "串丹万"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then give me the last three elements, then drop non-negative values.", "out": "串丹万"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep only the last three, then drop all positive numbers.", "out": "串丹万"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep the final three items, then drop non-negative values.", "out": "串丹万"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take the last three, then drop all positive numbers.", "out": "串丹万"} {"kind": "builder", "in": "串丹万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[-3:]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "串丹万", "out": "Take a list of integers; keep multiples of three, then keep only the last three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then increment each value, then find the max, defaulting to 0.", "out": "为下业"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then plus one for all, then Give me the maximum, but 0 if there are no items.", "out": "为下业"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then increment each value, then What's the highest number in the list.", "out": "为下业"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then plus one for all, then Return the greatest value or default to 0.", "out": "为下业"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then increment each value, then Find the largest element, defaulting to zero.", "out": "为下业"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then plus one for all, then give the largest value (0 if none).", "out": "为下业"} {"kind": "builder", "in": "为下业", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x + 1 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "为下业", "out": "Take a list of integers; drop the first and last elements, then add one to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then keep values below zero, then arrange by magnitude ignoring sign.", "out": "乂万丸"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then get the negative numbers, then put them in order by magnitude.", "out": "乂万丸"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then keep values below zero, then arrange in order of absolute value.", "out": "乂万丸"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then get the negative numbers, then sort by distance from zero.", "out": "乂万丸"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep values below zero, then order by how far from zero.", "out": "乂万丸"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then get the negative numbers, then order by distance from zero.", "out": "乂万丸"} {"kind": "builder", "in": "乂万丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x < 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "乂万丸", "out": "Take a list of integers; take values while they are positive, then keep the negative numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove all zero values, then limit every value to 10.", "out": "串举丘"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then exclude zeros, then maximum of 10 for all.", "out": "串举丘"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove all zero values, then limit every value to 10.", "out": "串举丘"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then exclude zeros, then maximum of 10 for all.", "out": "串举丘"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove all zero values, then limit every value to 10.", "out": "串举丘"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then exclude zeros, then maximum of 10 for all.", "out": "串举丘"} {"kind": "builder", "in": "串举丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x != 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "串举丘", "out": "Take a list of integers; keep multiples of three, then drop the zeros, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove the first item, then take values up to (excluding) the first zero.", "out": "丸世久"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Remove head, then keep the part before the first 0.", "out": "丸世久"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the first item, then truncate at the first zero.", "out": "丸世久"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Remove head, then delete everything starting with the first zero.", "out": "丸世久"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first item, then remove from the first zero onwards.", "out": "丸世久"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Remove head, then up to but not including the first zero.", "out": "丸世久"} {"kind": "builder", "in": "丸世久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丸世久", "out": "Take a list of integers; sort by absolute value, then drop the first element, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then cut the list at the first zero, then true if already sorted smallest to largest.", "out": "一久乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off after the first zero appears, then does this list go in ascending order.", "out": "一久乎"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take values up to (excluding) the first zero, then check if the list is in ascending order.", "out": "一久乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the part before the first 0, then is the list sorted.", "out": "一久乎"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then truncate at the first zero, then is it sorted.", "out": "一久乎"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then delete everything starting with the first zero, then check if values are in increasing order.", "out": "一久乎"} {"kind": "builder", "in": "一久乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r == sorted(r)"} {"kind": "translator", "in": "一久乎", "out": "Take a list of integers; keep the even numbers, then keep everything before the first zero, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then cut the list at the first zero, then keep only non-zero numbers.", "out": "丸久举"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then cut off after the first zero appears, then strip the zeros.", "out": "丸久举"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take values up to (excluding) the first zero, then keep only non-zero numbers.", "out": "丸久举"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the part before the first 0, then strip the zeros.", "out": "丸久举"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then truncate at the first zero, then keep only non-zero numbers.", "out": "丸久举"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then delete everything starting with the first zero, then strip the zeros.", "out": "丸久举"} {"kind": "builder", "in": "丸久举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丸久举", "out": "Take a list of integers; sort by absolute value, then keep everything before the first zero, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements, then give the number of evens.", "out": "丕丹乓"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three, then find how many values are divisible by two.", "out": "丕丹乓"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements, then how many are even.", "out": "丕丹乓"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three, then get the total number of even values in the list.", "out": "丕丹乓"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items, then give me the count of even values.", "out": "丕丹乓"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three, then I need to know how many of these are even.", "out": "丕丹乓"} {"kind": "builder", "in": "丕丹乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丕丹乓", "out": "Take a list of integers; keep only the first three, then keep only the last three, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then arrange in decreasing order.", "out": "万世专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then arrange in descending order.", "out": "万世专"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then reverse sort.", "out": "万世专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then sort largest to smallest.", "out": "万世专"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then sort by descending values.", "out": "万世专"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then sort from highest to lowest.", "out": "万世专"} {"kind": "builder", "in": "万世专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "万世专", "out": "Take a list of integers; keep the negative numbers, then drop the first element, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove both ends, then drop non-negative values.", "out": "举为万"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then trim the edges, then drop all positive numbers.", "out": "举为万"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then trim one element off each end, then drop non-negative values.", "out": "举为万"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then cut off the first and last, then drop all positive numbers.", "out": "举为万"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first and last elements, then drop non-negative values.", "out": "举为万"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the middle part, then drop all positive numbers.", "out": "举为万"} {"kind": "builder", "in": "举为万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:-1]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "举为万", "out": "Take a list of integers; drop the zeros, then drop the first and last elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then multiply each by two, then stop at the first non-positive value.", "out": "么丈乂"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then double each item in the list, then keep the leading run of positive numbers.", "out": "么丈乂"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then multiply each by two, then take values while they are positive.", "out": "么丈乂"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then double each item in the list, then take positive values then stop.", "out": "么丈乂"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then multiply each by two, then keep going while positive.", "out": "么丈乂"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then double each item in the list, then stop at first non positive.", "out": "么丈乂"} {"kind": "builder", "in": "么丈乂", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "么丈乂", "out": "Take a list of integers; if empty, use a single zero, then double each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then make every value non-negative, then give the earliest even value or zero.", "out": "万丏乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then absolute value for all items, then fetch the first even element, default to 0.", "out": "万丏乒"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take absolute values, then give the earliest even value or zero.", "out": "万丏乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then turn negatives into positives, then fetch the first even element, default to 0.", "out": "万丏乒"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then abs each element, then give the earliest even value or zero.", "out": "万丏乒"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take the absolute value of each, then fetch the first even element, default to 0.", "out": "万丏乒"} {"kind": "builder", "in": "万丏乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [abs(x) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "万丏乒", "out": "Take a list of integers; keep the negative numbers, then take the absolute value of each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values divisible by 3, then limit every value to 10.", "out": "且串丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep items where x mod 3 equals zero, then maximum of 10 for all.", "out": "且串丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything not divisible by three, then limit every value to 10.", "out": "且串丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter out everything except multiples of three, then maximum of 10 for all.", "out": "且串丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only multiples of three, then limit every value to 10.", "out": "且串丘"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiples of three only, then maximum of 10 for all.", "out": "且串丘"} {"kind": "builder", "in": "且串丘", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "且串丘", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep multiples of three, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then find the min, defaulting to 0.", "out": "下丈丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then minimum value, zero otherwise.", "out": "下丈丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then get the minimum value or zero if empty.", "out": "下丈丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then give me the min or 0.", "out": "下丈丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each by two, then return the smallest number, defaulting to 0.", "out": "下丈丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then double each item in the list, then return smallest or zero if empty.", "out": "下丈丛"} {"kind": "builder", "in": "下丈丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * 2 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "下丈丛", "out": "Take a list of integers; add one to each, then double each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then decrement each value, then skip the first one.", "out": "万不世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Lower each number by one, then Discard the first element.", "out": "万不世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then reduce each by one, then skip the first one.", "out": "万不世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Subtract 1 from all, then Discard the first element.", "out": "万不世"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then Subtract one from each, then skip the first one.", "out": "万不世"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Drop each by one, then Discard the first element.", "out": "万不世"} {"kind": "builder", "in": "万不世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "万不世", "out": "Take a list of integers; keep the negative numbers, then subtract one from each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values divisible by 3, then true if at least one even value.", "out": "乃串之"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep items where x mod 3 equals zero, then any even.", "out": "乃串之"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then drop anything not divisible by three, then true if at least one even value.", "out": "乃串之"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then filter out everything except multiples of three, then any even.", "out": "乃串之"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only multiples of three, then true if at least one even value.", "out": "乃串之"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiples of three only, then any even.", "out": "乃串之"} {"kind": "builder", "in": "乃串之", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 3 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "乃串之", "out": "Take a list of integers; drop the leading negative values, then keep multiples of three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the final 3 elements, then find the max, defaulting to 0.", "out": "乂丹业"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then drop everything except the final three, then Give me the maximum, but 0 if there are no items.", "out": "乂丹业"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give me the last three elements, then What's the highest number in the list.", "out": "乂丹业"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep only the last three, then Return the greatest value or default to 0.", "out": "乂丹业"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep the final three items, then Find the largest element, defaulting to zero.", "out": "乂丹业"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the last three, then give the largest value (0 if none).", "out": "乂丹业"} {"kind": "builder", "in": "乂丹业", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n return max(r) if r else 0"} {"kind": "translator", "in": "乂丹业", "out": "Take a list of integers; take values while they are positive, then keep only the last three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first 3 elements, then strip the signs.", "out": "丁丕丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove everything after the third, then take abs of each.", "out": "丁丕丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate to three items, then get the absolute value of everything.", "out": "丁丕丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then show the first three, then apply absolute value to the whole list.", "out": "丁丕丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first three, then make them all positive.", "out": "丁丕丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep first 3, then make every value non-negative.", "out": "丁丕丏"} {"kind": "builder", "in": "丁丕丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:3]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丁丕丏", "out": "Take a list of integers; keep the odd numbers, then keep only the first three, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then skip negatives at the start, then drop anything not divisible by three.", "out": "丕乃串"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then remove all negatives at the front, then filter out everything except multiples of three.", "out": "丕乃串"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the initial run of negative numbers, then keep only multiples of three.", "out": "丕乃串"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then strip the front negatives, then multiples of three only.", "out": "丕乃串"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove leading negative numbers, then filter for numbers divisible by three.", "out": "丕乃串"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then drop negatives from start, then give me only the values divisible by three.", "out": "丕乃串"} {"kind": "builder", "in": "丕乃串", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丕乃串", "out": "Take a list of integers; keep only the first three, then drop the leading negative values, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then drop anything 5 or below, then strip the signs.", "out": "丁主丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only numbers greater than 5, then take abs of each.", "out": "丁主丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then filter for numbers above 5, then get the absolute value of everything.", "out": "丁主丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give me values where x is greater than 5, then apply absolute value to the whole list.", "out": "丁主丏"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then show me only the values that are bigger than five, then make them all positive.", "out": "丁主丏"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep values greater than five, then make every value non-negative.", "out": "丁主丏"} {"kind": "builder", "in": "丁主丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 5]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丁主丏", "out": "Take a list of integers; keep the odd numbers, then keep values greater than five, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then drop anything 5 or below, then drop non-negative values.", "out": "丽主万"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep only numbers greater than 5, then drop all positive numbers.", "out": "丽主万"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then filter for numbers above 5, then drop non-negative values.", "out": "丽主万"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then give me values where x is greater than 5, then drop all positive numbers.", "out": "丽主万"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then show me only the values that are bigger than five, then drop non-negative values.", "out": "丽主万"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep values greater than five, then drop all positive numbers.", "out": "丽主万"} {"kind": "builder", "in": "丽主万", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丽主万", "out": "Take a list of integers; add ten to each, then keep values greater than five, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then count the elements.", "out": "举世东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then how many items remain.", "out": "举世东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then tell me the length.", "out": "举世东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then return the length.", "out": "举世东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then count them.", "out": "举世东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then what's the count.", "out": "举世东"} {"kind": "builder", "in": "举世东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:]\n return len(r)"} {"kind": "translator", "in": "举世东", "out": "Take a list of integers; drop the zeros, then drop the first element, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then shift each up by ten.", "out": "与丈丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then increase all numbers by 10.", "out": "与丈丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then add 10 to everything.", "out": "与丈丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then give everything a boost of 10.", "out": "与丈丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then increment each by ten.", "out": "与丈丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then add a constant 10 to each.", "out": "与丈丽"} {"kind": "builder", "in": "与丈丽", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "与丈丽", "out": "Take a list of integers; negate each, then double each, then add ten to each."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then convert each to upper case, then remove surrounding whitespace.", "out": "丞丟丢"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then change all strings to uppercase, then trim the whitespace off everything.", "out": "丞丟丢"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then make every string uppercase, then strip spaces from all strings.", "out": "丞丟丢"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then uppercase each one, then strip all the strings.", "out": "丞丟丢"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then make all the strings uppercase, then clean up whitespace in the list.", "out": "丞丟丢"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then convert all strings to uppercase letters, then strip spaces around each string.", "out": "丞丟丢"} {"kind": "builder", "in": "丞丟丢", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s.upper() for s in r]\n r = [s.strip() for s in r]\n return r"} {"kind": "translator", "in": "丞丟丢", "out": "Take a list of strings; lowercase each string, then uppercase each string, then trim whitespace from each."} {"kind": "speaker", "in": "Take a list of integers; square each, then clamp each to at most ten, then count the elements.", "out": "上丘东"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then don't let anything exceed 10, then how many items remain.", "out": "上丘东"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then clamp each to at most ten, then tell me the length.", "out": "上丘东"} {"kind": "speaker", "in": "Take a list of integers; square them all, then don't let anything exceed 10, then return the length.", "out": "上丘东"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then clamp each to at most ten, then count them.", "out": "上丘东"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then don't let anything exceed 10, then what's the count.", "out": "上丘东"} {"kind": "builder", "in": "上丘东", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [min(x, 10) for x in r]\n return len(r)"} {"kind": "translator", "in": "上丘东", "out": "Take a list of integers; square each, then cap each value at 10, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort smallest to largest, then true if already sorted smallest to largest.", "out": "丕丑乎"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Ascending sort, then does this list go in ascending order.", "out": "丕丑乎"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then Sort this ascending, then check if the list is in ascending order.", "out": "丕丑乎"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Sort lowest to highest, then is the list sorted.", "out": "丕丑乎"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Arrange from smallest to largest, then is it sorted.", "out": "丕丑乎"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort ascending, then check if values are in increasing order.", "out": "丕丑乎"} {"kind": "builder", "in": "丕丑乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r)\n return r == sorted(r)"} {"kind": "translator", "in": "丕丑乎", "out": "Take a list of integers; keep only the first three, then sort ascending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then multiply each by two, then drop non-negative values.", "out": "九丈万"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then double each item in the list, then drop all positive numbers.", "out": "九丈万"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then multiply each by two, then drop non-negative values.", "out": "九丈万"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then double each item in the list, then drop all positive numbers.", "out": "九丈万"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then multiply each by two, then drop non-negative values.", "out": "九丈万"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then double each item in the list, then drop all positive numbers.", "out": "九丈万"} {"kind": "builder", "in": "九丈万", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "九丈万", "out": "Take a list of people records (name, age); extract the ages, then double each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only odd values, then drop non-positive values.", "out": "上丁七"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then eliminate the even numbers, then drop the negative numbers.", "out": "上丁七"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only odd values, then filter out the negative ones.", "out": "上丁七"} {"kind": "speaker", "in": "Take a list of integers; square them all, then eliminate the even numbers, then remove all negative values.", "out": "上丁七"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only odd values, then keep positive values only.", "out": "上丁七"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then eliminate the even numbers, then keep values above zero.", "out": "上丁七"} {"kind": "builder", "in": "上丁七", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "上丁七", "out": "Take a list of integers; square each, then keep the odd numbers, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then true if every value is unique.", "out": "一丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then check for duplicates in the values.", "out": "一丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then do all values appear only once.", "out": "一丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then check that there are no duplicates.", "out": "一丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only odd values, then are the values all unique.", "out": "一丁乏"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then eliminate the even numbers, then check if all values are unique.", "out": "一丁乏"} {"kind": "builder", "in": "一丁乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 2 != 0]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "一丁乏", "out": "Take a list of integers; keep the even numbers, then keep the odd numbers, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then decrement each value, then multiply each by -1.", "out": "丽不与"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Lower each number by one, then negate.", "out": "丽不与"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then reduce each by one, then multiply each by -1.", "out": "丽不与"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Subtract 1 from all, then negate.", "out": "丽不与"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Subtract one from each, then multiply each by -1.", "out": "丽不与"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Drop each by one, then negate.", "out": "丽不与"} {"kind": "builder", "in": "丽不与", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丽不与", "out": "Take a list of integers; add ten to each, then subtract one from each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then limit every value to 10.", "out": "主世丘"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then maximum of 10 for all.", "out": "主世丘"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then limit every value to 10.", "out": "主世丘"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then maximum of 10 for all.", "out": "主世丘"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then limit every value to 10.", "out": "主世丘"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then maximum of 10 for all.", "out": "主世丘"} {"kind": "builder", "in": "主世丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "主世丘", "out": "Take a list of integers; keep values greater than five, then drop the first element, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then extend to length 3 using zeros, then give back the total.", "out": "为义丙"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then pad to 3, then sum r.", "out": "为义丙"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then extend to length 3 using zeros, then add them up.", "out": "为义丙"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then pad to 3, then calculate the sum of all elements.", "out": "为义丙"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then extend to length 3 using zeros, then what's the total.", "out": "为义丙"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then pad to 3, then what do they add up to.", "out": "为义丙"} {"kind": "builder", "in": "为义丙", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return sum(r)"} {"kind": "translator", "in": "为义丙", "out": "Take a list of integers; drop the first and last elements, then pad with zeros to at least three elements, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then stop at the first non-positive value.", "out": "丈且乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then keep the leading run of positive numbers.", "out": "丈且乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then take values while they are positive.", "out": "丈且乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then take positive values then stop.", "out": "丈且乂"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove repeated values, then keep going while positive.", "out": "丈且乂"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then unique values preserving order, then stop at first non positive.", "out": "丈且乂"} {"kind": "builder", "in": "丈且乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丈且乂", "out": "Take a list of integers; double each, then drop duplicates keeping first occurrence, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then take each string's first letter, then remove blanks.", "out": "乖丨两"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then give me the first letter of everything, then eliminate empty string values.", "out": "乖丨两"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then reduce each string to its first character, then filter out blank strings.", "out": "乖丨两"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then take first char drop blanks, then remove strings that are empty.", "out": "乖丨两"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep first letters only, then strip out empty strings.", "out": "乖丨两"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then first letter from each item that isn't empty, then keep only non-empty strings.", "out": "乖丨两"} {"kind": "builder", "in": "乖丨两", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s[0] for s in r if s]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "乖丨两", "out": "Take a list of strings; sort alphabetically, then keep the first character of each (dropping empties), then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep values divisible by 3, then stop at the first non-positive value.", "out": "专串乂"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then keep items where x mod 3 equals zero, then keep the leading run of positive numbers.", "out": "专串乂"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then drop anything not divisible by three, then take values while they are positive.", "out": "专串乂"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then filter out everything except multiples of three, then take positive values then stop.", "out": "专串乂"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only multiples of three, then keep going while positive.", "out": "专串乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then multiples of three only, then stop at first non positive.", "out": "专串乂"} {"kind": "builder", "in": "专串乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "专串乂", "out": "Take a list of integers; sort descending, then keep multiples of three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then sort largest to smallest, then replace an empty list with one zero.", "out": "为专么"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then sort by descending values, then zero it out if it's empty.", "out": "为专么"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then sort from highest to lowest, then use zero if the list is empty.", "out": "为专么"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then sort descending, then default to zero when empty.", "out": "为专么"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then sort largest first, then if there's nothing, put in a zero.", "out": "为专么"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort in descending order, then if no items, add a zero.", "out": "为专么"} {"kind": "builder", "in": "为专么", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r, reverse=True)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "为专么", "out": "Take a list of integers; drop the first and last elements, then sort descending, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the final 3 elements, then drop anything not divisible by three.", "out": "么丹串"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then drop everything except the final three, then filter out everything except multiples of three.", "out": "么丹串"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then give me the last three elements, then keep only multiples of three.", "out": "么丹串"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep only the last three, then multiples of three only.", "out": "么丹串"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep the final three items, then filter for numbers divisible by three.", "out": "么丹串"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the last three, then give me only the values divisible by three.", "out": "么丹串"} {"kind": "builder", "in": "么丹串", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "么丹串", "out": "Take a list of integers; if empty, use a single zero, then keep only the last three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only odd values, then find the max, defaulting to 0.", "out": "乃丁业"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then eliminate the even numbers, then Give me the maximum, but 0 if there are no items.", "out": "乃丁业"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only odd values, then What's the highest number in the list.", "out": "乃丁业"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then eliminate the even numbers, then Return the greatest value or default to 0.", "out": "乃丁业"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only odd values, then Find the largest element, defaulting to zero.", "out": "乃丁业"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then eliminate the even numbers, then give the largest value (0 if none).", "out": "乃丁业"} {"kind": "builder", "in": "乃丁业", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 != 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "乃丁业", "out": "Take a list of integers; drop the leading negative values, then keep the odd numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then convert each to lower case, then find how long the longest string is.", "out": "乖丞乜"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then lowercase each one, then give the length of the longest string in the list.", "out": "乖丞乜"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then convert each to lower case, then get me the longest string's length.", "out": "乖丞乜"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then lowercase each one, then give the maximum string length.", "out": "乖丞乜"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then convert each to lower case, then max length of all strings.", "out": "乖丞乜"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then lowercase each one, then what's the max string length.", "out": "乖丞乜"} {"kind": "builder", "in": "乖丞乜", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s.lower() for s in r]\n return max((len(s) for s in r), default=0)"} {"kind": "translator", "in": "乖丞乜", "out": "Take a list of strings; sort alphabetically, then lowercase each string, then return the length of the longest string (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increment each value, then drop non-negative values.", "out": "丁下万"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then plus one for all, then drop all positive numbers.", "out": "丁下万"} {"kind": "builder", "in": "丁下万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丁下万", "out": "Take a list of integers; keep the odd numbers, then add one to each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then reduce each by one.", "out": "丁万不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then Subtract 1 from all.", "out": "丁万不"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then Subtract one from each.", "out": "丁万不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then Drop each by one.", "out": "丁万不"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then Decrease all values by one.", "out": "丁万不"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then Remove one from each value.", "out": "丁万不"} {"kind": "builder", "in": "丁万不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丁万不", "out": "Take a list of integers; keep the odd numbers, then keep the negative numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increment each value, then true only if all are positive.", "out": "丹下乌"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then plus one for all, then do all of these have positive values.", "out": "丹下乌"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then increment each value, then check if every value is positive.", "out": "丹下乌"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then plus one for all, then confirm all values are positive.", "out": "丹下乌"} {"kind": "speaker", "in": "Take a list of integers; last three only, then increment each value, then all positive.", "out": "丹下乌"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then plus one for all, then check if every number is above zero.", "out": "丹下乌"} {"kind": "builder", "in": "丹下乌", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 1 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丹下乌", "out": "Take a list of integers; keep only the last three, then add one to each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the leading run of positive numbers, then true only if all are positive.", "out": "丈乂乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take values while they are positive, then do all of these have positive values.", "out": "丈乂乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then take positive values then stop, then check if every value is positive.", "out": "丈乂乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep going while positive, then confirm all values are positive.", "out": "丈乂乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then stop at first non positive, then all positive.", "out": "丈乂乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take while greater than zero, then check if every number is above zero.", "out": "丈乂乌"} {"kind": "builder", "in": "丈乂乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丈乂乌", "out": "Take a list of integers; double each, then take values while they are positive, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then arrange in decreasing order.", "out": "丘义专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then arrange in descending order.", "out": "丘义专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then reverse sort.", "out": "丘义专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then sort largest to smallest.", "out": "丘义专"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then extend to length 3 using zeros, then sort by descending values.", "out": "丘义专"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then pad to 3, then sort from highest to lowest.", "out": "丘义专"} {"kind": "builder", "in": "丘义专", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丘义专", "out": "Take a list of integers; cap each value at 10, then pad with zeros to at least three elements, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then multiply each by two, then remove the initial run of negative numbers.", "out": "专丈乃"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then double each item in the list, then strip the front negatives.", "out": "专丈乃"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then multiply each by two, then remove leading negative numbers.", "out": "专丈乃"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then double each item in the list, then drop negatives from start.", "out": "专丈乃"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then multiply each by two, then strip negative values from the start.", "out": "专丈乃"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then double each item in the list, then remove negatives before the first non-negative.", "out": "专丈乃"} {"kind": "builder", "in": "专丈乃", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "专丈乃", "out": "Take a list of integers; sort descending, then double each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; double each, then make every value non-negative, then ensure at least three items by appending zeros.", "out": "丈丏义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then absolute value for all items, then ensure minimum length of three by adding zeros to the end.", "out": "丈丏义"} {"kind": "speaker", "in": "Take a list of integers; double each, then take absolute values, then ensure at least three items by appending zeros.", "out": "丈丏义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn negatives into positives, then ensure minimum length of three by adding zeros to the end.", "out": "丈丏义"} {"kind": "speaker", "in": "Take a list of integers; double each, then abs each element, then ensure at least three items by appending zeros.", "out": "丈丏义"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the absolute value of each, then ensure minimum length of three by adding zeros to the end.", "out": "丈丏义"} {"kind": "builder", "in": "丈丏义", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丈丏义", "out": "Take a list of integers; double each, then take the absolute value of each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then flip the list around, then make each twice as big.", "out": "么丐丈"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then flip the order around, then multiply each by 2.", "out": "么丐丈"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then put the elements backwards, then make each twice as big.", "out": "么丐丈"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then reverse that for me, then multiply each by 2.", "out": "么丐丈"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then flip it backwards, then make each twice as big.", "out": "么丐丈"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then make it backwards, then multiply each by 2.", "out": "么丐丈"} {"kind": "builder", "in": "么丐丈", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "么丐丈", "out": "Take a list of integers; if empty, use a single zero, then reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then default to [0] when there is nothing, then bump each up by one.", "out": "丘么下"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then when the list is empty, substitute a zero value, then increment each item.", "out": "丘么下"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then replace an empty list with one zero, then bump each up by one.", "out": "丘么下"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then zero it out if it's empty, then increment each item.", "out": "丘么下"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then use zero if the list is empty, then bump each up by one.", "out": "丘么下"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then default to zero when empty, then increment each item.", "out": "丘么下"} {"kind": "builder", "in": "丘么下", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r if r else [0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "丘么下", "out": "Take a list of integers; cap each value at 10, then if empty, use a single zero, then add one to each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then cut the list at the first zero, then give the number of evens.", "out": "九久乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then cut off after the first zero appears, then find how many values are divisible by two.", "out": "九久乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take values up to (excluding) the first zero, then how many are even.", "out": "九久乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the part before the first 0, then get the total number of even values in the list.", "out": "九久乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then truncate at the first zero, then give me the count of even values.", "out": "九久乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then delete everything starting with the first zero, then I need to know how many of these are even.", "out": "九久乓"} {"kind": "builder", "in": "九久乓", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:r.index(0)] if 0 in r else r\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "九久乓", "out": "Take a list of people records (name, age); extract the ages, then keep everything before the first zero, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove both ends, then true only if all are positive.", "out": "丈为乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then trim the edges, then do all of these have positive values.", "out": "丈为乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then trim one element off each end, then check if every value is positive.", "out": "丈为乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then cut off the first and last, then confirm all values are positive.", "out": "丈为乌"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first and last elements, then all positive.", "out": "丈为乌"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the middle part, then check if every number is above zero.", "out": "丈为乌"} {"kind": "builder", "in": "丈为乌", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:-1]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丈为乌", "out": "Take a list of integers; double each, then drop the first and last elements, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then flip the list around, then shift each up by ten.", "out": "丑丐丽"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then flip the order around, then increase all numbers by 10.", "out": "丑丐丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then put the elements backwards, then add 10 to everything.", "out": "丑丐丽"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then reverse that for me, then give everything a boost of 10.", "out": "丑丐丽"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then flip it backwards, then increment each by ten.", "out": "丑丐丽"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then make it backwards, then add a constant 10 to each.", "out": "丑丐丽"} {"kind": "builder", "in": "丑丐丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丑丐丽", "out": "Take a list of integers; sort ascending, then reverse the order, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the final 3 elements, then reduce each by one.", "out": "与丹不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop everything except the final three, then Subtract 1 from all.", "out": "与丹不"} {"kind": "speaker", "in": "Take a list of integers; negate each, then give me the last three elements, then Subtract one from each.", "out": "与丹不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the last three, then Drop each by one.", "out": "与丹不"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the final three items, then Decrease all values by one.", "out": "与丹不"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take the last three, then Remove one from each value.", "out": "与丹不"} {"kind": "builder", "in": "与丹不", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[-3:]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "与丹不", "out": "Take a list of integers; negate each, then keep only the last three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then strip spaces around each string, then deduplicate the strings.", "out": "丞丢丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then remove leading and trailing spaces, then filter out duplicate strings retain first.", "out": "丞丢丧"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then remove whitespace from each item, then strip duplicates preserve order.", "out": "丞丢丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then clean whitespace from each entry, then remove repeated strings.", "out": "丞丢丧"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then trim each string, then keep unique strings first appearance.", "out": "丞丢丧"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then trim whitespace from each, then eliminate repeated strings preserve first occurrence.", "out": "丞丢丧"} {"kind": "builder", "in": "丞丢丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s.strip() for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丞丢丧", "out": "Take a list of strings; lowercase each string, then trim whitespace from each, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then remove the initial run of negative numbers.", "out": "丈世乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then strip the front negatives.", "out": "丈世乃"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then remove leading negative numbers.", "out": "丈世乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then drop negatives from start.", "out": "丈世乃"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the first item, then strip negative values from the start.", "out": "丈世乃"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then Remove head, then remove negatives before the first non-negative.", "out": "丈世乃"} {"kind": "builder", "in": "丈世乃", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丈世乃", "out": "Take a list of integers; double each, then drop the first element, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increase every value by 10, then deduplicate the list.", "out": "一丽且"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then add 10 to each item, then remove repeats.", "out": "一丽且"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then shift each up by ten, then deduplicate the list.", "out": "一丽且"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then increase all numbers by 10, then remove repeats.", "out": "一丽且"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then add 10 to everything, then deduplicate the list.", "out": "一丽且"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then give everything a boost of 10, then remove repeats.", "out": "一丽且"} {"kind": "builder", "in": "一丽且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "一丽且", "out": "Take a list of integers; keep the even numbers, then add ten to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove repeated values, then keep only non-zero numbers.", "out": "丕且举"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then unique values preserving order, then strip the zeros.", "out": "丕且举"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove repeated values, then keep only non-zero numbers.", "out": "丕且举"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then unique values preserving order, then strip the zeros.", "out": "丕且举"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove repeated values, then keep only non-zero numbers.", "out": "丕且举"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then unique values preserving order, then strip the zeros.", "out": "丕且举"} {"kind": "builder", "in": "丕且举", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丕且举", "out": "Take a list of integers; keep only the first three, then drop duplicates keeping first occurrence, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then deduplicate the list.", "out": "丸万且"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then remove repeats.", "out": "丸万且"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then deduplicate the list.", "out": "丸万且"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then remove repeats.", "out": "丸万且"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then deduplicate the list.", "out": "丸万且"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then remove repeats.", "out": "丸万且"} {"kind": "builder", "in": "丸万且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丸万且", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then skip negatives at the start, then raise each to the power of two.", "out": "丐乃上"} {"kind": "speaker", "in": "Take a list of integers; reverse, then remove all negatives at the front, then I need each number multiplied by itself.", "out": "丐乃上"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the initial run of negative numbers, then square all of them.", "out": "丐乃上"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then strip the front negatives, then multiply each element by itself.", "out": "丐乃上"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove leading negative numbers, then make each one squared.", "out": "丐乃上"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then drop negatives from start, then square each value in the list.", "out": "丐乃上"} {"kind": "builder", "in": "丐乃上", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丐乃上", "out": "Take a list of integers; reverse the order, then drop the leading negative values, then square each."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values above zero, then replace an empty list with one zero.", "out": "丈七么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter for positive numbers, then zero it out if it's empty.", "out": "丈七么"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only positive numbers, then use zero if the list is empty.", "out": "丈七么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positives, then default to zero when empty.", "out": "丈七么"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove negatives, then if there's nothing, put in a zero.", "out": "丈七么"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positive numbers, then if no items, add a zero.", "out": "丈七么"} {"kind": "builder", "in": "丈七么", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丈七么", "out": "Take a list of integers; double each, then keep the positive numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then decrement each value, then stop at the first non-positive value.", "out": "且不乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Lower each number by one, then keep the leading run of positive numbers.", "out": "且不乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then reduce each by one, then take values while they are positive.", "out": "且不乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Subtract 1 from all, then take positive values then stop.", "out": "且不乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Subtract one from each, then keep going while positive.", "out": "且不乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Drop each by one, then stop at first non positive.", "out": "且不乂"} {"kind": "builder", "in": "且不乂", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "且不乂", "out": "Take a list of integers; drop duplicates keeping first occurrence, then subtract one from each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep only odd values, then ensure at least three items by appending zeros.", "out": "不丁义"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then eliminate the even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "不丁义"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep only odd values, then ensure at least three items by appending zeros.", "out": "不丁义"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then eliminate the even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "不丁义"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only odd values, then ensure at least three items by appending zeros.", "out": "不丁义"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then eliminate the even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "不丁义"} {"kind": "builder", "in": "不丁义", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "不丁义", "out": "Take a list of integers; subtract one from each, then keep the odd numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then order by distance from zero, then ensure at least three items by appending zeros.", "out": "九丸义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort based on absolute value, then ensure minimum length of three by adding zeros to the end.", "out": "九丸义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then organize by magnitude, then ensure at least three items by appending zeros.", "out": "九丸义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then arrange by absolute value ascending, then ensure minimum length of three by adding zeros to the end.", "out": "九丸义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort from smallest to largest absolute value, then ensure at least three items by appending zeros.", "out": "九丸义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort by absolute value, then ensure minimum length of three by adding zeros to the end.", "out": "九丸义"} {"kind": "builder", "in": "九丸义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, key=abs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九丸义", "out": "Take a list of people records (name, age); extract the ages, then sort by absolute value, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only odd values, then give the number of evens.", "out": "九丁乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then eliminate the even numbers, then find how many values are divisible by two.", "out": "九丁乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only odd values, then how many are even.", "out": "九丁乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then eliminate the even numbers, then get the total number of even values in the list.", "out": "九丁乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only odd values, then give me the count of even values.", "out": "九丁乓"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then eliminate the even numbers, then I need to know how many of these are even.", "out": "九丁乓"} {"kind": "builder", "in": "九丁乓", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "九丁乓", "out": "Take a list of people records (name, age); extract the ages, then keep the odd numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then multiply each value by itself, then drop non-negative values.", "out": "九上万"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then square them all, then drop all positive numbers.", "out": "九上万"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then raise each to the power of two, then drop non-negative values.", "out": "九上万"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then I need each number multiplied by itself, then drop all positive numbers.", "out": "九上万"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then square all of them, then drop non-negative values.", "out": "九上万"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then multiply each element by itself, then drop all positive numbers.", "out": "九上万"} {"kind": "builder", "in": "九上万", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x * x for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "九上万", "out": "Take a list of people records (name, age); extract the ages, then square each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then reduce each by one.", "out": "一丈不"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then Subtract 1 from all.", "out": "一丈不"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then Subtract one from each.", "out": "一丈不"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then Drop each by one.", "out": "一丈不"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then Decrease all values by one.", "out": "一丈不"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then Remove one from each value.", "out": "一丈不"} {"kind": "builder", "in": "一丈不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "一丈不", "out": "Take a list of integers; keep the even numbers, then double each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then skip negatives at the start, then reduce each by one.", "out": "丑乃不"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then remove all negatives at the front, then Subtract 1 from all.", "out": "丑乃不"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then remove the initial run of negative numbers, then Subtract one from each.", "out": "丑乃不"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then strip the front negatives, then Drop each by one.", "out": "丑乃不"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove leading negative numbers, then Decrease all values by one.", "out": "丑乃不"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then drop negatives from start, then Remove one from each value.", "out": "丑乃不"} {"kind": "builder", "in": "丑乃不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丑乃不", "out": "Take a list of integers; sort ascending, then drop the leading negative values, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then truncate to three items.", "out": "丘与丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then show the first three.", "out": "丘与丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then take the first three.", "out": "丘与丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then keep first 3.", "out": "丘与丕"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the sign of each, then truncate to first three.", "out": "丘与丕"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn positives to negatives and vice versa, then first three.", "out": "丘与丕"} {"kind": "builder", "in": "丘与丕", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [-x for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "丘与丕", "out": "Take a list of integers; cap each value at 10, then negate each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then cut the list at the first zero, then raise each to the power of two.", "out": "且久上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off after the first zero appears, then I need each number multiplied by itself.", "out": "且久上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take values up to (excluding) the first zero, then square all of them.", "out": "且久上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the part before the first 0, then multiply each element by itself.", "out": "且久上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate at the first zero, then make each one squared.", "out": "且久上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then delete everything starting with the first zero, then square each value in the list.", "out": "且久上"} {"kind": "builder", "in": "且久上", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "且久上", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep everything before the first zero, then square each."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then make every value non-negative, then keep only non-zero numbers.", "out": "丑丏举"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then absolute value for all items, then strip the zeros.", "out": "丑丏举"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take absolute values, then keep only non-zero numbers.", "out": "丑丏举"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then turn negatives into positives, then strip the zeros.", "out": "丑丏举"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then abs each element, then keep only non-zero numbers.", "out": "丑丏举"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the absolute value of each, then strip the zeros.", "out": "丑丏举"} {"kind": "builder", "in": "丑丏举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [abs(x) for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "丑丏举", "out": "Take a list of integers; sort ascending, then take the absolute value of each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove all zero values, then make each twice as big.", "out": "义举丈"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then exclude zeros, then multiply each by 2.", "out": "义举丈"} {"kind": "builder", "in": "义举丈", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "义举丈", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the zeros, then double each."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only odd values, then drop the odd numbers.", "out": "上丁一"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then eliminate the even numbers, then filter out the odd numbers.", "out": "上丁一"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only odd values, then drop the odd numbers.", "out": "上丁一"} {"kind": "speaker", "in": "Take a list of integers; square them all, then eliminate the even numbers, then filter out the odd numbers.", "out": "上丁一"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only odd values, then drop the odd numbers.", "out": "上丁一"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then eliminate the even numbers, then filter out the odd numbers.", "out": "上丁一"} {"kind": "builder", "in": "上丁一", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "上丁一", "out": "Take a list of integers; square each, then keep the odd numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then order by distance from zero, then keep only non-zero numbers.", "out": "下丸举"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort based on absolute value, then strip the zeros.", "out": "下丸举"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then organize by magnitude, then keep only non-zero numbers.", "out": "下丸举"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then arrange by absolute value ascending, then strip the zeros.", "out": "下丸举"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then sort from smallest to largest absolute value, then keep only non-zero numbers.", "out": "下丸举"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then sort by absolute value, then strip the zeros.", "out": "下丸举"} {"kind": "builder", "in": "下丸举", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = sorted(r, key=abs)\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "下丸举", "out": "Take a list of integers; add one to each, then sort by absolute value, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep only odd values, then remove the initial run of negative numbers.", "out": "丕丁乃"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then eliminate the even numbers, then strip the front negatives.", "out": "丕丁乃"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only odd values, then remove leading negative numbers.", "out": "丕丁乃"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then eliminate the even numbers, then drop negatives from start.", "out": "丕丁乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep only odd values, then strip negative values from the start.", "out": "丕丁乃"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then eliminate the even numbers, then remove negatives before the first non-negative.", "out": "丕丁乃"} {"kind": "builder", "in": "丕丁乃", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丕丁乃", "out": "Take a list of integers; keep only the first three, then keep the odd numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then add '#' to the start of each string, then find the longest one, defaulting to empty.", "out": "严乘丰"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then make each one start with a hash, then Longest string, or nothing if there isn't one.", "out": "严乘丰"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then add '#' to the start of each string, then find the longest one, defaulting to empty.", "out": "严乘丰"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then make each one start with a hash, then Longest string, or nothing if there isn't one.", "out": "严乘丰"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then add '#' to the start of each string, then find the longest one, defaulting to empty.", "out": "严乘丰"} {"kind": "speaker", "in": "Take a list of strings; length sort, then make each one start with a hash, then Longest string, or nothing if there isn't one.", "out": "严乘丰"} {"kind": "builder", "in": "严乘丰", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = ['#' + s for s in r]\n return max(r, key=len) if r else ''"} {"kind": "translator", "in": "严乘丰", "out": "Take a list of strings; sort by length, shortest first, then prefix each with a hash, then return the longest string (empty if none)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then make each twice as big.", "out": "丘世丈"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then multiply each by 2.", "out": "丘世丈"} {"kind": "builder", "in": "丘世丈", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[1:]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丘世丈", "out": "Take a list of integers; cap each value at 10, then drop the first element, then double each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then shift each up by ten.", "out": "九与丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then increase all numbers by 10.", "out": "九与丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then add 10 to everything.", "out": "九与丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then give everything a boost of 10.", "out": "九与丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then increment each by ten.", "out": "九与丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then add a constant 10 to each.", "out": "九与丽"} {"kind": "builder", "in": "九与丽", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "九与丽", "out": "Take a list of people records (name, age); extract the ages, then negate each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the list around, then keep only non-zero numbers.", "out": "万丐举"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then flip the order around, then strip the zeros.", "out": "万丐举"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then put the elements backwards, then keep only non-zero numbers.", "out": "万丐举"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then reverse that for me, then strip the zeros.", "out": "万丐举"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip it backwards, then keep only non-zero numbers.", "out": "万丐举"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then make it backwards, then strip the zeros.", "out": "万丐举"} {"kind": "builder", "in": "万丐举", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "万丐举", "out": "Take a list of integers; keep the negative numbers, then reverse the order, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then cut the list at the first zero, then ensure at least three items by appending zeros.", "out": "万久义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off after the first zero appears, then ensure minimum length of three by adding zeros to the end.", "out": "万久义"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take values up to (excluding) the first zero, then ensure at least three items by appending zeros.", "out": "万久义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep the part before the first 0, then ensure minimum length of three by adding zeros to the end.", "out": "万久义"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate at the first zero, then ensure at least three items by appending zeros.", "out": "万久义"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then delete everything starting with the first zero, then ensure minimum length of three by adding zeros to the end.", "out": "万久义"} {"kind": "builder", "in": "万久义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "万久义", "out": "Take a list of integers; keep the negative numbers, then keep everything before the first zero, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; square each, then make every value non-negative, then give the earliest even value or zero.", "out": "上丏乒"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then absolute value for all items, then fetch the first even element, default to 0.", "out": "上丏乒"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take absolute values, then give the earliest even value or zero.", "out": "上丏乒"} {"kind": "speaker", "in": "Take a list of integers; square them all, then turn negatives into positives, then fetch the first even element, default to 0.", "out": "上丏乒"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then abs each element, then give the earliest even value or zero.", "out": "上丏乒"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the absolute value of each, then fetch the first even element, default to 0.", "out": "上丏乒"} {"kind": "builder", "in": "上丏乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [abs(x) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "上丏乒", "out": "Take a list of integers; square each, then take the absolute value of each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort largest to smallest, then bump each up by one.", "out": "九专下"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort by descending values, then increment each item.", "out": "九专下"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then sort from highest to lowest, then bump each up by one.", "out": "九专下"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then sort descending, then increment each item.", "out": "九专下"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort largest first, then bump each up by one.", "out": "九专下"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort in descending order, then increment each item.", "out": "九专下"} {"kind": "builder", "in": "九专下", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, reverse=True)\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "九专下", "out": "Take a list of people records (name, age); extract the ages, then sort descending, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then flip the list around, then drop the odd numbers.", "out": "乃丐一"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then flip the order around, then filter out the odd numbers.", "out": "乃丐一"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then put the elements backwards, then drop the odd numbers.", "out": "乃丐一"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then reverse that for me, then filter out the odd numbers.", "out": "乃丐一"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then flip it backwards, then drop the odd numbers.", "out": "乃丐一"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then make it backwards, then filter out the odd numbers.", "out": "乃丐一"} {"kind": "builder", "in": "乃丐一", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "乃丐一", "out": "Take a list of integers; drop the leading negative values, then reverse the order, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then default to [0] when there is nothing, then truncate to three items.", "out": "万么丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then when the list is empty, substitute a zero value, then show the first three.", "out": "万么丕"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then replace an empty list with one zero, then take the first three.", "out": "万么丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then zero it out if it's empty, then keep first 3.", "out": "万么丕"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then use zero if the list is empty, then truncate to first three.", "out": "万么丕"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then default to zero when empty, then first three.", "out": "万么丕"} {"kind": "builder", "in": "万么丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r if r else [0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "万么丕", "out": "Take a list of integers; keep the negative numbers, then if empty, use a single zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; negate each, then flip the list around, then shift each up by ten.", "out": "与丐丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then flip the order around, then increase all numbers by 10.", "out": "与丐丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then put the elements backwards, then add 10 to everything.", "out": "与丐丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then reverse that for me, then give everything a boost of 10.", "out": "与丐丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then flip it backwards, then increment each by ten.", "out": "与丐丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then make it backwards, then add a constant 10 to each.", "out": "与丐丽"} {"kind": "builder", "in": "与丐丽", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "与丐丽", "out": "Take a list of integers; negate each, then reverse the order, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values divisible by 3, then true if already sorted smallest to largest.", "out": "主串乎"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then keep items where x mod 3 equals zero, then does this list go in ascending order.", "out": "主串乎"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then drop anything not divisible by three, then check if the list is in ascending order.", "out": "主串乎"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then filter out everything except multiples of three, then is the list sorted.", "out": "主串乎"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only multiples of three, then is it sorted.", "out": "主串乎"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiples of three only, then check if values are in increasing order.", "out": "主串乎"} {"kind": "builder", "in": "主串乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return r == sorted(r)"} {"kind": "translator", "in": "主串乎", "out": "Take a list of integers; keep values greater than five, then keep multiples of three, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove the first item, then find the max, defaulting to 0.", "out": "丹世业"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Remove head, then Give me the maximum, but 0 if there are no items.", "out": "丹世业"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the first item, then What's the highest number in the list.", "out": "丹世业"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Remove head, then Return the greatest value or default to 0.", "out": "丹世业"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first item, then Find the largest element, defaulting to zero.", "out": "丹世业"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then Remove head, then give the largest value (0 if none).", "out": "丹世业"} {"kind": "builder", "in": "丹世业", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:]\n return max(r) if r else 0"} {"kind": "translator", "in": "丹世业", "out": "Take a list of integers; keep only the last three, then drop the first element, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove the first item, then true if at least one even value.", "out": "串世之"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Remove head, then any even.", "out": "串世之"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove the first item, then true if at least one even value.", "out": "串世之"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Remove head, then any even.", "out": "串世之"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove the first item, then true if at least one even value.", "out": "串世之"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Remove head, then any even.", "out": "串世之"} {"kind": "builder", "in": "串世之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[1:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "串世之", "out": "Take a list of integers; keep multiples of three, then drop the first element, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep the leading run of positive numbers, then keep only numbers above 5.", "out": "丸乂主"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then take values while they are positive, then exclude values of 5 and below.", "out": "丸乂主"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take positive values then stop, then remove anything 5 or less.", "out": "丸乂主"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep going while positive, then filter to keep only values above 5.", "out": "丸乂主"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then stop at first non positive, then get rid of values that aren't greater than five.", "out": "丸乂主"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take while greater than zero, then drop anything 5 or below.", "out": "丸乂主"} {"kind": "builder", "in": "丸乂主", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丸乂主", "out": "Take a list of integers; sort by absolute value, then take values while they are positive, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep values above zero, then raise each to the power of two.", "out": "丈七上"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then filter for positive numbers, then I need each number multiplied by itself.", "out": "丈七上"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only positive numbers, then square all of them.", "out": "丈七上"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positives, then multiply each element by itself.", "out": "丈七上"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove negatives, then make each one squared.", "out": "丈七上"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep the positive numbers, then square each value in the list.", "out": "丈七上"} {"kind": "builder", "in": "丈七上", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x > 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "丈七上", "out": "Take a list of integers; double each, then keep the positive numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then stop at the first non-positive value.", "out": "丁且乂"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then keep the leading run of positive numbers.", "out": "丁且乂"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then take values while they are positive.", "out": "丁且乂"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then take positive values then stop.", "out": "丁且乂"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove repeated values, then keep going while positive.", "out": "丁且乂"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then unique values preserving order, then stop at first non positive.", "out": "丁且乂"} {"kind": "builder", "in": "丁且乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丁且乂", "out": "Take a list of integers; keep the odd numbers, then drop duplicates keeping first occurrence, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then cut the list at the first zero, then remove the initial run of negative numbers.", "out": "么久乃"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then cut off after the first zero appears, then strip the front negatives.", "out": "么久乃"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then take values up to (excluding) the first zero, then remove leading negative numbers.", "out": "么久乃"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep the part before the first 0, then drop negatives from start.", "out": "么久乃"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then truncate at the first zero, then strip negative values from the start.", "out": "么久乃"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then delete everything starting with the first zero, then remove negatives before the first non-negative.", "out": "么久乃"} {"kind": "builder", "in": "么久乃", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[:r.index(0)] if 0 in r else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "么久乃", "out": "Take a list of integers; if empty, use a single zero, then keep everything before the first zero, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the first 3 elements, then keep only numbers above 5.", "out": "为丕主"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then remove everything after the third, then exclude values of 5 and below.", "out": "为丕主"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then truncate to three items, then remove anything 5 or less.", "out": "为丕主"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then show the first three, then filter to keep only values above 5.", "out": "为丕主"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then take the first three, then get rid of values that aren't greater than five.", "out": "为丕主"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep first 3, then drop anything 5 or below.", "out": "为丕主"} {"kind": "builder", "in": "为丕主", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:3]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "为丕主", "out": "Take a list of integers; drop the first and last elements, then keep only the first three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then count the elements.", "out": "丁万东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then how many items remain.", "out": "丁万东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then tell me the length.", "out": "丁万东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then return the length.", "out": "丁万东"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values below zero, then count them.", "out": "丁万东"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then get the negative numbers, then what's the count.", "out": "丁万东"} {"kind": "builder", "in": "丁万东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x < 0]\n return len(r)"} {"kind": "translator", "in": "丁万东", "out": "Take a list of integers; keep the odd numbers, then keep the negative numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then default to [0] when there is nothing, then trim one element off each end.", "out": "世么为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then when the list is empty, substitute a zero value, then cut off the first and last.", "out": "世么为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then replace an empty list with one zero, then remove the first and last elements.", "out": "世么为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then zero it out if it's empty, then keep only the middle part.", "out": "世么为"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then use zero if the list is empty, then drop first and last.", "out": "世么为"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then default to zero when empty, then eliminate the outermost elements.", "out": "世么为"} {"kind": "builder", "in": "世么为", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r if r else [0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "世么为", "out": "Take a list of integers; drop the first element, then if empty, use a single zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then arrange in decreasing order.", "out": "世万专"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then arrange in descending order.", "out": "世万专"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then reverse sort.", "out": "世万专"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then sort largest to smallest.", "out": "世万专"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then sort by descending values.", "out": "世万专"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then sort from highest to lowest.", "out": "世万专"} {"kind": "builder", "in": "世万专", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x < 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "世万专", "out": "Take a list of integers; drop the first element, then keep the negative numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then true only if all are positive.", "out": "丸万乌"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then do all of these have positive values.", "out": "丸万乌"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then check if every value is positive.", "out": "丸万乌"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then confirm all values are positive.", "out": "丸万乌"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then all positive.", "out": "丸万乌"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then check if every number is above zero.", "out": "丸万乌"} {"kind": "builder", "in": "丸万乌", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丸万乌", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep values divisible by 3, then truncate to three items.", "out": "一串丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep items where x mod 3 equals zero, then show the first three.", "out": "一串丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then drop anything not divisible by three, then take the first three.", "out": "一串丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then filter out everything except multiples of three, then keep first 3.", "out": "一串丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep only multiples of three, then truncate to first three.", "out": "一串丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiples of three only, then first three.", "out": "一串丕"} {"kind": "builder", "in": "一串丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x % 3 == 0]\n r = r[:3]\n return r"} {"kind": "translator", "in": "一串丕", "out": "Take a list of integers; keep the even numbers, then keep multiples of three, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then take values up to (excluding) the first zero.", "out": "且世久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then keep the part before the first 0.", "out": "且世久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then truncate at the first zero.", "out": "且世久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then delete everything starting with the first zero.", "out": "且世久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then remove from the first zero onwards.", "out": "且世久"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then up to but not including the first zero.", "out": "且世久"} {"kind": "builder", "in": "且世久", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "且世久", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first element, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then flip the list around, then make each twice as big.", "out": "丸丐丈"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then flip the order around, then multiply each by 2.", "out": "丸丐丈"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then put the elements backwards, then make each twice as big.", "out": "丸丐丈"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then reverse that for me, then multiply each by 2.", "out": "丸丐丈"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then flip it backwards, then make each twice as big.", "out": "丸丐丈"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then make it backwards, then multiply each by 2.", "out": "丸丐丈"} {"kind": "builder", "in": "丸丐丈", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丸丐丈", "out": "Take a list of integers; sort by absolute value, then reverse the order, then double each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then make every value non-negative, then drop the even numbers.", "out": "丘丏丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then absolute value for all items, then strip out the evens.", "out": "丘丏丁"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take absolute values, then drop the even numbers.", "out": "丘丏丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then turn negatives into positives, then strip out the evens.", "out": "丘丏丁"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then abs each element, then drop the even numbers.", "out": "丘丏丁"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the absolute value of each, then strip out the evens.", "out": "丘丏丁"} {"kind": "builder", "in": "丘丏丁", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丘丏丁", "out": "Take a list of integers; cap each value at 10, then take the absolute value of each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest to smallest, then shift each up by ten.", "out": "世专丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by descending values, then increase all numbers by 10.", "out": "世专丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from highest to lowest, then add 10 to everything.", "out": "世专丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort descending, then give everything a boost of 10.", "out": "世专丽"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest first, then increment each by ten.", "out": "世专丽"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort in descending order, then add a constant 10 to each.", "out": "世专丽"} {"kind": "builder", "in": "世专丽", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, reverse=True)\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "世专丽", "out": "Take a list of integers; drop the first element, then sort descending, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove repeated values, then drop anything not divisible by three.", "out": "上且串"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then unique values preserving order, then filter out everything except multiples of three.", "out": "上且串"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove repeated values, then keep only multiples of three.", "out": "上且串"} {"kind": "speaker", "in": "Take a list of integers; square them all, then unique values preserving order, then multiples of three only.", "out": "上且串"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove repeated values, then filter for numbers divisible by three.", "out": "上且串"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then unique values preserving order, then give me only the values divisible by three.", "out": "上且串"} {"kind": "builder", "in": "上且串", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "上且串", "out": "Take a list of integers; square each, then drop duplicates keeping first occurrence, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only even values, then keep only numbers above 5.", "out": "丹一主"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then extract all even numbers, then exclude values of 5 and below.", "out": "丹一主"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only even values, then remove anything 5 or less.", "out": "丹一主"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then extract all even numbers, then filter to keep only values above 5.", "out": "丹一主"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only even values, then get rid of values that aren't greater than five.", "out": "丹一主"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then extract all even numbers, then drop anything 5 or below.", "out": "丹一主"} {"kind": "builder", "in": "丹一主", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丹一主", "out": "Take a list of integers; keep only the last three, then keep the even numbers, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the sign of each, then trim one element off each end.", "out": "且与为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn positives to negatives and vice versa, then cut off the first and last.", "out": "且与为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the sign of each, then remove the first and last elements.", "out": "且与为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn positives to negatives and vice versa, then keep only the middle part.", "out": "且与为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then flip the sign of each, then drop first and last.", "out": "且与为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then turn positives to negatives and vice versa, then eliminate the outermost elements.", "out": "且与为"} {"kind": "builder", "in": "且与为", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [-x for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "且与为", "out": "Take a list of integers; drop duplicates keeping first occurrence, then negate each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then take the first 3 elements, then stop at the first non-positive value.", "out": "丽丕乂"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then remove everything after the third, then keep the leading run of positive numbers.", "out": "丽丕乂"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then truncate to three items, then take values while they are positive.", "out": "丽丕乂"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then show the first three, then take positive values then stop.", "out": "丽丕乂"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then take the first three, then keep going while positive.", "out": "丽丕乂"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep first 3, then stop at first non positive.", "out": "丽丕乂"} {"kind": "builder", "in": "丽丕乂", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:3]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丽丕乂", "out": "Take a list of integers; add ten to each, then keep only the first three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then extend to length 3 using zeros, then replace an empty list with one zero.", "out": "丐义么"} {"kind": "speaker", "in": "Take a list of integers; reverse, then pad to 3, then zero it out if it's empty.", "out": "丐义么"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then extend to length 3 using zeros, then use zero if the list is empty.", "out": "丐义么"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then pad to 3, then default to zero when empty.", "out": "丐义么"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then extend to length 3 using zeros, then if there's nothing, put in a zero.", "out": "丐义么"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then pad to 3, then if no items, add a zero.", "out": "丐义么"} {"kind": "builder", "in": "丐义么", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丐义么", "out": "Take a list of integers; reverse the order, then pad with zeros to at least three elements, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then true if already sorted smallest to largest.", "out": "丑丘乎"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then does this list go in ascending order.", "out": "丑丘乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then check if the list is in ascending order.", "out": "丑丘乎"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then is the list sorted.", "out": "丑丘乎"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then is it sorted.", "out": "丑丘乎"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then check if values are in increasing order.", "out": "丑丘乎"} {"kind": "builder", "in": "丑丘乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "丑丘乎", "out": "Take a list of integers; sort ascending, then cap each value at 10, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then increment each value, then truncate to three items.", "out": "专下丕"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then plus one for all, then show the first three.", "out": "专下丕"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then increment each value, then take the first three.", "out": "专下丕"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then plus one for all, then keep first 3.", "out": "专下丕"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then increment each value, then truncate to first three.", "out": "专下丕"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then plus one for all, then first three.", "out": "专下丕"} {"kind": "builder", "in": "专下丕", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x + 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "专下丕", "out": "Take a list of integers; sort descending, then add one to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort largest to smallest, then true if any value equals zero.", "out": "万专乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort by descending values, then check for zero.", "out": "万专乍"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort from highest to lowest, then true if any value equals zero.", "out": "万专乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort descending, then check for zero.", "out": "万专乍"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then sort largest first, then true if any value equals zero.", "out": "万专乍"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then sort in descending order, then check for zero.", "out": "万专乍"} {"kind": "builder", "in": "万专乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = sorted(r, reverse=True)\n return 0 in r"} {"kind": "translator", "in": "万专乍", "out": "Take a list of integers; keep the negative numbers, then sort descending, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values divisible by 3, then give the earliest even value or zero.", "out": "不串乒"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep items where x mod 3 equals zero, then fetch the first even element, default to 0.", "out": "不串乒"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then drop anything not divisible by three, then give the earliest even value or zero.", "out": "不串乒"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then filter out everything except multiples of three, then fetch the first even element, default to 0.", "out": "不串乒"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only multiples of three, then give the earliest even value or zero.", "out": "不串乒"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiples of three only, then fetch the first even element, default to 0.", "out": "不串乒"} {"kind": "builder", "in": "不串乒", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "不串乒", "out": "Take a list of integers; subtract one from each, then keep multiples of three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then default to [0] when there is nothing, then arrange in increasing order.", "out": "万么丑"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then when the list is empty, substitute a zero value, then Organize these ascending.", "out": "万么丑"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then replace an empty list with one zero, then Sort in ascending order.", "out": "万么丑"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then zero it out if it's empty, then I need this sorted ascending.", "out": "万么丑"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then use zero if the list is empty, then Put these in ascending order.", "out": "万么丑"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then default to zero when empty, then sort smallest to largest.", "out": "万么丑"} {"kind": "builder", "in": "万么丑", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r if r else [0]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "万么丑", "out": "Take a list of integers; keep the negative numbers, then if empty, use a single zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then find the max, defaulting to 0.", "out": "一丈业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then Give me the maximum, but 0 if there are no items.", "out": "一丈业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then What's the highest number in the list.", "out": "一丈业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then Return the greatest value or default to 0.", "out": "一丈业"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each by two, then Find the largest element, defaulting to zero.", "out": "一丈业"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then double each item in the list, then give the largest value (0 if none).", "out": "一丈业"} {"kind": "builder", "in": "一丈业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "一丈业", "out": "Take a list of integers; keep the even numbers, then double each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; square each, then sort smallest to largest, then multiply each by -1.", "out": "上丑与"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Ascending sort, then negate.", "out": "上丑与"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then Sort this ascending, then multiply each by -1.", "out": "上丑与"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Sort lowest to highest, then negate.", "out": "上丑与"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then Arrange from smallest to largest, then multiply each by -1.", "out": "上丑与"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort ascending, then negate.", "out": "上丑与"} {"kind": "builder", "in": "上丑与", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r)\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "上丑与", "out": "Take a list of integers; square each, then sort ascending, then negate each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increment each value, then deduplicate the list.", "out": "义下且"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then plus one for all, then remove repeats.", "out": "义下且"} {"kind": "builder", "in": "义下且", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "义下且", "out": "Take a list of integers; pad with zeros to at least three elements, then add one to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep the leading run of positive numbers, then make each twice as big.", "out": "与乂丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take values while they are positive, then multiply each by 2.", "out": "与乂丈"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take positive values then stop, then make each twice as big.", "out": "与乂丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep going while positive, then multiply each by 2.", "out": "与乂丈"} {"kind": "speaker", "in": "Take a list of integers; negate each, then stop at first non positive, then make each twice as big.", "out": "与乂丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then take while greater than zero, then multiply each by 2.", "out": "与乂丈"} {"kind": "builder", "in": "与乂丈", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "与乂丈", "out": "Take a list of integers; negate each, then take values while they are positive, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then strip the signs.", "out": "举丈丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then take abs of each.", "out": "举丈丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then get the absolute value of everything.", "out": "举丈丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then apply absolute value to the whole list.", "out": "举丈丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each by two, then make them all positive.", "out": "举丈丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then double each item in the list, then make every value non-negative.", "out": "举丈丏"} {"kind": "builder", "in": "举丈丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举丈丏", "out": "Take a list of integers; drop the zeros, then double each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each by two, then arrange in decreasing order.", "out": "久丈专"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then double each item in the list, then arrange in descending order.", "out": "久丈专"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then multiply each by two, then reverse sort.", "out": "久丈专"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then double each item in the list, then sort largest to smallest.", "out": "久丈专"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then multiply each by two, then sort by descending values.", "out": "久丈专"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then double each item in the list, then sort from highest to lowest.", "out": "久丈专"} {"kind": "builder", "in": "久丈专", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "久丈专", "out": "Take a list of integers; keep everything before the first zero, then double each, then sort descending."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then order strings from shortest to longest, then return them as one comma-separated string.", "out": "丞严中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then shortest to longest, then separate by comma.", "out": "丞严中"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then arrange by string length ascending, then join with commas.", "out": "丞严中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then length sort, then comma join.", "out": "丞严中"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then sort by length shortest first, then combine using commas.", "out": "丞严中"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then organize by string length least to greatest, then connect with commas between each item.", "out": "丞严中"} {"kind": "builder", "in": "丞严中", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = sorted(r, key=len)\n return ','.join(r)"} {"kind": "translator", "in": "丞严中", "out": "Take a list of strings; lowercase each string, then sort by length, shortest first, then join them with commas."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then trim one element off each end.", "out": "主乂为"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then cut off the first and last.", "out": "主乂为"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then remove the first and last elements.", "out": "主乂为"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then keep only the middle part.", "out": "主乂为"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then drop first and last.", "out": "主乂为"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then eliminate the outermost elements.", "out": "主乂为"} {"kind": "builder", "in": "主乂为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "主乂为", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of strings; keep the first character of each (dropping empties), then order strings from shortest to longest, then remove short strings (under 3 chars).", "out": "丨严乗"} {"kind": "speaker", "in": "Take a list of strings; extract initial letters, then shortest to longest, then only keep strings with three or more characters.", "out": "丨严乗"} {"kind": "speaker", "in": "Take a list of strings; take each string's first letter, then arrange by string length ascending, then keep only strings that are at least three characters long.", "out": "丨严乗"} {"kind": "speaker", "in": "Take a list of strings; give me the first letter of everything, then length sort, then filter strings shorter than 3 chars.", "out": "丨严乗"} {"kind": "speaker", "in": "Take a list of strings; reduce each string to its first character, then sort by length shortest first, then drop anything shorter than three characters.", "out": "丨严乗"} {"kind": "speaker", "in": "Take a list of strings; take first char drop blanks, then organize by string length least to greatest, then keep only strings of length 3 or more.", "out": "丨严乗"} {"kind": "builder", "in": "丨严乗", "out": "def solve(xs):\n r = list(xs)\n r = [s[0] for s in r if s]\n r = sorted(r, key=len)\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "丨严乗", "out": "Take a list of strings; keep the first character of each (dropping empties), then sort by length, shortest first, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then decrement each value, then remove the initial run of negative numbers.", "out": "丽不乃"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Lower each number by one, then strip the front negatives.", "out": "丽不乃"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then reduce each by one, then remove leading negative numbers.", "out": "丽不乃"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Subtract 1 from all, then drop negatives from start.", "out": "丽不乃"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Subtract one from each, then strip negative values from the start.", "out": "丽不乃"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Drop each by one, then remove negatives before the first non-negative.", "out": "丽不乃"} {"kind": "builder", "in": "丽不乃", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x - 1 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丽不乃", "out": "Take a list of integers; add ten to each, then subtract one from each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the list around, then count the elements.", "out": "举丐东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then flip the order around, then how many items remain.", "out": "举丐东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then put the elements backwards, then tell me the length.", "out": "举丐东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then reverse that for me, then return the length.", "out": "举丐东"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip it backwards, then count them.", "out": "举丐东"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then make it backwards, then what's the count.", "out": "举丐东"} {"kind": "builder", "in": "举丐东", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = list(reversed(r))\n return len(r)"} {"kind": "translator", "in": "举丐东", "out": "Take a list of integers; drop the zeros, then reverse the order, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then skip negatives at the start, then raise each to the power of two.", "out": "世乃上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove all negatives at the front, then I need each number multiplied by itself.", "out": "世乃上"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the initial run of negative numbers, then square all of them.", "out": "世乃上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then strip the front negatives, then multiply each element by itself.", "out": "世乃上"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove leading negative numbers, then make each one squared.", "out": "世乃上"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop negatives from start, then square each value in the list.", "out": "世乃上"} {"kind": "builder", "in": "世乃上", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "世乃上", "out": "Take a list of integers; drop the first element, then drop the leading negative values, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove repeated values, then truncate to the last three items.", "out": "主且丹"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then unique values preserving order, then show only the last three.", "out": "主且丹"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove repeated values, then remove all but the last three.", "out": "主且丹"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then unique values preserving order, then take the final 3 elements.", "out": "主且丹"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove repeated values, then drop everything except the final three.", "out": "主且丹"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then unique values preserving order, then give me the last three elements.", "out": "主且丹"} {"kind": "builder", "in": "主且丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "主且丹", "out": "Take a list of integers; keep values greater than five, then drop duplicates keeping first occurrence, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then take the first 3 elements, then drop non-negative values.", "out": "丏丕万"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then remove everything after the third, then drop all positive numbers.", "out": "丏丕万"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then truncate to three items, then drop non-negative values.", "out": "丏丕万"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then show the first three, then drop all positive numbers.", "out": "丏丕万"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then take the first three, then drop non-negative values.", "out": "丏丕万"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep first 3, then drop all positive numbers.", "out": "丏丕万"} {"kind": "builder", "in": "丏丕万", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r[:3]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丏丕万", "out": "Take a list of integers; take the absolute value of each, then keep only the first three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then default to [0] when there is nothing, then true if already sorted smallest to largest.", "out": "丑么乎"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then when the list is empty, substitute a zero value, then does this list go in ascending order.", "out": "丑么乎"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then replace an empty list with one zero, then check if the list is in ascending order.", "out": "丑么乎"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then zero it out if it's empty, then is the list sorted.", "out": "丑么乎"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then use zero if the list is empty, then is it sorted.", "out": "丑么乎"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then default to zero when empty, then check if values are in increasing order.", "out": "丑么乎"} {"kind": "builder", "in": "丑么乎", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r if r else [0]\n return r == sorted(r)"} {"kind": "translator", "in": "丑么乎", "out": "Take a list of integers; sort ascending, then if empty, use a single zero, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove the first item, then multiply each by -1.", "out": "义世与"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Remove head, then negate.", "out": "义世与"} {"kind": "builder", "in": "义世与", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "义世与", "out": "Take a list of integers; pad with zeros to at least three elements, then drop the first element, then negate each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then make every value non-negative, then reduce each by one.", "out": "丸丏不"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then absolute value for all items, then Subtract 1 from all.", "out": "丸丏不"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take absolute values, then Subtract one from each.", "out": "丸丏不"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then turn negatives into positives, then Drop each by one.", "out": "丸丏不"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then abs each element, then Decrease all values by one.", "out": "丸丏不"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then take the absolute value of each, then Remove one from each value.", "out": "丸丏不"} {"kind": "builder", "in": "丸丏不", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丸丏不", "out": "Take a list of integers; sort by absolute value, then take the absolute value of each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the list around, then count the elements.", "out": "丈丐东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then flip the order around, then how many items remain.", "out": "丈丐东"} {"kind": "speaker", "in": "Take a list of integers; double each, then put the elements backwards, then tell me the length.", "out": "丈丐东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then reverse that for me, then return the length.", "out": "丈丐东"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip it backwards, then count them.", "out": "丈丐东"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then make it backwards, then what's the count.", "out": "丈丐东"} {"kind": "builder", "in": "丈丐东", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(reversed(r))\n return len(r)"} {"kind": "translator", "in": "丈丐东", "out": "Take a list of integers; double each, then reverse the order, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then sort smallest to largest, then trim one element off each end.", "out": "且丑为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Ascending sort, then cut off the first and last.", "out": "且丑为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Sort this ascending, then remove the first and last elements.", "out": "且丑为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Sort lowest to highest, then keep only the middle part.", "out": "且丑为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Arrange from smallest to largest, then drop first and last.", "out": "且丑为"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then sort ascending, then eliminate the outermost elements.", "out": "且丑为"} {"kind": "builder", "in": "且丑为", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = sorted(r)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "且丑为", "out": "Take a list of integers; drop duplicates keeping first occurrence, then sort ascending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then replace an empty list with one zero.", "out": "与丘么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then zero it out if it's empty.", "out": "与丘么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then use zero if the list is empty.", "out": "与丘么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then default to zero when empty.", "out": "与丘么"} {"kind": "speaker", "in": "Take a list of integers; negate each, then clamp each to at most ten, then if there's nothing, put in a zero.", "out": "与丘么"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then don't let anything exceed 10, then if no items, add a zero.", "out": "与丘么"} {"kind": "builder", "in": "与丘么", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [min(x, 10) for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "与丘么", "out": "Take a list of integers; negate each, then cap each value at 10, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only odd values, then replace an empty list with one zero.", "out": "丹丁么"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then eliminate the even numbers, then zero it out if it's empty.", "out": "丹丁么"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only odd values, then use zero if the list is empty.", "out": "丹丁么"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then eliminate the even numbers, then default to zero when empty.", "out": "丹丁么"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only odd values, then if there's nothing, put in a zero.", "out": "丹丁么"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then eliminate the even numbers, then if no items, add a zero.", "out": "丹丁么"} {"kind": "builder", "in": "丹丁么", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丹丁么", "out": "Take a list of integers; keep only the last three, then keep the odd numbers, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep only even values, then reduce each by one.", "out": "乃一不"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then extract all even numbers, then Subtract 1 from all.", "out": "乃一不"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only even values, then Subtract one from each.", "out": "乃一不"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then extract all even numbers, then Drop each by one.", "out": "乃一不"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only even values, then Decrease all values by one.", "out": "乃一不"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then extract all even numbers, then Remove one from each value.", "out": "乃一不"} {"kind": "builder", "in": "乃一不", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 2 == 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "乃一不", "out": "Take a list of integers; drop the leading negative values, then keep the even numbers, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only even values, then make each twice as big.", "out": "丏一丈"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then extract all even numbers, then multiply each by 2.", "out": "丏一丈"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only even values, then make each twice as big.", "out": "丏一丈"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then extract all even numbers, then multiply each by 2.", "out": "丏一丈"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only even values, then make each twice as big.", "out": "丏一丈"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then extract all even numbers, then multiply each by 2.", "out": "丏一丈"} {"kind": "builder", "in": "丏一丈", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丏一丈", "out": "Take a list of integers; take the absolute value of each, then keep the even numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then shift each up by ten.", "out": "丸万丽"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then increase all numbers by 10.", "out": "丸万丽"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then add 10 to everything.", "out": "丸万丽"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then give everything a boost of 10.", "out": "丸万丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then increment each by ten.", "out": "丸万丽"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then add a constant 10 to each.", "out": "丸万丽"} {"kind": "builder", "in": "丸万丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丸万丽", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then order by distance from zero, then multiply each by -1.", "out": "丽丸与"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then sort based on absolute value, then negate.", "out": "丽丸与"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then organize by magnitude, then multiply each by -1.", "out": "丽丸与"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then arrange by absolute value ascending, then negate.", "out": "丽丸与"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then sort from smallest to largest absolute value, then multiply each by -1.", "out": "丽丸与"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort by absolute value, then negate.", "out": "丽丸与"} {"kind": "builder", "in": "丽丸与", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r, key=abs)\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丽丸与", "out": "Take a list of integers; add ten to each, then sort by absolute value, then negate each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then remove the initial run of negative numbers.", "out": "义丘乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then strip the front negatives.", "out": "义丘乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then remove leading negative numbers.", "out": "义丘乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then drop negatives from start.", "out": "义丘乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then clamp each to at most ten, then strip negative values from the start.", "out": "义丘乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then don't let anything exceed 10, then remove negatives before the first non-negative.", "out": "义丘乃"} {"kind": "builder", "in": "义丘乃", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [min(x, 10) for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "义丘乃", "out": "Take a list of integers; pad with zeros to at least three elements, then cap each value at 10, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove both ends, then drop non-negative values.", "out": "且为万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then trim the edges, then drop all positive numbers.", "out": "且为万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then trim one element off each end, then drop non-negative values.", "out": "且为万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off the first and last, then drop all positive numbers.", "out": "且为万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first and last elements, then drop non-negative values.", "out": "且为万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only the middle part, then drop all positive numbers.", "out": "且为万"} {"kind": "builder", "in": "且为万", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:-1]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "且为万", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first and last elements, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the first 3 elements, then trim one element off each end.", "out": "万丕为"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then remove everything after the third, then cut off the first and last.", "out": "万丕为"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then truncate to three items, then remove the first and last elements.", "out": "万丕为"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then show the first three, then keep only the middle part.", "out": "万丕为"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take the first three, then drop first and last.", "out": "万丕为"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep first 3, then eliminate the outermost elements.", "out": "万丕为"} {"kind": "builder", "in": "万丕为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:3]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "万丕为", "out": "Take a list of integers; keep the negative numbers, then keep only the first three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increase every value by 10, then true if at least one even value.", "out": "丐丽之"} {"kind": "speaker", "in": "Take a list of integers; reverse, then add 10 to each item, then any even.", "out": "丐丽之"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then shift each up by ten, then true if at least one even value.", "out": "丐丽之"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then increase all numbers by 10, then any even.", "out": "丐丽之"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then add 10 to everything, then true if at least one even value.", "out": "丐丽之"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give everything a boost of 10, then any even.", "out": "丐丽之"} {"kind": "builder", "in": "丐丽之", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丐丽之", "out": "Take a list of integers; reverse the order, then add ten to each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then sort smallest to largest, then replace an empty list with one zero.", "out": "丕丑么"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Ascending sort, then zero it out if it's empty.", "out": "丕丑么"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then Sort this ascending, then use zero if the list is empty.", "out": "丕丑么"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Sort lowest to highest, then default to zero when empty.", "out": "丕丑么"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then Arrange from smallest to largest, then if there's nothing, put in a zero.", "out": "丕丑么"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort ascending, then if no items, add a zero.", "out": "丕丑么"} {"kind": "builder", "in": "丕丑么", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丕丑么", "out": "Take a list of integers; keep only the first three, then sort ascending, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then flip the list around, then stop at the first non-positive value.", "out": "久丐乂"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then flip the order around, then keep the leading run of positive numbers.", "out": "久丐乂"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then put the elements backwards, then take values while they are positive.", "out": "久丐乂"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then reverse that for me, then take positive values then stop.", "out": "久丐乂"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then flip it backwards, then keep going while positive.", "out": "久丐乂"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then make it backwards, then stop at first non positive.", "out": "久丐乂"} {"kind": "builder", "in": "久丐乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "久丐乂", "out": "Take a list of integers; keep everything before the first zero, then reverse the order, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then give back the total.", "out": "主世丙"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then sum r.", "out": "主世丙"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then add them up.", "out": "主世丙"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then calculate the sum of all elements.", "out": "主世丙"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then what's the total.", "out": "主世丙"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then what do they add up to.", "out": "主世丙"} {"kind": "builder", "in": "主世丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n return sum(r)"} {"kind": "translator", "in": "主世丙", "out": "Take a list of integers; keep values greater than five, then drop the first element, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the list around, then stop at the first non-positive value.", "out": "为丐乂"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then flip the order around, then keep the leading run of positive numbers.", "out": "为丐乂"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then put the elements backwards, then take values while they are positive.", "out": "为丐乂"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then reverse that for me, then take positive values then stop.", "out": "为丐乂"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip it backwards, then keep going while positive.", "out": "为丐乂"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then make it backwards, then stop at first non positive.", "out": "为丐乂"} {"kind": "builder", "in": "为丐乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(reversed(r))\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "为丐乂", "out": "Take a list of integers; drop the first and last elements, then reverse the order, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each by two, then trim one element off each end.", "out": "久丈为"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then double each item in the list, then cut off the first and last.", "out": "久丈为"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then multiply each by two, then remove the first and last elements.", "out": "久丈为"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then double each item in the list, then keep only the middle part.", "out": "久丈为"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then multiply each by two, then drop first and last.", "out": "久丈为"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then double each item in the list, then eliminate the outermost elements.", "out": "久丈为"} {"kind": "builder", "in": "久丈为", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "久丈为", "out": "Take a list of integers; keep everything before the first zero, then double each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort smallest to largest, then count the elements.", "out": "丏丑东"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Ascending sort, then how many items remain.", "out": "丏丑东"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then Sort this ascending, then tell me the length.", "out": "丏丑东"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Sort lowest to highest, then return the length.", "out": "丏丑东"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Arrange from smallest to largest, then count them.", "out": "丏丑东"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort ascending, then what's the count.", "out": "丏丑东"} {"kind": "builder", "in": "丏丑东", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r)\n return len(r)"} {"kind": "translator", "in": "丏丑东", "out": "Take a list of integers; take the absolute value of each, then sort ascending, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then remove the first item, then drop the odd numbers.", "out": "专世一"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then Remove head, then filter out the odd numbers.", "out": "专世一"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then remove the first item, then drop the odd numbers.", "out": "专世一"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then Remove head, then filter out the odd numbers.", "out": "专世一"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then remove the first item, then drop the odd numbers.", "out": "专世一"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then Remove head, then filter out the odd numbers.", "out": "专世一"} {"kind": "builder", "in": "专世一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[1:]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "专世一", "out": "Take a list of integers; sort descending, then drop the first element, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then extend to length 3 using zeros, then shift each up by ten.", "out": "乃义丽"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then pad to 3, then increase all numbers by 10.", "out": "乃义丽"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then extend to length 3 using zeros, then add 10 to everything.", "out": "乃义丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then pad to 3, then give everything a boost of 10.", "out": "乃义丽"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then extend to length 3 using zeros, then increment each by ten.", "out": "乃义丽"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then pad to 3, then add a constant 10 to each.", "out": "乃义丽"} {"kind": "builder", "in": "乃义丽", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "乃义丽", "out": "Take a list of integers; drop the leading negative values, then pad with zeros to at least three elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then take values up to (excluding) the first zero.", "out": "丸万久"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then keep the part before the first 0.", "out": "丸万久"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then truncate at the first zero.", "out": "丸万久"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then delete everything starting with the first zero.", "out": "丸万久"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then remove from the first zero onwards.", "out": "丸万久"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then up to but not including the first zero.", "out": "丸万久"} {"kind": "builder", "in": "丸万久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丸万久", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then sort smallest to largest, then multiply each by -1.", "out": "丹丑与"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then Ascending sort, then negate.", "out": "丹丑与"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then Sort this ascending, then multiply each by -1.", "out": "丹丑与"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then Sort lowest to highest, then negate.", "out": "丹丑与"} {"kind": "speaker", "in": "Take a list of integers; last three only, then Arrange from smallest to largest, then multiply each by -1.", "out": "丹丑与"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then sort ascending, then negate.", "out": "丹丑与"} {"kind": "builder", "in": "丹丑与", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = sorted(r)\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丹丑与", "out": "Take a list of integers; keep only the last three, then sort ascending, then negate each."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove all zero values, then give back the product of all values.", "out": "丽举乐"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then exclude zeros, then product of the list.", "out": "丽举乐"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove all zero values, then what's the product.", "out": "丽举乐"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then exclude zeros, then what do they multiply to.", "out": "丽举乐"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove all zero values, then give me their product.", "out": "丽举乐"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then exclude zeros, then multiply them all together.", "out": "丽举乐"} {"kind": "builder", "in": "丽举乐", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丽举乐", "out": "Take a list of integers; add ten to each, then drop the zeros, then return their product."} {"kind": "speaker", "in": "Take a list of integers; square each, then clamp each to at most ten, then bump each up by one.", "out": "上丘下"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then don't let anything exceed 10, then increment each item.", "out": "上丘下"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then clamp each to at most ten, then bump each up by one.", "out": "上丘下"} {"kind": "speaker", "in": "Take a list of integers; square them all, then don't let anything exceed 10, then increment each item.", "out": "上丘下"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then clamp each to at most ten, then bump each up by one.", "out": "上丘下"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then don't let anything exceed 10, then increment each item.", "out": "上丘下"} {"kind": "builder", "in": "上丘下", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [min(x, 10) for x in r]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "上丘下", "out": "Take a list of integers; square each, then cap each value at 10, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; double each, then make every value non-negative, then shift each up by ten.", "out": "丈丏丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then absolute value for all items, then increase all numbers by 10.", "out": "丈丏丽"} {"kind": "speaker", "in": "Take a list of integers; double each, then take absolute values, then add 10 to everything.", "out": "丈丏丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then turn negatives into positives, then give everything a boost of 10.", "out": "丈丏丽"} {"kind": "speaker", "in": "Take a list of integers; double each, then abs each element, then increment each by ten.", "out": "丈丏丽"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the absolute value of each, then add a constant 10 to each.", "out": "丈丏丽"} {"kind": "builder", "in": "丈丏丽", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丈丏丽", "out": "Take a list of integers; double each, then take the absolute value of each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then true only if all are positive.", "out": "世丘乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then do all of these have positive values.", "out": "世丘乌"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then check if every value is positive.", "out": "世丘乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then confirm all values are positive.", "out": "世丘乌"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then clamp each to at most ten, then all positive.", "out": "世丘乌"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then don't let anything exceed 10, then check if every number is above zero.", "out": "世丘乌"} {"kind": "builder", "in": "世丘乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [min(x, 10) for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "世丘乌", "out": "Take a list of integers; drop the first element, then cap each value at 10, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first 3 elements, then make each twice as big.", "out": "举丕丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove everything after the third, then multiply each by 2.", "out": "举丕丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate to three items, then make each twice as big.", "out": "举丕丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then show the first three, then multiply each by 2.", "out": "举丕丈"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first three, then make each twice as big.", "out": "举丕丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep first 3, then multiply each by 2.", "out": "举丕丈"} {"kind": "builder", "in": "举丕丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:3]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "举丕丈", "out": "Take a list of integers; drop the zeros, then keep only the first three, then double each."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then drop anything 5 or below, then count the elements.", "out": "丏主东"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then keep only numbers greater than 5, then how many items remain.", "out": "丏主东"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then filter for numbers above 5, then tell me the length.", "out": "丏主东"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then give me values where x is greater than 5, then return the length.", "out": "丏主东"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then show me only the values that are bigger than five, then count them.", "out": "丏主东"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then keep values greater than five, then what's the count.", "out": "丏主东"} {"kind": "builder", "in": "丏主东", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x > 5]\n return len(r)"} {"kind": "translator", "in": "丏主东", "out": "Take a list of integers; take the absolute value of each, then keep values greater than five, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then truncate to three items.", "out": "一下丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then show the first three.", "out": "一下丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then take the first three.", "out": "一下丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then keep first 3.", "out": "一下丕"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then increment each value, then truncate to first three.", "out": "一下丕"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then plus one for all, then first three.", "out": "一下丕"} {"kind": "builder", "in": "一下丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x + 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "一下丕", "out": "Take a list of integers; keep the even numbers, then add one to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then replace an empty list with one zero.", "out": "丐丈么"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then zero it out if it's empty.", "out": "丐丈么"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then use zero if the list is empty.", "out": "丐丈么"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then default to zero when empty.", "out": "丐丈么"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then if there's nothing, put in a zero.", "out": "丐丈么"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then if no items, add a zero.", "out": "丐丈么"} {"kind": "builder", "in": "丐丈么", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丐丈么", "out": "Take a list of integers; reverse the order, then double each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort largest to smallest, then true only if all are positive.", "out": "九专乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort by descending values, then do all of these have positive values.", "out": "九专乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then sort from highest to lowest, then check if every value is positive.", "out": "九专乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then sort descending, then confirm all values are positive.", "out": "九专乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort largest first, then all positive.", "out": "九专乌"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort in descending order, then check if every number is above zero.", "out": "九专乌"} {"kind": "builder", "in": "九专乌", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, reverse=True)\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "九专乌", "out": "Take a list of people records (name, age); extract the ages, then sort descending, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove both ends, then true if at least one even value.", "out": "丐为之"} {"kind": "speaker", "in": "Take a list of integers; reverse, then trim the edges, then any even.", "out": "丐为之"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then trim one element off each end, then true if at least one even value.", "out": "丐为之"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then cut off the first and last, then any even.", "out": "丐为之"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove the first and last elements, then true if at least one even value.", "out": "丐为之"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then keep only the middle part, then any even.", "out": "丐为之"} {"kind": "builder", "in": "丐为之", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[1:-1]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丐为之", "out": "Take a list of integers; reverse the order, then drop the first and last elements, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; square each, then order by distance from zero, then put the elements backwards.", "out": "上丸丐"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort based on absolute value, then reverse that for me.", "out": "上丸丐"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then organize by magnitude, then flip it backwards.", "out": "上丸丐"} {"kind": "speaker", "in": "Take a list of integers; square them all, then arrange by absolute value ascending, then make it backwards.", "out": "上丸丐"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort from smallest to largest absolute value, then reverse the list.", "out": "上丸丐"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort by absolute value, then invert the sequence.", "out": "上丸丐"} {"kind": "builder", "in": "上丸丐", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "上丸丐", "out": "Take a list of integers; square each, then sort by absolute value, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then clamp each to at most ten, then find the max, defaulting to 0.", "out": "乃丘业"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then don't let anything exceed 10, then Give me the maximum, but 0 if there are no items.", "out": "乃丘业"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then clamp each to at most ten, then What's the highest number in the list.", "out": "乃丘业"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then don't let anything exceed 10, then Return the greatest value or default to 0.", "out": "乃丘业"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then clamp each to at most ten, then Find the largest element, defaulting to zero.", "out": "乃丘业"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then don't let anything exceed 10, then give the largest value (0 if none).", "out": "乃丘业"} {"kind": "builder", "in": "乃丘业", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "乃丘业", "out": "Take a list of integers; drop the leading negative values, then cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; double each, then default to [0] when there is nothing, then give back the product of all values.", "out": "丈么乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then when the list is empty, substitute a zero value, then product of the list.", "out": "丈么乐"} {"kind": "speaker", "in": "Take a list of integers; double each, then replace an empty list with one zero, then what's the product.", "out": "丈么乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then zero it out if it's empty, then what do they multiply to.", "out": "丈么乐"} {"kind": "speaker", "in": "Take a list of integers; double each, then use zero if the list is empty, then give me their product.", "out": "丈么乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then default to zero when empty, then multiply them all together.", "out": "丈么乐"} {"kind": "builder", "in": "丈么乐", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r if r else [0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丈么乐", "out": "Take a list of integers; double each, then if empty, use a single zero, then return their product."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then skip negatives at the start, then find the min, defaulting to 0.", "out": "九乃丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then remove all negatives at the front, then minimum value, zero otherwise.", "out": "九乃丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then remove the initial run of negative numbers, then get the minimum value or zero if empty.", "out": "九乃丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then strip the front negatives, then give me the min or 0.", "out": "九乃丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then remove leading negative numbers, then return the smallest number, defaulting to 0.", "out": "九乃丛"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then drop negatives from start, then return smallest or zero if empty.", "out": "九乃丛"} {"kind": "builder", "in": "九乃丛", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return min(r) if r else 0"} {"kind": "translator", "in": "九乃丛", "out": "Take a list of people records (name, age); extract the ages, then drop the leading negative values, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then order by distance from zero, then drop non-positive values.", "out": "丘丸七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort based on absolute value, then drop the negative numbers.", "out": "丘丸七"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then organize by magnitude, then filter out the negative ones.", "out": "丘丸七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then arrange by absolute value ascending, then remove all negative values.", "out": "丘丸七"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then sort from smallest to largest absolute value, then keep positive values only.", "out": "丘丸七"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then sort by absolute value, then keep values above zero.", "out": "丘丸七"} {"kind": "builder", "in": "丘丸七", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丘丸七", "out": "Take a list of integers; cap each value at 10, then sort by absolute value, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then skip negatives at the start, then deduplicate the list.", "out": "丈乃且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then remove all negatives at the front, then remove repeats.", "out": "丈乃且"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove the initial run of negative numbers, then deduplicate the list.", "out": "丈乃且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then strip the front negatives, then remove repeats.", "out": "丈乃且"} {"kind": "speaker", "in": "Take a list of integers; double each, then remove leading negative numbers, then deduplicate the list.", "out": "丈乃且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop negatives from start, then remove repeats.", "out": "丈乃且"} {"kind": "builder", "in": "丈乃且", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丈乃且", "out": "Take a list of integers; double each, then drop the leading negative values, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values below zero, then limit every value to 10.", "out": "世万丘"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then get the negative numbers, then maximum of 10 for all.", "out": "世万丘"} {"kind": "builder", "in": "世万丘", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x < 0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "世万丘", "out": "Take a list of integers; drop the first element, then keep the negative numbers, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then cut the list at the first zero, then remove the initial run of negative numbers.", "out": "丽久乃"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then cut off after the first zero appears, then strip the front negatives.", "out": "丽久乃"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then take values up to (excluding) the first zero, then remove leading negative numbers.", "out": "丽久乃"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then keep the part before the first 0, then drop negatives from start.", "out": "丽久乃"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then truncate at the first zero, then strip negative values from the start.", "out": "丽久乃"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then delete everything starting with the first zero, then remove negatives before the first non-negative.", "out": "丽久乃"} {"kind": "builder", "in": "丽久乃", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丽久乃", "out": "Take a list of integers; add ten to each, then keep everything before the first zero, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each value by itself, then give the number of evens.", "out": "丐上乓"} {"kind": "speaker", "in": "Take a list of integers; reverse, then square them all, then find how many values are divisible by two.", "out": "丐上乓"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then raise each to the power of two, then how many are even.", "out": "丐上乓"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then I need each number multiplied by itself, then get the total number of even values in the list.", "out": "丐上乓"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then square all of them, then give me the count of even values.", "out": "丐上乓"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiply each element by itself, then I need to know how many of these are even.", "out": "丐上乓"} {"kind": "builder", "in": "丐上乓", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * x for x in r]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丐上乓", "out": "Take a list of integers; reverse the order, then square each, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then take the final 3 elements, then give back the product of all values.", "out": "么丹乐"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then drop everything except the final three, then product of the list.", "out": "么丹乐"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then give me the last three elements, then what's the product.", "out": "么丹乐"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then keep only the last three, then what do they multiply to.", "out": "么丹乐"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep the final three items, then give me their product.", "out": "么丹乐"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then take the last three, then multiply them all together.", "out": "么丹乐"} {"kind": "builder", "in": "么丹乐", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "么丹乐", "out": "Take a list of integers; if empty, use a single zero, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only even values, then count the elements.", "out": "么一东"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then extract all even numbers, then how many items remain.", "out": "么一东"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only even values, then tell me the length.", "out": "么一东"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then extract all even numbers, then return the length.", "out": "么一东"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only even values, then count them.", "out": "么一东"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then extract all even numbers, then what's the count.", "out": "么一东"} {"kind": "builder", "in": "么一东", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 == 0]\n return len(r)"} {"kind": "translator", "in": "么一东", "out": "Take a list of integers; if empty, use a single zero, then keep the even numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then flip the sign of each, then make each twice as big.", "out": "举与丈"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then turn positives to negatives and vice versa, then multiply each by 2.", "out": "举与丈"} {"kind": "builder", "in": "举与丈", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [-x for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "举与丈", "out": "Take a list of integers; drop the zeros, then negate each, then double each."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then keep the leading run of positive numbers, then strip the signs.", "out": "万乂丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take values while they are positive, then take abs of each.", "out": "万乂丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then take positive values then stop, then get the absolute value of everything.", "out": "万乂丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep going while positive, then apply absolute value to the whole list.", "out": "万乂丏"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then stop at first non positive, then make them all positive.", "out": "万乂丏"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then take while greater than zero, then make every value non-negative.", "out": "万乂丏"} {"kind": "builder", "in": "万乂丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "万乂丏", "out": "Take a list of integers; keep the negative numbers, then take values while they are positive, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove both ends, then remove the initial run of negative numbers.", "out": "丹为乃"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then trim the edges, then strip the front negatives.", "out": "丹为乃"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then trim one element off each end, then remove leading negative numbers.", "out": "丹为乃"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then cut off the first and last, then drop negatives from start.", "out": "丹为乃"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove the first and last elements, then strip negative values from the start.", "out": "丹为乃"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep only the middle part, then remove negatives before the first non-negative.", "out": "丹为乃"} {"kind": "builder", "in": "丹为乃", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[1:-1]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丹为乃", "out": "Take a list of integers; keep only the last three, then drop the first and last elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then give back the product of all values.", "out": "丈一乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then product of the list.", "out": "丈一乐"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then what's the product.", "out": "丈一乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then what do they multiply to.", "out": "丈一乐"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep only even values, then give me their product.", "out": "丈一乐"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then extract all even numbers, then multiply them all together.", "out": "丈一乐"} {"kind": "builder", "in": "丈一乐", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丈一乐", "out": "Take a list of integers; double each, then keep the even numbers, then return their product."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then strip spaces around each string, then true if a blank string is present.", "out": "两丢乙"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then remove leading and trailing spaces, then check for empty strings in the list.", "out": "两丢乙"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then remove whitespace from each item, then check if there's an empty string.", "out": "两丢乙"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then clean whitespace from each entry, then does the collection contain an empty string value somewhere.", "out": "两丢乙"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then trim each string, then whether any element is blank.", "out": "两丢乙"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then trim whitespace from each, then check for an empty string.", "out": "两丢乙"} {"kind": "builder", "in": "两丢乙", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = [s.strip() for s in r]\n return any(s == '' for s in r)"} {"kind": "translator", "in": "两丢乙", "out": "Take a list of strings; drop empty strings, then trim whitespace from each, then return whether any string is empty."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increase every value by 10, then trim one element off each end.", "out": "久丽为"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then add 10 to each item, then cut off the first and last.", "out": "久丽为"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then shift each up by ten, then remove the first and last elements.", "out": "久丽为"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then increase all numbers by 10, then keep only the middle part.", "out": "久丽为"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then add 10 to everything, then drop first and last.", "out": "久丽为"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then give everything a boost of 10, then eliminate the outermost elements.", "out": "久丽为"} {"kind": "builder", "in": "久丽为", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "久丽为", "out": "Take a list of integers; keep everything before the first zero, then add ten to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values above zero, then true if any value equals zero.", "out": "乃七乍"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then filter for positive numbers, then check for zero.", "out": "乃七乍"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep only positive numbers, then true if any value equals zero.", "out": "乃七乍"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep the positives, then check for zero.", "out": "乃七乍"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then remove negatives, then true if any value equals zero.", "out": "乃七乍"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep the positive numbers, then check for zero.", "out": "乃七乍"} {"kind": "builder", "in": "乃七乍", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x > 0]\n return 0 in r"} {"kind": "translator", "in": "乃七乍", "out": "Take a list of integers; drop the leading negative values, then keep the positive numbers, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then flip the list around, then remove the initial run of negative numbers.", "out": "丏丐乃"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then flip the order around, then strip the front negatives.", "out": "丏丐乃"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then put the elements backwards, then remove leading negative numbers.", "out": "丏丐乃"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then reverse that for me, then drop negatives from start.", "out": "丏丐乃"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then flip it backwards, then strip negative values from the start.", "out": "丏丐乃"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then make it backwards, then remove negatives before the first non-negative.", "out": "丏丐乃"} {"kind": "builder", "in": "丏丐乃", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丏丐乃", "out": "Take a list of integers; take the absolute value of each, then reverse the order, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then take the final 3 elements, then give back the total.", "out": "丑丹丙"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then drop everything except the final three, then sum r.", "out": "丑丹丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then give me the last three elements, then add them up.", "out": "丑丹丙"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep only the last three, then calculate the sum of all elements.", "out": "丑丹丙"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep the final three items, then what's the total.", "out": "丑丹丙"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then take the last three, then what do they add up to.", "out": "丑丹丙"} {"kind": "builder", "in": "丑丹丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[-3:]\n return sum(r)"} {"kind": "translator", "in": "丑丹丙", "out": "Take a list of integers; sort ascending, then keep only the last three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove both ends, then strip the signs.", "out": "丕为丏"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then trim the edges, then take abs of each.", "out": "丕为丏"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then trim one element off each end, then get the absolute value of everything.", "out": "丕为丏"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then cut off the first and last, then apply absolute value to the whole list.", "out": "丕为丏"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first and last elements, then make them all positive.", "out": "丕为丏"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep only the middle part, then make every value non-negative.", "out": "丕为丏"} {"kind": "builder", "in": "丕为丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:-1]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丕为丏", "out": "Take a list of integers; keep only the first three, then drop the first and last elements, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values above zero, then true if at least one even value.", "out": "丁七之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter for positive numbers, then any even.", "out": "丁七之"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only positive numbers, then true if at least one even value.", "out": "丁七之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positives, then any even.", "out": "丁七之"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove negatives, then true if at least one even value.", "out": "丁七之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep the positive numbers, then any even.", "out": "丁七之"} {"kind": "builder", "in": "丁七之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x > 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丁七之", "out": "Take a list of integers; keep the odd numbers, then keep the positive numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then sort largest to smallest, then give the earliest even value or zero.", "out": "串专乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then sort by descending values, then fetch the first even element, default to 0.", "out": "串专乒"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then sort from highest to lowest, then give the earliest even value or zero.", "out": "串专乒"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then sort descending, then fetch the first even element, default to 0.", "out": "串专乒"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then sort largest first, then give the earliest even value or zero.", "out": "串专乒"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then sort in descending order, then fetch the first even element, default to 0.", "out": "串专乒"} {"kind": "builder", "in": "串专乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = sorted(r, reverse=True)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "串专乒", "out": "Take a list of integers; keep multiples of three, then sort descending, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then drop anything 5 or below, then take values up to (excluding) the first zero.", "out": "么主久"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then keep only numbers greater than 5, then keep the part before the first 0.", "out": "么主久"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then filter for numbers above 5, then truncate at the first zero.", "out": "么主久"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then give me values where x is greater than 5, then delete everything starting with the first zero.", "out": "么主久"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then show me only the values that are bigger than five, then remove from the first zero onwards.", "out": "么主久"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then keep values greater than five, then up to but not including the first zero.", "out": "么主久"} {"kind": "builder", "in": "么主久", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x > 5]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "么主久", "out": "Take a list of integers; if empty, use a single zero, then keep values greater than five, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove the first item, then keep only numbers above 5.", "out": "丽世主"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Remove head, then exclude values of 5 and below.", "out": "丽世主"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove the first item, then remove anything 5 or less.", "out": "丽世主"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Remove head, then filter to keep only values above 5.", "out": "丽世主"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove the first item, then get rid of values that aren't greater than five.", "out": "丽世主"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then Remove head, then drop anything 5 or below.", "out": "丽世主"} {"kind": "builder", "in": "丽世主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r[1:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丽世主", "out": "Take a list of integers; add ten to each, then drop the first element, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then true if already sorted smallest to largest.", "out": "下丘乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then does this list go in ascending order.", "out": "下丘乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then check if the list is in ascending order.", "out": "下丘乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then is the list sorted.", "out": "下丘乎"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then clamp each to at most ten, then is it sorted.", "out": "下丘乎"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then don't let anything exceed 10, then check if values are in increasing order.", "out": "下丘乎"} {"kind": "builder", "in": "下丘乎", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [min(x, 10) for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "下丘乎", "out": "Take a list of integers; add one to each, then cap each value at 10, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then clamp each to at most ten, then give the earliest even value or zero.", "out": "举丘乒"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "举丘乒"} {"kind": "builder", "in": "举丘乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "举丘乒", "out": "Take a list of integers; drop the zeros, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove all zero values, then reduce each by one.", "out": "丹举不"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then exclude zeros, then Subtract 1 from all.", "out": "丹举不"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove all zero values, then Subtract one from each.", "out": "丹举不"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then exclude zeros, then Drop each by one.", "out": "丹举不"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove all zero values, then Decrease all values by one.", "out": "丹举不"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then exclude zeros, then Remove one from each value.", "out": "丹举不"} {"kind": "builder", "in": "丹举不", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x != 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丹举不", "out": "Take a list of integers; keep only the last three, then drop the zeros, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values below zero, then count the elements.", "out": "么万东"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then get the negative numbers, then how many items remain.", "out": "么万东"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep values below zero, then tell me the length.", "out": "么万东"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then get the negative numbers, then return the length.", "out": "么万东"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep values below zero, then count them.", "out": "么万东"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then get the negative numbers, then what's the count.", "out": "么万东"} {"kind": "builder", "in": "么万东", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x < 0]\n return len(r)"} {"kind": "translator", "in": "么万东", "out": "Take a list of integers; if empty, use a single zero, then keep the negative numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove repeated values, then multiply each by -1.", "out": "乂且与"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then unique values preserving order, then negate.", "out": "乂且与"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove repeated values, then multiply each by -1.", "out": "乂且与"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then unique values preserving order, then negate.", "out": "乂且与"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove repeated values, then multiply each by -1.", "out": "乂且与"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then unique values preserving order, then negate.", "out": "乂且与"} {"kind": "builder", "in": "乂且与", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(dict.fromkeys(r))\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乂且与", "out": "Take a list of integers; take values while they are positive, then drop duplicates keeping first occurrence, then negate each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep only even values, then take values up to (excluding) the first zero.", "out": "丐一久"} {"kind": "speaker", "in": "Take a list of integers; reverse, then extract all even numbers, then keep the part before the first 0.", "out": "丐一久"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then keep only even values, then truncate at the first zero.", "out": "丐一久"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then extract all even numbers, then delete everything starting with the first zero.", "out": "丐一久"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only even values, then remove from the first zero onwards.", "out": "丐一久"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then extract all even numbers, then up to but not including the first zero.", "out": "丐一久"} {"kind": "builder", "in": "丐一久", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丐一久", "out": "Take a list of integers; reverse the order, then keep the even numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then default to [0] when there is nothing, then remove the initial run of negative numbers.", "out": "丐么乃"} {"kind": "speaker", "in": "Take a list of integers; reverse, then when the list is empty, substitute a zero value, then strip the front negatives.", "out": "丐么乃"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then replace an empty list with one zero, then remove leading negative numbers.", "out": "丐么乃"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then zero it out if it's empty, then drop negatives from start.", "out": "丐么乃"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then use zero if the list is empty, then strip negative values from the start.", "out": "丐么乃"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then default to zero when empty, then remove negatives before the first non-negative.", "out": "丐么乃"} {"kind": "builder", "in": "丐么乃", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r if r else [0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丐么乃", "out": "Take a list of integers; reverse the order, then if empty, use a single zero, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then cut the list at the first zero, then drop the even numbers.", "out": "丸久丁"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then cut off after the first zero appears, then strip out the evens.", "out": "丸久丁"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then take values up to (excluding) the first zero, then drop the even numbers.", "out": "丸久丁"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the part before the first 0, then strip out the evens.", "out": "丸久丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then truncate at the first zero, then drop the even numbers.", "out": "丸久丁"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then delete everything starting with the first zero, then strip out the evens.", "out": "丸久丁"} {"kind": "builder", "in": "丸久丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丸久丁", "out": "Take a list of integers; sort by absolute value, then keep everything before the first zero, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then give back the total.", "out": "下且丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then sum r.", "out": "下且丙"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then add them up.", "out": "下且丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then calculate the sum of all elements.", "out": "下且丙"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then what's the total.", "out": "下且丙"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then what do they add up to.", "out": "下且丙"} {"kind": "builder", "in": "下且丙", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n return sum(r)"} {"kind": "translator", "in": "下且丙", "out": "Take a list of integers; add one to each, then drop duplicates keeping first occurrence, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take the final 3 elements, then remove the initial run of negative numbers.", "out": "下丹乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then drop everything except the final three, then strip the front negatives.", "out": "下丹乃"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then give me the last three elements, then remove leading negative numbers.", "out": "下丹乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the last three, then drop negatives from start.", "out": "下丹乃"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep the final three items, then strip negative values from the start.", "out": "下丹乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then take the last three, then remove negatives before the first non-negative.", "out": "下丹乃"} {"kind": "builder", "in": "下丹乃", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "下丹乃", "out": "Take a list of integers; add one to each, then keep only the last three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then clamp each to at most ten, then stop at the first non-positive value.", "out": "串丘乂"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then don't let anything exceed 10, then keep the leading run of positive numbers.", "out": "串丘乂"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then clamp each to at most ten, then take values while they are positive.", "out": "串丘乂"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then don't let anything exceed 10, then take positive values then stop.", "out": "串丘乂"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then clamp each to at most ten, then keep going while positive.", "out": "串丘乂"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then don't let anything exceed 10, then stop at first non positive.", "out": "串丘乂"} {"kind": "builder", "in": "串丘乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "串丘乂", "out": "Take a list of integers; keep multiples of three, then cap each value at 10, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the first 3 elements, then give the earliest even value or zero.", "out": "上丕乒"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then remove everything after the third, then fetch the first even element, default to 0.", "out": "上丕乒"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then truncate to three items, then give the earliest even value or zero.", "out": "上丕乒"} {"kind": "speaker", "in": "Take a list of integers; square them all, then show the first three, then fetch the first even element, default to 0.", "out": "上丕乒"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then take the first three, then give the earliest even value or zero.", "out": "上丕乒"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then keep first 3, then fetch the first even element, default to 0.", "out": "上丕乒"} {"kind": "builder", "in": "上丕乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:3]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "上丕乒", "out": "Take a list of integers; square each, then keep only the first three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values below zero, then true if already sorted smallest to largest.", "out": "不万乎"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then get the negative numbers, then does this list go in ascending order.", "out": "不万乎"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then keep values below zero, then check if the list is in ascending order.", "out": "不万乎"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then get the negative numbers, then is the list sorted.", "out": "不万乎"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep values below zero, then is it sorted.", "out": "不万乎"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then get the negative numbers, then check if values are in increasing order.", "out": "不万乎"} {"kind": "builder", "in": "不万乎", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x < 0]\n return r == sorted(r)"} {"kind": "translator", "in": "不万乎", "out": "Take a list of integers; subtract one from each, then keep the negative numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then increment each value, then deduplicate the list.", "out": "不下且"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then plus one for all, then remove repeats.", "out": "不下且"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then increment each value, then deduplicate the list.", "out": "不下且"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then plus one for all, then remove repeats.", "out": "不下且"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then increment each value, then deduplicate the list.", "out": "不下且"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then plus one for all, then remove repeats.", "out": "不下且"} {"kind": "builder", "in": "不下且", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "不下且", "out": "Take a list of integers; subtract one from each, then add one to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then clamp each to at most ten, then strip the signs.", "out": "丽丘丏"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then don't let anything exceed 10, then take abs of each.", "out": "丽丘丏"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then clamp each to at most ten, then get the absolute value of everything.", "out": "丽丘丏"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then don't let anything exceed 10, then apply absolute value to the whole list.", "out": "丽丘丏"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then clamp each to at most ten, then make them all positive.", "out": "丽丘丏"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then don't let anything exceed 10, then make every value non-negative.", "out": "丽丘丏"} {"kind": "builder", "in": "丽丘丏", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [min(x, 10) for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丽丘丏", "out": "Take a list of integers; add ten to each, then cap each value at 10, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then trim one element off each end.", "out": "串丁为"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then cut off the first and last.", "out": "串丁为"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then remove the first and last elements.", "out": "串丁为"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then keep only the middle part.", "out": "串丁为"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then drop first and last.", "out": "串丁为"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then eliminate the outermost elements.", "out": "串丁为"} {"kind": "builder", "in": "串丁为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "串丁为", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then keep only even values, then take values up to (excluding) the first zero.", "out": "九一久"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then extract all even numbers, then keep the part before the first 0.", "out": "九一久"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then keep only even values, then truncate at the first zero.", "out": "九一久"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then extract all even numbers, then delete everything starting with the first zero.", "out": "九一久"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep only even values, then remove from the first zero onwards.", "out": "九一久"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then extract all even numbers, then up to but not including the first zero.", "out": "九一久"} {"kind": "builder", "in": "九一久", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "九一久", "out": "Take a list of people records (name, age); extract the ages, then keep the even numbers, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then default to [0] when there is nothing, then deduplicate the list.", "out": "丽么且"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then when the list is empty, substitute a zero value, then remove repeats.", "out": "丽么且"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then replace an empty list with one zero, then deduplicate the list.", "out": "丽么且"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then zero it out if it's empty, then remove repeats.", "out": "丽么且"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then use zero if the list is empty, then deduplicate the list.", "out": "丽么且"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then default to zero when empty, then remove repeats.", "out": "丽么且"} {"kind": "builder", "in": "丽么且", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = r if r else [0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丽么且", "out": "Take a list of integers; add ten to each, then if empty, use a single zero, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then multiply each value by itself, then true if at least one even value.", "out": "举上之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then square them all, then any even.", "out": "举上之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then raise each to the power of two, then true if at least one even value.", "out": "举上之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then I need each number multiplied by itself, then any even.", "out": "举上之"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then square all of them, then true if at least one even value.", "out": "举上之"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then multiply each element by itself, then any even.", "out": "举上之"} {"kind": "builder", "in": "举上之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x * x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "举上之", "out": "Take a list of integers; drop the zeros, then square each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then cut the list at the first zero, then arrange by magnitude ignoring sign.", "out": "乂久丸"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then cut off after the first zero appears, then put them in order by magnitude.", "out": "乂久丸"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then take values up to (excluding) the first zero, then arrange in order of absolute value.", "out": "乂久丸"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the part before the first 0, then sort by distance from zero.", "out": "乂久丸"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then truncate at the first zero, then order by how far from zero.", "out": "乂久丸"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then delete everything starting with the first zero, then order by distance from zero.", "out": "乂久丸"} {"kind": "builder", "in": "乂久丸", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "乂久丸", "out": "Take a list of integers; take values while they are positive, then keep everything before the first zero, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the final 3 elements, then drop the odd numbers.", "out": "乃丹一"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then drop everything except the final three, then filter out the odd numbers.", "out": "乃丹一"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give me the last three elements, then drop the odd numbers.", "out": "乃丹一"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep only the last three, then filter out the odd numbers.", "out": "乃丹一"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep the final three items, then drop the odd numbers.", "out": "乃丹一"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the last three, then filter out the odd numbers.", "out": "乃丹一"} {"kind": "builder", "in": "乃丹一", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "乃丹一", "out": "Take a list of integers; drop the leading negative values, then keep only the last three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then clamp each to at most ten, then arrange by magnitude ignoring sign.", "out": "丑丘丸"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then don't let anything exceed 10, then put them in order by magnitude.", "out": "丑丘丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then clamp each to at most ten, then arrange in order of absolute value.", "out": "丑丘丸"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then don't let anything exceed 10, then sort by distance from zero.", "out": "丑丘丸"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then clamp each to at most ten, then order by how far from zero.", "out": "丑丘丸"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then don't let anything exceed 10, then order by distance from zero.", "out": "丑丘丸"} {"kind": "builder", "in": "丑丘丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [min(x, 10) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丑丘丸", "out": "Take a list of integers; sort ascending, then cap each value at 10, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then keep only non-empty strings, then prepend a hash mark to each.", "out": "丟两乘"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then filter empty strings, then prefix all with #.", "out": "丟两乘"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then remove empty strings from the list, then prepend a hash mark to each.", "out": "丟两乘"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then clean up empty strings, then prefix all with #.", "out": "丟两乘"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then delete empty entries, then prepend a hash mark to each.", "out": "丟两乘"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then drop empty strings, then prefix all with #.", "out": "丟两乘"} {"kind": "builder", "in": "丟两乘", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = [s for s in r if s]\n r = ['#' + s for s in r]\n return r"} {"kind": "translator", "in": "丟两乘", "out": "Take a list of strings; uppercase each string, then drop empty strings, then prefix each with a hash."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then decrement each value, then drop the odd numbers.", "out": "丏不一"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Lower each number by one, then filter out the odd numbers.", "out": "丏不一"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then reduce each by one, then drop the odd numbers.", "out": "丏不一"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Subtract 1 from all, then filter out the odd numbers.", "out": "丏不一"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Subtract one from each, then drop the odd numbers.", "out": "丏不一"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Drop each by one, then filter out the odd numbers.", "out": "丏不一"} {"kind": "builder", "in": "丏不一", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丏不一", "out": "Take a list of integers; take the absolute value of each, then subtract one from each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then arrange in decreasing order.", "out": "下丽专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then arrange in descending order.", "out": "下丽专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then reverse sort.", "out": "下丽专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then sort largest to smallest.", "out": "下丽专"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then sort by descending values.", "out": "下丽专"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then sort from highest to lowest.", "out": "下丽专"} {"kind": "builder", "in": "下丽专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "下丽专", "out": "Take a list of integers; add one to each, then add ten to each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep only odd values, then arrange by magnitude ignoring sign.", "out": "丑丁丸"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then eliminate the even numbers, then put them in order by magnitude.", "out": "丑丁丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only odd values, then arrange in order of absolute value.", "out": "丑丁丸"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then eliminate the even numbers, then sort by distance from zero.", "out": "丑丁丸"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only odd values, then order by how far from zero.", "out": "丑丁丸"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then eliminate the even numbers, then order by distance from zero.", "out": "丑丁丸"} {"kind": "builder", "in": "丑丁丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丑丁丸", "out": "Take a list of integers; sort ascending, then keep the odd numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the sign of each, then true if every value is unique.", "out": "串与乏"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then turn positives to negatives and vice versa, then check for duplicates in the values.", "out": "串与乏"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then flip the sign of each, then do all values appear only once.", "out": "串与乏"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then turn positives to negatives and vice versa, then check that there are no duplicates.", "out": "串与乏"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip the sign of each, then are the values all unique.", "out": "串与乏"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then turn positives to negatives and vice versa, then check if all values are unique.", "out": "串与乏"} {"kind": "builder", "in": "串与乏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [-x for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "串与乏", "out": "Take a list of integers; keep multiples of three, then negate each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove the first item, then deduplicate the list.", "out": "丕世且"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then Remove head, then remove repeats.", "out": "丕世且"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove the first item, then deduplicate the list.", "out": "丕世且"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then Remove head, then remove repeats.", "out": "丕世且"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove the first item, then deduplicate the list.", "out": "丕世且"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then Remove head, then remove repeats.", "out": "丕世且"} {"kind": "builder", "in": "丕世且", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[1:]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丕世且", "out": "Take a list of integers; keep only the first three, then drop the first element, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove all zero values, then make each twice as big.", "out": "世举丈"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then exclude zeros, then multiply each by 2.", "out": "世举丈"} {"kind": "builder", "in": "世举丈", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x != 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "世举丈", "out": "Take a list of integers; drop the first element, then drop the zeros, then double each."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value, then trim one element off each end.", "out": "丘下为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all, then cut off the first and last.", "out": "丘下为"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value, then remove the first and last elements.", "out": "丘下为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all, then keep only the middle part.", "out": "丘下为"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then increment each value, then drop first and last.", "out": "丘下为"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then plus one for all, then eliminate the outermost elements.", "out": "丘下为"} {"kind": "builder", "in": "丘下为", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x + 1 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丘下为", "out": "Take a list of integers; cap each value at 10, then add one to each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then drop anything 5 or below, then replace an empty list with one zero.", "out": "丑主么"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep only numbers greater than 5, then zero it out if it's empty.", "out": "丑主么"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then filter for numbers above 5, then use zero if the list is empty.", "out": "丑主么"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then give me values where x is greater than 5, then default to zero when empty.", "out": "丑主么"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then show me only the values that are bigger than five, then if there's nothing, put in a zero.", "out": "丑主么"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep values greater than five, then if no items, add a zero.", "out": "丑主么"} {"kind": "builder", "in": "丑主么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 5]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丑主么", "out": "Take a list of integers; sort ascending, then keep values greater than five, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then sort largest to smallest, then strip the signs.", "out": "丈专丏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort by descending values, then take abs of each.", "out": "丈专丏"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort from highest to lowest, then get the absolute value of everything.", "out": "丈专丏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort descending, then apply absolute value to the whole list.", "out": "丈专丏"} {"kind": "speaker", "in": "Take a list of integers; double each, then sort largest first, then make them all positive.", "out": "丈专丏"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then sort in descending order, then make every value non-negative.", "out": "丈专丏"} {"kind": "builder", "in": "丈专丏", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "丈专丏", "out": "Take a list of integers; double each, then sort descending, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then deduplicate the list.", "out": "丈举且"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then remove repeats.", "out": "丈举且"} {"kind": "builder", "in": "丈举且", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丈举且", "out": "Take a list of integers; double each, then drop the zeros, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the final 3 elements, then drop the odd numbers.", "out": "丈丹一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop everything except the final three, then filter out the odd numbers.", "out": "丈丹一"} {"kind": "speaker", "in": "Take a list of integers; double each, then give me the last three elements, then drop the odd numbers.", "out": "丈丹一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the last three, then filter out the odd numbers.", "out": "丈丹一"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the final three items, then drop the odd numbers.", "out": "丈丹一"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the last three, then filter out the odd numbers.", "out": "丈丹一"} {"kind": "builder", "in": "丈丹一", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[-3:]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丈丹一", "out": "Take a list of integers; double each, then keep only the last three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the final 3 elements, then arrange by magnitude ignoring sign.", "out": "丘丹丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then drop everything except the final three, then put them in order by magnitude.", "out": "丘丹丸"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then give me the last three elements, then arrange in order of absolute value.", "out": "丘丹丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep only the last three, then sort by distance from zero.", "out": "丘丹丸"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the final three items, then order by how far from zero.", "out": "丘丹丸"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take the last three, then order by distance from zero.", "out": "丘丹丸"} {"kind": "builder", "in": "丘丹丸", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[-3:]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丘丹丸", "out": "Take a list of integers; cap each value at 10, then keep only the last three, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip the list around, then give back the total.", "out": "万丐丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then flip the order around, then sum r.", "out": "万丐丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then put the elements backwards, then add them up.", "out": "万丐丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then reverse that for me, then calculate the sum of all elements.", "out": "万丐丙"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then flip it backwards, then what's the total.", "out": "万丐丙"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then make it backwards, then what do they add up to.", "out": "万丐丙"} {"kind": "builder", "in": "万丐丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = list(reversed(r))\n return sum(r)"} {"kind": "translator", "in": "万丐丙", "out": "Take a list of integers; keep the negative numbers, then reverse the order, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values below zero, then true if at least one even value.", "out": "为万之"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then get the negative numbers, then any even.", "out": "为万之"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep values below zero, then true if at least one even value.", "out": "为万之"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then get the negative numbers, then any even.", "out": "为万之"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep values below zero, then true if at least one even value.", "out": "为万之"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then get the negative numbers, then any even.", "out": "为万之"} {"kind": "builder", "in": "为万之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x < 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "为万之", "out": "Take a list of integers; drop the first and last elements, then keep the negative numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then drop anything 5 or below, then give back the total.", "out": "丸主丙"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep only numbers greater than 5, then sum r.", "out": "丸主丙"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then filter for numbers above 5, then add them up.", "out": "丸主丙"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then give me values where x is greater than 5, then calculate the sum of all elements.", "out": "丸主丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then show me only the values that are bigger than five, then what's the total.", "out": "丸主丙"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep values greater than five, then what do they add up to.", "out": "丸主丙"} {"kind": "builder", "in": "丸主丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n return sum(r)"} {"kind": "translator", "in": "丸主丙", "out": "Take a list of integers; sort by absolute value, then keep values greater than five, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then decrement each value, then shift each up by ten.", "out": "丑不丽"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then Lower each number by one, then increase all numbers by 10.", "out": "丑不丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then reduce each by one, then add 10 to everything.", "out": "丑不丽"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then Subtract 1 from all, then give everything a boost of 10.", "out": "丑不丽"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then Subtract one from each, then increment each by ten.", "out": "丑不丽"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then Drop each by one, then add a constant 10 to each.", "out": "丑不丽"} {"kind": "builder", "in": "丑不丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x - 1 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丑不丽", "out": "Take a list of integers; sort ascending, then subtract one from each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then shift each up by ten.", "out": "义且丽"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then increase all numbers by 10.", "out": "义且丽"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then add 10 to everything.", "out": "义且丽"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then give everything a boost of 10.", "out": "义且丽"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then increment each by ten.", "out": "义且丽"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then add a constant 10 to each.", "out": "义且丽"} {"kind": "builder", "in": "义且丽", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "义且丽", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then make every value non-negative, then arrange by magnitude ignoring sign.", "out": "专丏丸"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then absolute value for all items, then put them in order by magnitude.", "out": "专丏丸"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take absolute values, then arrange in order of absolute value.", "out": "专丏丸"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then turn negatives into positives, then sort by distance from zero.", "out": "专丏丸"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then abs each element, then order by how far from zero.", "out": "专丏丸"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the absolute value of each, then order by distance from zero.", "out": "专丏丸"} {"kind": "builder", "in": "专丏丸", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "专丏丸", "out": "Take a list of integers; sort descending, then take the absolute value of each, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort smallest to largest, then true if every value is unique.", "out": "丸丑乏"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Ascending sort, then check for duplicates in the values.", "out": "丸丑乏"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then Sort this ascending, then do all values appear only once.", "out": "丸丑乏"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Sort lowest to highest, then check that there are no duplicates.", "out": "丸丑乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Arrange from smallest to largest, then are the values all unique.", "out": "丸丑乏"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort ascending, then check if all values are unique.", "out": "丸丑乏"} {"kind": "builder", "in": "丸丑乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r)\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丸丑乏", "out": "Take a list of integers; sort by absolute value, then sort ascending, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then take the final 3 elements, then true if at least one even value.", "out": "为丹之"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then drop everything except the final three, then any even.", "out": "为丹之"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then give me the last three elements, then true if at least one even value.", "out": "为丹之"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep only the last three, then any even.", "out": "为丹之"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep the final three items, then true if at least one even value.", "out": "为丹之"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then take the last three, then any even.", "out": "为丹之"} {"kind": "builder", "in": "为丹之", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[-3:]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "为丹之", "out": "Take a list of integers; drop the first and last elements, then keep only the last three, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the first 3 elements, then remove the initial run of negative numbers.", "out": "丘丕乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then remove everything after the third, then strip the front negatives.", "out": "丘丕乃"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then truncate to three items, then remove leading negative numbers.", "out": "丘丕乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then show the first three, then drop negatives from start.", "out": "丘丕乃"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take the first three, then strip negative values from the start.", "out": "丘丕乃"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep first 3, then remove negatives before the first non-negative.", "out": "丘丕乃"} {"kind": "builder", "in": "丘丕乃", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:3]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丘丕乃", "out": "Take a list of integers; cap each value at 10, then keep only the first three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then raise each to the power of two.", "out": "且丈上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then I need each number multiplied by itself.", "out": "且丈上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then square all of them.", "out": "且丈上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then multiply each element by itself.", "out": "且丈上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then multiply each by two, then make each one squared.", "out": "且丈上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then double each item in the list, then square each value in the list.", "out": "且丈上"} {"kind": "builder", "in": "且丈上", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "且丈上", "out": "Take a list of integers; drop duplicates keeping first occurrence, then double each, then square each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increase every value by 10, then give the earliest even value or zero.", "out": "世丽乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then add 10 to each item, then fetch the first even element, default to 0.", "out": "世丽乒"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then shift each up by ten, then give the earliest even value or zero.", "out": "世丽乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then increase all numbers by 10, then fetch the first even element, default to 0.", "out": "世丽乒"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then add 10 to everything, then give the earliest even value or zero.", "out": "世丽乒"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give everything a boost of 10, then fetch the first even element, default to 0.", "out": "世丽乒"} {"kind": "builder", "in": "世丽乒", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 10 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "世丽乒", "out": "Take a list of integers; drop the first element, then add ten to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then extend to length 3 using zeros, then skip the first one.", "out": "举义世"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then pad to 3, then Discard the first element.", "out": "举义世"} {"kind": "builder", "in": "举义世", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[1:]\n return r"} {"kind": "translator", "in": "举义世", "out": "Take a list of integers; drop the zeros, then pad with zeros to at least three elements, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then cut the list at the first zero, then drop anything not divisible by three.", "out": "义久串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then cut off after the first zero appears, then filter out everything except multiples of three.", "out": "义久串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take values up to (excluding) the first zero, then keep only multiples of three.", "out": "义久串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the part before the first 0, then multiples of three only.", "out": "义久串"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate at the first zero, then filter for numbers divisible by three.", "out": "义久串"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then delete everything starting with the first zero, then give me only the values divisible by three.", "out": "义久串"} {"kind": "builder", "in": "义久串", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "义久串", "out": "Take a list of integers; pad with zeros to at least three elements, then keep everything before the first zero, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then increase every value by 10, then true if every value is unique.", "out": "乂丽乏"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then add 10 to each item, then check for duplicates in the values.", "out": "乂丽乏"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then shift each up by ten, then do all values appear only once.", "out": "乂丽乏"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then increase all numbers by 10, then check that there are no duplicates.", "out": "乂丽乏"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then add 10 to everything, then are the values all unique.", "out": "乂丽乏"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then give everything a boost of 10, then check if all values are unique.", "out": "乂丽乏"} {"kind": "builder", "in": "乂丽乏", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x + 10 for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "乂丽乏", "out": "Take a list of integers; take values while they are positive, then add ten to each, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then true if any value equals zero.", "out": "举下乍"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then check for zero.", "out": "举下乍"} {"kind": "builder", "in": "举下乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 1 for x in r]\n return 0 in r"} {"kind": "translator", "in": "举下乍", "out": "Take a list of integers; drop the zeros, then add one to each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove all zero values, then arrange by magnitude ignoring sign.", "out": "丽举丸"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then exclude zeros, then put them in order by magnitude.", "out": "丽举丸"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove all zero values, then arrange in order of absolute value.", "out": "丽举丸"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then exclude zeros, then sort by distance from zero.", "out": "丽举丸"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove all zero values, then order by how far from zero.", "out": "丽举丸"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then exclude zeros, then order by distance from zero.", "out": "丽举丸"} {"kind": "builder", "in": "丽举丸", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丽举丸", "out": "Take a list of integers; add ten to each, then drop the zeros, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then increase every value by 10, then deduplicate the list.", "out": "丸丽且"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then add 10 to each item, then remove repeats.", "out": "丸丽且"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then shift each up by ten, then deduplicate the list.", "out": "丸丽且"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then increase all numbers by 10, then remove repeats.", "out": "丸丽且"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then add 10 to everything, then deduplicate the list.", "out": "丸丽且"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then give everything a boost of 10, then remove repeats.", "out": "丸丽且"} {"kind": "builder", "in": "丸丽且", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丸丽且", "out": "Take a list of integers; sort by absolute value, then add ten to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then keep only strings of length 3 or more, then make every string lowercase.", "out": "乖乗丞"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then get rid of short ones, then make it all lowercase.", "out": "乖乗丞"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then remove strings with less than three characters, then make every string lowercase.", "out": "乖乗丞"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then remove all strings under three characters in length, then make it all lowercase.", "out": "乖乗丞"} {"kind": "speaker", "in": "Take a list of strings; sort alphabetically, then filter out short strings under three chars, then make every string lowercase.", "out": "乖乗丞"} {"kind": "speaker", "in": "Take a list of strings; arrange alphabetically, then drop strings shorter than three characters, then make it all lowercase.", "out": "乖乗丞"} {"kind": "builder", "in": "乖乗丞", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [s for s in r if len(s) >= 3]\n r = [s.lower() for s in r]\n return r"} {"kind": "translator", "in": "乖乗丞", "out": "Take a list of strings; sort alphabetically, then drop strings shorter than three characters, then lowercase each string."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values divisible by 3, then give back the total.", "out": "丐串丙"} {"kind": "speaker", "in": "Take a list of integers; reverse, then keep items where x mod 3 equals zero, then sum r.", "out": "丐串丙"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then drop anything not divisible by three, then add them up.", "out": "丐串丙"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then filter out everything except multiples of three, then calculate the sum of all elements.", "out": "丐串丙"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only multiples of three, then what's the total.", "out": "丐串丙"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiples of three only, then what do they add up to.", "out": "丐串丙"} {"kind": "builder", "in": "丐串丙", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n return sum(r)"} {"kind": "translator", "in": "丐串丙", "out": "Take a list of integers; reverse the order, then keep multiples of three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values divisible by 3, then keep only non-zero numbers.", "out": "不串举"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep items where x mod 3 equals zero, then strip the zeros.", "out": "不串举"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then drop anything not divisible by three, then keep only non-zero numbers.", "out": "不串举"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then filter out everything except multiples of three, then strip the zeros.", "out": "不串举"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only multiples of three, then keep only non-zero numbers.", "out": "不串举"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiples of three only, then strip the zeros.", "out": "不串举"} {"kind": "builder", "in": "不串举", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "不串举", "out": "Take a list of integers; subtract one from each, then keep multiples of three, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then sort smallest to largest, then drop the odd numbers.", "out": "丁丑一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Ascending sort, then filter out the odd numbers.", "out": "丁丑一"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Sort this ascending, then drop the odd numbers.", "out": "丁丑一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Sort lowest to highest, then filter out the odd numbers.", "out": "丁丑一"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then Arrange from smallest to largest, then drop the odd numbers.", "out": "丁丑一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then sort ascending, then filter out the odd numbers.", "out": "丁丑一"} {"kind": "builder", "in": "丁丑一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = sorted(r)\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丁丑一", "out": "Take a list of integers; keep the odd numbers, then sort ascending, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only even values, then make each twice as big.", "out": "丘一丈"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then extract all even numbers, then multiply each by 2.", "out": "丘一丈"} {"kind": "builder", "in": "丘一丈", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丘一丈", "out": "Take a list of integers; cap each value at 10, then keep the even numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then clamp each to at most ten, then drop anything not divisible by three.", "out": "么丘串"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then don't let anything exceed 10, then filter out everything except multiples of three.", "out": "么丘串"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then clamp each to at most ten, then keep only multiples of three.", "out": "么丘串"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then don't let anything exceed 10, then multiples of three only.", "out": "么丘串"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then clamp each to at most ten, then filter for numbers divisible by three.", "out": "么丘串"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then don't let anything exceed 10, then give me only the values divisible by three.", "out": "么丘串"} {"kind": "builder", "in": "么丘串", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "么丘串", "out": "Take a list of integers; if empty, use a single zero, then cap each value at 10, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then decrement each value, then drop the even numbers.", "out": "义不丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Lower each number by one, then strip out the evens.", "out": "义不丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then reduce each by one, then drop the even numbers.", "out": "义不丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Subtract 1 from all, then strip out the evens.", "out": "义不丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then Subtract one from each, then drop the even numbers.", "out": "义不丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then Drop each by one, then strip out the evens.", "out": "义不丁"} {"kind": "builder", "in": "义不丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义不丁", "out": "Take a list of integers; pad with zeros to at least three elements, then subtract one from each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then stop at the first non-positive value.", "out": "丹久乂"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then keep the leading run of positive numbers.", "out": "丹久乂"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then take values while they are positive.", "out": "丹久乂"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then take positive values then stop.", "out": "丹久乂"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then keep going while positive.", "out": "丹久乂"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then stop at first non positive.", "out": "丹久乂"} {"kind": "builder", "in": "丹久乂", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "丹久乂", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then default to [0] when there is nothing, then put the elements backwards.", "out": "为么丐"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then when the list is empty, substitute a zero value, then reverse that for me.", "out": "为么丐"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then replace an empty list with one zero, then flip it backwards.", "out": "为么丐"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then zero it out if it's empty, then make it backwards.", "out": "为么丐"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then use zero if the list is empty, then reverse the list.", "out": "为么丐"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then default to zero when empty, then invert the sequence.", "out": "为么丐"} {"kind": "builder", "in": "为么丐", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r if r else [0]\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "为么丐", "out": "Take a list of integers; drop the first and last elements, then if empty, use a single zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values divisible by 3, then find the min, defaulting to 0.", "out": "久串丛"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep items where x mod 3 equals zero, then minimum value, zero otherwise.", "out": "久串丛"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then drop anything not divisible by three, then get the minimum value or zero if empty.", "out": "久串丛"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then filter out everything except multiples of three, then give me the min or 0.", "out": "久串丛"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only multiples of three, then return the smallest number, defaulting to 0.", "out": "久串丛"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiples of three only, then return smallest or zero if empty.", "out": "久串丛"} {"kind": "builder", "in": "久串丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "久串丛", "out": "Take a list of integers; keep everything before the first zero, then keep multiples of three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the name field from each record, then arrange by string length ascending.", "out": "习乞严"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Grab the names, then length sort.", "out": "习乞严"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's name, then sort by length shortest first.", "out": "习乞严"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then List the names, then organize by string length least to greatest.", "out": "习乞严"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then Extract the names, then shortest strings first.", "out": "习乞严"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then Get the name field, then i want them ordered by how short they are.", "out": "习乞严"} {"kind": "builder", "in": "习乞严", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['name'] for d in r]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "习乞严", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the names, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then keep only odd values, then arrange by magnitude ignoring sign.", "out": "丽丁丸"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then eliminate the even numbers, then put them in order by magnitude.", "out": "丽丁丸"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then keep only odd values, then arrange in order of absolute value.", "out": "丽丁丸"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then eliminate the even numbers, then sort by distance from zero.", "out": "丽丁丸"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then keep only odd values, then order by how far from zero.", "out": "丽丁丸"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then eliminate the even numbers, then order by distance from zero.", "out": "丽丁丸"} {"kind": "builder", "in": "丽丁丸", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丽丁丸", "out": "Take a list of integers; add ten to each, then keep the odd numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then sort smallest to largest, then keep only numbers above 5.", "out": "丽丑主"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then Ascending sort, then exclude values of 5 and below.", "out": "丽丑主"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then Sort this ascending, then remove anything 5 or less.", "out": "丽丑主"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then Sort lowest to highest, then filter to keep only values above 5.", "out": "丽丑主"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then Arrange from smallest to largest, then get rid of values that aren't greater than five.", "out": "丽丑主"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then sort ascending, then drop anything 5 or below.", "out": "丽丑主"} {"kind": "builder", "in": "丽丑主", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = sorted(r)\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丽丑主", "out": "Take a list of integers; add ten to each, then sort ascending, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values above zero, then drop the odd numbers.", "out": "丑七一"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then filter for positive numbers, then filter out the odd numbers.", "out": "丑七一"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only positive numbers, then drop the odd numbers.", "out": "丑七一"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the positives, then filter out the odd numbers.", "out": "丑七一"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove negatives, then drop the odd numbers.", "out": "丑七一"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep the positive numbers, then filter out the odd numbers.", "out": "丑七一"} {"kind": "builder", "in": "丑七一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丑七一", "out": "Take a list of integers; sort ascending, then keep the positive numbers, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increase every value by 10, then drop non-positive values.", "out": "丁丽七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then add 10 to each item, then drop the negative numbers.", "out": "丁丽七"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then shift each up by ten, then filter out the negative ones.", "out": "丁丽七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then increase all numbers by 10, then remove all negative values.", "out": "丁丽七"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then add 10 to everything, then keep positive values only.", "out": "丁丽七"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give everything a boost of 10, then keep values above zero.", "out": "丁丽七"} {"kind": "builder", "in": "丁丽七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 10 for x in r]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丁丽七", "out": "Take a list of integers; keep the odd numbers, then add ten to each, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values above zero, then give back the total.", "out": "丸七丙"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then filter for positive numbers, then sum r.", "out": "丸七丙"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only positive numbers, then add them up.", "out": "丸七丙"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then keep the positives, then calculate the sum of all elements.", "out": "丸七丙"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove negatives, then what's the total.", "out": "丸七丙"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep the positive numbers, then what do they add up to.", "out": "丸七丙"} {"kind": "builder", "in": "丸七丙", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 0]\n return sum(r)"} {"kind": "translator", "in": "丸七丙", "out": "Take a list of integers; sort by absolute value, then keep the positive numbers, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then skip negatives at the start, then true if at least one even value.", "out": "丹乃之"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove all negatives at the front, then any even.", "out": "丹乃之"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the initial run of negative numbers, then true if at least one even value.", "out": "丹乃之"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then strip the front negatives, then any even.", "out": "丹乃之"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove leading negative numbers, then true if at least one even value.", "out": "丹乃之"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then drop negatives from start, then any even.", "out": "丹乃之"} {"kind": "builder", "in": "丹乃之", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丹乃之", "out": "Take a list of integers; keep only the last three, then drop the leading negative values, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then give the number of evens.", "out": "丘丁乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then find how many values are divisible by two.", "out": "丘丁乓"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then how many are even.", "out": "丘丁乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then get the total number of even values in the list.", "out": "丘丁乓"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only odd values, then give me the count of even values.", "out": "丘丁乓"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then eliminate the even numbers, then I need to know how many of these are even.", "out": "丘丁乓"} {"kind": "builder", "in": "丘丁乓", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 != 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "丘丁乓", "out": "Take a list of integers; cap each value at 10, then keep the odd numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first 3 elements, then find the min, defaulting to 0.", "out": "义丕丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then remove everything after the third, then minimum value, zero otherwise.", "out": "义丕丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then truncate to three items, then get the minimum value or zero if empty.", "out": "义丕丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then show the first three, then give me the min or 0.", "out": "义丕丛"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then take the first three, then return the smallest number, defaulting to 0.", "out": "义丕丛"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep first 3, then return smallest or zero if empty.", "out": "义丕丛"} {"kind": "builder", "in": "义丕丛", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:3]\n return min(r) if r else 0"} {"kind": "translator", "in": "义丕丛", "out": "Take a list of integers; pad with zeros to at least three elements, then keep only the first three, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then remove repeated values, then give back the product of all values.", "out": "七且乐"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then unique values preserving order, then product of the list.", "out": "七且乐"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then remove repeated values, then what's the product.", "out": "七且乐"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then unique values preserving order, then what do they multiply to.", "out": "七且乐"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then remove repeated values, then give me their product.", "out": "七且乐"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then unique values preserving order, then multiply them all together.", "out": "七且乐"} {"kind": "builder", "in": "七且乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = list(dict.fromkeys(r))\n return __import__('math').prod(r)"} {"kind": "translator", "in": "七且乐", "out": "Take a list of integers; keep the positive numbers, then drop duplicates keeping first occurrence, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then find the max, defaulting to 0.", "out": "且丘业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then Give me the maximum, but 0 if there are no items.", "out": "且丘业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then What's the highest number in the list.", "out": "且丘业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then Return the greatest value or default to 0.", "out": "且丘业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then clamp each to at most ten, then Find the largest element, defaulting to zero.", "out": "且丘业"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then don't let anything exceed 10, then give the largest value (0 if none).", "out": "且丘业"} {"kind": "builder", "in": "且丘业", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [min(x, 10) for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "且丘业", "out": "Take a list of integers; drop duplicates keeping first occurrence, then cap each value at 10, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then cut the list at the first zero, then shift each up by ten.", "out": "七久丽"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then cut off after the first zero appears, then increase all numbers by 10.", "out": "七久丽"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take values up to (excluding) the first zero, then add 10 to everything.", "out": "七久丽"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep the part before the first 0, then give everything a boost of 10.", "out": "七久丽"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then truncate at the first zero, then increment each by ten.", "out": "七久丽"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then delete everything starting with the first zero, then add a constant 10 to each.", "out": "七久丽"} {"kind": "builder", "in": "七久丽", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "七久丽", "out": "Take a list of integers; keep the positive numbers, then keep everything before the first zero, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then drop anything 5 or below, then true only if all are positive.", "out": "串主乌"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then keep only numbers greater than 5, then do all of these have positive values.", "out": "串主乌"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then filter for numbers above 5, then check if every value is positive.", "out": "串主乌"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then give me values where x is greater than 5, then confirm all values are positive.", "out": "串主乌"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then show me only the values that are bigger than five, then all positive.", "out": "串主乌"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then keep values greater than five, then check if every number is above zero.", "out": "串主乌"} {"kind": "builder", "in": "串主乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "串主乌", "out": "Take a list of integers; keep multiples of three, then keep values greater than five, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then keep only odd values, then skip the first one.", "out": "丹丁世"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then eliminate the even numbers, then Discard the first element.", "out": "丹丁世"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then keep only odd values, then skip the first one.", "out": "丹丁世"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then eliminate the even numbers, then Discard the first element.", "out": "丹丁世"} {"kind": "speaker", "in": "Take a list of integers; last three only, then keep only odd values, then skip the first one.", "out": "丹丁世"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then eliminate the even numbers, then Discard the first element.", "out": "丹丁世"} {"kind": "builder", "in": "丹丁世", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x % 2 != 0]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丹丁世", "out": "Take a list of integers; keep only the last three, then keep the odd numbers, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove the first item, then trim one element off each end.", "out": "丸世为"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Remove head, then cut off the first and last.", "out": "丸世为"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the first item, then remove the first and last elements.", "out": "丸世为"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Remove head, then keep only the middle part.", "out": "丸世为"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first item, then drop first and last.", "out": "丸世为"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Remove head, then eliminate the outermost elements.", "out": "丸世为"} {"kind": "builder", "in": "丸世为", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丸世为", "out": "Take a list of integers; sort by absolute value, then drop the first element, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then remove the initial run of negative numbers.", "out": "义丁乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then strip the front negatives.", "out": "义丁乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then remove leading negative numbers.", "out": "义丁乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then drop negatives from start.", "out": "义丁乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only odd values, then strip negative values from the start.", "out": "义丁乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then eliminate the even numbers, then remove negatives before the first non-negative.", "out": "义丁乃"} {"kind": "builder", "in": "义丁乃", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "义丁乃", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the odd numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then remove the first item, then give the number of evens.", "out": "久世乓"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then Remove head, then find how many values are divisible by two.", "out": "久世乓"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then remove the first item, then how many are even.", "out": "久世乓"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then Remove head, then get the total number of even values in the list.", "out": "久世乓"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then remove the first item, then give me the count of even values.", "out": "久世乓"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then Remove head, then I need to know how many of these are even.", "out": "久世乓"} {"kind": "builder", "in": "久世乓", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[1:]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "久世乓", "out": "Take a list of integers; keep everything before the first zero, then drop the first element, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each by two, then keep only numbers above 5.", "out": "丕丈主"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then double each item in the list, then exclude values of 5 and below.", "out": "丕丈主"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then multiply each by two, then remove anything 5 or less.", "out": "丕丈主"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then double each item in the list, then filter to keep only values above 5.", "out": "丕丈主"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then multiply each by two, then get rid of values that aren't greater than five.", "out": "丕丈主"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then double each item in the list, then drop anything 5 or below.", "out": "丕丈主"} {"kind": "builder", "in": "丕丈主", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * 2 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丕丈主", "out": "Take a list of integers; keep only the first three, then double each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then increase every value by 10, then drop the even numbers.", "out": "义丽丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then add 10 to each item, then strip out the evens.", "out": "义丽丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then shift each up by ten, then drop the even numbers.", "out": "义丽丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then increase all numbers by 10, then strip out the evens.", "out": "义丽丁"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then add 10 to everything, then drop the even numbers.", "out": "义丽丁"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then give everything a boost of 10, then strip out the evens.", "out": "义丽丁"} {"kind": "builder", "in": "义丽丁", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "义丽丁", "out": "Take a list of integers; pad with zeros to at least three elements, then add ten to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then extend to length 3 using zeros, then take values up to (excluding) the first zero.", "out": "主义久"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then pad to 3, then keep the part before the first 0.", "out": "主义久"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then extend to length 3 using zeros, then truncate at the first zero.", "out": "主义久"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then pad to 3, then delete everything starting with the first zero.", "out": "主义久"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then extend to length 3 using zeros, then remove from the first zero onwards.", "out": "主义久"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then pad to 3, then up to but not including the first zero.", "out": "主义久"} {"kind": "builder", "in": "主义久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "主义久", "out": "Take a list of integers; keep values greater than five, then pad with zeros to at least three elements, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then remove the first item, then shift each up by ten.", "out": "丸世丽"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Remove head, then increase all numbers by 10.", "out": "丸世丽"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then remove the first item, then add 10 to everything.", "out": "丸世丽"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Remove head, then give everything a boost of 10.", "out": "丸世丽"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then remove the first item, then increment each by ten.", "out": "丸世丽"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then Remove head, then add a constant 10 to each.", "out": "丸世丽"} {"kind": "builder", "in": "丸世丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = r[1:]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丸世丽", "out": "Take a list of integers; sort by absolute value, then drop the first element, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the first 3 elements, then drop the odd numbers.", "out": "乃丕一"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then remove everything after the third, then filter out the odd numbers.", "out": "乃丕一"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then truncate to three items, then drop the odd numbers.", "out": "乃丕一"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then show the first three, then filter out the odd numbers.", "out": "乃丕一"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then take the first three, then drop the odd numbers.", "out": "乃丕一"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then keep first 3, then filter out the odd numbers.", "out": "乃丕一"} {"kind": "builder", "in": "乃丕一", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[:3]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "乃丕一", "out": "Take a list of integers; drop the leading negative values, then keep only the first three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values above zero, then arrange in decreasing order.", "out": "丑七专"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then filter for positive numbers, then arrange in descending order.", "out": "丑七专"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then keep only positive numbers, then reverse sort.", "out": "丑七专"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the positives, then sort largest to smallest.", "out": "丑七专"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then remove negatives, then sort by descending values.", "out": "丑七专"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then keep the positive numbers, then sort from highest to lowest.", "out": "丑七专"} {"kind": "builder", "in": "丑七专", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x > 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丑七专", "out": "Take a list of integers; sort ascending, then keep the positive numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the list around, then drop anything not divisible by three.", "out": "为丐串"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then flip the order around, then filter out everything except multiples of three.", "out": "为丐串"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then put the elements backwards, then keep only multiples of three.", "out": "为丐串"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then reverse that for me, then multiples of three only.", "out": "为丐串"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip it backwards, then filter for numbers divisible by three.", "out": "为丐串"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then make it backwards, then give me only the values divisible by three.", "out": "为丐串"} {"kind": "builder", "in": "为丐串", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "为丐串", "out": "Take a list of integers; drop the first and last elements, then reverse the order, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the first 3 elements, then give back the total.", "out": "一丕丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then remove everything after the third, then sum r.", "out": "一丕丙"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then truncate to three items, then add them up.", "out": "一丕丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then show the first three, then calculate the sum of all elements.", "out": "一丕丙"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the first three, then what's the total.", "out": "一丕丙"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep first 3, then what do they add up to.", "out": "一丕丙"} {"kind": "builder", "in": "一丕丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:3]\n return sum(r)"} {"kind": "translator", "in": "一丕丙", "out": "Take a list of integers; keep the even numbers, then keep only the first three, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then remove all zero values, then true if at least one even value.", "out": "丹举之"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then exclude zeros, then any even.", "out": "丹举之"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove all zero values, then true if at least one even value.", "out": "丹举之"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then exclude zeros, then any even.", "out": "丹举之"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove all zero values, then true if at least one even value.", "out": "丹举之"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then exclude zeros, then any even.", "out": "丹举之"} {"kind": "builder", "in": "丹举之", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x != 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丹举之", "out": "Take a list of integers; keep only the last three, then drop the zeros, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep only even values, then count the elements.", "out": "丸一东"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then extract all even numbers, then how many items remain.", "out": "丸一东"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep only even values, then tell me the length.", "out": "丸一东"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then extract all even numbers, then return the length.", "out": "丸一东"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only even values, then count them.", "out": "丸一东"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then extract all even numbers, then what's the count.", "out": "丸一东"} {"kind": "builder", "in": "丸一东", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 2 == 0]\n return len(r)"} {"kind": "translator", "in": "丸一东", "out": "Take a list of integers; sort by absolute value, then keep the even numbers, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then truncate to the last three items.", "out": "义且丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then show only the last three.", "out": "义且丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then remove all but the last three.", "out": "义且丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then take the final 3 elements.", "out": "义且丹"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove repeated values, then drop everything except the final three.", "out": "义且丹"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then unique values preserving order, then give me the last three elements.", "out": "义且丹"} {"kind": "builder", "in": "义且丹", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(dict.fromkeys(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "义且丹", "out": "Take a list of integers; pad with zeros to at least three elements, then drop duplicates keeping first occurrence, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then take the final 3 elements, then drop anything not divisible by three.", "out": "丕丹串"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then drop everything except the final three, then filter out everything except multiples of three.", "out": "丕丹串"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then give me the last three elements, then keep only multiples of three.", "out": "丕丹串"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep only the last three, then multiples of three only.", "out": "丕丹串"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then keep the final three items, then filter for numbers divisible by three.", "out": "丕丹串"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then take the last three, then give me only the values divisible by three.", "out": "丕丹串"} {"kind": "builder", "in": "丕丹串", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丕丹串", "out": "Take a list of integers; keep only the first three, then keep only the last three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then strip spaces around each string, then reduce each string to its first character.", "out": "乞丢丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then remove leading and trailing spaces, then take first char drop blanks.", "out": "乞丢丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove whitespace from each item, then keep first letters only.", "out": "乞丢丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then clean whitespace from each entry, then first letter from each item that isn't empty.", "out": "乞丢丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then trim each string, then grab the first char from each.", "out": "乞丢丨"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then trim whitespace from each, then isolate the first character per entry.", "out": "乞丢丨"} {"kind": "builder", "in": "乞丢丨", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s.strip() for s in r]\n r = [s[0] for s in r if s]\n return r"} {"kind": "translator", "in": "乞丢丨", "out": "Take a list of people records (name, age); extract the names, then trim whitespace from each, then keep the first character of each (dropping empties)."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then default to [0] when there is nothing, then drop the even numbers.", "out": "专么丁"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then when the list is empty, substitute a zero value, then strip out the evens.", "out": "专么丁"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then replace an empty list with one zero, then drop the even numbers.", "out": "专么丁"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then zero it out if it's empty, then strip out the evens.", "out": "专么丁"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then use zero if the list is empty, then drop the even numbers.", "out": "专么丁"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then default to zero when empty, then strip out the evens.", "out": "专么丁"} {"kind": "builder", "in": "专么丁", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "专么丁", "out": "Take a list of integers; sort descending, then if empty, use a single zero, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then take values up to (excluding) the first zero.", "out": "万世久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then keep the part before the first 0.", "out": "万世久"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then truncate at the first zero.", "out": "万世久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then delete everything starting with the first zero.", "out": "万世久"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first item, then remove from the first zero onwards.", "out": "万世久"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then Remove head, then up to but not including the first zero.", "out": "万世久"} {"kind": "builder", "in": "万世久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "万世久", "out": "Take a list of integers; keep the negative numbers, then drop the first element, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep the leading run of positive numbers, then drop non-negative values.", "out": "丘乂万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take values while they are positive, then drop all positive numbers.", "out": "丘乂万"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then take positive values then stop, then drop non-negative values.", "out": "丘乂万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then keep going while positive, then drop all positive numbers.", "out": "丘乂万"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then stop at first non positive, then drop non-negative values.", "out": "丘乂万"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then take while greater than zero, then drop all positive numbers.", "out": "丘乂万"} {"kind": "builder", "in": "丘乂万", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丘乂万", "out": "Take a list of integers; cap each value at 10, then take values while they are positive, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove repeated values, then true if already sorted smallest to largest.", "out": "串且乎"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then unique values preserving order, then does this list go in ascending order.", "out": "串且乎"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove repeated values, then check if the list is in ascending order.", "out": "串且乎"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then unique values preserving order, then is the list sorted.", "out": "串且乎"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove repeated values, then is it sorted.", "out": "串且乎"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then unique values preserving order, then check if values are in increasing order.", "out": "串且乎"} {"kind": "builder", "in": "串且乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(dict.fromkeys(r))\n return r == sorted(r)"} {"kind": "translator", "in": "串且乎", "out": "Take a list of integers; keep multiples of three, then drop duplicates keeping first occurrence, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then extend to length 3 using zeros, then remove the initial run of negative numbers.", "out": "丏义乃"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then pad to 3, then strip the front negatives.", "out": "丏义乃"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then extend to length 3 using zeros, then remove leading negative numbers.", "out": "丏义乃"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then pad to 3, then drop negatives from start.", "out": "丏义乃"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then extend to length 3 using zeros, then strip negative values from the start.", "out": "丏义乃"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then pad to 3, then remove negatives before the first non-negative.", "out": "丏义乃"} {"kind": "builder", "in": "丏义乃", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "丏义乃", "out": "Take a list of integers; take the absolute value of each, then pad with zeros to at least three elements, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values above zero, then multiply each by -1.", "out": "主七与"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then filter for positive numbers, then negate.", "out": "主七与"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only positive numbers, then multiply each by -1.", "out": "主七与"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep the positives, then negate.", "out": "主七与"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove negatives, then multiply each by -1.", "out": "主七与"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep the positive numbers, then negate.", "out": "主七与"} {"kind": "builder", "in": "主七与", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x > 0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "主七与", "out": "Take a list of integers; keep values greater than five, then keep the positive numbers, then negate each."} {"kind": "speaker", "in": "Take a list of integers; double each, then increment each value, then give the earliest even value or zero.", "out": "丈下乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then plus one for all, then fetch the first even element, default to 0.", "out": "丈下乒"} {"kind": "builder", "in": "丈下乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x + 1 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丈下乒", "out": "Take a list of integers; double each, then add one to each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two, then give back the total.", "out": "上丈丙"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list, then sum r.", "out": "上丈丙"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two, then add them up.", "out": "上丈丙"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list, then calculate the sum of all elements.", "out": "上丈丙"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two, then what's the total.", "out": "上丈丙"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list, then what do they add up to.", "out": "上丈丙"} {"kind": "builder", "in": "上丈丙", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n return sum(r)"} {"kind": "translator", "in": "上丈丙", "out": "Take a list of integers; square each, then double each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; square each, then order by distance from zero, then skip the first one.", "out": "上丸世"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then sort based on absolute value, then Discard the first element.", "out": "上丸世"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then organize by magnitude, then skip the first one.", "out": "上丸世"} {"kind": "speaker", "in": "Take a list of integers; square them all, then arrange by absolute value ascending, then Discard the first element.", "out": "上丸世"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then sort from smallest to largest absolute value, then skip the first one.", "out": "上丸世"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then sort by absolute value, then Discard the first element.", "out": "上丸世"} {"kind": "builder", "in": "上丸世", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = sorted(r, key=abs)\n r = r[1:]\n return r"} {"kind": "translator", "in": "上丸世", "out": "Take a list of integers; square each, then sort by absolute value, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each by two, then drop the even numbers.", "out": "串丈丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then double each item in the list, then strip out the evens.", "out": "串丈丁"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then multiply each by two, then drop the even numbers.", "out": "串丈丁"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then double each item in the list, then strip out the evens.", "out": "串丈丁"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then multiply each by two, then drop the even numbers.", "out": "串丈丁"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then double each item in the list, then strip out the evens.", "out": "串丈丁"} {"kind": "builder", "in": "串丈丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "串丈丁", "out": "Take a list of integers; keep multiples of three, then double each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then multiply each by two, then trim one element off each end.", "out": "不丈为"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then double each item in the list, then cut off the first and last.", "out": "不丈为"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then multiply each by two, then remove the first and last elements.", "out": "不丈为"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then double each item in the list, then keep only the middle part.", "out": "不丈为"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then multiply each by two, then drop first and last.", "out": "不丈为"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then double each item in the list, then eliminate the outermost elements.", "out": "不丈为"} {"kind": "builder", "in": "不丈为", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x * 2 for x in r]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "不丈为", "out": "Take a list of integers; subtract one from each, then double each, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then cut the list at the first zero, then drop non-negative values.", "out": "一久万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then cut off after the first zero appears, then drop all positive numbers.", "out": "一久万"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take values up to (excluding) the first zero, then drop non-negative values.", "out": "一久万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep the part before the first 0, then drop all positive numbers.", "out": "一久万"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then truncate at the first zero, then drop non-negative values.", "out": "一久万"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then delete everything starting with the first zero, then drop all positive numbers.", "out": "一久万"} {"kind": "builder", "in": "一久万", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "一久万", "out": "Take a list of integers; keep the even numbers, then keep everything before the first zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then keep values divisible by 3, then take values up to (excluding) the first zero.", "out": "丑串久"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then keep items where x mod 3 equals zero, then keep the part before the first 0.", "out": "丑串久"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then drop anything not divisible by three, then truncate at the first zero.", "out": "丑串久"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then filter out everything except multiples of three, then delete everything starting with the first zero.", "out": "丑串久"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then keep only multiples of three, then remove from the first zero onwards.", "out": "丑串久"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then multiples of three only, then up to but not including the first zero.", "out": "丑串久"} {"kind": "builder", "in": "丑串久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = [x for x in r if x % 3 == 0]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丑串久", "out": "Take a list of integers; sort ascending, then keep multiples of three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then sort smallest to largest, then stop at the first non-positive value.", "out": "为丑乂"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then Ascending sort, then keep the leading run of positive numbers.", "out": "为丑乂"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then Sort this ascending, then take values while they are positive.", "out": "为丑乂"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then Sort lowest to highest, then take positive values then stop.", "out": "为丑乂"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then Arrange from smallest to largest, then keep going while positive.", "out": "为丑乂"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then sort ascending, then stop at first non positive.", "out": "为丑乂"} {"kind": "builder", "in": "为丑乂", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = sorted(r)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "为丑乂", "out": "Take a list of integers; drop the first and last elements, then sort ascending, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort largest to smallest, then drop the odd numbers.", "out": "丐专一"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort by descending values, then filter out the odd numbers.", "out": "丐专一"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then sort from highest to lowest, then drop the odd numbers.", "out": "丐专一"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then sort descending, then filter out the odd numbers.", "out": "丐专一"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort largest first, then drop the odd numbers.", "out": "丐专一"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort in descending order, then filter out the odd numbers.", "out": "丐专一"} {"kind": "builder", "in": "丐专一", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丐专一", "out": "Take a list of integers; reverse the order, then sort descending, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then make every value non-negative, then stop at the first non-positive value.", "out": "专丏乂"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then absolute value for all items, then keep the leading run of positive numbers.", "out": "专丏乂"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take absolute values, then take values while they are positive.", "out": "专丏乂"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then turn negatives into positives, then take positive values then stop.", "out": "专丏乂"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then abs each element, then keep going while positive.", "out": "专丏乂"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then take the absolute value of each, then stop at first non positive.", "out": "专丏乂"} {"kind": "builder", "in": "专丏乂", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [abs(x) for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "专丏乂", "out": "Take a list of integers; sort descending, then take the absolute value of each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the final 3 elements, then give back the product of all values.", "out": "久丹乐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then drop everything except the final three, then product of the list.", "out": "久丹乐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then give me the last three elements, then what's the product.", "out": "久丹乐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep only the last three, then what do they multiply to.", "out": "久丹乐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep the final three items, then give me their product.", "out": "久丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take the last three, then multiply them all together.", "out": "久丹乐"} {"kind": "builder", "in": "久丹乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "久丹乐", "out": "Take a list of integers; keep everything before the first zero, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values above zero, then raise each to the power of two.", "out": "义七上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter for positive numbers, then I need each number multiplied by itself.", "out": "义七上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only positive numbers, then square all of them.", "out": "义七上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positives, then multiply each element by itself.", "out": "义七上"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then remove negatives, then make each one squared.", "out": "义七上"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep the positive numbers, then square each value in the list.", "out": "义七上"} {"kind": "builder", "in": "义七上", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "义七上", "out": "Take a list of integers; pad with zeros to at least three elements, then keep the positive numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then clamp each to at most ten, then true if any value equals zero.", "out": "乂丘乍"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then don't let anything exceed 10, then check for zero.", "out": "乂丘乍"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then clamp each to at most ten, then true if any value equals zero.", "out": "乂丘乍"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then don't let anything exceed 10, then check for zero.", "out": "乂丘乍"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then clamp each to at most ten, then true if any value equals zero.", "out": "乂丘乍"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then don't let anything exceed 10, then check for zero.", "out": "乂丘乍"} {"kind": "builder", "in": "乂丘乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [min(x, 10) for x in r]\n return 0 in r"} {"kind": "translator", "in": "乂丘乍", "out": "Take a list of integers; take values while they are positive, then cap each value at 10, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove both ends, then shift each up by ten.", "out": "与为丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then trim the edges, then increase all numbers by 10.", "out": "与为丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then trim one element off each end, then add 10 to everything.", "out": "与为丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then cut off the first and last, then give everything a boost of 10.", "out": "与为丽"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the first and last elements, then increment each by ten.", "out": "与为丽"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep only the middle part, then add a constant 10 to each.", "out": "与为丽"} {"kind": "builder", "in": "与为丽", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[1:-1]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "与为丽", "out": "Take a list of integers; negate each, then drop the first and last elements, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then clamp each to at most ten, then make each twice as big.", "out": "乃丘丈"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then don't let anything exceed 10, then multiply each by 2.", "out": "乃丘丈"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then clamp each to at most ten, then make each twice as big.", "out": "乃丘丈"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then don't let anything exceed 10, then multiply each by 2.", "out": "乃丘丈"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then clamp each to at most ten, then make each twice as big.", "out": "乃丘丈"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then don't let anything exceed 10, then multiply each by 2.", "out": "乃丘丈"} {"kind": "builder", "in": "乃丘丈", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [min(x, 10) for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乃丘丈", "out": "Take a list of integers; drop the leading negative values, then cap each value at 10, then double each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values divisible by 3, then drop non-positive values.", "out": "乃串七"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then keep items where x mod 3 equals zero, then drop the negative numbers.", "out": "乃串七"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then drop anything not divisible by three, then filter out the negative ones.", "out": "乃串七"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then filter out everything except multiples of three, then remove all negative values.", "out": "乃串七"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep only multiples of three, then keep positive values only.", "out": "乃串七"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiples of three only, then keep values above zero.", "out": "乃串七"} {"kind": "builder", "in": "乃串七", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "乃串七", "out": "Take a list of integers; drop the leading negative values, then keep multiples of three, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each value by itself, then find the max, defaulting to 0.", "out": "丁上业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then square them all, then Give me the maximum, but 0 if there are no items.", "out": "丁上业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then raise each to the power of two, then What's the highest number in the list.", "out": "丁上业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then I need each number multiplied by itself, then Return the greatest value or default to 0.", "out": "丁上业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then square all of them, then Find the largest element, defaulting to zero.", "out": "丁上业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiply each element by itself, then give the largest value (0 if none).", "out": "丁上业"} {"kind": "builder", "in": "丁上业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x * x for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丁上业", "out": "Take a list of integers; keep the odd numbers, then square each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then take the final 3 elements, then ensure at least three items by appending zeros.", "out": "乃丹义"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then drop everything except the final three, then ensure minimum length of three by adding zeros to the end.", "out": "乃丹义"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then give me the last three elements, then ensure at least three items by appending zeros.", "out": "乃丹义"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then keep only the last three, then ensure minimum length of three by adding zeros to the end.", "out": "乃丹义"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep the final three items, then ensure at least three items by appending zeros.", "out": "乃丹义"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then take the last three, then ensure minimum length of three by adding zeros to the end.", "out": "乃丹义"} {"kind": "builder", "in": "乃丹义", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "乃丹义", "out": "Take a list of integers; drop the leading negative values, then keep only the last three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then take the first 3 elements, then multiply each by -1.", "out": "久丕与"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then remove everything after the third, then negate.", "out": "久丕与"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then truncate to three items, then multiply each by -1.", "out": "久丕与"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then show the first three, then negate.", "out": "久丕与"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then take the first three, then multiply each by -1.", "out": "久丕与"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then keep first 3, then negate.", "out": "久丕与"} {"kind": "builder", "in": "久丕与", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:3]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "久丕与", "out": "Take a list of integers; keep everything before the first zero, then keep only the first three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep values divisible by 3, then stop at the first non-positive value.", "out": "上串乂"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then keep items where x mod 3 equals zero, then keep the leading run of positive numbers.", "out": "上串乂"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then drop anything not divisible by three, then take values while they are positive.", "out": "上串乂"} {"kind": "speaker", "in": "Take a list of integers; square them all, then filter out everything except multiples of three, then take positive values then stop.", "out": "上串乂"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only multiples of three, then keep going while positive.", "out": "上串乂"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then multiples of three only, then stop at first non positive.", "out": "上串乂"} {"kind": "builder", "in": "上串乂", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "上串乂", "out": "Take a list of integers; square each, then keep multiples of three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then clamp each to at most ten, then give the earliest even value or zero.", "out": "主丘乒"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "主丘乒"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then clamp each to at most ten, then give the earliest even value or zero.", "out": "主丘乒"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "主丘乒"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then clamp each to at most ten, then give the earliest even value or zero.", "out": "主丘乒"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then don't let anything exceed 10, then fetch the first even element, default to 0.", "out": "主丘乒"} {"kind": "builder", "in": "主丘乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "主丘乒", "out": "Take a list of integers; keep values greater than five, then cap each value at 10, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then keep values above zero, then find the min, defaulting to 0.", "out": "丕七丛"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then filter for positive numbers, then minimum value, zero otherwise.", "out": "丕七丛"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then keep only positive numbers, then get the minimum value or zero if empty.", "out": "丕七丛"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep the positives, then give me the min or 0.", "out": "丕七丛"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove negatives, then return the smallest number, defaulting to 0.", "out": "丕七丛"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then keep the positive numbers, then return smallest or zero if empty.", "out": "丕七丛"} {"kind": "builder", "in": "丕七丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x > 0]\n return min(r) if r else 0"} {"kind": "translator", "in": "丕七丛", "out": "Take a list of integers; keep only the first three, then keep the positive numbers, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then keep only non-empty strings, then arrange by string length ascending.", "out": "丞两严"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then filter empty strings, then length sort.", "out": "丞两严"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then remove empty strings from the list, then sort by length shortest first.", "out": "丞两严"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then clean up empty strings, then organize by string length least to greatest.", "out": "丞两严"} {"kind": "speaker", "in": "Take a list of strings; lowercase each string, then delete empty entries, then shortest strings first.", "out": "丞两严"} {"kind": "speaker", "in": "Take a list of strings; change to lowercase, then drop empty strings, then i want them ordered by how short they are.", "out": "丞两严"} {"kind": "builder", "in": "丞两严", "out": "def solve(xs):\n r = list(xs)\n r = [s.lower() for s in r]\n r = [s for s in r if s]\n r = sorted(r, key=len)\n return r"} {"kind": "translator", "in": "丞两严", "out": "Take a list of strings; lowercase each string, then drop empty strings, then sort by length, shortest first."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then increase every value by 10, then multiply each by -1.", "out": "丏丽与"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then add 10 to each item, then negate.", "out": "丏丽与"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then shift each up by ten, then multiply each by -1.", "out": "丏丽与"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then increase all numbers by 10, then negate.", "out": "丏丽与"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then add 10 to everything, then multiply each by -1.", "out": "丏丽与"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then give everything a boost of 10, then negate.", "out": "丏丽与"} {"kind": "builder", "in": "丏丽与", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x + 10 for x in r]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "丏丽与", "out": "Take a list of integers; take the absolute value of each, then add ten to each, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then increase every value by 10, then ensure at least three items by appending zeros.", "out": "世丽义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then add 10 to each item, then ensure minimum length of three by adding zeros to the end.", "out": "世丽义"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then shift each up by ten, then ensure at least three items by appending zeros.", "out": "世丽义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then increase all numbers by 10, then ensure minimum length of three by adding zeros to the end.", "out": "世丽义"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then add 10 to everything, then ensure at least three items by appending zeros.", "out": "世丽义"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then give everything a boost of 10, then ensure minimum length of three by adding zeros to the end.", "out": "世丽义"} {"kind": "builder", "in": "世丽义", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x + 10 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "世丽义", "out": "Take a list of integers; drop the first element, then add ten to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep values divisible by 3, then stop at the first non-positive value.", "out": "久串乂"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then keep items where x mod 3 equals zero, then keep the leading run of positive numbers.", "out": "久串乂"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then drop anything not divisible by three, then take values while they are positive.", "out": "久串乂"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then filter out everything except multiples of three, then take positive values then stop.", "out": "久串乂"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only multiples of three, then keep going while positive.", "out": "久串乂"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiples of three only, then stop at first non positive.", "out": "久串乂"} {"kind": "builder", "in": "久串乂", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "久串乂", "out": "Take a list of integers; keep everything before the first zero, then keep multiples of three, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep the leading run of positive numbers, then give back the product of all values.", "out": "久乂乐"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then take values while they are positive, then product of the list.", "out": "久乂乐"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take positive values then stop, then what's the product.", "out": "久乂乐"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep going while positive, then what do they multiply to.", "out": "久乂乐"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then stop at first non positive, then give me their product.", "out": "久乂乐"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take while greater than zero, then multiply them all together.", "out": "久乂乐"} {"kind": "builder", "in": "久乂乐", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "久乂乐", "out": "Take a list of integers; keep everything before the first zero, then take values while they are positive, then return their product."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then decrement each value, then keep only numbers above 5.", "out": "丘不主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Lower each number by one, then exclude values of 5 and below.", "out": "丘不主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then reduce each by one, then remove anything 5 or less.", "out": "丘不主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Subtract 1 from all, then filter to keep only values above 5.", "out": "丘不主"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Subtract one from each, then get rid of values that aren't greater than five.", "out": "丘不主"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Drop each by one, then drop anything 5 or below.", "out": "丘不主"} {"kind": "builder", "in": "丘不主", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丘不主", "out": "Take a list of integers; cap each value at 10, then subtract one from each, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first 3 elements, then ensure at least three items by appending zeros.", "out": "举丕义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then remove everything after the third, then ensure minimum length of three by adding zeros to the end.", "out": "举丕义"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then truncate to three items, then ensure at least three items by appending zeros.", "out": "举丕义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then show the first three, then ensure minimum length of three by adding zeros to the end.", "out": "举丕义"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the first three, then ensure at least three items by appending zeros.", "out": "举丕义"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep first 3, then ensure minimum length of three by adding zeros to the end.", "out": "举丕义"} {"kind": "builder", "in": "举丕义", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:3]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "举丕义", "out": "Take a list of integers; drop the zeros, then keep only the first three, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove both ends, then drop non-positive values.", "out": "主为七"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then trim the edges, then drop the negative numbers.", "out": "主为七"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then trim one element off each end, then filter out the negative ones.", "out": "主为七"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then cut off the first and last, then remove all negative values.", "out": "主为七"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first and last elements, then keep positive values only.", "out": "主为七"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then keep only the middle part, then keep values above zero.", "out": "主为七"} {"kind": "builder", "in": "主为七", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:-1]\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "主为七", "out": "Take a list of integers; keep values greater than five, then drop the first and last elements, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then drop anything 5 or below, then drop anything not divisible by three.", "out": "下主串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only numbers greater than 5, then filter out everything except multiples of three.", "out": "下主串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then filter for numbers above 5, then keep only multiples of three.", "out": "下主串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give me values where x is greater than 5, then multiples of three only.", "out": "下主串"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then show me only the values that are bigger than five, then filter for numbers divisible by three.", "out": "下主串"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep values greater than five, then give me only the values divisible by three.", "out": "下主串"} {"kind": "builder", "in": "下主串", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "下主串", "out": "Take a list of integers; add one to each, then keep values greater than five, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take the final 3 elements, then keep only numbers above 5.", "out": "举丹主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then drop everything except the final three, then exclude values of 5 and below.", "out": "举丹主"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then give me the last three elements, then remove anything 5 or less.", "out": "举丹主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only the last three, then filter to keep only values above 5.", "out": "举丹主"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the final three items, then get rid of values that aren't greater than five.", "out": "举丹主"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take the last three, then drop anything 5 or below.", "out": "举丹主"} {"kind": "builder", "in": "举丹主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[-3:]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "举丹主", "out": "Take a list of integers; drop the zeros, then keep only the last three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove both ends, then drop anything not divisible by three.", "out": "万为串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then trim the edges, then filter out everything except multiples of three.", "out": "万为串"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then trim one element off each end, then keep only multiples of three.", "out": "万为串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then cut off the first and last, then multiples of three only.", "out": "万为串"} {"kind": "speaker", "in": "Take a list of integers; keep the negative numbers, then remove the first and last elements, then filter for numbers divisible by three.", "out": "万为串"} {"kind": "speaker", "in": "Take a list of integers; extract negatives, then keep only the middle part, then give me only the values divisible by three.", "out": "万为串"} {"kind": "builder", "in": "万为串", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x < 0]\n r = r[1:-1]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "万为串", "out": "Take a list of integers; keep the negative numbers, then drop the first and last elements, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then decrement each value, then find the min, defaulting to 0.", "out": "下不丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Lower each number by one, then minimum value, zero otherwise.", "out": "下不丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then reduce each by one, then get the minimum value or zero if empty.", "out": "下不丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Subtract 1 from all, then give me the min or 0.", "out": "下不丛"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Subtract one from each, then return the smallest number, defaulting to 0.", "out": "下不丛"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Drop each by one, then return smallest or zero if empty.", "out": "下不丛"} {"kind": "builder", "in": "下不丛", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "下不丛", "out": "Take a list of integers; add one to each, then subtract one from each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the list around, then arrange in increasing order.", "out": "九丐丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then flip the order around, then Organize these ascending.", "out": "九丐丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then put the elements backwards, then Sort in ascending order.", "out": "九丐丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then reverse that for me, then I need this sorted ascending.", "out": "九丐丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip it backwards, then Put these in ascending order.", "out": "九丐丑"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then make it backwards, then sort smallest to largest.", "out": "九丐丑"} {"kind": "builder", "in": "九丐丑", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = list(reversed(r))\n r = sorted(r)\n return r"} {"kind": "translator", "in": "九丐丑", "out": "Take a list of people records (name, age); extract the ages, then reverse the order, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then trim one element off each end.", "out": "举丑为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then cut off the first and last.", "out": "举丑为"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then remove the first and last elements.", "out": "举丑为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then keep only the middle part.", "out": "举丑为"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then drop first and last.", "out": "举丑为"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then eliminate the outermost elements.", "out": "举丑为"} {"kind": "builder", "in": "举丑为", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "举丑为", "out": "Take a list of integers; drop the zeros, then sort ascending, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then drop non-positive values.", "out": "下且七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then drop the negative numbers.", "out": "下且七"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then filter out the negative ones.", "out": "下且七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then remove all negative values.", "out": "下且七"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove repeated values, then keep positive values only.", "out": "下且七"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then unique values preserving order, then keep values above zero.", "out": "下且七"} {"kind": "builder", "in": "下且七", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "下且七", "out": "Take a list of integers; add one to each, then drop duplicates keeping first occurrence, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep the leading run of positive numbers, then replace an empty list with one zero.", "out": "串乂么"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then take values while they are positive, then zero it out if it's empty.", "out": "串乂么"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then take positive values then stop, then use zero if the list is empty.", "out": "串乂么"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then keep going while positive, then default to zero when empty.", "out": "串乂么"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then stop at first non positive, then if there's nothing, put in a zero.", "out": "串乂么"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then take while greater than zero, then if no items, add a zero.", "out": "串乂么"} {"kind": "builder", "in": "串乂么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "串乂么", "out": "Take a list of integers; keep multiples of three, then take values while they are positive, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; square each, then remove the first item, then limit every value to 10.", "out": "上世丘"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then Remove head, then maximum of 10 for all.", "out": "上世丘"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then remove the first item, then limit every value to 10.", "out": "上世丘"} {"kind": "speaker", "in": "Take a list of integers; square them all, then Remove head, then maximum of 10 for all.", "out": "上世丘"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then remove the first item, then limit every value to 10.", "out": "上世丘"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then Remove head, then maximum of 10 for all.", "out": "上世丘"} {"kind": "builder", "in": "上世丘", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[1:]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "上世丘", "out": "Take a list of integers; square each, then drop the first element, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep only odd values, then true only if all are positive.", "out": "为丁乌"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then eliminate the even numbers, then do all of these have positive values.", "out": "为丁乌"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only odd values, then check if every value is positive.", "out": "为丁乌"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then eliminate the even numbers, then confirm all values are positive.", "out": "为丁乌"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then keep only odd values, then all positive.", "out": "为丁乌"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then eliminate the even numbers, then check if every number is above zero.", "out": "为丁乌"} {"kind": "builder", "in": "为丁乌", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x % 2 != 0]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "为丁乌", "out": "Take a list of integers; drop the first and last elements, then keep the odd numbers, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each value by itself, then arrange in increasing order.", "out": "乂上丑"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then square them all, then Organize these ascending.", "out": "乂上丑"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then raise each to the power of two, then Sort in ascending order.", "out": "乂上丑"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then I need each number multiplied by itself, then I need this sorted ascending.", "out": "乂上丑"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then square all of them, then Put these in ascending order.", "out": "乂上丑"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then multiply each element by itself, then sort smallest to largest.", "out": "乂上丑"} {"kind": "builder", "in": "乂上丑", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * x for x in r]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "乂上丑", "out": "Take a list of integers; take values while they are positive, then square each, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first 3 elements, then drop the odd numbers.", "out": "丁丕一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then remove everything after the third, then filter out the odd numbers.", "out": "丁丕一"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then truncate to three items, then drop the odd numbers.", "out": "丁丕一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then show the first three, then filter out the odd numbers.", "out": "丁丕一"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the first three, then drop the odd numbers.", "out": "丁丕一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep first 3, then filter out the odd numbers.", "out": "丁丕一"} {"kind": "builder", "in": "丁丕一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[:3]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丁丕一", "out": "Take a list of integers; keep the odd numbers, then keep only the first three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; double each, then flip the list around, then drop the even numbers.", "out": "丈丐丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then flip the order around, then strip out the evens.", "out": "丈丐丁"} {"kind": "speaker", "in": "Take a list of integers; double each, then put the elements backwards, then drop the even numbers.", "out": "丈丐丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then reverse that for me, then strip out the evens.", "out": "丈丐丁"} {"kind": "speaker", "in": "Take a list of integers; double each, then flip it backwards, then drop the even numbers.", "out": "丈丐丁"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then make it backwards, then strip out the evens.", "out": "丈丐丁"} {"kind": "builder", "in": "丈丐丁", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = list(reversed(r))\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "丈丐丁", "out": "Take a list of integers; double each, then reverse the order, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then extend to length 3 using zeros, then put the elements backwards.", "out": "丕义丐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then pad to 3, then reverse that for me.", "out": "丕义丐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then extend to length 3 using zeros, then flip it backwards.", "out": "丕义丐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then pad to 3, then make it backwards.", "out": "丕义丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then extend to length 3 using zeros, then reverse the list.", "out": "丕义丐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then pad to 3, then invert the sequence.", "out": "丕义丐"} {"kind": "builder", "in": "丕义丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丕义丐", "out": "Take a list of integers; keep only the first three, then pad with zeros to at least three elements, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then cut the list at the first zero, then drop non-positive values.", "out": "丹久七"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then cut off after the first zero appears, then drop the negative numbers.", "out": "丹久七"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then take values up to (excluding) the first zero, then filter out the negative ones.", "out": "丹久七"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then keep the part before the first 0, then remove all negative values.", "out": "丹久七"} {"kind": "speaker", "in": "Take a list of integers; last three only, then truncate at the first zero, then keep positive values only.", "out": "丹久七"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then delete everything starting with the first zero, then keep values above zero.", "out": "丹久七"} {"kind": "builder", "in": "丹久七", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丹久七", "out": "Take a list of integers; keep only the last three, then keep everything before the first zero, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then keep only even values, then ensure at least three items by appending zeros.", "out": "丘一义"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then extract all even numbers, then ensure minimum length of three by adding zeros to the end.", "out": "丘一义"} {"kind": "builder", "in": "丘一义", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x for x in r if x % 2 == 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丘一义", "out": "Take a list of integers; cap each value at 10, then keep the even numbers, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then drop anything 5 or below, then limit every value to 10.", "out": "举主丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep only numbers greater than 5, then maximum of 10 for all.", "out": "举主丘"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then filter for numbers above 5, then limit every value to 10.", "out": "举主丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then give me values where x is greater than 5, then maximum of 10 for all.", "out": "举主丘"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then show me only the values that are bigger than five, then limit every value to 10.", "out": "举主丘"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep values greater than five, then maximum of 10 for all.", "out": "举主丘"} {"kind": "builder", "in": "举主丘", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "举主丘", "out": "Take a list of integers; drop the zeros, then keep values greater than five, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each value by itself, then find the min, defaulting to 0.", "out": "与上丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then square them all, then minimum value, zero otherwise.", "out": "与上丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then raise each to the power of two, then get the minimum value or zero if empty.", "out": "与上丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then I need each number multiplied by itself, then give me the min or 0.", "out": "与上丛"} {"kind": "speaker", "in": "Take a list of integers; negate each, then square all of them, then return the smallest number, defaulting to 0.", "out": "与上丛"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiply each element by itself, then return smallest or zero if empty.", "out": "与上丛"} {"kind": "builder", "in": "与上丛", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * x for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "与上丛", "out": "Take a list of integers; negate each, then square each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then flip the list around, then drop anything not divisible by three.", "out": "乂丐串"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then flip the order around, then filter out everything except multiples of three.", "out": "乂丐串"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then put the elements backwards, then keep only multiples of three.", "out": "乂丐串"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then reverse that for me, then multiples of three only.", "out": "乂丐串"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then flip it backwards, then filter for numbers divisible by three.", "out": "乂丐串"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then make it backwards, then give me only the values divisible by three.", "out": "乂丐串"} {"kind": "builder", "in": "乂丐串", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "乂丐串", "out": "Take a list of integers; take values while they are positive, then reverse the order, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then drop anything 5 or below, then deduplicate the list.", "out": "丹主且"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then keep only numbers greater than 5, then remove repeats.", "out": "丹主且"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then filter for numbers above 5, then deduplicate the list.", "out": "丹主且"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then give me values where x is greater than 5, then remove repeats.", "out": "丹主且"} {"kind": "speaker", "in": "Take a list of integers; last three only, then show me only the values that are bigger than five, then deduplicate the list.", "out": "丹主且"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then keep values greater than five, then remove repeats.", "out": "丹主且"} {"kind": "builder", "in": "丹主且", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x for x in r if x > 5]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丹主且", "out": "Take a list of integers; keep only the last three, then keep values greater than five, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then multiply each by two, then skip the first one.", "out": "丘丈世"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then double each item in the list, then Discard the first element.", "out": "丘丈世"} {"kind": "builder", "in": "丘丈世", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x * 2 for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "丘丈世", "out": "Take a list of integers; cap each value at 10, then double each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then give the earliest even value or zero.", "out": "丕丸乒"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then fetch the first even element, default to 0.", "out": "丕丸乒"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then give the earliest even value or zero.", "out": "丕丸乒"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then fetch the first even element, default to 0.", "out": "丕丸乒"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then give the earliest even value or zero.", "out": "丕丸乒"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then fetch the first even element, default to 0.", "out": "丕丸乒"} {"kind": "builder", "in": "丕丸乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丕丸乒", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then replace an empty list with one zero.", "out": "举下么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then zero it out if it's empty.", "out": "举下么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then use zero if the list is empty.", "out": "举下么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then default to zero when empty.", "out": "举下么"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then increment each value, then if there's nothing, put in a zero.", "out": "举下么"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then plus one for all, then if no items, add a zero.", "out": "举下么"} {"kind": "builder", "in": "举下么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = [x + 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "举下么", "out": "Take a list of integers; drop the zeros, then add one to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort largest to smallest, then arrange by magnitude ignoring sign.", "out": "举专丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort by descending values, then put them in order by magnitude.", "out": "举专丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort from highest to lowest, then arrange in order of absolute value.", "out": "举专丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort descending, then sort by distance from zero.", "out": "举专丸"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort largest first, then order by how far from zero.", "out": "举专丸"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort in descending order, then order by distance from zero.", "out": "举专丸"} {"kind": "builder", "in": "举专丸", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "举专丸", "out": "Take a list of integers; drop the zeros, then sort descending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then drop anything 5 or below, then arrange in increasing order.", "out": "丸主丑"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep only numbers greater than 5, then Organize these ascending.", "out": "丸主丑"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then filter for numbers above 5, then Sort in ascending order.", "out": "丸主丑"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then give me values where x is greater than 5, then I need this sorted ascending.", "out": "丸主丑"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then show me only the values that are bigger than five, then Put these in ascending order.", "out": "丸主丑"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep values greater than five, then sort smallest to largest.", "out": "丸主丑"} {"kind": "builder", "in": "丸主丑", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n r = sorted(r)\n return r"} {"kind": "translator", "in": "丸主丑", "out": "Take a list of integers; sort by absolute value, then keep values greater than five, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then clamp each to at most ten, then truncate to the last three items.", "out": "串丘丹"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then don't let anything exceed 10, then show only the last three.", "out": "串丘丹"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then clamp each to at most ten, then remove all but the last three.", "out": "串丘丹"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then don't let anything exceed 10, then take the final 3 elements.", "out": "串丘丹"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then clamp each to at most ten, then drop everything except the final three.", "out": "串丘丹"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then don't let anything exceed 10, then give me the last three elements.", "out": "串丘丹"} {"kind": "builder", "in": "串丘丹", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [min(x, 10) for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "串丘丹", "out": "Take a list of integers; keep multiples of three, then cap each value at 10, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increase every value by 10, then keep only non-zero numbers.", "out": "且丽举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then add 10 to each item, then strip the zeros.", "out": "且丽举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then shift each up by ten, then keep only non-zero numbers.", "out": "且丽举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then increase all numbers by 10, then strip the zeros.", "out": "且丽举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then add 10 to everything, then keep only non-zero numbers.", "out": "且丽举"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give everything a boost of 10, then strip the zeros.", "out": "且丽举"} {"kind": "builder", "in": "且丽举", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "且丽举", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add ten to each, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort largest to smallest, then make each twice as big.", "out": "与专丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort by descending values, then multiply each by 2.", "out": "与专丈"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort from highest to lowest, then make each twice as big.", "out": "与专丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort descending, then multiply each by 2.", "out": "与专丈"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort largest first, then make each twice as big.", "out": "与专丈"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort in descending order, then multiply each by 2.", "out": "与专丈"} {"kind": "builder", "in": "与专丈", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "与专丈", "out": "Take a list of integers; negate each, then sort descending, then double each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep only odd values, then arrange in decreasing order.", "out": "么丁专"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then eliminate the even numbers, then arrange in descending order.", "out": "么丁专"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep only odd values, then reverse sort.", "out": "么丁专"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then eliminate the even numbers, then sort largest to smallest.", "out": "么丁专"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep only odd values, then sort by descending values.", "out": "么丁专"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then eliminate the even numbers, then sort from highest to lowest.", "out": "么丁专"} {"kind": "builder", "in": "么丁专", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "么丁专", "out": "Take a list of integers; if empty, use a single zero, then keep the odd numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then sort smallest to largest, then arrange in decreasing order.", "out": "举丑专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Ascending sort, then arrange in descending order.", "out": "举丑专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Sort this ascending, then reverse sort.", "out": "举丑专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Sort lowest to highest, then sort largest to smallest.", "out": "举丑专"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then Arrange from smallest to largest, then sort by descending values.", "out": "举丑专"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then sort ascending, then sort from highest to lowest.", "out": "举丑专"} {"kind": "builder", "in": "举丑专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = sorted(r)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "举丑专", "out": "Take a list of integers; drop the zeros, then sort ascending, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep values divisible by 3, then keep only numbers above 5.", "out": "丁串主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep items where x mod 3 equals zero, then exclude values of 5 and below.", "out": "丁串主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then drop anything not divisible by three, then remove anything 5 or less.", "out": "丁串主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then filter out everything except multiples of three, then filter to keep only values above 5.", "out": "丁串主"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep only multiples of three, then get rid of values that aren't greater than five.", "out": "丁串主"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiples of three only, then drop anything 5 or below.", "out": "丁串主"} {"kind": "builder", "in": "丁串主", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x > 5]\n return r"} {"kind": "translator", "in": "丁串主", "out": "Take a list of integers; keep the odd numbers, then keep multiples of three, then keep values greater than five."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then decrement each value, then limit every value to 10.", "out": "下不丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Lower each number by one, then maximum of 10 for all.", "out": "下不丘"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then reduce each by one, then limit every value to 10.", "out": "下不丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Subtract 1 from all, then maximum of 10 for all.", "out": "下不丘"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then Subtract one from each, then limit every value to 10.", "out": "下不丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then Drop each by one, then maximum of 10 for all.", "out": "下不丘"} {"kind": "builder", "in": "下不丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x - 1 for x in r]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "下不丘", "out": "Take a list of integers; add one to each, then subtract one from each, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then take the final 3 elements, then multiply each by -1.", "out": "乂丹与"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then drop everything except the final three, then negate.", "out": "乂丹与"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then give me the last three elements, then multiply each by -1.", "out": "乂丹与"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep only the last three, then negate.", "out": "乂丹与"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then keep the final three items, then multiply each by -1.", "out": "乂丹与"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then take the last three, then negate.", "out": "乂丹与"} {"kind": "builder", "in": "乂丹与", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[-3:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "乂丹与", "out": "Take a list of integers; take values while they are positive, then keep only the last three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values below zero, then stop at the first non-positive value.", "out": "乃万乂"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then get the negative numbers, then keep the leading run of positive numbers.", "out": "乃万乂"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep values below zero, then take values while they are positive.", "out": "乃万乂"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then get the negative numbers, then take positive values then stop.", "out": "乃万乂"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep values below zero, then keep going while positive.", "out": "乃万乂"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the negative numbers, then stop at first non positive.", "out": "乃万乂"} {"kind": "builder", "in": "乃万乂", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "乃万乂", "out": "Take a list of integers; drop the leading negative values, then keep the negative numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first item, then give back the total.", "out": "丁世丙"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Remove head, then sum r.", "out": "丁世丙"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first item, then add them up.", "out": "丁世丙"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Remove head, then calculate the sum of all elements.", "out": "丁世丙"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then remove the first item, then what's the total.", "out": "丁世丙"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then Remove head, then what do they add up to.", "out": "丁世丙"} {"kind": "builder", "in": "丁世丙", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[1:]\n return sum(r)"} {"kind": "translator", "in": "丁世丙", "out": "Take a list of integers; keep the odd numbers, then drop the first element, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep values divisible by 3, then remove the initial run of negative numbers.", "out": "义串乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then keep items where x mod 3 equals zero, then strip the front negatives.", "out": "义串乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then drop anything not divisible by three, then remove leading negative numbers.", "out": "义串乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then filter out everything except multiples of three, then drop negatives from start.", "out": "义串乃"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then keep only multiples of three, then strip negative values from the start.", "out": "义串乃"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiples of three only, then remove negatives before the first non-negative.", "out": "义串乃"} {"kind": "builder", "in": "义串乃", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x % 3 == 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "义串乃", "out": "Take a list of integers; pad with zeros to at least three elements, then keep multiples of three, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then cut the list at the first zero, then put the elements backwards.", "out": "九久丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then cut off after the first zero appears, then reverse that for me.", "out": "九久丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then take values up to (excluding) the first zero, then flip it backwards.", "out": "九久丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep the part before the first 0, then make it backwards.", "out": "九久丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then truncate at the first zero, then reverse the list.", "out": "九久丐"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then delete everything starting with the first zero, then invert the sequence.", "out": "九久丐"} {"kind": "builder", "in": "九久丐", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "九久丐", "out": "Take a list of people records (name, age); extract the ages, then keep everything before the first zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then remove all zero values, then drop the even numbers.", "out": "么举丁"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then exclude zeros, then strip out the evens.", "out": "么举丁"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then remove all zero values, then drop the even numbers.", "out": "么举丁"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then exclude zeros, then strip out the evens.", "out": "么举丁"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then remove all zero values, then drop the even numbers.", "out": "么举丁"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then exclude zeros, then strip out the evens.", "out": "么举丁"} {"kind": "builder", "in": "么举丁", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x != 0]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "么举丁", "out": "Take a list of integers; if empty, use a single zero, then drop the zeros, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then order by distance from zero, then take values up to (excluding) the first zero.", "out": "丑丸久"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then sort based on absolute value, then keep the part before the first 0.", "out": "丑丸久"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then organize by magnitude, then truncate at the first zero.", "out": "丑丸久"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then arrange by absolute value ascending, then delete everything starting with the first zero.", "out": "丑丸久"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then sort from smallest to largest absolute value, then remove from the first zero onwards.", "out": "丑丸久"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then sort by absolute value, then up to but not including the first zero.", "out": "丑丸久"} {"kind": "builder", "in": "丑丸久", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = sorted(r, key=abs)\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丑丸久", "out": "Take a list of integers; sort ascending, then sort by absolute value, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then keep values below zero, then stop at the first non-positive value.", "out": "么万乂"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then get the negative numbers, then keep the leading run of positive numbers.", "out": "么万乂"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then keep values below zero, then take values while they are positive.", "out": "么万乂"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then get the negative numbers, then take positive values then stop.", "out": "么万乂"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then keep values below zero, then keep going while positive.", "out": "么万乂"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then get the negative numbers, then stop at first non positive.", "out": "么万乂"} {"kind": "builder", "in": "么万乂", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x for x in r if x < 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "么万乂", "out": "Take a list of integers; if empty, use a single zero, then keep the negative numbers, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only even values, then arrange in decreasing order.", "out": "久一专"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then extract all even numbers, then arrange in descending order.", "out": "久一专"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only even values, then reverse sort.", "out": "久一专"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then extract all even numbers, then sort largest to smallest.", "out": "久一专"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only even values, then sort by descending values.", "out": "久一专"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then extract all even numbers, then sort from highest to lowest.", "out": "久一专"} {"kind": "builder", "in": "久一专", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 == 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "久一专", "out": "Take a list of integers; keep everything before the first zero, then keep the even numbers, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then cut the list at the first zero, then stop at the first non-positive value.", "out": "且久乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off after the first zero appears, then keep the leading run of positive numbers.", "out": "且久乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take values up to (excluding) the first zero, then take values while they are positive.", "out": "且久乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the part before the first 0, then take positive values then stop.", "out": "且久乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate at the first zero, then keep going while positive.", "out": "且久乂"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then delete everything starting with the first zero, then stop at first non positive.", "out": "且久乂"} {"kind": "builder", "in": "且久乂", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "且久乂", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep everything before the first zero, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then strip the signs.", "out": "举世丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then take abs of each.", "out": "举世丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then get the absolute value of everything.", "out": "举世丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then apply absolute value to the whole list.", "out": "举世丏"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then remove the first item, then make them all positive.", "out": "举世丏"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then Remove head, then make every value non-negative.", "out": "举世丏"} {"kind": "builder", "in": "举世丏", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[1:]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "举世丏", "out": "Take a list of integers; drop the zeros, then drop the first element, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then arrange in decreasing order.", "out": "且世专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then arrange in descending order.", "out": "且世专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then reverse sort.", "out": "且世专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then sort largest to smallest.", "out": "且世专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then remove the first item, then sort by descending values.", "out": "且世专"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Remove head, then sort from highest to lowest.", "out": "且世专"} {"kind": "builder", "in": "且世专", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[1:]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "且世专", "out": "Take a list of integers; drop duplicates keeping first occurrence, then drop the first element, then sort descending."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "九丘义"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "九丘义"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "九丘义"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "九丘义"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then clamp each to at most ten, then ensure at least three items by appending zeros.", "out": "九丘义"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then don't let anything exceed 10, then ensure minimum length of three by adding zeros to the end.", "out": "九丘义"} {"kind": "builder", "in": "九丘义", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [min(x, 10) for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "九丘义", "out": "Take a list of people records (name, age); extract the ages, then cap each value at 10, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then sort largest to smallest, then arrange by magnitude ignoring sign.", "out": "丏专丸"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then sort by descending values, then put them in order by magnitude.", "out": "丏专丸"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then sort from highest to lowest, then arrange in order of absolute value.", "out": "丏专丸"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then sort descending, then sort by distance from zero.", "out": "丏专丸"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then sort largest first, then order by how far from zero.", "out": "丏专丸"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then sort in descending order, then order by distance from zero.", "out": "丏专丸"} {"kind": "builder", "in": "丏专丸", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = sorted(r, reverse=True)\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "丏专丸", "out": "Take a list of integers; take the absolute value of each, then sort descending, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then multiply each by two, then drop the odd numbers.", "out": "丸丈一"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then double each item in the list, then filter out the odd numbers.", "out": "丸丈一"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then multiply each by two, then drop the odd numbers.", "out": "丸丈一"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then double each item in the list, then filter out the odd numbers.", "out": "丸丈一"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then multiply each by two, then drop the odd numbers.", "out": "丸丈一"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then double each item in the list, then filter out the odd numbers.", "out": "丸丈一"} {"kind": "builder", "in": "丸丈一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丸丈一", "out": "Take a list of integers; sort by absolute value, then double each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then extend to length 3 using zeros, then give the earliest even value or zero.", "out": "丹义乒"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then pad to 3, then fetch the first even element, default to 0.", "out": "丹义乒"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then extend to length 3 using zeros, then give the earliest even value or zero.", "out": "丹义乒"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then pad to 3, then fetch the first even element, default to 0.", "out": "丹义乒"} {"kind": "speaker", "in": "Take a list of integers; last three only, then extend to length 3 using zeros, then give the earliest even value or zero.", "out": "丹义乒"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then pad to 3, then fetch the first even element, default to 0.", "out": "丹义乒"} {"kind": "builder", "in": "丹义乒", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丹义乒", "out": "Take a list of integers; keep only the last three, then pad with zeros to at least three elements, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then multiply each value by itself, then arrange in decreasing order.", "out": "乃上专"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then square them all, then arrange in descending order.", "out": "乃上专"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then raise each to the power of two, then reverse sort.", "out": "乃上专"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then I need each number multiplied by itself, then sort largest to smallest.", "out": "乃上专"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then square all of them, then sort by descending values.", "out": "乃上专"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then multiply each element by itself, then sort from highest to lowest.", "out": "乃上专"} {"kind": "builder", "in": "乃上专", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x * x for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "乃上专", "out": "Take a list of integers; drop the leading negative values, then square each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then cut the list at the first zero, then truncate to three items.", "out": "且久丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then cut off after the first zero appears, then show the first three.", "out": "且久丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then take values up to (excluding) the first zero, then take the first three.", "out": "且久丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep the part before the first 0, then keep first 3.", "out": "且久丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then truncate at the first zero, then truncate to first three.", "out": "且久丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then delete everything starting with the first zero, then first three.", "out": "且久丕"} {"kind": "builder", "in": "且久丕", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r[:r.index(0)] if 0 in r else r\n r = r[:3]\n return r"} {"kind": "translator", "in": "且久丕", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep everything before the first zero, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then order by distance from zero, then give back the total.", "out": "世丸丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort based on absolute value, then sum r.", "out": "世丸丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then organize by magnitude, then add them up.", "out": "世丸丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then arrange by absolute value ascending, then calculate the sum of all elements.", "out": "世丸丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from smallest to largest absolute value, then what's the total.", "out": "世丸丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by absolute value, then what do they add up to.", "out": "世丸丙"} {"kind": "builder", "in": "世丸丙", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, key=abs)\n return sum(r)"} {"kind": "translator", "in": "世丸丙", "out": "Take a list of integers; drop the first element, then sort by absolute value, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the final 3 elements, then multiply each by -1.", "out": "上丹与"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then drop everything except the final three, then negate.", "out": "上丹与"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give me the last three elements, then multiply each by -1.", "out": "上丹与"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep only the last three, then negate.", "out": "上丹与"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep the final three items, then multiply each by -1.", "out": "上丹与"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the last three, then negate.", "out": "上丹与"} {"kind": "builder", "in": "上丹与", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[-3:]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "上丹与", "out": "Take a list of integers; square each, then keep only the last three, then negate each."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then skip negatives at the start, then trim one element off each end.", "out": "丹乃为"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then remove all negatives at the front, then cut off the first and last.", "out": "丹乃为"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then remove the initial run of negative numbers, then remove the first and last elements.", "out": "丹乃为"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then strip the front negatives, then keep only the middle part.", "out": "丹乃为"} {"kind": "speaker", "in": "Take a list of integers; last three only, then remove leading negative numbers, then drop first and last.", "out": "丹乃为"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then drop negatives from start, then eliminate the outermost elements.", "out": "丹乃为"} {"kind": "builder", "in": "丹乃为", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "丹乃为", "out": "Take a list of integers; keep only the last three, then drop the leading negative values, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then remove the initial run of negative numbers.", "out": "下丁乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then strip the front negatives.", "out": "下丁乃"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then remove leading negative numbers.", "out": "下丁乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then drop negatives from start.", "out": "下丁乃"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then keep only odd values, then strip negative values from the start.", "out": "下丁乃"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then eliminate the even numbers, then remove negatives before the first non-negative.", "out": "下丁乃"} {"kind": "builder", "in": "下丁乃", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "下丁乃", "out": "Take a list of integers; add one to each, then keep the odd numbers, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then cut the list at the first zero, then arrange in increasing order.", "out": "下久丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off after the first zero appears, then Organize these ascending.", "out": "下久丑"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then take values up to (excluding) the first zero, then Sort in ascending order.", "out": "下久丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep the part before the first 0, then I need this sorted ascending.", "out": "下久丑"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then truncate at the first zero, then Put these in ascending order.", "out": "下久丑"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then delete everything starting with the first zero, then sort smallest to largest.", "out": "下久丑"} {"kind": "builder", "in": "下久丑", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = sorted(r)\n return r"} {"kind": "translator", "in": "下久丑", "out": "Take a list of integers; add one to each, then keep everything before the first zero, then sort ascending."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep values divisible by 3, then drop non-negative values.", "out": "世串万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep items where x mod 3 equals zero, then drop all positive numbers.", "out": "世串万"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then drop anything not divisible by three, then drop non-negative values.", "out": "世串万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then filter out everything except multiples of three, then drop all positive numbers.", "out": "世串万"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then keep only multiples of three, then drop non-negative values.", "out": "世串万"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then multiples of three only, then drop all positive numbers.", "out": "世串万"} {"kind": "builder", "in": "世串万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "世串万", "out": "Take a list of integers; drop the first element, then keep multiples of three, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then flip the list around, then give the number of evens.", "out": "串丐乓"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then flip the order around, then find how many values are divisible by two.", "out": "串丐乓"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then put the elements backwards, then how many are even.", "out": "串丐乓"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then reverse that for me, then get the total number of even values in the list.", "out": "串丐乓"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then flip it backwards, then give me the count of even values.", "out": "串丐乓"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then make it backwards, then I need to know how many of these are even.", "out": "串丐乓"} {"kind": "builder", "in": "串丐乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(reversed(r))\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "串丐乓", "out": "Take a list of integers; keep multiples of three, then reverse the order, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then keep only even values, then keep only non-zero numbers.", "out": "专一举"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then extract all even numbers, then strip the zeros.", "out": "专一举"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then keep only even values, then keep only non-zero numbers.", "out": "专一举"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then extract all even numbers, then strip the zeros.", "out": "专一举"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then keep only even values, then keep only non-zero numbers.", "out": "专一举"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then extract all even numbers, then strip the zeros.", "out": "专一举"} {"kind": "builder", "in": "专一举", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [x for x in r if x % 2 == 0]\n r = [x for x in r if x != 0]\n return r"} {"kind": "translator", "in": "专一举", "out": "Take a list of integers; sort descending, then keep the even numbers, then drop the zeros."} {"kind": "speaker", "in": "Take a list of integers; double each, then take the final 3 elements, then drop anything not divisible by three.", "out": "丈丹串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then drop everything except the final three, then filter out everything except multiples of three.", "out": "丈丹串"} {"kind": "speaker", "in": "Take a list of integers; double each, then give me the last three elements, then keep only multiples of three.", "out": "丈丹串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then keep only the last three, then multiples of three only.", "out": "丈丹串"} {"kind": "speaker", "in": "Take a list of integers; double each, then keep the final three items, then filter for numbers divisible by three.", "out": "丈丹串"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then take the last three, then give me only the values divisible by three.", "out": "丈丹串"} {"kind": "builder", "in": "丈丹串", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "丈丹串", "out": "Take a list of integers; double each, then keep only the last three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then decrement each value, then arrange in decreasing order.", "out": "丏不专"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then Lower each number by one, then arrange in descending order.", "out": "丏不专"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then reduce each by one, then reverse sort.", "out": "丏不专"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then Subtract 1 from all, then sort largest to smallest.", "out": "丏不专"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then Subtract one from each, then sort by descending values.", "out": "丏不专"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then Drop each by one, then sort from highest to lowest.", "out": "丏不专"} {"kind": "builder", "in": "丏不专", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丏不专", "out": "Take a list of integers; take the absolute value of each, then subtract one from each, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then make every value non-negative, then true if any value equals zero.", "out": "一丏乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then absolute value for all items, then check for zero.", "out": "一丏乍"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take absolute values, then true if any value equals zero.", "out": "一丏乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then turn negatives into positives, then check for zero.", "out": "一丏乍"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then abs each element, then true if any value equals zero.", "out": "一丏乍"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the absolute value of each, then check for zero.", "out": "一丏乍"} {"kind": "builder", "in": "一丏乍", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [abs(x) for x in r]\n return 0 in r"} {"kind": "translator", "in": "一丏乍", "out": "Take a list of integers; keep the even numbers, then take the absolute value of each, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then skip negatives at the start, then true if every value is unique.", "out": "丐乃乏"} {"kind": "speaker", "in": "Take a list of integers; reverse, then remove all negatives at the front, then check for duplicates in the values.", "out": "丐乃乏"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove the initial run of negative numbers, then do all values appear only once.", "out": "丐乃乏"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then strip the front negatives, then check that there are no duplicates.", "out": "丐乃乏"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove leading negative numbers, then are the values all unique.", "out": "丐乃乏"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then drop negatives from start, then check if all values are unique.", "out": "丐乃乏"} {"kind": "builder", "in": "丐乃乏", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "丐乃乏", "out": "Take a list of integers; reverse the order, then drop the leading negative values, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then drop anything 5 or below, then limit every value to 10.", "out": "丸主丘"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep only numbers greater than 5, then maximum of 10 for all.", "out": "丸主丘"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then filter for numbers above 5, then limit every value to 10.", "out": "丸主丘"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then give me values where x is greater than 5, then maximum of 10 for all.", "out": "丸主丘"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then show me only the values that are bigger than five, then limit every value to 10.", "out": "丸主丘"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then keep values greater than five, then maximum of 10 for all.", "out": "丸主丘"} {"kind": "builder", "in": "丸主丘", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丸主丘", "out": "Take a list of integers; sort by absolute value, then keep values greater than five, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove repeated values, then true only if all are positive.", "out": "丽且乌"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then unique values preserving order, then do all of these have positive values.", "out": "丽且乌"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove repeated values, then check if every value is positive.", "out": "丽且乌"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then unique values preserving order, then confirm all values are positive.", "out": "丽且乌"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove repeated values, then all positive.", "out": "丽且乌"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then unique values preserving order, then check if every number is above zero.", "out": "丽且乌"} {"kind": "builder", "in": "丽且乌", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丽且乌", "out": "Take a list of integers; add ten to each, then drop duplicates keeping first occurrence, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then extend to length 3 using zeros, then truncate to the last three items.", "out": "么义丹"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then pad to 3, then show only the last three.", "out": "么义丹"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then extend to length 3 using zeros, then remove all but the last three.", "out": "么义丹"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then pad to 3, then take the final 3 elements.", "out": "么义丹"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then extend to length 3 using zeros, then drop everything except the final three.", "out": "么义丹"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then pad to 3, then give me the last three elements.", "out": "么义丹"} {"kind": "builder", "in": "么义丹", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = r[-3:]\n return r"} {"kind": "translator", "in": "么义丹", "out": "Take a list of integers; if empty, use a single zero, then pad with zeros to at least three elements, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep the leading run of positive numbers, then strip the signs.", "out": "久乂丏"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then take values while they are positive, then take abs of each.", "out": "久乂丏"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then take positive values then stop, then get the absolute value of everything.", "out": "久乂丏"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then keep going while positive, then apply absolute value to the whole list.", "out": "久乂丏"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then stop at first non positive, then make them all positive.", "out": "久乂丏"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then take while greater than zero, then make every value non-negative.", "out": "久乂丏"} {"kind": "builder", "in": "久乂丏", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "久乂丏", "out": "Take a list of integers; keep everything before the first zero, then take values while they are positive, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then default to [0] when there is nothing, then stop at the first non-positive value.", "out": "主么乂"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then when the list is empty, substitute a zero value, then keep the leading run of positive numbers.", "out": "主么乂"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then replace an empty list with one zero, then take values while they are positive.", "out": "主么乂"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then zero it out if it's empty, then take positive values then stop.", "out": "主么乂"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then use zero if the list is empty, then keep going while positive.", "out": "主么乂"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then default to zero when empty, then stop at first non positive.", "out": "主么乂"} {"kind": "builder", "in": "主么乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r if r else [0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "主么乂", "out": "Take a list of integers; keep values greater than five, then if empty, use a single zero, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then increase every value by 10, then drop the odd numbers.", "out": "丁丽一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then add 10 to each item, then filter out the odd numbers.", "out": "丁丽一"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then shift each up by ten, then drop the odd numbers.", "out": "丁丽一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then increase all numbers by 10, then filter out the odd numbers.", "out": "丁丽一"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then add 10 to everything, then drop the odd numbers.", "out": "丁丽一"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then give everything a boost of 10, then filter out the odd numbers.", "out": "丁丽一"} {"kind": "builder", "in": "丁丽一", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x + 10 for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丁丽一", "out": "Take a list of integers; keep the odd numbers, then add ten to each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then clamp each to at most ten, then truncate to three items.", "out": "主丘丕"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then don't let anything exceed 10, then show the first three.", "out": "主丘丕"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then clamp each to at most ten, then take the first three.", "out": "主丘丕"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then don't let anything exceed 10, then keep first 3.", "out": "主丘丕"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then clamp each to at most ten, then truncate to first three.", "out": "主丘丕"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then don't let anything exceed 10, then first three.", "out": "主丘丕"} {"kind": "builder", "in": "主丘丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [min(x, 10) for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "主丘丕", "out": "Take a list of integers; keep values greater than five, then cap each value at 10, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then take the final 3 elements, then take values up to (excluding) the first zero.", "out": "一丹久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then drop everything except the final three, then keep the part before the first 0.", "out": "一丹久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then give me the last three elements, then truncate at the first zero.", "out": "一丹久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then keep only the last three, then delete everything starting with the first zero.", "out": "一丹久"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then keep the final three items, then remove from the first zero onwards.", "out": "一丹久"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then take the last three, then up to but not including the first zero.", "out": "一丹久"} {"kind": "builder", "in": "一丹久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = r[-3:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "一丹久", "out": "Take a list of integers; keep the even numbers, then keep only the last three, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values divisible by 3, then raise each to the power of two.", "out": "主串上"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then keep items where x mod 3 equals zero, then I need each number multiplied by itself.", "out": "主串上"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then drop anything not divisible by three, then square all of them.", "out": "主串上"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then filter out everything except multiples of three, then multiply each element by itself.", "out": "主串上"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only multiples of three, then make each one squared.", "out": "主串上"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiples of three only, then square each value in the list.", "out": "主串上"} {"kind": "builder", "in": "主串上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "主串上", "out": "Take a list of integers; keep values greater than five, then keep multiples of three, then square each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each value by itself, then remove the initial run of negative numbers.", "out": "与上乃"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then square them all, then strip the front negatives.", "out": "与上乃"} {"kind": "speaker", "in": "Take a list of integers; negate each, then raise each to the power of two, then remove leading negative numbers.", "out": "与上乃"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then I need each number multiplied by itself, then drop negatives from start.", "out": "与上乃"} {"kind": "speaker", "in": "Take a list of integers; negate each, then square all of them, then strip negative values from the start.", "out": "与上乃"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiply each element by itself, then remove negatives before the first non-negative.", "out": "与上乃"} {"kind": "builder", "in": "与上乃", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return r"} {"kind": "translator", "in": "与上乃", "out": "Take a list of integers; negate each, then square each, then drop the leading negative values."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then remove the first item, then drop the even numbers.", "out": "主世丁"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Remove head, then strip out the evens.", "out": "主世丁"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then remove the first item, then drop the even numbers.", "out": "主世丁"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Remove head, then strip out the evens.", "out": "主世丁"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then remove the first item, then drop the even numbers.", "out": "主世丁"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then Remove head, then strip out the evens.", "out": "主世丁"} {"kind": "builder", "in": "主世丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[1:]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "主世丁", "out": "Take a list of integers; keep values greater than five, then drop the first element, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove repeated values, then truncate to the last three items.", "out": "乂且丹"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then unique values preserving order, then show only the last three.", "out": "乂且丹"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove repeated values, then remove all but the last three.", "out": "乂且丹"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then unique values preserving order, then take the final 3 elements.", "out": "乂且丹"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove repeated values, then drop everything except the final three.", "out": "乂且丹"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then unique values preserving order, then give me the last three elements.", "out": "乂且丹"} {"kind": "builder", "in": "乂且丹", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(dict.fromkeys(r))\n r = r[-3:]\n return r"} {"kind": "translator", "in": "乂且丹", "out": "Take a list of integers; take values while they are positive, then drop duplicates keeping first occurrence, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then remove repeated values, then make each twice as big.", "out": "丐且丈"} {"kind": "speaker", "in": "Take a list of integers; reverse, then unique values preserving order, then multiply each by 2.", "out": "丐且丈"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then remove repeated values, then make each twice as big.", "out": "丐且丈"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then unique values preserving order, then multiply each by 2.", "out": "丐且丈"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then remove repeated values, then make each twice as big.", "out": "丐且丈"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then unique values preserving order, then multiply each by 2.", "out": "丐且丈"} {"kind": "builder", "in": "丐且丈", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = list(dict.fromkeys(r))\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "丐且丈", "out": "Take a list of integers; reverse the order, then drop duplicates keeping first occurrence, then double each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then find the max, defaulting to 0.", "out": "与一业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then Give me the maximum, but 0 if there are no items.", "out": "与一业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then What's the highest number in the list.", "out": "与一业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then Return the greatest value or default to 0.", "out": "与一业"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only even values, then Find the largest element, defaulting to zero.", "out": "与一业"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then extract all even numbers, then give the largest value (0 if none).", "out": "与一业"} {"kind": "builder", "in": "与一业", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 2 == 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "与一业", "out": "Take a list of integers; negate each, then keep the even numbers, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then cut the list at the first zero, then make each twice as big.", "out": "乂久丈"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then cut off after the first zero appears, then multiply each by 2.", "out": "乂久丈"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then take values up to (excluding) the first zero, then make each twice as big.", "out": "乂久丈"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then keep the part before the first 0, then multiply each by 2.", "out": "乂久丈"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then truncate at the first zero, then make each twice as big.", "out": "乂久丈"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then delete everything starting with the first zero, then multiply each by 2.", "out": "乂久丈"} {"kind": "builder", "in": "乂久丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乂久丈", "out": "Take a list of integers; take values while they are positive, then keep everything before the first zero, then double each."} {"kind": "speaker", "in": "Take a list of integers; square each, then multiply each by two, then drop non-negative values.", "out": "上丈万"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then double each item in the list, then drop all positive numbers.", "out": "上丈万"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then multiply each by two, then drop non-negative values.", "out": "上丈万"} {"kind": "speaker", "in": "Take a list of integers; square them all, then double each item in the list, then drop all positive numbers.", "out": "上丈万"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then multiply each by two, then drop non-negative values.", "out": "上丈万"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then double each item in the list, then drop all positive numbers.", "out": "上丈万"} {"kind": "builder", "in": "上丈万", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x * 2 for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "上丈万", "out": "Take a list of integers; square each, then double each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove both ends, then limit every value to 10.", "out": "下为丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then trim the edges, then maximum of 10 for all.", "out": "下为丘"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then trim one element off each end, then limit every value to 10.", "out": "下为丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then cut off the first and last, then maximum of 10 for all.", "out": "下为丘"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then remove the first and last elements, then limit every value to 10.", "out": "下为丘"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then keep only the middle part, then maximum of 10 for all.", "out": "下为丘"} {"kind": "builder", "in": "下为丘", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = r[1:-1]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "下为丘", "out": "Take a list of integers; add one to each, then drop the first and last elements, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then take the final 3 elements, then give back the product of all values.", "out": "丁丹乐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then drop everything except the final three, then product of the list.", "out": "丁丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then give me the last three elements, then what's the product.", "out": "丁丹乐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then keep only the last three, then what do they multiply to.", "out": "丁丹乐"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then keep the final three items, then give me their product.", "out": "丁丹乐"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then take the last three, then multiply them all together.", "out": "丁丹乐"} {"kind": "builder", "in": "丁丹乐", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r[-3:]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丁丹乐", "out": "Take a list of integers; keep the odd numbers, then keep only the last three, then return their product."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then cut the list at the first zero, then find the max, defaulting to 0.", "out": "为久业"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then cut off after the first zero appears, then Give me the maximum, but 0 if there are no items.", "out": "为久业"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then take values up to (excluding) the first zero, then What's the highest number in the list.", "out": "为久业"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the part before the first 0, then Return the greatest value or default to 0.", "out": "为久业"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then truncate at the first zero, then Find the largest element, defaulting to zero.", "out": "为久业"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then delete everything starting with the first zero, then give the largest value (0 if none).", "out": "为久业"} {"kind": "builder", "in": "为久业", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = r[:r.index(0)] if 0 in r else r\n return max(r) if r else 0"} {"kind": "translator", "in": "为久业", "out": "Take a list of integers; drop the first and last elements, then keep everything before the first zero, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value, then take values up to (excluding) the first zero.", "out": "主下久"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all, then keep the part before the first 0.", "out": "主下久"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value, then truncate at the first zero.", "out": "主下久"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all, then delete everything starting with the first zero.", "out": "主下久"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value, then remove from the first zero onwards.", "out": "主下久"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all, then up to but not including the first zero.", "out": "主下久"} {"kind": "builder", "in": "主下久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "主下久", "out": "Take a list of integers; keep values greater than five, then add one to each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then cut the list at the first zero, then limit every value to 10.", "out": "丕久丘"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then cut off after the first zero appears, then maximum of 10 for all.", "out": "丕久丘"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then take values up to (excluding) the first zero, then limit every value to 10.", "out": "丕久丘"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then keep the part before the first 0, then maximum of 10 for all.", "out": "丕久丘"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then truncate at the first zero, then limit every value to 10.", "out": "丕久丘"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then delete everything starting with the first zero, then maximum of 10 for all.", "out": "丕久丘"} {"kind": "builder", "in": "丕久丘", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = r[:r.index(0)] if 0 in r else r\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丕久丘", "out": "Take a list of integers; keep only the first three, then keep everything before the first zero, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort smallest to largest, then drop the odd numbers.", "out": "世丑一"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Ascending sort, then filter out the odd numbers.", "out": "世丑一"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Sort this ascending, then drop the odd numbers.", "out": "世丑一"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then Sort lowest to highest, then filter out the odd numbers.", "out": "世丑一"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then Arrange from smallest to largest, then drop the odd numbers.", "out": "世丑一"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort ascending, then filter out the odd numbers.", "out": "世丑一"} {"kind": "builder", "in": "世丑一", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r)\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "世丑一", "out": "Take a list of integers; drop the first element, then sort ascending, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then sort largest to smallest, then truncate to three items.", "out": "丐专丕"} {"kind": "speaker", "in": "Take a list of integers; reverse, then sort by descending values, then show the first three.", "out": "丐专丕"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then sort from highest to lowest, then take the first three.", "out": "丐专丕"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then sort descending, then keep first 3.", "out": "丐专丕"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then sort largest first, then truncate to first three.", "out": "丐专丕"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then sort in descending order, then first three.", "out": "丐专丕"} {"kind": "builder", "in": "丐专丕", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = sorted(r, reverse=True)\n r = r[:3]\n return r"} {"kind": "translator", "in": "丐专丕", "out": "Take a list of integers; reverse the order, then sort descending, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then drop anything 5 or below, then give back the total.", "out": "不主丙"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep only numbers greater than 5, then sum r.", "out": "不主丙"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then filter for numbers above 5, then add them up.", "out": "不主丙"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then give me values where x is greater than 5, then calculate the sum of all elements.", "out": "不主丙"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then show me only the values that are bigger than five, then what's the total.", "out": "不主丙"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep values greater than five, then what do they add up to.", "out": "不主丙"} {"kind": "builder", "in": "不主丙", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x > 5]\n return sum(r)"} {"kind": "translator", "in": "不主丙", "out": "Take a list of integers; subtract one from each, then keep values greater than five, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then default to [0] when there is nothing, then limit every value to 10.", "out": "丐么丘"} {"kind": "speaker", "in": "Take a list of integers; reverse, then when the list is empty, substitute a zero value, then maximum of 10 for all.", "out": "丐么丘"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then replace an empty list with one zero, then limit every value to 10.", "out": "丐么丘"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then zero it out if it's empty, then maximum of 10 for all.", "out": "丐么丘"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then use zero if the list is empty, then limit every value to 10.", "out": "丐么丘"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then default to zero when empty, then maximum of 10 for all.", "out": "丐么丘"} {"kind": "builder", "in": "丐么丘", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = r if r else [0]\n r = [min(x, 10) for x in r]\n return r"} {"kind": "translator", "in": "丐么丘", "out": "Take a list of integers; reverse the order, then if empty, use a single zero, then cap each value at 10."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then cut the list at the first zero, then strip the signs.", "out": "专久丏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then cut off after the first zero appears, then take abs of each.", "out": "专久丏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then take values up to (excluding) the first zero, then get the absolute value of everything.", "out": "专久丏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then keep the part before the first 0, then apply absolute value to the whole list.", "out": "专久丏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then truncate at the first zero, then make them all positive.", "out": "专久丏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then delete everything starting with the first zero, then make every value non-negative.", "out": "专久丏"} {"kind": "builder", "in": "专久丏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = r[:r.index(0)] if 0 in r else r\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "专久丏", "out": "Take a list of integers; sort descending, then keep everything before the first zero, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then keep the leading run of positive numbers, then truncate to three items.", "out": "举乂丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take values while they are positive, then show the first three.", "out": "举乂丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then take positive values then stop, then take the first three.", "out": "举乂丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then keep going while positive, then keep first 3.", "out": "举乂丕"} {"kind": "speaker", "in": "Take a list of integers; drop the zeros, then stop at first non positive, then truncate to first three.", "out": "举乂丕"} {"kind": "speaker", "in": "Take a list of integers; keep only nonzero elements, then take while greater than zero, then first three.", "out": "举乂丕"} {"kind": "builder", "in": "举乂丕", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x != 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:3]\n return r"} {"kind": "translator", "in": "举乂丕", "out": "Take a list of integers; drop the zeros, then take values while they are positive, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; drop the leading negative values, then keep values below zero, then truncate to the last three items.", "out": "乃万丹"} {"kind": "speaker", "in": "Take a list of integers; cut the leading negatives, then get the negative numbers, then show only the last three.", "out": "乃万丹"} {"kind": "speaker", "in": "Take a list of integers; skip negatives at the start, then keep values below zero, then remove all but the last three.", "out": "乃万丹"} {"kind": "speaker", "in": "Take a list of integers; remove all negatives at the front, then get the negative numbers, then take the final 3 elements.", "out": "乃万丹"} {"kind": "speaker", "in": "Take a list of integers; remove the initial run of negative numbers, then keep values below zero, then drop everything except the final three.", "out": "乃万丹"} {"kind": "speaker", "in": "Take a list of integers; strip the front negatives, then get the negative numbers, then give me the last three elements.", "out": "乃万丹"} {"kind": "builder", "in": "乃万丹", "out": "def solve(xs):\n r = list(xs)\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n r = [x for x in r if x < 0]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "乃万丹", "out": "Take a list of integers; drop the leading negative values, then keep the negative numbers, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then skip negatives at the start, then count the elements.", "out": "世乃东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove all negatives at the front, then how many items remain.", "out": "世乃东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove the initial run of negative numbers, then tell me the length.", "out": "世乃东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then strip the front negatives, then return the length.", "out": "世乃东"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then remove leading negative numbers, then count them.", "out": "世乃东"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then drop negatives from start, then what's the count.", "out": "世乃东"} {"kind": "builder", "in": "世乃东", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return len(r)"} {"kind": "translator", "in": "世乃东", "out": "Take a list of integers; drop the first element, then drop the leading negative values, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then multiply each value by itself, then skip the first one.", "out": "下上世"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then square them all, then Discard the first element.", "out": "下上世"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then raise each to the power of two, then skip the first one.", "out": "下上世"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then I need each number multiplied by itself, then Discard the first element.", "out": "下上世"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then square all of them, then skip the first one.", "out": "下上世"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then multiply each element by itself, then Discard the first element.", "out": "下上世"} {"kind": "builder", "in": "下上世", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x * x for x in r]\n r = r[1:]\n return r"} {"kind": "translator", "in": "下上世", "out": "Take a list of integers; add one to each, then square each, then drop the first element."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove all zero values, then arrange in decreasing order.", "out": "丽举专"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then exclude zeros, then arrange in descending order.", "out": "丽举专"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove all zero values, then reverse sort.", "out": "丽举专"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then exclude zeros, then sort largest to smallest.", "out": "丽举专"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove all zero values, then sort by descending values.", "out": "丽举专"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then exclude zeros, then sort from highest to lowest.", "out": "丽举专"} {"kind": "builder", "in": "丽举专", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x != 0]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "丽举专", "out": "Take a list of integers; add ten to each, then drop the zeros, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then make every value non-negative, then drop the odd numbers.", "out": "丐丏一"} {"kind": "speaker", "in": "Take a list of integers; reverse, then absolute value for all items, then filter out the odd numbers.", "out": "丐丏一"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then take absolute values, then drop the odd numbers.", "out": "丐丏一"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then turn negatives into positives, then filter out the odd numbers.", "out": "丐丏一"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then abs each element, then drop the odd numbers.", "out": "丐丏一"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then take the absolute value of each, then filter out the odd numbers.", "out": "丐丏一"} {"kind": "builder", "in": "丐丏一", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丐丏一", "out": "Take a list of integers; reverse the order, then take the absolute value of each, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then truncate to the last three items.", "out": "与丈丹"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then show only the last three.", "out": "与丈丹"} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then remove all but the last three.", "out": "与丈丹"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then take the final 3 elements.", "out": "与丈丹"} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then drop everything except the final three.", "out": "与丈丹"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then give me the last three elements.", "out": "与丈丹"} {"kind": "builder", "in": "与丈丹", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * 2 for x in r]\n r = r[-3:]\n return r"} {"kind": "translator", "in": "与丈丹", "out": "Take a list of integers; negate each, then double each, then keep only the last three."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then keep only even values, then make each twice as big.", "out": "久一丈"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then extract all even numbers, then multiply each by 2.", "out": "久一丈"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then keep only even values, then make each twice as big.", "out": "久一丈"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then extract all even numbers, then multiply each by 2.", "out": "久一丈"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then keep only even values, then make each twice as big.", "out": "久一丈"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then extract all even numbers, then multiply each by 2.", "out": "久一丈"} {"kind": "builder", "in": "久一丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x for x in r if x % 2 == 0]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "久一丈", "out": "Take a list of integers; keep everything before the first zero, then keep the even numbers, then double each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increase every value by 10, then true only if all are positive.", "out": "丐丽乌"} {"kind": "speaker", "in": "Take a list of integers; reverse, then add 10 to each item, then do all of these have positive values.", "out": "丐丽乌"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then shift each up by ten, then check if every value is positive.", "out": "丐丽乌"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then increase all numbers by 10, then confirm all values are positive.", "out": "丐丽乌"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then add 10 to everything, then all positive.", "out": "丐丽乌"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give everything a boost of 10, then check if every number is above zero.", "out": "丐丽乌"} {"kind": "builder", "in": "丐丽乌", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丐丽乌", "out": "Take a list of integers; reverse the order, then add ten to each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then multiply each by two, then drop the even numbers.", "out": "与丈丁"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then double each item in the list, then strip out the evens.", "out": "与丈丁"} {"kind": "builder", "in": "与丈丁", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x * 2 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "与丈丁", "out": "Take a list of integers; negate each, then double each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then remove all zero values, then find the max, defaulting to 0.", "out": "丕举业"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then exclude zeros, then Give me the maximum, but 0 if there are no items.", "out": "丕举业"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then remove all zero values, then What's the highest number in the list.", "out": "丕举业"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then exclude zeros, then Return the greatest value or default to 0.", "out": "丕举业"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then remove all zero values, then Find the largest element, defaulting to zero.", "out": "丕举业"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then exclude zeros, then give the largest value (0 if none).", "out": "丕举业"} {"kind": "builder", "in": "丕举业", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x for x in r if x != 0]\n return max(r) if r else 0"} {"kind": "translator", "in": "丕举业", "out": "Take a list of integers; keep only the first three, then drop the zeros, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the names, then keep only strings of length 3 or more, then deduplicate the strings.", "out": "乞乗丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); Give me the names, then get rid of short ones, then filter out duplicate strings retain first.", "out": "乞乗丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the name field from each record, then remove strings with less than three characters, then strip duplicates preserve order.", "out": "乞乗丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); Grab the names, then remove all strings under three characters in length, then remove repeated strings.", "out": "乞乗丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's name, then filter out short strings under three chars, then keep unique strings first appearance.", "out": "乞乗丧"} {"kind": "speaker", "in": "Take a list of people records (name, age); List the names, then drop strings shorter than three characters, then eliminate repeated strings preserve first occurrence.", "out": "乞乗丧"} {"kind": "builder", "in": "乞乗丧", "out": "def solve(xs):\n r = list(xs)\n r = [d['name'] for d in r]\n r = [s for s in r if len(s) >= 3]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "乞乗丧", "out": "Take a list of people records (name, age); extract the names, then drop strings shorter than three characters, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then default to [0] when there is nothing, then stop at the first non-positive value.", "out": "不么乂"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then when the list is empty, substitute a zero value, then keep the leading run of positive numbers.", "out": "不么乂"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then replace an empty list with one zero, then take values while they are positive.", "out": "不么乂"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then zero it out if it's empty, then take positive values then stop.", "out": "不么乂"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then use zero if the list is empty, then keep going while positive.", "out": "不么乂"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then default to zero when empty, then stop at first non positive.", "out": "不么乂"} {"kind": "builder", "in": "不么乂", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r if r else [0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "不么乂", "out": "Take a list of integers; subtract one from each, then if empty, use a single zero, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep only odd values, then arrange by magnitude ignoring sign.", "out": "上丁丸"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then eliminate the even numbers, then put them in order by magnitude.", "out": "上丁丸"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then keep only odd values, then arrange in order of absolute value.", "out": "上丁丸"} {"kind": "speaker", "in": "Take a list of integers; square them all, then eliminate the even numbers, then sort by distance from zero.", "out": "上丁丸"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep only odd values, then order by how far from zero.", "out": "上丁丸"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then eliminate the even numbers, then order by distance from zero.", "out": "上丁丸"} {"kind": "builder", "in": "上丁丸", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = [x for x in r if x % 2 != 0]\n r = sorted(r, key=abs)\n return r"} {"kind": "translator", "in": "上丁丸", "out": "Take a list of integers; square each, then keep the odd numbers, then sort by absolute value."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then multiply each value by itself, then drop non-negative values.", "out": "丏上万"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then square them all, then drop all positive numbers.", "out": "丏上万"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then raise each to the power of two, then drop non-negative values.", "out": "丏上万"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then I need each number multiplied by itself, then drop all positive numbers.", "out": "丏上万"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then square all of them, then drop non-negative values.", "out": "丏上万"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then multiply each element by itself, then drop all positive numbers.", "out": "丏上万"} {"kind": "builder", "in": "丏上万", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x * x for x in r]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "丏上万", "out": "Take a list of integers; take the absolute value of each, then square each, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then order by distance from zero, then make each twice as big.", "out": "乂丸丈"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then sort based on absolute value, then multiply each by 2.", "out": "乂丸丈"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then organize by magnitude, then make each twice as big.", "out": "乂丸丈"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then arrange by absolute value ascending, then multiply each by 2.", "out": "乂丸丈"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then sort from smallest to largest absolute value, then make each twice as big.", "out": "乂丸丈"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then sort by absolute value, then multiply each by 2.", "out": "乂丸丈"} {"kind": "builder", "in": "乂丸丈", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = sorted(r, key=abs)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "乂丸丈", "out": "Take a list of integers; take values while they are positive, then sort by absolute value, then double each."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then take the final 3 elements, then drop anything not divisible by three.", "out": "九丹串"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then drop everything except the final three, then filter out everything except multiples of three.", "out": "九丹串"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then give me the last three elements, then keep only multiples of three.", "out": "九丹串"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then keep only the last three, then multiples of three only.", "out": "九丹串"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then keep the final three items, then filter for numbers divisible by three.", "out": "九丹串"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then take the last three, then give me only the values divisible by three.", "out": "九丹串"} {"kind": "builder", "in": "九丹串", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r[-3:]\n r = [x for x in r if x % 3 == 0]\n return r"} {"kind": "translator", "in": "九丹串", "out": "Take a list of people records (name, age); extract the ages, then keep only the last three, then keep multiples of three."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then default to [0] when there is nothing, then multiply each by -1.", "out": "九么与"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then when the list is empty, substitute a zero value, then negate.", "out": "九么与"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then replace an empty list with one zero, then multiply each by -1.", "out": "九么与"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then zero it out if it's empty, then negate.", "out": "九么与"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then use zero if the list is empty, then multiply each by -1.", "out": "九么与"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then default to zero when empty, then negate.", "out": "九么与"} {"kind": "builder", "in": "九么与", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = r if r else [0]\n r = [-x for x in r]\n return r"} {"kind": "translator", "in": "九么与", "out": "Take a list of people records (name, age); extract the ages, then if empty, use a single zero, then negate each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then decrement each value, then strip the signs.", "out": "么不丏"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then Lower each number by one, then take abs of each.", "out": "么不丏"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then reduce each by one, then get the absolute value of everything.", "out": "么不丏"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then Subtract 1 from all, then apply absolute value to the whole list.", "out": "么不丏"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then Subtract one from each, then make them all positive.", "out": "么不丏"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then Drop each by one, then make every value non-negative.", "out": "么不丏"} {"kind": "builder", "in": "么不丏", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x - 1 for x in r]\n r = [abs(x) for x in r]\n return r"} {"kind": "translator", "in": "么不丏", "out": "Take a list of integers; if empty, use a single zero, then subtract one from each, then take the absolute value of each."} {"kind": "speaker", "in": "Take a list of integers; if empty, use a single zero, then increase every value by 10, then make each twice as big.", "out": "么丽丈"} {"kind": "speaker", "in": "Take a list of integers; if blank use 0, then add 10 to each item, then multiply each by 2.", "out": "么丽丈"} {"kind": "speaker", "in": "Take a list of integers; default to [0] when there is nothing, then shift each up by ten, then make each twice as big.", "out": "么丽丈"} {"kind": "speaker", "in": "Take a list of integers; when the list is empty, substitute a zero value, then increase all numbers by 10, then multiply each by 2.", "out": "么丽丈"} {"kind": "speaker", "in": "Take a list of integers; replace an empty list with one zero, then add 10 to everything, then make each twice as big.", "out": "么丽丈"} {"kind": "speaker", "in": "Take a list of integers; zero it out if it's empty, then give everything a boost of 10, then multiply each by 2.", "out": "么丽丈"} {"kind": "builder", "in": "么丽丈", "out": "def solve(xs):\n r = list(xs)\n r = r if r else [0]\n r = [x + 10 for x in r]\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "么丽丈", "out": "Take a list of integers; if empty, use a single zero, then add ten to each, then double each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then increase every value by 10, then find the max, defaulting to 0.", "out": "丐丽业"} {"kind": "speaker", "in": "Take a list of integers; reverse, then add 10 to each item, then Give me the maximum, but 0 if there are no items.", "out": "丐丽业"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then shift each up by ten, then What's the highest number in the list.", "out": "丐丽业"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then increase all numbers by 10, then Return the greatest value or default to 0.", "out": "丐丽业"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then add 10 to everything, then Find the largest element, defaulting to zero.", "out": "丐丽业"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then give everything a boost of 10, then give the largest value (0 if none).", "out": "丐丽业"} {"kind": "builder", "in": "丐丽业", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x + 10 for x in r]\n return max(r) if r else 0"} {"kind": "translator", "in": "丐丽业", "out": "Take a list of integers; reverse the order, then add ten to each, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then decrement each value, then drop the even numbers.", "out": "串不丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then Lower each number by one, then strip out the evens.", "out": "串不丁"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then reduce each by one, then drop the even numbers.", "out": "串不丁"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then Subtract 1 from all, then strip out the evens.", "out": "串不丁"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then Subtract one from each, then drop the even numbers.", "out": "串不丁"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then Drop each by one, then strip out the evens.", "out": "串不丁"} {"kind": "builder", "in": "串不丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x - 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "串不丁", "out": "Take a list of integers; keep multiples of three, then subtract one from each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then take values up to (excluding) the first zero.", "out": "义丈久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then keep the part before the first 0.", "out": "义丈久"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then truncate at the first zero.", "out": "义丈久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then delete everything starting with the first zero.", "out": "义丈久"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each by two, then remove from the first zero onwards.", "out": "义丈久"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then double each item in the list, then up to but not including the first zero.", "out": "义丈久"} {"kind": "builder", "in": "义丈久", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "义丈久", "out": "Take a list of integers; pad with zeros to at least three elements, then double each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then multiply each value by itself, then take values up to (excluding) the first zero.", "out": "丕上久"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then square them all, then keep the part before the first 0.", "out": "丕上久"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then raise each to the power of two, then truncate at the first zero.", "out": "丕上久"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then I need each number multiplied by itself, then delete everything starting with the first zero.", "out": "丕上久"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then square all of them, then remove from the first zero onwards.", "out": "丕上久"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then multiply each element by itself, then up to but not including the first zero.", "out": "丕上久"} {"kind": "builder", "in": "丕上久", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = [x * x for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丕上久", "out": "Take a list of integers; keep only the first three, then square each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then remove repeated values, then find the max, defaulting to 0.", "out": "丽且业"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then unique values preserving order, then Give me the maximum, but 0 if there are no items.", "out": "丽且业"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then remove repeated values, then What's the highest number in the list.", "out": "丽且业"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then unique values preserving order, then Return the greatest value or default to 0.", "out": "丽且业"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then remove repeated values, then Find the largest element, defaulting to zero.", "out": "丽且业"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then unique values preserving order, then give the largest value (0 if none).", "out": "丽且业"} {"kind": "builder", "in": "丽且业", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = list(dict.fromkeys(r))\n return max(r) if r else 0"} {"kind": "translator", "in": "丽且业", "out": "Take a list of integers; add ten to each, then drop duplicates keeping first occurrence, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each by two, then give the earliest even value or zero.", "out": "乂丈乒"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then double each item in the list, then fetch the first even element, default to 0.", "out": "乂丈乒"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then multiply each by two, then give the earliest even value or zero.", "out": "乂丈乒"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then double each item in the list, then fetch the first even element, default to 0.", "out": "乂丈乒"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then multiply each by two, then give the earliest even value or zero.", "out": "乂丈乒"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then double each item in the list, then fetch the first even element, default to 0.", "out": "乂丈乒"} {"kind": "builder", "in": "乂丈乒", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "乂丈乒", "out": "Take a list of integers; take values while they are positive, then double each, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; square each, then take the final 3 elements, then true if every value is unique.", "out": "上丹乏"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then drop everything except the final three, then check for duplicates in the values.", "out": "上丹乏"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then give me the last three elements, then do all values appear only once.", "out": "上丹乏"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep only the last three, then check that there are no duplicates.", "out": "上丹乏"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then keep the final three items, then are the values all unique.", "out": "上丹乏"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take the last three, then check if all values are unique.", "out": "上丹乏"} {"kind": "builder", "in": "上丹乏", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[-3:]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "上丹乏", "out": "Take a list of integers; square each, then keep only the last three, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; add ten to each, then drop anything 5 or below, then true only if all are positive.", "out": "丽主乌"} {"kind": "speaker", "in": "Take a list of integers; bump everything up by 10, then keep only numbers greater than 5, then do all of these have positive values.", "out": "丽主乌"} {"kind": "speaker", "in": "Take a list of integers; increase every value by 10, then filter for numbers above 5, then check if every value is positive.", "out": "丽主乌"} {"kind": "speaker", "in": "Take a list of integers; add 10 to each item, then give me values where x is greater than 5, then confirm all values are positive.", "out": "丽主乌"} {"kind": "speaker", "in": "Take a list of integers; shift each up by ten, then show me only the values that are bigger than five, then all positive.", "out": "丽主乌"} {"kind": "speaker", "in": "Take a list of integers; increase all numbers by 10, then keep values greater than five, then check if every number is above zero.", "out": "丽主乌"} {"kind": "builder", "in": "丽主乌", "out": "def solve(xs):\n r = list(xs)\n r = [x + 10 for x in r]\n r = [x for x in r if x > 5]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "丽主乌", "out": "Take a list of integers; add ten to each, then keep values greater than five, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then clamp each to at most ten, then reduce each by one.", "out": "七丘不"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then don't let anything exceed 10, then Subtract 1 from all.", "out": "七丘不"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then clamp each to at most ten, then Subtract one from each.", "out": "七丘不"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then don't let anything exceed 10, then Drop each by one.", "out": "七丘不"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then clamp each to at most ten, then Decrease all values by one.", "out": "七丘不"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then don't let anything exceed 10, then Remove one from each value.", "out": "七丘不"} {"kind": "builder", "in": "七丘不", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "七丘不", "out": "Take a list of integers; keep the positive numbers, then cap each value at 10, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep values divisible by 3, then drop the odd numbers.", "out": "且串一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep items where x mod 3 equals zero, then filter out the odd numbers.", "out": "且串一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything not divisible by three, then drop the odd numbers.", "out": "且串一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then filter out everything except multiples of three, then filter out the odd numbers.", "out": "且串一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then keep only multiples of three, then drop the odd numbers.", "out": "且串一"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then multiples of three only, then filter out the odd numbers.", "out": "且串一"} {"kind": "builder", "in": "且串一", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "且串一", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep multiples of three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then multiply each value by itself, then deduplicate the list.", "out": "义上且"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then square them all, then remove repeats.", "out": "义上且"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then raise each to the power of two, then deduplicate the list.", "out": "义上且"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then I need each number multiplied by itself, then remove repeats.", "out": "义上且"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then square all of them, then deduplicate the list.", "out": "义上且"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then multiply each element by itself, then remove repeats.", "out": "义上且"} {"kind": "builder", "in": "义上且", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x * x for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "义上且", "out": "Take a list of integers; pad with zeros to at least three elements, then square each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then take the first 3 elements, then find the max, defaulting to 0.", "out": "不丕业"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then remove everything after the third, then Give me the maximum, but 0 if there are no items.", "out": "不丕业"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then truncate to three items, then What's the highest number in the list.", "out": "不丕业"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then show the first three, then Return the greatest value or default to 0.", "out": "不丕业"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then take the first three, then Find the largest element, defaulting to zero.", "out": "不丕业"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then keep first 3, then give the largest value (0 if none).", "out": "不丕业"} {"kind": "builder", "in": "不丕业", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:3]\n return max(r) if r else 0"} {"kind": "translator", "in": "不丕业", "out": "Take a list of integers; subtract one from each, then keep only the first three, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then multiply each value by itself, then true only if all are positive.", "out": "一上乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then square them all, then do all of these have positive values.", "out": "一上乌"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then raise each to the power of two, then check if every value is positive.", "out": "一上乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then I need each number multiplied by itself, then confirm all values are positive.", "out": "一上乌"} {"kind": "speaker", "in": "Take a list of integers; keep the even numbers, then square all of them, then all positive.", "out": "一上乌"} {"kind": "speaker", "in": "Take a list of integers; keep evens, then multiply each element by itself, then check if every number is above zero.", "out": "一上乌"} {"kind": "builder", "in": "一上乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 == 0]\n r = [x * x for x in r]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "一上乌", "out": "Take a list of integers; keep the even numbers, then square each, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then multiply each by two, then shift each up by ten.", "out": "丐丈丽"} {"kind": "speaker", "in": "Take a list of integers; reverse, then double each item in the list, then increase all numbers by 10.", "out": "丐丈丽"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then multiply each by two, then add 10 to everything.", "out": "丐丈丽"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then double each item in the list, then give everything a boost of 10.", "out": "丐丈丽"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then multiply each by two, then increment each by ten.", "out": "丐丈丽"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then double each item in the list, then add a constant 10 to each.", "out": "丐丈丽"} {"kind": "builder", "in": "丐丈丽", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x * 2 for x in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "丐丈丽", "out": "Take a list of integers; reverse the order, then double each, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then flip the list around, then drop non-negative values.", "out": "为丐万"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then flip the order around, then drop all positive numbers.", "out": "为丐万"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then put the elements backwards, then drop non-negative values.", "out": "为丐万"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then reverse that for me, then drop all positive numbers.", "out": "为丐万"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then flip it backwards, then drop non-negative values.", "out": "为丐万"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then make it backwards, then drop all positive numbers.", "out": "为丐万"} {"kind": "builder", "in": "为丐万", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = list(reversed(r))\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "为丐万", "out": "Take a list of integers; drop the first and last elements, then reverse the order, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first 3 elements, then give back the total.", "out": "世丕丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then remove everything after the third, then sum r.", "out": "世丕丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then truncate to three items, then add them up.", "out": "世丕丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then show the first three, then calculate the sum of all elements.", "out": "世丕丙"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take the first three, then what's the total.", "out": "世丕丙"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then keep first 3, then what do they add up to.", "out": "世丕丙"} {"kind": "builder", "in": "世丕丙", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = r[:3]\n return sum(r)"} {"kind": "translator", "in": "世丕丙", "out": "Take a list of integers; drop the first element, then keep only the first three, then return their sum."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then sort largest to smallest, then make each twice as big.", "out": "九专丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then sort by descending values, then multiply each by 2.", "out": "九专丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then sort from highest to lowest, then make each twice as big.", "out": "九专丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then sort descending, then multiply each by 2.", "out": "九专丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then sort largest first, then make each twice as big.", "out": "九专丈"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then sort in descending order, then multiply each by 2.", "out": "九专丈"} {"kind": "builder", "in": "九专丈", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = sorted(r, reverse=True)\n r = [x * 2 for x in r]\n return r"} {"kind": "translator", "in": "九专丈", "out": "Take a list of people records (name, age); extract the ages, then sort descending, then double each."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values divisible by 3, then drop the odd numbers.", "out": "丸串一"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then keep items where x mod 3 equals zero, then filter out the odd numbers.", "out": "丸串一"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then drop anything not divisible by three, then drop the odd numbers.", "out": "丸串一"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then filter out everything except multiples of three, then filter out the odd numbers.", "out": "丸串一"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep only multiples of three, then drop the odd numbers.", "out": "丸串一"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then multiples of three only, then filter out the odd numbers.", "out": "丸串一"} {"kind": "builder", "in": "丸串一", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 == 0]\n return r"} {"kind": "translator", "in": "丸串一", "out": "Take a list of integers; sort by absolute value, then keep multiples of three, then keep the even numbers."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then keep values divisible by 3, then trim one element off each end.", "out": "不串为"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then keep items where x mod 3 equals zero, then cut off the first and last.", "out": "不串为"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then drop anything not divisible by three, then remove the first and last elements.", "out": "不串为"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then filter out everything except multiples of three, then keep only the middle part.", "out": "不串为"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then keep only multiples of three, then drop first and last.", "out": "不串为"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then multiples of three only, then eliminate the outermost elements.", "out": "不串为"} {"kind": "builder", "in": "不串为", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = [x for x in r if x % 3 == 0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "不串为", "out": "Take a list of integers; subtract one from each, then keep multiples of three, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; sort descending, then clamp each to at most ten, then true if every value is unique.", "out": "专丘乏"} {"kind": "speaker", "in": "Take a list of integers; sort largest first, then don't let anything exceed 10, then check for duplicates in the values.", "out": "专丘乏"} {"kind": "speaker", "in": "Take a list of integers; sort in descending order, then clamp each to at most ten, then do all values appear only once.", "out": "专丘乏"} {"kind": "speaker", "in": "Take a list of integers; sort from greatest to least, then don't let anything exceed 10, then check that there are no duplicates.", "out": "专丘乏"} {"kind": "speaker", "in": "Take a list of integers; sort z to a, then clamp each to at most ten, then are the values all unique.", "out": "专丘乏"} {"kind": "speaker", "in": "Take a list of integers; arrange in decreasing order, then don't let anything exceed 10, then check if all values are unique.", "out": "专丘乏"} {"kind": "builder", "in": "专丘乏", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, reverse=True)\n r = [min(x, 10) for x in r]\n return len(r) == len(set(r))"} {"kind": "translator", "in": "专丘乏", "out": "Take a list of integers; sort descending, then cap each value at 10, then return whether all values are distinct."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then increase every value by 10, then give back the product of all values.", "out": "丹丽乐"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then add 10 to each item, then product of the list.", "out": "丹丽乐"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then shift each up by ten, then what's the product.", "out": "丹丽乐"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then increase all numbers by 10, then what do they multiply to.", "out": "丹丽乐"} {"kind": "speaker", "in": "Take a list of integers; last three only, then add 10 to everything, then give me their product.", "out": "丹丽乐"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then give everything a boost of 10, then multiply them all together.", "out": "丹丽乐"} {"kind": "builder", "in": "丹丽乐", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [x + 10 for x in r]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丹丽乐", "out": "Take a list of integers; keep only the last three, then add ten to each, then return their product."} {"kind": "speaker", "in": "Take a list of strings; uppercase each string, then order the strings A to Z, then deduplicate the strings.", "out": "丟乖丧"} {"kind": "speaker", "in": "Take a list of strings; make it all caps, then make it alphabetical, then filter out duplicate strings retain first.", "out": "丟乖丧"} {"kind": "speaker", "in": "Take a list of strings; convert each to upper case, then order the strings A to Z, then strip duplicates preserve order.", "out": "丟乖丧"} {"kind": "speaker", "in": "Take a list of strings; change all strings to uppercase, then make it alphabetical, then remove repeated strings.", "out": "丟乖丧"} {"kind": "speaker", "in": "Take a list of strings; make every string uppercase, then order the strings A to Z, then keep unique strings first appearance.", "out": "丟乖丧"} {"kind": "speaker", "in": "Take a list of strings; uppercase each one, then make it alphabetical, then eliminate repeated strings preserve first occurrence.", "out": "丟乖丧"} {"kind": "builder", "in": "丟乖丧", "out": "def solve(xs):\n r = list(xs)\n r = [s.upper() for s in r]\n r = sorted(r)\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "丟乖丧", "out": "Take a list of strings; uppercase each string, then sort alphabetically, then drop duplicate strings keeping the first."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then decrement each value, then truncate to three items.", "out": "且不丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Lower each number by one, then show the first three.", "out": "且不丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then reduce each by one, then take the first three.", "out": "且不丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Subtract 1 from all, then keep first 3.", "out": "且不丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then Subtract one from each, then truncate to first three.", "out": "且不丕"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then Drop each by one, then first three.", "out": "且不丕"} {"kind": "builder", "in": "且不丕", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x - 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "且不丕", "out": "Take a list of integers; drop duplicates keeping first occurrence, then subtract one from each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; subtract one from each, then cut the list at the first zero, then put the elements backwards.", "out": "不久丐"} {"kind": "speaker", "in": "Take a list of integers; Decrement all items, then cut off after the first zero appears, then reverse that for me.", "out": "不久丐"} {"kind": "speaker", "in": "Take a list of integers; decrement each value, then take values up to (excluding) the first zero, then flip it backwards.", "out": "不久丐"} {"kind": "speaker", "in": "Take a list of integers; Lower each number by one, then keep the part before the first 0, then make it backwards.", "out": "不久丐"} {"kind": "speaker", "in": "Take a list of integers; reduce each by one, then truncate at the first zero, then reverse the list.", "out": "不久丐"} {"kind": "speaker", "in": "Take a list of integers; Subtract 1 from all, then delete everything starting with the first zero, then invert the sequence.", "out": "不久丐"} {"kind": "builder", "in": "不久丐", "out": "def solve(xs):\n r = list(xs)\n r = [x - 1 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "不久丐", "out": "Take a list of integers; subtract one from each, then keep everything before the first zero, then reverse the order."} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then pluck the age field from each record, then shift each up by ten.", "out": "习九丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then get the age field, then increase all numbers by 10.", "out": "习九丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then keep just each person's age, then add 10 to everything.", "out": "习九丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then extract age values, then give everything a boost of 10.", "out": "习九丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); sort records by age, youngest first, then get all the ages, then increment each by ten.", "out": "习九丽"} {"kind": "speaker", "in": "Take a list of people records (name, age); put the youngest at the top, then what are the ages, then add a constant 10 to each.", "out": "习九丽"} {"kind": "builder", "in": "习九丽", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=lambda d: d['age'])\n r = [d['age'] for d in r]\n r = [x + 10 for x in r]\n return r"} {"kind": "translator", "in": "习九丽", "out": "Take a list of people records (name, age); sort records by age, youngest first, then extract the ages, then add ten to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep only odd values, then bump each up by one.", "out": "主丁下"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then eliminate the even numbers, then increment each item.", "out": "主丁下"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep only odd values, then bump each up by one.", "out": "主丁下"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then eliminate the even numbers, then increment each item.", "out": "主丁下"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep only odd values, then bump each up by one.", "out": "主丁下"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then eliminate the even numbers, then increment each item.", "out": "主丁下"} {"kind": "builder", "in": "主丁下", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x % 2 != 0]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "主丁下", "out": "Take a list of integers; keep values greater than five, then keep the odd numbers, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep the leading run of positive numbers, then true only if all are positive.", "out": "主乂乌"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then take values while they are positive, then do all of these have positive values.", "out": "主乂乌"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then take positive values then stop, then check if every value is positive.", "out": "主乂乌"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then keep going while positive, then confirm all values are positive.", "out": "主乂乌"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then stop at first non positive, then all positive.", "out": "主乂乌"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then take while greater than zero, then check if every number is above zero.", "out": "主乂乌"} {"kind": "builder", "in": "主乂乌", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "主乂乌", "out": "Take a list of integers; keep values greater than five, then take values while they are positive, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove repeated values, then true only if all are positive.", "out": "与且乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then unique values preserving order, then do all of these have positive values.", "out": "与且乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove repeated values, then check if every value is positive.", "out": "与且乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then unique values preserving order, then confirm all values are positive.", "out": "与且乌"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove repeated values, then all positive.", "out": "与且乌"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then unique values preserving order, then check if every number is above zero.", "out": "与且乌"} {"kind": "builder", "in": "与且乌", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = list(dict.fromkeys(r))\n return all(x > 0 for x in r)"} {"kind": "translator", "in": "与且乌", "out": "Take a list of integers; negate each, then drop duplicates keeping first occurrence, then return whether all values are positive."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then remove repeated values, then give the earliest even value or zero.", "out": "串且乒"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then unique values preserving order, then fetch the first even element, default to 0.", "out": "串且乒"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then remove repeated values, then give the earliest even value or zero.", "out": "串且乒"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then unique values preserving order, then fetch the first even element, default to 0.", "out": "串且乒"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then remove repeated values, then give the earliest even value or zero.", "out": "串且乒"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then unique values preserving order, then fetch the first even element, default to 0.", "out": "串且乒"} {"kind": "builder", "in": "串且乒", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = list(dict.fromkeys(r))\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "串且乒", "out": "Take a list of integers; keep multiples of three, then drop duplicates keeping first occurrence, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep the leading run of positive numbers, then replace an empty list with one zero.", "out": "七乂么"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then take values while they are positive, then zero it out if it's empty.", "out": "七乂么"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then take positive values then stop, then use zero if the list is empty.", "out": "七乂么"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then keep going while positive, then default to zero when empty.", "out": "七乂么"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then stop at first non positive, then if there's nothing, put in a zero.", "out": "七乂么"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then take while greater than zero, then if no items, add a zero.", "out": "七乂么"} {"kind": "builder", "in": "七乂么", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "七乂么", "out": "Take a list of integers; keep the positive numbers, then take values while they are positive, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then increment each value, then truncate to three items.", "out": "久下丕"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then plus one for all, then show the first three.", "out": "久下丕"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then increment each value, then take the first three.", "out": "久下丕"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then plus one for all, then keep first 3.", "out": "久下丕"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then increment each value, then truncate to first three.", "out": "久下丕"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then plus one for all, then first three.", "out": "久下丕"} {"kind": "builder", "in": "久下丕", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x + 1 for x in r]\n r = r[:3]\n return r"} {"kind": "translator", "in": "久下丕", "out": "Take a list of integers; keep everything before the first zero, then add one to each, then keep only the first three."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then keep only odd values, then deduplicate the list.", "out": "串丁且"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then eliminate the even numbers, then remove repeats.", "out": "串丁且"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then keep only odd values, then deduplicate the list.", "out": "串丁且"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then eliminate the even numbers, then remove repeats.", "out": "串丁且"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then keep only odd values, then deduplicate the list.", "out": "串丁且"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then eliminate the even numbers, then remove repeats.", "out": "串丁且"} {"kind": "builder", "in": "串丁且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x for x in r if x % 2 != 0]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "串丁且", "out": "Take a list of integers; keep multiples of three, then keep the odd numbers, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then increment each value, then deduplicate the list.", "out": "主下且"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then plus one for all, then remove repeats.", "out": "主下且"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then increment each value, then deduplicate the list.", "out": "主下且"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then plus one for all, then remove repeats.", "out": "主下且"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then increment each value, then deduplicate the list.", "out": "主下且"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then plus one for all, then remove repeats.", "out": "主下且"} {"kind": "builder", "in": "主下且", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "主下且", "out": "Take a list of integers; keep values greater than five, then add one to each, then drop duplicates keeping first occurrence."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then keep only odd values, then raise each to the power of two.", "out": "七丁上"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then eliminate the even numbers, then I need each number multiplied by itself.", "out": "七丁上"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then keep only odd values, then square all of them.", "out": "七丁上"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then eliminate the even numbers, then multiply each element by itself.", "out": "七丁上"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then keep only odd values, then make each one squared.", "out": "七丁上"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then eliminate the even numbers, then square each value in the list.", "out": "七丁上"} {"kind": "builder", "in": "七丁上", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x for x in r if x % 2 != 0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "七丁上", "out": "Take a list of integers; keep the positive numbers, then keep the odd numbers, then square each."} {"kind": "speaker", "in": "Take a list of integers; keep only the first three, then order by distance from zero, then put the elements backwards.", "out": "丕丸丐"} {"kind": "speaker", "in": "Take a list of integers; keep the first 3 items, then sort based on absolute value, then reverse that for me.", "out": "丕丸丐"} {"kind": "speaker", "in": "Take a list of integers; take the first 3 elements, then organize by magnitude, then flip it backwards.", "out": "丕丸丐"} {"kind": "speaker", "in": "Take a list of integers; remove everything after the third, then arrange by absolute value ascending, then make it backwards.", "out": "丕丸丐"} {"kind": "speaker", "in": "Take a list of integers; truncate to three items, then sort from smallest to largest absolute value, then reverse the list.", "out": "丕丸丐"} {"kind": "speaker", "in": "Take a list of integers; show the first three, then sort by absolute value, then invert the sequence.", "out": "丕丸丐"} {"kind": "builder", "in": "丕丸丐", "out": "def solve(xs):\n r = list(xs)\n r = r[:3]\n r = sorted(r, key=abs)\n r = list(reversed(r))\n return r"} {"kind": "translator", "in": "丕丸丐", "out": "Take a list of integers; keep only the first three, then sort by absolute value, then reverse the order."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then multiply each value by itself, then stop at the first non-positive value.", "out": "主上乂"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then square them all, then keep the leading run of positive numbers.", "out": "主上乂"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then raise each to the power of two, then take values while they are positive.", "out": "主上乂"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then I need each number multiplied by itself, then take positive values then stop.", "out": "主上乂"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then square all of them, then keep going while positive.", "out": "主上乂"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then multiply each element by itself, then stop at first non positive.", "out": "主上乂"} {"kind": "builder", "in": "主上乂", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n return r"} {"kind": "translator", "in": "主上乂", "out": "Take a list of integers; keep values greater than five, then square each, then take values while they are positive."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then make every value non-negative, then reduce each by one.", "out": "世丏不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then absolute value for all items, then Subtract 1 from all.", "out": "世丏不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then take absolute values, then Subtract one from each.", "out": "世丏不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then turn negatives into positives, then Drop each by one.", "out": "世丏不"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then abs each element, then Decrease all values by one.", "out": "世丏不"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then take the absolute value of each, then Remove one from each value.", "out": "世丏不"} {"kind": "builder", "in": "世丏不", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = [abs(x) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "世丏不", "out": "Take a list of integers; drop the first element, then take the absolute value of each, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest to smallest, then true if already sorted smallest to largest.", "out": "世专乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort by descending values, then does this list go in ascending order.", "out": "世专乎"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort from highest to lowest, then check if the list is in ascending order.", "out": "世专乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort descending, then is the list sorted.", "out": "世专乎"} {"kind": "speaker", "in": "Take a list of integers; drop the first element, then sort largest first, then is it sorted.", "out": "世专乎"} {"kind": "speaker", "in": "Take a list of integers; Take everything except the first, then sort in descending order, then check if values are in increasing order.", "out": "世专乎"} {"kind": "builder", "in": "世专乎", "out": "def solve(xs):\n r = list(xs)\n r = r[1:]\n r = sorted(r, reverse=True)\n return r == sorted(r)"} {"kind": "translator", "in": "世专乎", "out": "Take a list of integers; drop the first element, then sort descending, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then multiply each value by itself, then true if already sorted smallest to largest.", "out": "串上乎"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then square them all, then does this list go in ascending order.", "out": "串上乎"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then raise each to the power of two, then check if the list is in ascending order.", "out": "串上乎"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then I need each number multiplied by itself, then is the list sorted.", "out": "串上乎"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then square all of them, then is it sorted.", "out": "串上乎"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then multiply each element by itself, then check if values are in increasing order.", "out": "串上乎"} {"kind": "builder", "in": "串上乎", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x * x for x in r]\n return r == sorted(r)"} {"kind": "translator", "in": "串上乎", "out": "Take a list of integers; keep multiples of three, then square each, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; double each, then extend to length 3 using zeros, then drop non-positive values.", "out": "丈义七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then pad to 3, then drop the negative numbers.", "out": "丈义七"} {"kind": "speaker", "in": "Take a list of integers; double each, then extend to length 3 using zeros, then filter out the negative ones.", "out": "丈义七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then pad to 3, then remove all negative values.", "out": "丈义七"} {"kind": "speaker", "in": "Take a list of integers; double each, then extend to length 3 using zeros, then keep positive values only.", "out": "丈义七"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then pad to 3, then keep values above zero.", "out": "丈义七"} {"kind": "builder", "in": "丈义七", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = [x for x in r if x > 0]\n return r"} {"kind": "translator", "in": "丈义七", "out": "Take a list of integers; double each, then pad with zeros to at least three elements, then keep the positive numbers."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then remove repeated values, then true if any value equals zero.", "out": "乂且乍"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then unique values preserving order, then check for zero.", "out": "乂且乍"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then remove repeated values, then true if any value equals zero.", "out": "乂且乍"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then unique values preserving order, then check for zero.", "out": "乂且乍"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then remove repeated values, then true if any value equals zero.", "out": "乂且乍"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then unique values preserving order, then check for zero.", "out": "乂且乍"} {"kind": "builder", "in": "乂且乍", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = list(dict.fromkeys(r))\n return 0 in r"} {"kind": "translator", "in": "乂且乍", "out": "Take a list of integers; take values while they are positive, then drop duplicates keeping first occurrence, then return whether the list contains a zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then keep values below zero, then give back the product of all values.", "out": "丸万乐"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then get the negative numbers, then product of the list.", "out": "丸万乐"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then keep values below zero, then what's the product.", "out": "丸万乐"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then get the negative numbers, then what do they multiply to.", "out": "丸万乐"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then keep values below zero, then give me their product.", "out": "丸万乐"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then get the negative numbers, then multiply them all together.", "out": "丸万乐"} {"kind": "builder", "in": "丸万乐", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x for x in r if x < 0]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "丸万乐", "out": "Take a list of integers; sort by absolute value, then keep the negative numbers, then return their product."} {"kind": "speaker", "in": "Take a list of integers; negate each, then order by distance from zero, then trim one element off each end.", "out": "与丸为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort based on absolute value, then cut off the first and last.", "out": "与丸为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then organize by magnitude, then remove the first and last elements.", "out": "与丸为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then arrange by absolute value ascending, then keep only the middle part.", "out": "与丸为"} {"kind": "speaker", "in": "Take a list of integers; negate each, then sort from smallest to largest absolute value, then drop first and last.", "out": "与丸为"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then sort by absolute value, then eliminate the outermost elements.", "out": "与丸为"} {"kind": "builder", "in": "与丸为", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = sorted(r, key=abs)\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "与丸为", "out": "Take a list of integers; negate each, then sort by absolute value, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then default to [0] when there is nothing, then trim one element off each end.", "out": "乂么为"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then when the list is empty, substitute a zero value, then cut off the first and last.", "out": "乂么为"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then replace an empty list with one zero, then remove the first and last elements.", "out": "乂么为"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then zero it out if it's empty, then keep only the middle part.", "out": "乂么为"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then use zero if the list is empty, then drop first and last.", "out": "乂么为"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then default to zero when empty, then eliminate the outermost elements.", "out": "乂么为"} {"kind": "builder", "in": "乂么为", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r if r else [0]\n r = r[1:-1]\n return r"} {"kind": "translator", "in": "乂么为", "out": "Take a list of integers; take values while they are positive, then if empty, use a single zero, then drop the first and last elements."} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then order by distance from zero, then true if already sorted smallest to largest.", "out": "义丸乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort based on absolute value, then does this list go in ascending order.", "out": "义丸乎"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then organize by magnitude, then check if the list is in ascending order.", "out": "义丸乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then arrange by absolute value ascending, then is the list sorted.", "out": "义丸乎"} {"kind": "speaker", "in": "Take a list of integers; pad with zeros to at least three elements, then sort from smallest to largest absolute value, then is it sorted.", "out": "义丸乎"} {"kind": "speaker", "in": "Take a list of integers; add zeros until the list has at least three values, then sort by absolute value, then check if values are in increasing order.", "out": "义丸乎"} {"kind": "builder", "in": "义丸乎", "out": "def solve(xs):\n r = list(xs)\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n r = sorted(r, key=abs)\n return r == sorted(r)"} {"kind": "translator", "in": "义丸乎", "out": "Take a list of integers; pad with zeros to at least three elements, then sort by absolute value, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then default to [0] when there is nothing, then raise each to the power of two.", "out": "且么上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then when the list is empty, substitute a zero value, then I need each number multiplied by itself.", "out": "且么上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then replace an empty list with one zero, then square all of them.", "out": "且么上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then zero it out if it's empty, then multiply each element by itself.", "out": "且么上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then use zero if the list is empty, then make each one squared.", "out": "且么上"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then default to zero when empty, then square each value in the list.", "out": "且么上"} {"kind": "builder", "in": "且么上", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r if r else [0]\n r = [x * x for x in r]\n return r"} {"kind": "translator", "in": "且么上", "out": "Take a list of integers; drop duplicates keeping first occurrence, then if empty, use a single zero, then square each."} {"kind": "speaker", "in": "Take a list of integers; reverse the order, then keep values divisible by 3, then reduce each by one.", "out": "丐串不"} {"kind": "speaker", "in": "Take a list of integers; reverse, then keep items where x mod 3 equals zero, then Subtract 1 from all.", "out": "丐串不"} {"kind": "speaker", "in": "Take a list of integers; flip the list around, then drop anything not divisible by three, then Subtract one from each.", "out": "丐串不"} {"kind": "speaker", "in": "Take a list of integers; flip the order around, then filter out everything except multiples of three, then Drop each by one.", "out": "丐串不"} {"kind": "speaker", "in": "Take a list of integers; put the elements backwards, then keep only multiples of three, then Decrease all values by one.", "out": "丐串不"} {"kind": "speaker", "in": "Take a list of integers; reverse that for me, then multiples of three only, then Remove one from each value.", "out": "丐串不"} {"kind": "builder", "in": "丐串不", "out": "def solve(xs):\n r = list(xs)\n r = list(reversed(r))\n r = [x for x in r if x % 3 == 0]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丐串不", "out": "Take a list of integers; reverse the order, then keep multiples of three, then subtract one from each."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then default to [0] when there is nothing, then true if already sorted smallest to largest.", "out": "久么乎"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then when the list is empty, substitute a zero value, then does this list go in ascending order.", "out": "久么乎"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then replace an empty list with one zero, then check if the list is in ascending order.", "out": "久么乎"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then zero it out if it's empty, then is the list sorted.", "out": "久么乎"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then use zero if the list is empty, then is it sorted.", "out": "久么乎"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then default to zero when empty, then check if values are in increasing order.", "out": "久么乎"} {"kind": "builder", "in": "久么乎", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = r if r else [0]\n return r == sorted(r)"} {"kind": "translator", "in": "久么乎", "out": "Take a list of integers; keep everything before the first zero, then if empty, use a single zero, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then default to [0] when there is nothing, then count the elements.", "out": "丏么东"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then when the list is empty, substitute a zero value, then how many items remain.", "out": "丏么东"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then replace an empty list with one zero, then tell me the length.", "out": "丏么东"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then zero it out if it's empty, then return the length.", "out": "丏么东"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then use zero if the list is empty, then count them.", "out": "丏么东"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then default to zero when empty, then what's the count.", "out": "丏么东"} {"kind": "builder", "in": "丏么东", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = r if r else [0]\n return len(r)"} {"kind": "translator", "in": "丏么东", "out": "Take a list of integers; take the absolute value of each, then if empty, use a single zero, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then multiply each value by itself, then true if at least one even value.", "out": "丁上之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then square them all, then any even.", "out": "丁上之"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then raise each to the power of two, then true if at least one even value.", "out": "丁上之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then I need each number multiplied by itself, then any even.", "out": "丁上之"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then square all of them, then true if at least one even value.", "out": "丁上之"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then multiply each element by itself, then any even.", "out": "丁上之"} {"kind": "builder", "in": "丁上之", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = [x * x for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丁上之", "out": "Take a list of integers; keep the odd numbers, then square each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then find the max, defaulting to 0.", "out": "丁义业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then Give me the maximum, but 0 if there are no items.", "out": "丁义业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then What's the highest number in the list.", "out": "丁义业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then Return the greatest value or default to 0.", "out": "丁义业"} {"kind": "speaker", "in": "Take a list of integers; keep the odd numbers, then extend to length 3 using zeros, then Find the largest element, defaulting to zero.", "out": "丁义业"} {"kind": "speaker", "in": "Take a list of integers; odd numbers only, then pad to 3, then give the largest value (0 if none).", "out": "丁义业"} {"kind": "builder", "in": "丁义业", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 2 != 0]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return max(r) if r else 0"} {"kind": "translator", "in": "丁义业", "out": "Take a list of integers; keep the odd numbers, then pad with zeros to at least three elements, then return the maximum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep the positive numbers, then multiply each by two, then take values up to (excluding) the first zero.", "out": "七丈久"} {"kind": "speaker", "in": "Take a list of integers; get rid of anything that's not positive, then double each item in the list, then keep the part before the first 0.", "out": "七丈久"} {"kind": "speaker", "in": "Take a list of integers; drop non-positive values, then multiply each by two, then truncate at the first zero.", "out": "七丈久"} {"kind": "speaker", "in": "Take a list of integers; drop the negative numbers, then double each item in the list, then delete everything starting with the first zero.", "out": "七丈久"} {"kind": "speaker", "in": "Take a list of integers; filter out the negative ones, then multiply each by two, then remove from the first zero onwards.", "out": "七丈久"} {"kind": "speaker", "in": "Take a list of integers; remove all negative values, then double each item in the list, then up to but not including the first zero.", "out": "七丈久"} {"kind": "builder", "in": "七丈久", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 0]\n r = [x * 2 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "七丈久", "out": "Take a list of integers; keep the positive numbers, then double each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; double each, then remove all zero values, then give the earliest even value or zero.", "out": "丈举乒"} {"kind": "speaker", "in": "Take a list of integers; times two for each item, then exclude zeros, then fetch the first even element, default to 0.", "out": "丈举乒"} {"kind": "builder", "in": "丈举乒", "out": "def solve(xs):\n r = list(xs)\n r = [x * 2 for x in r]\n r = [x for x in r if x != 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丈举乒", "out": "Take a list of integers; double each, then drop the zeros, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then default to [0] when there is nothing, then drop non-negative values.", "out": "且么万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then when the list is empty, substitute a zero value, then drop all positive numbers.", "out": "且么万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then replace an empty list with one zero, then drop non-negative values.", "out": "且么万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then zero it out if it's empty, then drop all positive numbers.", "out": "且么万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then use zero if the list is empty, then drop non-negative values.", "out": "且么万"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then default to zero when empty, then drop all positive numbers.", "out": "且么万"} {"kind": "builder", "in": "且么万", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = r if r else [0]\n r = [x for x in r if x < 0]\n return r"} {"kind": "translator", "in": "且么万", "out": "Take a list of integers; drop duplicates keeping first occurrence, then if empty, use a single zero, then keep the negative numbers."} {"kind": "speaker", "in": "Take a list of integers; square each, then keep the leading run of positive numbers, then take values up to (excluding) the first zero.", "out": "上乂久"} {"kind": "speaker", "in": "Take a list of integers; each value squared, then take values while they are positive, then keep the part before the first 0.", "out": "上乂久"} {"kind": "speaker", "in": "Take a list of integers; multiply each value by itself, then take positive values then stop, then truncate at the first zero.", "out": "上乂久"} {"kind": "speaker", "in": "Take a list of integers; square them all, then keep going while positive, then delete everything starting with the first zero.", "out": "上乂久"} {"kind": "speaker", "in": "Take a list of integers; raise each to the power of two, then stop at first non positive, then remove from the first zero onwards.", "out": "上乂久"} {"kind": "speaker", "in": "Take a list of integers; I need each number multiplied by itself, then take while greater than zero, then up to but not including the first zero.", "out": "上乂久"} {"kind": "builder", "in": "上乂久", "out": "def solve(xs):\n r = list(xs)\n r = [x * x for x in r]\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "上乂久", "out": "Take a list of integers; square each, then take values while they are positive, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of people records (name, age); extract the ages, then flip the sign of each, then count the elements.", "out": "九与东"} {"kind": "speaker", "in": "Take a list of people records (name, age); show me all ages, then turn positives to negatives and vice versa, then how many items remain.", "out": "九与东"} {"kind": "speaker", "in": "Take a list of people records (name, age); pluck the age field from each record, then flip the sign of each, then tell me the length.", "out": "九与东"} {"kind": "speaker", "in": "Take a list of people records (name, age); get the age field, then turn positives to negatives and vice versa, then return the length.", "out": "九与东"} {"kind": "speaker", "in": "Take a list of people records (name, age); keep just each person's age, then flip the sign of each, then count them.", "out": "九与东"} {"kind": "speaker", "in": "Take a list of people records (name, age); extract age values, then turn positives to negatives and vice versa, then what's the count.", "out": "九与东"} {"kind": "builder", "in": "九与东", "out": "def solve(xs):\n r = list(xs)\n r = [d['age'] for d in r]\n r = [-x for x in r]\n return len(r)"} {"kind": "translator", "in": "九与东", "out": "Take a list of people records (name, age); extract the ages, then negate each, then return how many remain."} {"kind": "speaker", "in": "Take a list of integers; sort ascending, then cut the list at the first zero, then give the earliest even value or zero.", "out": "丑久乒"} {"kind": "speaker", "in": "Take a list of integers; Sort it from low to high, then cut off after the first zero appears, then fetch the first even element, default to 0.", "out": "丑久乒"} {"kind": "speaker", "in": "Take a list of integers; arrange in increasing order, then take values up to (excluding) the first zero, then give the earliest even value or zero.", "out": "丑久乒"} {"kind": "speaker", "in": "Take a list of integers; Organize these ascending, then keep the part before the first 0, then fetch the first even element, default to 0.", "out": "丑久乒"} {"kind": "speaker", "in": "Take a list of integers; Sort in ascending order, then truncate at the first zero, then give the earliest even value or zero.", "out": "丑久乒"} {"kind": "speaker", "in": "Take a list of integers; I need this sorted ascending, then delete everything starting with the first zero, then fetch the first even element, default to 0.", "out": "丑久乒"} {"kind": "builder", "in": "丑久乒", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r)\n r = r[:r.index(0)] if 0 in r else r\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "丑久乒", "out": "Take a list of integers; sort ascending, then keep everything before the first zero, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then replace an empty list with one zero.", "out": "且下么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then zero it out if it's empty.", "out": "且下么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then use zero if the list is empty.", "out": "且下么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then default to zero when empty.", "out": "且下么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then increment each value, then if there's nothing, put in a zero.", "out": "且下么"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then plus one for all, then if no items, add a zero.", "out": "且下么"} {"kind": "builder", "in": "且下么", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x + 1 for x in r]\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "且下么", "out": "Take a list of integers; drop duplicates keeping first occurrence, then add one to each, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; take the absolute value of each, then keep only even values, then true if at least one even value.", "out": "丏一之"} {"kind": "speaker", "in": "Take a list of integers; convert to absolute value, then extract all even numbers, then any even.", "out": "丏一之"} {"kind": "speaker", "in": "Take a list of integers; strip the signs, then keep only even values, then true if at least one even value.", "out": "丏一之"} {"kind": "speaker", "in": "Take a list of integers; take abs of each, then extract all even numbers, then any even.", "out": "丏一之"} {"kind": "speaker", "in": "Take a list of integers; get the absolute value of everything, then keep only even values, then true if at least one even value.", "out": "丏一之"} {"kind": "speaker", "in": "Take a list of integers; apply absolute value to the whole list, then extract all even numbers, then any even.", "out": "丏一之"} {"kind": "builder", "in": "丏一之", "out": "def solve(xs):\n r = list(xs)\n r = [abs(x) for x in r]\n r = [x for x in r if x % 2 == 0]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丏一之", "out": "Take a list of integers; take the absolute value of each, then keep the even numbers, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip the list around, then ensure at least three items by appending zeros.", "out": "丘丐义"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then flip the order around, then ensure minimum length of three by adding zeros to the end.", "out": "丘丐义"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then put the elements backwards, then ensure at least three items by appending zeros.", "out": "丘丐义"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then reverse that for me, then ensure minimum length of three by adding zeros to the end.", "out": "丘丐义"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then flip it backwards, then ensure at least three items by appending zeros.", "out": "丘丐义"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then make it backwards, then ensure minimum length of three by adding zeros to the end.", "out": "丘丐义"} {"kind": "builder", "in": "丘丐义", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = list(reversed(r))\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丘丐义", "out": "Take a list of integers; cap each value at 10, then reverse the order, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then decrement each value, then true if at least one even value.", "out": "丘不之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Lower each number by one, then any even.", "out": "丘不之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then reduce each by one, then true if at least one even value.", "out": "丘不之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Subtract 1 from all, then any even.", "out": "丘不之"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then Subtract one from each, then true if at least one even value.", "out": "丘不之"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Drop each by one, then any even.", "out": "丘不之"} {"kind": "builder", "in": "丘不之", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n return any(x % 2 == 0 for x in r)"} {"kind": "translator", "in": "丘不之", "out": "Take a list of integers; cap each value at 10, then subtract one from each, then return whether any value is even."} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep values divisible by 3, then give the earliest even value or zero.", "out": "与串乒"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep items where x mod 3 equals zero, then fetch the first even element, default to 0.", "out": "与串乒"} {"kind": "speaker", "in": "Take a list of integers; negate each, then drop anything not divisible by three, then give the earliest even value or zero.", "out": "与串乒"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then filter out everything except multiples of three, then fetch the first even element, default to 0.", "out": "与串乒"} {"kind": "speaker", "in": "Take a list of integers; negate each, then keep only multiples of three, then give the earliest even value or zero.", "out": "与串乒"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then multiples of three only, then fetch the first even element, default to 0.", "out": "与串乒"} {"kind": "builder", "in": "与串乒", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = [x for x in r if x % 3 == 0]\n return next((x for x in r if x % 2 == 0), 0)"} {"kind": "translator", "in": "与串乒", "out": "Take a list of integers; negate each, then keep multiples of three, then return the first even value (0 if none)."} {"kind": "speaker", "in": "Take a list of integers; keep everything before the first zero, then multiply each value by itself, then give back the total.", "out": "久上丙"} {"kind": "speaker", "in": "Take a list of integers; take only what comes before the initial zero, then square them all, then sum r.", "out": "久上丙"} {"kind": "speaker", "in": "Take a list of integers; cut the list at the first zero, then raise each to the power of two, then add them up.", "out": "久上丙"} {"kind": "speaker", "in": "Take a list of integers; cut off after the first zero appears, then I need each number multiplied by itself, then calculate the sum of all elements.", "out": "久上丙"} {"kind": "speaker", "in": "Take a list of integers; take values up to (excluding) the first zero, then square all of them, then what's the total.", "out": "久上丙"} {"kind": "speaker", "in": "Take a list of integers; keep the part before the first 0, then multiply each element by itself, then what do they add up to.", "out": "久上丙"} {"kind": "builder", "in": "久上丙", "out": "def solve(xs):\n r = list(xs)\n r = r[:r.index(0)] if 0 in r else r\n r = [x * x for x in r]\n return sum(r)"} {"kind": "translator", "in": "久上丙", "out": "Take a list of integers; keep everything before the first zero, then square each, then return their sum."} {"kind": "speaker", "in": "Take a list of integers; take values while they are positive, then multiply each by two, then find the min, defaulting to 0.", "out": "乂丈丛"} {"kind": "speaker", "in": "Take a list of integers; take positive values then stop, then double each item in the list, then minimum value, zero otherwise.", "out": "乂丈丛"} {"kind": "speaker", "in": "Take a list of integers; keep going while positive, then multiply each by two, then get the minimum value or zero if empty.", "out": "乂丈丛"} {"kind": "speaker", "in": "Take a list of integers; stop at first non positive, then double each item in the list, then give me the min or 0.", "out": "乂丈丛"} {"kind": "speaker", "in": "Take a list of integers; take while greater than zero, then multiply each by two, then return the smallest number, defaulting to 0.", "out": "乂丈丛"} {"kind": "speaker", "in": "Take a list of integers; take values while positive, then double each item in the list, then return smallest or zero if empty.", "out": "乂丈丛"} {"kind": "builder", "in": "乂丈丛", "out": "def solve(xs):\n r = list(xs)\n r = r[:next((i for i, x in enumerate(r) if x <= 0), len(r))]\n r = [x * 2 for x in r]\n return min(r) if r else 0"} {"kind": "translator", "in": "乂丈丛", "out": "Take a list of integers; take values while they are positive, then double each, then return the minimum (0 if empty)."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then sort smallest to largest, then arrange in decreasing order.", "out": "主丑专"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then Ascending sort, then arrange in descending order.", "out": "主丑专"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then Sort this ascending, then reverse sort.", "out": "主丑专"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then Sort lowest to highest, then sort largest to smallest.", "out": "主丑专"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then Arrange from smallest to largest, then sort by descending values.", "out": "主丑专"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then sort ascending, then sort from highest to lowest.", "out": "主丑专"} {"kind": "builder", "in": "主丑专", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = sorted(r)\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "主丑专", "out": "Take a list of integers; keep values greater than five, then sort ascending, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; add one to each, then increase every value by 10, then take values up to (excluding) the first zero.", "out": "下丽久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then add 10 to each item, then keep the part before the first 0.", "out": "下丽久"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then shift each up by ten, then truncate at the first zero.", "out": "下丽久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then increase all numbers by 10, then delete everything starting with the first zero.", "out": "下丽久"} {"kind": "speaker", "in": "Take a list of integers; add one to each, then add 10 to everything, then remove from the first zero onwards.", "out": "下丽久"} {"kind": "speaker", "in": "Take a list of integers; make each one bigger, then give everything a boost of 10, then up to but not including the first zero.", "out": "下丽久"} {"kind": "builder", "in": "下丽久", "out": "def solve(xs):\n r = list(xs)\n r = [x + 1 for x in r]\n r = [x + 10 for x in r]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "下丽久", "out": "Take a list of integers; add one to each, then add ten to each, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then drop anything 5 or below, then bump each up by one.", "out": "且主下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep only numbers greater than 5, then increment each item.", "out": "且主下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then filter for numbers above 5, then bump each up by one.", "out": "且主下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then give me values where x is greater than 5, then increment each item.", "out": "且主下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates keeping first occurrence, then show me only the values that are bigger than five, then bump each up by one.", "out": "且主下"} {"kind": "speaker", "in": "Take a list of integers; drop duplicates but keep the first one, then keep values greater than five, then increment each item.", "out": "且主下"} {"kind": "builder", "in": "且主下", "out": "def solve(xs):\n r = list(xs)\n r = list(dict.fromkeys(r))\n r = [x for x in r if x > 5]\n r = [x + 1 for x in r]\n return r"} {"kind": "translator", "in": "且主下", "out": "Take a list of integers; drop duplicates keeping first occurrence, then keep values greater than five, then add one to each."} {"kind": "speaker", "in": "Take a list of integers; negate each, then skip negatives at the start, then give back the product of all values.", "out": "与乃乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then remove all negatives at the front, then product of the list.", "out": "与乃乐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove the initial run of negative numbers, then what's the product.", "out": "与乃乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then strip the front negatives, then what do they multiply to.", "out": "与乃乐"} {"kind": "speaker", "in": "Take a list of integers; negate each, then remove leading negative numbers, then give me their product.", "out": "与乃乐"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then drop negatives from start, then multiply them all together.", "out": "与乃乐"} {"kind": "builder", "in": "与乃乐", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[next((i for i, x in enumerate(r) if x >= 0), len(r)):]\n return __import__('math').prod(r)"} {"kind": "translator", "in": "与乃乐", "out": "Take a list of integers; negate each, then drop the leading negative values, then return their product."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then sort smallest to largest, then replace an empty list with one zero.", "out": "丸丑么"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then Ascending sort, then zero it out if it's empty.", "out": "丸丑么"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then Sort this ascending, then use zero if the list is empty.", "out": "丸丑么"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then Sort lowest to highest, then default to zero when empty.", "out": "丸丑么"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then Arrange from smallest to largest, then if there's nothing, put in a zero.", "out": "丸丑么"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then sort ascending, then if no items, add a zero.", "out": "丸丑么"} {"kind": "builder", "in": "丸丑么", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = sorted(r)\n r = r if r else [0]\n return r"} {"kind": "translator", "in": "丸丑么", "out": "Take a list of integers; sort by absolute value, then sort ascending, then if empty, use a single zero."} {"kind": "speaker", "in": "Take a list of integers; sort by absolute value, then increment each value, then ensure at least three items by appending zeros.", "out": "丸下义"} {"kind": "speaker", "in": "Take a list of integers; rearrange by distance from zero, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丸下义"} {"kind": "speaker", "in": "Take a list of integers; arrange by magnitude ignoring sign, then increment each value, then ensure at least three items by appending zeros.", "out": "丸下义"} {"kind": "speaker", "in": "Take a list of integers; put them in order by magnitude, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丸下义"} {"kind": "speaker", "in": "Take a list of integers; arrange in order of absolute value, then increment each value, then ensure at least three items by appending zeros.", "out": "丸下义"} {"kind": "speaker", "in": "Take a list of integers; sort by distance from zero, then plus one for all, then ensure minimum length of three by adding zeros to the end.", "out": "丸下义"} {"kind": "builder", "in": "丸下义", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=abs)\n r = [x + 1 for x in r]\n r = r + [0] * (3 - len(r)) if len(r) < 3 else r\n return r"} {"kind": "translator", "in": "丸下义", "out": "Take a list of integers; sort by absolute value, then add one to each, then pad with zeros to at least three elements."} {"kind": "speaker", "in": "Take a list of integers; drop the first and last elements, then keep values above zero, then true if already sorted smallest to largest.", "out": "为七乎"} {"kind": "speaker", "in": "Take a list of integers; take out the first and last items, then filter for positive numbers, then does this list go in ascending order.", "out": "为七乎"} {"kind": "speaker", "in": "Take a list of integers; remove both ends, then keep only positive numbers, then check if the list is in ascending order.", "out": "为七乎"} {"kind": "speaker", "in": "Take a list of integers; trim the edges, then keep the positives, then is the list sorted.", "out": "为七乎"} {"kind": "speaker", "in": "Take a list of integers; trim one element off each end, then remove negatives, then is it sorted.", "out": "为七乎"} {"kind": "speaker", "in": "Take a list of integers; cut off the first and last, then keep the positive numbers, then check if values are in increasing order.", "out": "为七乎"} {"kind": "builder", "in": "为七乎", "out": "def solve(xs):\n r = list(xs)\n r = r[1:-1]\n r = [x for x in r if x > 0]\n return r == sorted(r)"} {"kind": "translator", "in": "为七乎", "out": "Take a list of integers; drop the first and last elements, then keep the positive numbers, then return whether the list is sorted ascending."} {"kind": "speaker", "in": "Take a list of strings; drop empty strings, then add '#' to the start of each string, then remove short strings (under 3 chars).", "out": "两乘乗"} {"kind": "speaker", "in": "Take a list of strings; get rid of blanks, then make each one start with a hash, then only keep strings with three or more characters.", "out": "两乘乗"} {"kind": "speaker", "in": "Take a list of strings; remove blanks, then add '#' to the start of each string, then keep only strings that are at least three characters long.", "out": "两乘乗"} {"kind": "speaker", "in": "Take a list of strings; eliminate empty string values, then make each one start with a hash, then filter strings shorter than 3 chars.", "out": "两乘乗"} {"kind": "speaker", "in": "Take a list of strings; filter out blank strings, then add '#' to the start of each string, then drop anything shorter than three characters.", "out": "两乘乗"} {"kind": "speaker", "in": "Take a list of strings; remove strings that are empty, then make each one start with a hash, then keep only strings of length 3 or more.", "out": "两乘乗"} {"kind": "builder", "in": "两乘乗", "out": "def solve(xs):\n r = list(xs)\n r = [s for s in r if s]\n r = ['#' + s for s in r]\n r = [s for s in r if len(s) >= 3]\n return r"} {"kind": "translator", "in": "两乘乗", "out": "Take a list of strings; drop empty strings, then prefix each with a hash, then drop strings shorter than three characters."} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then take values up to (excluding) the first zero.", "out": "丘世久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then keep the part before the first 0.", "out": "丘世久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then truncate at the first zero.", "out": "丘世久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then delete everything starting with the first zero.", "out": "丘世久"} {"kind": "speaker", "in": "Take a list of integers; cap each value at 10, then remove the first item, then remove from the first zero onwards.", "out": "丘世久"} {"kind": "speaker", "in": "Take a list of integers; clip values at 10, then Remove head, then up to but not including the first zero.", "out": "丘世久"} {"kind": "builder", "in": "丘世久", "out": "def solve(xs):\n r = list(xs)\n r = [min(x, 10) for x in r]\n r = r[1:]\n r = r[:r.index(0)] if 0 in r else r\n return r"} {"kind": "translator", "in": "丘世久", "out": "Take a list of integers; cap each value at 10, then drop the first element, then keep everything before the first zero."} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the first 3 elements, then arrange in decreasing order.", "out": "与丕专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then remove everything after the third, then arrange in descending order.", "out": "与丕专"} {"kind": "speaker", "in": "Take a list of integers; negate each, then truncate to three items, then reverse sort.", "out": "与丕专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then show the first three, then sort largest to smallest.", "out": "与丕专"} {"kind": "speaker", "in": "Take a list of integers; negate each, then take the first three, then sort by descending values.", "out": "与丕专"} {"kind": "speaker", "in": "Take a list of integers; reverse the signs of everything, then keep first 3, then sort from highest to lowest.", "out": "与丕专"} {"kind": "builder", "in": "与丕专", "out": "def solve(xs):\n r = list(xs)\n r = [-x for x in r]\n r = r[:3]\n r = sorted(r, reverse=True)\n return r"} {"kind": "translator", "in": "与丕专", "out": "Take a list of integers; negate each, then keep only the first three, then sort descending."} {"kind": "speaker", "in": "Take a list of integers; keep values greater than five, then keep values below zero, then give the number of evens.", "out": "主万乓"} {"kind": "speaker", "in": "Take a list of integers; filter out values less than or equal to 5, then get the negative numbers, then find how many values are divisible by two.", "out": "主万乓"} {"kind": "speaker", "in": "Take a list of integers; keep only numbers above 5, then keep values below zero, then how many are even.", "out": "主万乓"} {"kind": "speaker", "in": "Take a list of integers; exclude values of 5 and below, then get the negative numbers, then get the total number of even values in the list.", "out": "主万乓"} {"kind": "speaker", "in": "Take a list of integers; remove anything 5 or less, then keep values below zero, then give me the count of even values.", "out": "主万乓"} {"kind": "speaker", "in": "Take a list of integers; filter to keep only values above 5, then get the negative numbers, then I need to know how many of these are even.", "out": "主万乓"} {"kind": "builder", "in": "主万乓", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x > 5]\n r = [x for x in r if x < 0]\n return sum(1 for x in r if x % 2 == 0)"} {"kind": "translator", "in": "主万乓", "out": "Take a list of integers; keep values greater than five, then keep the negative numbers, then return how many values are even."} {"kind": "speaker", "in": "Take a list of integers; keep multiples of three, then increment each value, then drop the even numbers.", "out": "串下丁"} {"kind": "speaker", "in": "Take a list of integers; get rid of non-multiples of three, then plus one for all, then strip out the evens.", "out": "串下丁"} {"kind": "speaker", "in": "Take a list of integers; keep values divisible by 3, then increment each value, then drop the even numbers.", "out": "串下丁"} {"kind": "speaker", "in": "Take a list of integers; keep items where x mod 3 equals zero, then plus one for all, then strip out the evens.", "out": "串下丁"} {"kind": "speaker", "in": "Take a list of integers; drop anything not divisible by three, then increment each value, then drop the even numbers.", "out": "串下丁"} {"kind": "speaker", "in": "Take a list of integers; filter out everything except multiples of three, then plus one for all, then strip out the evens.", "out": "串下丁"} {"kind": "builder", "in": "串下丁", "out": "def solve(xs):\n r = list(xs)\n r = [x for x in r if x % 3 == 0]\n r = [x + 1 for x in r]\n r = [x for x in r if x % 2 != 0]\n return r"} {"kind": "translator", "in": "串下丁", "out": "Take a list of integers; keep multiples of three, then add one to each, then keep the odd numbers."} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then convert each to upper case, then remove blanks.", "out": "乘丟两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then change all strings to uppercase, then eliminate empty string values.", "out": "乘丟两"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then make every string uppercase, then filter out blank strings.", "out": "乘丟两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then uppercase each one, then remove strings that are empty.", "out": "乘丟两"} {"kind": "speaker", "in": "Take a list of strings; prefix each with a hash, then make all the strings uppercase, then strip out empty strings.", "out": "乘丟两"} {"kind": "speaker", "in": "Take a list of strings; add # to the start of each string, then convert all strings to uppercase letters, then keep only non-empty strings.", "out": "乘丟两"} {"kind": "builder", "in": "乘丟两", "out": "def solve(xs):\n r = list(xs)\n r = ['#' + s for s in r]\n r = [s.upper() for s in r]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "乘丟两", "out": "Take a list of strings; prefix each with a hash, then uppercase each string, then drop empty strings."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then convert each to upper case, then remove blanks.", "out": "严丟两"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then change all strings to uppercase, then eliminate empty string values.", "out": "严丟两"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then make every string uppercase, then filter out blank strings.", "out": "严丟两"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then uppercase each one, then remove strings that are empty.", "out": "严丟两"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then make all the strings uppercase, then strip out empty strings.", "out": "严丟两"} {"kind": "speaker", "in": "Take a list of strings; length sort, then convert all strings to uppercase letters, then keep only non-empty strings.", "out": "严丟两"} {"kind": "builder", "in": "严丟两", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = [s.upper() for s in r]\n r = [s for s in r if s]\n return r"} {"kind": "translator", "in": "严丟两", "out": "Take a list of strings; sort by length, shortest first, then uppercase each string, then drop empty strings."} {"kind": "speaker", "in": "Take a list of integers; keep only the last three, then clamp each to at most ten, then reduce each by one.", "out": "丹丘不"} {"kind": "speaker", "in": "Take a list of integers; keep the final three items, then don't let anything exceed 10, then Subtract 1 from all.", "out": "丹丘不"} {"kind": "speaker", "in": "Take a list of integers; take the last three, then clamp each to at most ten, then Subtract one from each.", "out": "丹丘不"} {"kind": "speaker", "in": "Take a list of integers; trim to the last three, then don't let anything exceed 10, then Drop each by one.", "out": "丹丘不"} {"kind": "speaker", "in": "Take a list of integers; last three only, then clamp each to at most ten, then Decrease all values by one.", "out": "丹丘不"} {"kind": "speaker", "in": "Take a list of integers; truncate to the last three items, then don't let anything exceed 10, then Remove one from each value.", "out": "丹丘不"} {"kind": "builder", "in": "丹丘不", "out": "def solve(xs):\n r = list(xs)\n r = r[-3:]\n r = [min(x, 10) for x in r]\n r = [x - 1 for x in r]\n return r"} {"kind": "translator", "in": "丹丘不", "out": "Take a list of integers; keep only the last three, then cap each value at 10, then subtract one from each."} {"kind": "speaker", "in": "Take a list of strings; sort by length, shortest first, then add '#' to the start of each string, then deduplicate the strings.", "out": "严乘丧"} {"kind": "speaker", "in": "Take a list of strings; sort ascending by length, then make each one start with a hash, then filter out duplicate strings retain first.", "out": "严乘丧"} {"kind": "speaker", "in": "Take a list of strings; order strings from shortest to longest, then add '#' to the start of each string, then strip duplicates preserve order.", "out": "严乘丧"} {"kind": "speaker", "in": "Take a list of strings; shortest to longest, then make each one start with a hash, then remove repeated strings.", "out": "严乘丧"} {"kind": "speaker", "in": "Take a list of strings; arrange by string length ascending, then add '#' to the start of each string, then keep unique strings first appearance.", "out": "严乘丧"} {"kind": "speaker", "in": "Take a list of strings; length sort, then make each one start with a hash, then eliminate repeated strings preserve first occurrence.", "out": "严乘丧"} {"kind": "builder", "in": "严乘丧", "out": "def solve(xs):\n r = list(xs)\n r = sorted(r, key=len)\n r = ['#' + s for s in r]\n r = list(dict.fromkeys(r))\n return r"} {"kind": "translator", "in": "严乘丧", "out": "Take a list of strings; sort by length, shortest first, then prefix each with a hash, then drop duplicate strings keeping the first."}